PcDuino User Guide - SparkFun Electronics

2y ago
143 Views
5 Downloads
1.69 MB
24 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Matteo Vollmer
Transcription

pcDuinoDoc TitleNumberVersionPcDuino User GuideWMPCD1212190.2pcDuinoUser GuidepcDuinoDocument No WMPCD121219Page 1 of 24

pcDuinoDoc TitleNumberVersionPcDuino User thor0.112/07/2012Initial specification draftLifeng Zhao0.21/28/2013Add I/O interface descriptionLifeng ZhaoDocument No WMPCD121219Page 2 of 24

pcDuinoDoc TitlePcDuino User .Overview . 4Required hardware for all samples in this user guide. 7pcDuino board I/O interface description. 9PcDuino firmware and software update procedure. 10Use PcDuino as an mini PC platform. 12Use PcDuino as an high performance Hardware platform. 135.1Guide of individual Hardware samples . 135.1.1UART . 135.1.2ADC . 155.1.3PWM Sample . 175.1.4GPIO Sample . 195.1.5I2C Sample . 215.1.6SPI Sample. 23Exception list .Document No WMPCD121219错误!未定义书签。Page 3 of 24

pcDuinoDoc TitleNumberVersionPcDuino User GuideWMPCD1212190.21. OverviewPcDuino is a high performance, cost effective mini PC platform that runs PC like OS such as Ubuntu Linux. Itoutputs its screen to HDMI enabled TV or monitor via the built in HDMI interface. It is specially targeted forthe fast growing demands from the open source community, that is, a platform could run full blown PC likeOS with easy to use tool chain and compatible with the popular Arduino ecosystem such as Arduino Shieldsand open source projects etc.The hardware specification for pcDuino is as follows:ItemsDetailsCPUAllWinner A10 SoC, 1GHz ARM Cortex A8GPUOpenGL ES2.0, OpenVG 1.1 Mali 400 coreDRAM1GB DDR3Onboard Storage2GB Flash, macro SD card slot for up to 32GBVideo OutputHDMI 720p or 1080p 60HzOSLinux3.0 Ubuntu12.10Extension InterfaceArduino HeadersNetwork interfaceUSB WiFi extension (not included)Power5V 2AThe following are top and bottom views for pcDuino.Document No WMPCD121219Page 4 of 24

pcDuinoDoc TitlePcDuino User GuideNumberVersionWMPCD1212190.2PcDuino targets for two markets primarily, i.e., the Raspberry Pi mini PC market and Arduino market asopen-source electronics prototyping platform. With pcDuino, user could do lots of fun stuff including but notlimited to the follows: Learn or teach to program Interface with hardware Use Internet browser or Office from Ubuntu Learn Ubuntu linux Play movie Play game DIY projectsCompared with Raspberry Pi, pcDuino has several competitive advantages in terms of CPU/GPU performance,Document No WMPCD121219Page 5 of 24

pcDuinoDoc TitleWMPCD1212190.2NumberVersionPcDuino User Guidehardware interface, compatibility (due to SD card) and HTML5 and flash support.ItemsRaspberry PiCPUGPUPcDuinoAdvantages750MHz ARM11 Single1GHz ARM Cortex A8Faster and advanced CPUCore (ARM v6)(ARM v7)coreOpenGL ES2.0, OpenVGOpenGL ES2.0, OpenVGFaster GPU core1.1, Broadcom1.1, Mali 400 coreVideocoreOnboardNone2GB FlashFlashAlways boot, no boot issuedue to SD cardcompatibilityExtensionNoHardware HeadersInterfaceNeed purchase expensiveRaspberryHardwarebridgeHTML5andNoFlash supportDocument No WMPCD121219YesImportantforInternetbrowser and programmingPage 6 of 24

pcDuinoDoc TitlePcDuino User GuideNumberVersionWMPCD1212190.22. Required hardware for all samples in this user guidePcDuino boardmicro-USB port power adaptor ( 5V, 2000mA)Display with HDMI portHDMI cableUSB keyboard (must)USB Hub and USB mouse ( optional but strongly recommended )Document No WMPCD121219Page 7 of 24

pcDuinoDoc TitlePcDuino User GuideNumberVersionWMPCD1212190.2Some Dupont Lines to connect pcDuino with test devicesNote:Before run the following samples, Connect pcDuino with the devices correctly:Straberry USB host port USB hub keyboard & mouseStraberry HDMI port HDMI cable HDMI displayDocument No WMPCD121219Page 8 of 24

pcDuinoDoc TitlePcDuino User GuideNumberVersionWMPCD1212190.23. pcDuino board I/O interface descriptionHere is the list of I/O interfaces on pcDuino board.1. 14 digital pins for GPIO2. One UART RX, one UART TX3. Two PWM pins4. Six ADC pins5. Four SPI pins6. Two I2C pinsIt supports to connect any Arduino shield with pcDuino via any of the above I/O interfaces. It allows to usepcDuino with the same code used in Arduino.Document No WMPCD121219Page 9 of 24

pcDuinoDoc TitlePcDuino User GuideNumberVersionWMPCD1212190.24. PcDuino firmware and software update procedurePcDuino could boot from NAND or mini-SD card. There is the factory prebuilt code in the NAND flash. To updatethe factory prebuilt code, please follow the following procedures carefully.Steps to burn the whole system to NAND flashA PC tool called “Livesuit” is provided to burn the firmware from PC to the on board flash. Livesuite requires a USBto min-USB cable that connects the PC to the USB OTG port on board.Note:To run livesuite for the first time, you need to install USB driver under livesuite directory.To do this, After power on press “sw1(reset)” and “sw2” key to enter the force-update process.For more detailed usage of livesuite, please check Livesuite manual which is under livesuite software directory.Steps:1. Copy Ubuntu(Ubuntu.ext4, env nandd.fex, update.sh) to the root directory of your usb disk , and plugin theUSB disk to pcDuino .2. Open the LiveSuit software, and select the firmware .3. Connect pcDuino board to PC with USB OTG cable .4. During upgrade, you will be asked to install the USB Driver twice if it not installed yet. The driver file is“usbdrv.inf” in the folder “usbDriver”, which is located at the installation path of “LiveSuit” .5. The whole system will updated from usb disk automatically, it takes about 10 minutes.Steps to update software from usb diskMost of the time, users do not need to update whole system, only some components need to update for bugfix ornew features support.1. Copy update package to usb disk (for example: update fm.sh, update.tgz )2. Power on pcDuino board3. Plugin the usb disk to pcDuino usb host port4. Open a terminal after login to Ubuntu5. Run commands to update the package cd /media/*/ bash ./update fm.shNote:If the udisk has more than one partition, enter the whole path which the partition including update packageis mounted, for example “cd /media/Volumn”. If you don’t know which partition to choose, open “File Manager”to check it.The name of update script (update fm.sh) and update package(update.tgz) may be different for differentrelease version.Document No WMPCD121219Page 10 of 24

pcDuinoDoc TitlePcDuino User GuideNumberVersionWMPCD1212190.2Steps to burn the firmware to mini-SD cardAnother tool called “PhoenixCard” is provided to do this job. This tool makes the process to burn the firmware toSD card very easy. Please see the document under the software directory for more details.Document No WMPCD121219Page 11 of 24

pcDuinoDoc TitleNumberVersionPcDuino User GuideWMPCD1212190.25. Use PcDuino as an mini PC platformPcDuino supports customized Ubuntu linux 12.10 that is specially optimized for running on ARM cortex platformwith limited DRAM and NAND flash support. The device could be operated with the USB mouse and keyboard.The supported application list consists of the follows:ItemsDetailsTerminal Use build in “LXTerminal” application from desktopLaunch terminal application, run standard linux commands or vi editor etc. Launch C/C compile (use gcc), assembly and executionUse build in File Manager from desktopUsed for typical file managementInternet browser Use chromium web browser from desktopSupport HTML5Office viewer and editor Use Document Viewer from desktop for PDF file viewUse Gnumeric from desktop for Excel file view and edit Use AbiWord from desktop for Word file view and editUse MPlayer from desktop Could playback audio, video and imageFile browserMovie playerPcDuino has no build in WiFi and you could get one WiFi dongle which is included in pcDuino toolkit.Document No WMPCD121219Page 12 of 24

pcDuinoDoc TitlePcDuino User GuideNumberVersionWMPCD1212190.26. Use PcDuino as an high performance Hardware platform5.1Guide of individual Hardware samples5.1.1UARTHardware required:USB to serial Cable (e.g. PL2303).Test steps:Document No WMPCD121219Page 13 of 24

pcDuinoDoc TitlePcDuino User GuideNumberVersionWMPCD1212190.2a) Plugin USB-to-serial cable to PC USB port and install USB driver if needed.b) Set uart tool on PC ( baud rate 115200)for example: sercureCRTc) Connect USB-to-serial cable to pcDuino before power onUSB-to-serialPcDuinoGND ---------- GNDRX ---------- PIN1(TX)d) Open a Terminal after login to Ubuntue) Run uart test sample with the following commands in the terminal window cd /home/pcDuino/sample/test ./uart test “pcDuino uart test”Note: do not input the symbol “ ”, you can replace the message “PcDuino uart test “ by your own.f) PC uart tool will receive messages sent by the test programg) Press “Ctrl” and “C” on keyboard to stop the test processDocument No WMPCD121219Page 14 of 24

pcDuinoDoc Title5.1.2PcDuino User GuideNumberVersionWMPCD1212190.2ADCADC0 and ADC1 are 6 bits resolution.Hardware required:1.5V BatteryTest Steps:a) Connect the battery to pcDuino before power onBatteryPcDuinoN ---------- GNDP ----------- ADC0 or ADC1b) Connect usb power adaptor to power onDocument No WMPCD121219Page 15 of 24

pcDuinoDoc TitlePcDuino User GuideNumberVersionWMPCD1212190.2c) Open a Terminal after login to Ubuntud) Run adc test sample with the following commands in the terminal window cd /home/pcDuino/sample/test ./adc test 0Note: do not input the symbol “ ”, if the device connects to ADC1, run “./adc test 1” insteade) the test program will print out the raw adc value (about 40-50 depend on the battery voltage)Document No WMPCD121219Page 16 of 24

pcDuinoDoc Title5.1.3PcDuino User GuideNumberVersionWMPCD1212190.2PWM SamplePWMThere are two PWM interfaces, PWM1 and PWM2 are hardware PWM and can support up to 24MHz frequency.Hardware required:A buzzerTest Steps:1. Connect the buzzer to pcDuino before power onBuzzerPcDuinoDocument No WMPCD121219Page 17 of 24

pcDuinoDoc Title2.3.4.5.PcDuino User GuideNumberVersionWMPCD1212190.2GND(N) ---------- GNDVCC(P) ---------- PWM1 (any pin of PWM1-PWM2)Connect usb power adaptor to power onOpen a Terminal after login to UbuntuRun pwm sample with the following commands in the terminal window cd /home/pcDuino/sample/test . /pwm test 1Note:do not input the symbol “ ”, if the buzzer connects to another pin, replace the PWM ID with the onebuzzer connected(example: if the buzzer connects to PWM2, then run “./pwm test 2” instead).the test program will make the buzzer generating audio signal, and you can hear the sound.Document No WMPCD121219Page 18 of 24

pcDuinoDoc Title5.1.4PcDuino User GuideNumberVersionWMPCD1212190.2GPIO SampleThere are 14 GPIOs. Sometimes, some GPIO will be mux as other PIN, such as SPIHardware required:An LED ModuleA Button ModuleDocument No WMPCD121219Page 19 of 24

pcDuinoDoc TitlePcDuino User GuideNumberVersionWMPCD1212190.2Test Steps:1. Connect the LED to pcDuino before power onButtonPcDuinoGND/- ---------- GNDS---------- GPIO1 (any pin of GPIO0-13)LEDPcDuinoGND/- ---------- GNDS---------- GPIO0 (any pin of GPIO0-13)2. Connect usb power adaptor to power on3. Open a Terminal after login to Ubuntu4. Run gpio sample with the following commands in the terminal window cd /home/pcDuino/sample/test . /io test 1 0Note:Test program Usage: ./io test BUTTON PIN NUM LED PIN NUMdo not input the symbol “ ”, if the Button/LED connects to another pin, replace theBUTTON PIN NUM/LED PIN NUM with the one which the button/LED connected(example: if theButton connects to GPIO5, LED connects to GPIO10, then run “./io test 5 10” instead).5. Press/Release the button to turn on/off the LED.Document No WMPCD121219Page 20 of 24

pcDuinoDoc Title5.1.5PcDuino User GuideNumberVersionWMPCD1212190.2I2C SampleI2C (Two wire)Hardware required:ADXL-345 Triple-Axis Analog AccelerometerDocument No WMPCD121219Page 21 of 24

pcDuinoDoc TitlePcDuino User GuideNumberVersionWMPCD1212190.2Test steps:a) Connect the ADXL-345 device to pcDuino before power onADXL-345PcDuinoGND ---------- GNDVCC ---------- 3.3VSDA ----------- SDASCL ----------- SCLb) Connect usb power adaptor to power onc) Open a Terminal after login to Ubuntud) Run adxl345 test sample with the following commands in the terminal window cd /home/pcDuino/sample/test ./adxl345 testNote: do not input the symbol “ ”e) the test program will print out the x, y, z value of adxl345, change the direction of the test device andthe output value will change toox 0, y 1, z 108x 9, y 45, z 116x 1, y 59, z 10x 0, y 0, z 0x 10, y 0, z 95x 0, y 0, z 8x 0, y 0, z 7x 0, y 0, z 99x 0, y 0, z 95Document No WMPCD121219Page 22 of 24

pcDuinoDoc Title5.1.6PcDuino User GuideNumberVersionWMPCD1212190.2SPI SampleHardware required:An SPI flash test module ( for example: M25P16 )Document No WMPCD121219Page 23 of 24

pcDuinoDoc TitlePcDuino User GuideNumberVersionWMPCD1212190.2Test steps:a) Connect the spi flash to pcDuino before power onSPI FlashPcDuinoGND ---------- GNDV3.3 ---------- 3.3VDO ---------- SPI0 MISODI ---------- SPI0 MOSICS ---------- SPI0 CSCLK --------- SPI0 CLKb) Connect usb power adaptor to power onc) Open a Terminal after login to Ubuntud) Run spi test sample with the following commands in the terminal window cd /home/pcDuino/sample/test ./spi testNote: do not input the symbol “ ”e) the test program will print out the flash chip id (for M25P16, chip id is 0xef2015):spi flash ID 0xef2015Note:Some PADs of SPI bus are sharing with GPIO function, if you have done GPIO test but not RESET beforeexecuting “./spi test “ command, you may get invalid ID value.1.Document No WMPCD121219Page 24 of 24

PcDuino targets for two markets primarily, i.e., the Raspberry Pi mini PC market and Arduino market as open-source electronics prototyping platform. With pcDuino, user could do lots of fun stuff including but not limited to the follows: Learn or teach to program Interface with hardware Use

Related Documents:

59 GND Power SparkFun Electronics Inc - Artemis Integration Guide - 1p0p3 8 . Overview of Pad Functions Note: Apollo Pad# maps to GPIO# on Artemis SparkFun Electronics Inc - Artemis Integration Guide - 1p0p3 9 . SparkFun Electronics Inc - Artemis Integration Guide - 1p0p3 19 . Created Date: 8/27/2021 12:54:44 PM Title:

"learn to program" tutorial; rather, it's meant to introduce and provide examples for accessing the various resources on the pcDuino, as well as getting code to compile and run. C Programming Compiling and running a C program is p

SparkFun LiPo Charger/Booster - 5V/1A PRT-14411 17.50 1 Favorited Favorite 32 Wish List SparkFun Buck-Boost Converter COM-15208 10.95 2 Favorited Favorite 26 Wish List Step Up/Down Inverting Switching Regulator COM-00317 Page 7 of 18

SparkFun Qwiic Thermocouple Amplifier - MCP9600 (Screw Terminals) SEN-16295 SparkFun Qwiic Thermocouple Amplifier - MCP9600 (PCC Connector) SEN-16294 Qwiic Cable - 100mm PRT-14427 SparkFun RedBoard Qwiic DEV-15123 Thermocouple Type-K - Stainless Steel SEN-13715 This is a stainless steel, Type-K Thermocouple probe.

SparkFun Inventor's Kit This SparkFun Inventor's Kit Experiment Guide is your map for navigating the waters of beginning embedded electronics using the Intel Curie-based Arduino 101 or Genuino 101 board. This guide contains all the information you will need to explore the 21 circuits of the SparkFun Inventor's Kit for the Arduino 101.

SparkFun RedBoard - Programmed with Arduino DEV-13975 SparkFun Ardumoto Shield Kit KIT-14180 SparkFun Ardumoto - Motor Driver Shield DEV-14129 . swapping either the motor leads of one side or the logic in the code, but not both. Play around with the leads of the motors on their respective sides and watch the indicator LEDs to see the effect.

through the Arduino Library Manager. Search for and install "SparkFun MPL3115" and "SparkFun HTU21D". For more information see our tutorial on using the Arduino library manager. For all the latest Arduino Weather Shield code, check out the Github Repository: Weather Shield GitHub Repo Or copy and paste the code below into the Arduino IDE .

Academic literary criticism prior to the rise of “New Criticism” in the United States tended to practice traditional literary history: tracking influence, establishing the canon of major writers in the literary periods, and clarifying historical context and allusions within the text. Literary biography was and still is an important interpretive method in and out of the academy; versions of .