Monday, September 1, 2014

Galileo, Raspberry Pi, Cubieboard2 , Cubietruck, Radxa Rock comparison


GalileoRaspberry Pi (Model B)CubietruckCubieboard 2Radxa Rock Pro
Board Dimensions10cm x 7cm 8.560cm x 5.6cm x 2.1cm 11cm x 8cm x 1.4cm10cm x 6cm x 1.5cm10 cm x 8 cm x 1.2cm
ProcessorIntel® Quark X1000 single coreBroadcom BCM2835 single coreAllWinner A20 Dual-CoreAllWinner A20 Dual-CoreRK3188 SoC
ArchitectureIntel ® Pentium® ClassARM® ARM1176™ARM Cortex-A7 ARM Cortex-A7 ARM Cortex-A9
Speed400MHz700MHziv1GHz1GHz1.6GHz
Width, Instruction Set32-bit32-bit32-bit32-bit32-bit
WifiNoNoYesNoYes
BluetoothNoNOYesNoYes
Real Time ClockYes, needs a 3.3v coin cellNoNoNoYes
Cache16 KB L1 cache32KB L1 cache & 128KB L2 cache; shared with CPU & GPU256KiB L2-Cache (shared between two cores),32KiB (Instruction) / 32KiB (Data) L1-Cache per core256KiB L2-Cache (shared between two cores),32KiB (Instruction) / 32KiB (Data) L1-Cache per coreIntegrated 32KB L1 instruction cache , 32KB L1 data cache with 4-way set associative, 512KB unified L2 Cache
RAM512KB on-chip SRAM, dedicated for sketch storage & 256MB DRAM, dedicated for sketch storage512MB SDRAM (shared with GPU)2GB DDR3@480MHz1GB DDR3@480MHz2GB DDR3 @ 800Mhz
FLASH Memory8MB NOR Flash (Legacy SPI), for FW bootloader & sketch storageNo permanent on-board Flash memory8GB NAND flash4GB NAND flash8GB Nand Flash
EEPROM11KBNoNoNoNo
GPUNoBroadcom Dual-core VideoCore IV® Multimedia co-processorMali400 MP2Mali400 MP2Mali400-mp4
External StorageMicro-SD Card (up to 32GB), & support for  an external USB2.0 driveSD-card, & support for  an external USB2.0 driveSATA 2.0 interface, Micro SD slot, USB 2.0SATA 2.0 interface, micro SD slot, USB 2.0Micro-SD SDXC up to 128GB
Video SupportNoHDMI – 1080pHDMI & VGAHDMI HDMI 1.4 up to 1080 @ 60hz
Audio SupportNoHDMI & 3.5mm stereo audio-out jackTOSLINK (Optical SPDIF) & headphone jackTOSLINK (Optical SPDIF) & headphone jackTOSLINK (Optical SPDIF) & headphone jack
Status IndicationLED – Board PowerLEDs for – board power, SD card access, LAN connected, LAN activity, 100Mbps connectedLEDs for – board power, SD card access, LAN connected, LAN activity, 100Mbps connectedLEDs for – board power, SD card access, LAN connected, LAN activity, 100Mbps connected3 programable leds
JTAG10-pin, Mini-JTAG header, to be used  with an in-circuit debugger Yes, headers P2 & P3. Yes. uSD breakout boardYes. uSD breakout boardNo
CompatibilityArduino Uno R3 3.3V / 5V shieldsArduino board connects via USB. 3rd party boards enable support for Arduino shields with Pi.NoNoNo
Price ~$70.00~$35.00~$94.90~64.90~97.75

Saturday, April 12, 2014

CEPARK Universal Microcontroller Development Kit

Universal CEPARK Microcontroller Development Kit for MSP430/ARM/51/AVR/PIC 

Comes in Aluminium case:
CEPARK Universal Microcontroller Development Board Case

The development board:
CEPARK Universal Microcontroller Development Board

Pickit 3 clone for PIC: 
Pickit 3 clone

LPC2103 microcontroller board
CEPARK LPC2103

STM32 Microcontroller board
CEPARK STM32

PIC microcontroller board 
CEPARK PIC

AVR Atmega 16 microcontroller board 
CEPARK AVR Mega 16

AT 51 microcontroller board 
CEPARK AT51

MSP430 microcontroller board 
CEPARK MSP430

Various sensors and motors 
sensors, remote, sd card, motors

USB ISP and AVR JTAG ICE for AVR 
usb isp, avr jtag ice

Various cables including usb to serial 
usb to serial, jumpers

J link for ARM 
j link

MSP430 debug 
MSP430 USB Debug

Various types and sizes of LCD 
CEPARK LCD

Others:
Parallel port cables
4 X Micro usb cables
Crystals
Button batteries




Saturday, March 15, 2014

7" LCD screen for embedded applications


7" LCD Screen with VGA, HDMI, RCA, remote

7" LCD screen raspberry pi / cubietruck

Accessories includes: a stand, ac to dc power adapter, remote control, stylus, stand double-sided tape

7" LCD screen accesories

HDMI and VGA cables are also inlucded

7" LCD screen cables

Friday, January 31, 2014

Serial communication from Matlab to Arduino and vice versa

Matlab2Arduino


  1. Download the arduino file: http://adf.ly/cqoDu and load into Arduino.
  2. Download the matlab m file: http://adf.ly/cqoq5 and open using matlab.
  3. Ensure that arduino is connected to the PC
  4. Run the matlab program.


Arduino2Matlab


  1. Download the arduino file: http://adf.ly/cqp2L and load into Arduino.
  2. Download the matlab m file: http://adf.ly/cqpC1 and open using matlab.
  3. Ensure that arduino is connected to the PC
  4. Run the matlab program.

Sunday, January 26, 2014

Setup SSH to virtualbox



  1. Select your vbox image that you want to add additional harddisk. Left click -> Settings -> Networking -> Change Attached adapter to Bridged Adapter
  2. Launch your virtualbox system
  3. Install open ssh server
  4. edit /etc/network/interfaces   -> edit to static ip                                                                                  auto eth1
    iface eth1 inet static
    address 192.168.6.108
    netmask 255.255.255.0
  5. /etc/init.d/networking restart  -> restart your network
  6. Use software such as putty or terminal ssh <username>@192.168.6.108
  7. Input your login name and password

Addding Harddisk to VirtualBox





  1. Select your vbox image that you want to add additional harddisk. Left click -> Settings -> Storage -> Add Hard Disk -> Create new disk -> VDI -> Dynamically allocated -> Select location and size
  2. Launch your virtualbox system
  3. ls /dev/sd* (the one without numbers is the new disk)
  4. su -
  5. fdisk /dev/sdb (depending on where your hdd is mounted)
  6. Enter c then u.
  7. Enter p
  8. Select your partition number
  9. Enter the sectors needed
  10. Enter w to write the changes
  11. ls /dev/sd* ( Your new harddisk will show up with number, i.e. sda1, sdb1, etc
  12. mkdir /backup
  13. mkfs.ext4 -L /backup /dev/sdb1
  14. mount /dev/sdb1 /backup
  15. mount ( look for your new drive)
  16. Add LABEL=/backup /backup ext4 defaults 1 2 to your /etc/fstab
  17. Reboot
  18. cd / (You should notice backup folder is created. Your new hard disk is mounted to it.
  19. You can start using the new drive.

Updating fedora EOL to latest



WARNING: Do it at your own risk!
  1. Edit fedora.repo to include http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/ repository.
  2. Yum update.
  3. Download and install the latest kernel, kernel-header,kernel-dev from rpmbone for your fedora version.
  4. rpm --import the_key__version_you_intend_to_upgrade_to
  5.  yum update
  6. yum clean all
  7. yum --releasever=version_you_intend_to_upgrade_to distro-sync

Fedora 16 -> Fedora 17
  1. There are a few problems with the packages: dhclient, dhcp, etc that are not updated resulting no internet connection
Solution
  1. Use live cd
  2. mount chroot /mnt/sysimage /bin/bash
  3. yum check all
  4. manually remove and reinstall the packages that reports the error
  5. yum update
Fedora 16 -> Fedora 20

 So far no problem. Data still intact except some software removed.

Wednesday, January 22, 2014

Logic Sniffer

dangerous prototype logic sniffer




Cubietruck Setup


Wifi:

1. Login to lubuntu: linaro/linaro
2. $sudo modprobe bcmdhd or add bcmdhd to /etc/modules (need to reboot)
3. Add nameserver 8.8.8.8 to /etc/resolv.conf ( without this, the system will be connected to the wifi but no internet access)
4. Reboot


Moving the rootfs to harddisk:
1. sudo su - root --> change to root user
2. mkdir /tmp/1 /tmp/target
3. mount /dev/nandb /tmp/1
4.fdisk -l -> to locate your drive, sda? sdb?
5.fdisk /dev/sda 
4. mkfs.ext4 /dev/sda1
5. mount /dev/sda1 /tmp/target
6. (cd /tmp/1; tar --backup -c *) |tar -C /tmp/target -xv
7. mount /dev/nanda /mnt/
8. vi /mnt/uEnv.txt  (Change root=/dev/sda1)
9. sync
10. unmount /mnt
11. reboot

Cubietruck Setup

Cubietruck Setup