PcDuino Lite

pcDuino Lite
pcDuino Lite - http://www.pcduino.com/pcduino-lite/

Features:
 * 1GHz ARM Cortex A8 CPU
 * GPU: OpenGL ES2.0, OpenVG 1.1 Mali 400 core
 * 512 MB DRAM
 * Onboard Storage: NO Flash, microSD card (TF) slot for up to 32GB
 * Arduino-Style Peripheral Headers (Adapter Needed for Shield Form-Factor)
 * HDMI Video Output
 * Linux3.0 + Ubuntu12.04 Supported
 * 0.1" Spaced GPIO Headers
 * RJ45 Ethernet Connection
 * Power Requirements: 2A @ 5VDC
 * API to access the following interfaces:
 * UART
 * ADC
 * PWM
 * GPIO
 * I2C
 * SPI
 * Program in C, C++ with GNU tool chain
 * Python

http://www.pcduino.com/wp-content/uploads/2013/10/pcduino_lite.jpg

SD Image
Download Image for pcDuino Lite ETH: http://www.linksprite.com/?page_id=839 http://www.pcduino.com/images-for-pcduino-lite-eth/
 * Ubuntu SD Bootable image https://s3.amazonaws.com/pcduino/Images/lite-eth/pcduino-lite_ubuntu_20130929.img
 * Write image with win32diskimagwriter - https://s3.amazonaws.com/pcduino/Tools/win32diskimager-v0.7-binary.zip

Default password: user: ubuntu pass: ubuntu with sudo privileges

Update: sudo board-config.sh   # select “update” -> all

Purchase

 * SparkFun Electronics - pcDuino Lite - Dev Board - DEV-12077 ($40 + $4.50 shipping) - https://www.sparkfun.com/products/12077
 * Amazon - pcDuino Lite ($43 + $4.50 shipping) - http://www.amazon.com/s/ref=nb_sb_noss_1?url=search-alias%3Daps&field-keywords=pcDuino%20Lite

pcDuino Comparison Chart
pcDuino Family - http://www.pcduino.com/pcduino-family/
 * pcDuino Lite
 * pcDuino Lite WiFi
 * pcDuino v1
 * pcDuino v2
 * pcDuino3

Update pcDuino
Update pcDuino specific: sudo board-config.sh
 * 1) select "update" -> "all"

Update packages: (May have to comment out wiimu repo) sudo apt-get update sudo apt-get upgrade

Boot No GUI
For the latest bootable SD image (31052013), you can boot into terminal with:

sudo mv /etc/init/lightdm.conf /etc/init/lightdm.conf.nostart

This way, lightdm is disabled on boot. Still after booting into terminal you can start desktop with the command "lightdm" (without quotes of course)

To switch back to autostart of desktop:

sudo mv /etc/init/lightdm.conf.nostart /etc/init/lightdm.conf

References:
 * Boot to console, without GUI? - http://pcduino.com/forum/index.php?topic=3645.0

GPIO
Load GPIO module: /sbin/modprobe gpio

Pins: gpio0 gpio1 gpio2 gpio3 gpio4 gpio5 gpio6 gpio7 gpio8 gpio9 gpio10 gpio11 gpio12 gpio13 gpio14 gpio15 gpio16 gpio17 gpio18 gpio19 gpio20 gpio21 gpio22 gpio23

Set mode: echo 0 > /sys/devices/virtual/misc/gpio/mode/gpio1 echo 1 > /sys/devices/virtual/misc/gpio/mode/gpio1
 * 1) input
 * 1) output

Set level: echo 0 > /sys/devices/virtual/misc/gpio/pin/gpio1 echo 1 > /sys/devices/virtual/misc/gpio/pin/gpio1
 * 1) low
 * 1) high

References:
 * Programming the pcDuino - learn.sparkfun.com - https://learn.sparkfun.com/tutorials/programming-the-pcduino/accessing-gpio-pins
 * Programming the pcDuino - learn.sparkfun.com - https://learn.sparkfun.com/tutorials/programming-the-pcduino

Pins
https://cdn.sparkfun.com/r/600-600/assets/d/7/c/4/0/51683a30ce395f5524000001.png

https://cdn.sparkfun.com/r/600-600/assets/2/4/9/a/2/51549986ce395f9554000000.png

apt-get update expected pcduino but got
Error: ... W: Conflicting distribution: http://www.wiimu.com pcduino Release (expected pcduino but got )
 * 1) apt-get update

Solution:
 * Edit /etc/apt/sources.list and comment out the wiimu lines
 * 1) deb http://www.wiimu.com:8020/pcduino/ pcduino main
 * 2) deb-src http://www.wiimu.com:8020/pcduino/ pcduino main

References:
 * Install ROS Groovy on pcDuino » pcDuino - http://www.pcduino.com/install-ros-groovy-on-pcduino/

mac changes every reboot
Edit /etc/network/interfaces and add: iface eth0 inet dhcp hwaddress ether xx:xx:xx:xx:xx:xx auto eth0

References:
 * Fix Ethernet MAC address · Issue #47 · cubieplayer/Cubian - https://github.com/cubieplayer/Cubian/issues/47
 * [ubuntu] MAC address changes after every reboot - http://ubuntuforums.org/showthread.php?t=1647460

Please set the screen resolution
When trying to exit the board-config.sh from a remote SSH connection you may get the following warning, which won't let you exit: Please set the screen resolution

As far as I can tell, this would have to be fixed from a console session connected to HDMI. So just kill the SSH connection and connect again.