Innovation with pcDuino
-
Upload
jingfeng-liu -
Category
Engineering
-
view
691 -
download
1
description
Transcript of Innovation with pcDuino
![Page 1: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/1.jpg)
pcDuinoA new way to innovate
www.pcduino.comlearn.linksprite.com
![Page 2: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/2.jpg)
pcDuino
pcDuino is a $39 single board computer that has 1G RAM, 4G Flash, Gbit ethernet, and is compatible with Arduino ecosystem
![Page 3: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/3.jpg)
![Page 4: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/4.jpg)
pcDuino FamilypcDuino Lite WiFi pcDuino v1 pcDuino v2 pcDuino v3 pcDuino 8
CPU
Allwinner A10
1GHz ARM Cortex
A8
Allwinner A10
1GHz ARM Cortex
A8
Allwinner A101
GHz ARM Cortex
A8
Allwinner A20,
1GHz, ARM Cortex
A7 Dual Core
UltraOctaA80
GPU
OpenGL
ES2.0OpenVG 1.1
Mali 400 core
OpenGL
ES2.0OpenVG 1.1
Mali 400 core
OpenGL
ES2.0OpenVG 1.1
Mali 400 core
OpenGL
ES2.0OpenVG 1.1
Mali 400 core
PowerVR 64-core
G6230 GPU
DRAM 256MB 1GB 1GB 1GB 4GB
Storage
2GB FlashmicroSD
card (TF) slot for up
to 32GB
2GB Flash (4GB
after
2/1/2014)microSD
card (TF) slot for up
to 32GB
2GB Flash (4GB
after 2/1/2014)
microSD card (TF)
slot for up to 32GB
4GB Flash
microSD card (TF)
slot for up to 32GB8GB
Video HDMI HDMI HDMI HDMI HDMI
OS Support
•Lbuntu 12.04
•Doesn’t support
Android
•Lbuntu 12.04
•Android
•Lbuntu 12.04
•Android
•Lbuntu 12.04
•AndroidLinux (on-going)
Android
ExtensionInterfaceArduino (TM)
Headers2.54mm headers
Arduino (TM)
Headers
Arduino (TM)
Headers
NetworkInterface WiFi, No Ethernet
•10/100Mbps RJ45
•USB WiFi
extension (not
included)
•10/100Mbps RJ45
•WiFi
•10/100Mbps RJ45
•WiFi
•Gbits RJ45
•WiFi
•Bluetooth
Power 5V, 2000mA 5V, 2000mA 5V, 2000mA 5V, 2000mA 5V, 2000nA
![Page 5: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/5.jpg)
![Page 6: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/6.jpg)
pcDuino3 hardware interfaces
![Page 7: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/7.jpg)
pcDuino boot modes Default to boot from SD
If there is no bootable image in SD, it will try to boot from NAND.
For Ubuntu OS, the system and data in NAND can be copied to SD seamlessly.
![Page 8: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/8.jpg)
VNC to pcDuino through its USB-OTG
![Page 9: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/9.jpg)
Scratch for pcDuino
![Page 10: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/10.jpg)
Scratch
$sudo apt-get install pcduino-scratch
![Page 11: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/11.jpg)
Blink LED (Scratch for pcDuino)
![Page 12: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/12.jpg)
Press Button to Turn on LED (Scratch for pcDuino)
![Page 13: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/13.jpg)
Touch the Finish Line (Scratch for pcDuino)
![Page 14: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/14.jpg)
Play Pong with Scratch for pcDuino
![Page 15: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/15.jpg)
pcDuino as banana piano using Scratch for pcDuino
![Page 16: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/16.jpg)
Showcase
![Page 17: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/17.jpg)
pcDuino as Networked Device to feed data to Xively (Internet of Things)
![Page 18: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/18.jpg)
Smart Garage powered by pcDuino
![Page 19: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/19.jpg)
Home Automation by Z-wave
![Page 20: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/20.jpg)
Time Lapse Video
![Page 21: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/21.jpg)
pcDuino as 3D printer control console
![Page 22: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/22.jpg)
Gavon: Chess Programming with pcDuino
![Page 23: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/23.jpg)
Rotary Vending
![Page 24: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/24.jpg)
pcDuino Displaying Car Diagnostic (OBD-II) Data
![Page 25: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/25.jpg)
Home Automation System
![Page 26: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/26.jpg)
First High School Classroom powered by pcDuino in China
![Page 27: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/27.jpg)
Two pcDuinos communicating to each other through audio jack
![Page 28: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/28.jpg)
Laser Show
![Page 29: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/29.jpg)
UV index meter
![Page 30: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/30.jpg)
SDR on pcDuino
![Page 31: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/31.jpg)
![Page 32: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/32.jpg)
Gesture Control
![Page 33: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/33.jpg)
Astroprint
Slice, Store, and Print from the browser of any web enabled device. In addition, you can monitor your prints, organize designs in the cloud, and even print straight from Sketchupor Blender. Astropintsoftware runs on pcDuino.
![Page 34: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/34.jpg)
uniDap Thin Cloud
![Page 35: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/35.jpg)
Programming under Ubuntu (linux)
![Page 36: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/36.jpg)
Two flavors
Command line
IDE
Arduino style programming ( C )
![Page 37: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/37.jpg)
Arduino IDE
![Page 38: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/38.jpg)
Arduino IDE
![Page 39: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/39.jpg)
Arduino IDE
![Page 40: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/40.jpg)
Arduino IDE
![Page 41: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/41.jpg)
Arduino IDE
![Page 42: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/42.jpg)
Creating Your Own SketchRun Your Sketch
To run it, once you have wired up a switch and led to the right pins, type:
ubuntu@ubuntu:~/c_enviroment/output/test$ ./button_led
To stop the program, <Ctrl>C
A Quick Re-Cap
Add #include <core.h> to the top of your sketch.
Create your sketch in the samples folder (if your familiar with linux, makefiles, and compiling code, you could set up your own)
Add the filename to the Makefile in the samples folder in the OBJS section without the .c
Run make
Run the executable from the output/test folder.
You can introduce command line arguments into your sketch to make it more transportable.
![Page 43: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/43.jpg)
pcDuino
Hardware Experiments
![Page 44: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/44.jpg)
Potentiometer and Dimmer
![Page 45: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/45.jpg)
7-seg LED
![Page 46: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/46.jpg)
16x02 Character LCD
![Page 47: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/47.jpg)
Analog Temperature Sensor
![Page 48: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/48.jpg)
Digital Humidity and Temperature Sensor
![Page 49: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/49.jpg)
Serial Port of pcDuino
![Page 50: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/50.jpg)
Extends to 4 UARTS
http://jbvsblog.blogspot.com/2013/09/pcduino-extends-to-4-uarts.html
![Page 51: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/51.jpg)
Ultrasonic Sensor
![Page 52: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/52.jpg)
Stepper
![Page 53: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/53.jpg)
RF Servo
![Page 54: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/54.jpg)
Relay
![Page 55: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/55.jpg)
NFC Shield
![Page 56: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/56.jpg)
Cottonwood:UHF ultra-distance RFID Reader
![Page 57: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/57.jpg)
GPS Shield
![Page 58: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/58.jpg)
Cellular Shield
![Page 59: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/59.jpg)
Powerline Communication
![Page 60: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/60.jpg)
Python
ubuntu@ubuntu:~/python-pcduino/Samples/blink_led$ more blink_led.py #!/usr/bin/env python# blink_led.py# gpio test code for pcduino ( http://www.pcduino.com )#import gpioimport timeled_pin = "gpio2"def delay(ms):
time.sleep(1.0*ms/1000)def setup():
gpio.pinMode(led_pin, gpio.OUTPUT)def loop():
while(1):gpio.digitalWrite(led_pin, gpio.HIGH)delay(200)
![Page 61: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/61.jpg)
OpenCV
![Page 62: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/62.jpg)
Go Langpackage main
import ("fmt""./gpio""time")
func main() {
g, err := gpio.NewGPIOLine(7,gpio.OUT)if err != nil {fmt.Printf("Error setting up GPIO %v: %v", 18, err)return}
blink(g, 100)g.Close()}
func blink(g *gpio.GPIOLine, n uint) {fmt.Printf("blinking %v time(s)\n", n)for i := uint(0); i < n; i++ {g.SetState(true)time.Sleep(time.Duration(1000) * time.Millisecond)g.SetState(false)time.Sleep(time.Duration(1000) * time.Millisecond)}}
![Page 63: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/63.jpg)
Cloud 9 IDE
![Page 64: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/64.jpg)
Programming under Android ICS
![Page 65: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/65.jpg)
Two flavors to program under Android
There are two flavors to program under Android:
Command line
QT5 GUI
![Page 66: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/66.jpg)
Command line
![Page 67: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/67.jpg)
QT5 GUI
We can copy the apk though pcDuino OTG or SD card to pcDunio and install it there.
![Page 68: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/68.jpg)
Produce together with pcDuino
![Page 69: Innovation with pcDuino](https://reader035.fdocuments.net/reader035/viewer/2022062313/559a5c081a28abcf1d8b4572/html5/thumbnails/69.jpg)
Connect with pcDuino
Facebook.com/linksprite