innovation with pcduino

69
pcDuino A new way to innovate www.pcduino.com learn.linksprite.com

Upload: jingfeng-liu

Post on 06-Jul-2015

690 views

Category:

Engineering


1 download

DESCRIPTION

example projects with pcDuino

TRANSCRIPT

Page 1: Innovation with pcDuino

pcDuinoA new way to innovate

www.pcduino.comlearn.linksprite.com

Page 2: Innovation with pcDuino

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
Page 4: Innovation with pcDuino

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
Page 6: Innovation with pcDuino

pcDuino3 hardware interfaces

Page 7: Innovation with pcDuino

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

VNC to pcDuino through its USB-OTG

Page 9: Innovation with pcDuino

Scratch for pcDuino

Page 10: Innovation with pcDuino

Scratch

$sudo apt-get install pcduino-scratch

Page 11: Innovation with pcDuino

Blink LED (Scratch for pcDuino)

Page 12: Innovation with pcDuino

Press Button to Turn on LED (Scratch for pcDuino)

Page 13: Innovation with pcDuino

Touch the Finish Line (Scratch for pcDuino)

Page 14: Innovation with pcDuino

Play Pong with Scratch for pcDuino

Page 15: Innovation with pcDuino

pcDuino as banana piano using Scratch for pcDuino

Page 16: Innovation with pcDuino

Showcase

Page 17: Innovation with pcDuino

pcDuino as Networked Device to feed data to Xively (Internet of Things)

Page 18: Innovation with pcDuino

Smart Garage powered by pcDuino

Page 19: Innovation with pcDuino

Home Automation by Z-wave

Page 20: Innovation with pcDuino

Time Lapse Video

Page 21: Innovation with pcDuino

pcDuino as 3D printer control console

Page 22: Innovation with pcDuino

Gavon: Chess Programming with pcDuino

Page 23: Innovation with pcDuino

Rotary Vending

Page 24: Innovation with pcDuino

pcDuino Displaying Car Diagnostic (OBD-II) Data

Page 25: Innovation with pcDuino

Home Automation System

Page 26: Innovation with pcDuino

First High School Classroom powered by pcDuino in China

Page 27: Innovation with pcDuino

Two pcDuinos communicating to each other through audio jack

Page 28: Innovation with pcDuino

Laser Show

Page 29: Innovation with pcDuino

UV index meter

Page 30: Innovation with pcDuino

SDR on pcDuino

Page 31: Innovation with pcDuino
Page 32: Innovation with pcDuino

Gesture Control

Page 33: Innovation with pcDuino

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

uniDap Thin Cloud

Page 35: Innovation with pcDuino

Programming under Ubuntu (linux)

Page 36: Innovation with pcDuino

Two flavors

Command line

IDE

Arduino style programming ( C )

Page 37: Innovation with pcDuino

Arduino IDE

Page 38: Innovation with pcDuino

Arduino IDE

Page 39: Innovation with pcDuino

Arduino IDE

Page 40: Innovation with pcDuino

Arduino IDE

Page 41: Innovation with pcDuino

Arduino IDE

Page 42: Innovation with pcDuino

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

pcDuino

Hardware Experiments

Page 44: Innovation with pcDuino

Potentiometer and Dimmer

Page 45: Innovation with pcDuino

7-seg LED

Page 46: Innovation with pcDuino

16x02 Character LCD

Page 47: Innovation with pcDuino

Analog Temperature Sensor

Page 48: Innovation with pcDuino

Digital Humidity and Temperature Sensor

Page 49: Innovation with pcDuino

Serial Port of pcDuino

Page 50: Innovation with pcDuino

Extends to 4 UARTS

http://jbvsblog.blogspot.com/2013/09/pcduino-extends-to-4-uarts.html

Page 51: Innovation with pcDuino

Ultrasonic Sensor

Page 52: Innovation with pcDuino

Stepper

Page 53: Innovation with pcDuino

RF Servo

Page 54: Innovation with pcDuino

Relay

Page 55: Innovation with pcDuino

NFC Shield

Page 56: Innovation with pcDuino

Cottonwood:UHF ultra-distance RFID Reader

Page 57: Innovation with pcDuino

GPS Shield

Page 58: Innovation with pcDuino

Cellular Shield

Page 59: Innovation with pcDuino

Powerline Communication

Page 60: Innovation with pcDuino

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

OpenCV

Page 62: Innovation with pcDuino

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 &lt; 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

Cloud 9 IDE

Page 64: Innovation with pcDuino

Programming under Android ICS

Page 65: Innovation with pcDuino

Two flavors to program under Android

There are two flavors to program under Android:

Command line

QT5 GUI

Page 66: Innovation with pcDuino

Command line

Page 67: Innovation with pcDuino

QT5 GUI

We can copy the apk though pcDuino OTG or SD card to pcDunio and install it there.

Page 68: Innovation with pcDuino

Produce together with pcDuino

Page 69: Innovation with pcDuino

Connect with pcDuino

Facebook.com/linksprite