• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomepcDuinoBook: Get Started with pcDuinoChapter 7 Use Arduino Uno with pcDuino
Previous Next

Chapter 7 Use Arduino Uno with pcDuino

Posted by: Alvin Jin , January 9, 2014

[vc_row][vc_column width=”1/1″][vc_column_text]Theoretically speaking, we don’ need to use Arduino Uno with pcDuino as pcDuino has all interface that can be offered by Arduino Uno. In the pcDuino ubuntu released after 20130531, there is Arduino IDE already embedded.[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Simple Experiment: Blink” tab_id=”1389245883-1-74″][vc_column_text]Take an Aduino Uno and plug to any available USB host port on pcDunino. The whole setup is shown below:

绘图1

Launch Arduino IDE and open the sample code “Blink”:

绘图2

Click upload button, we can observe that the code is being uploaded to Arduino Uno, and the LED on Arduino starts to blink when it is done uploading.[/vc_column_text][/vc_tab][vc_tab title=”ArduBlock” tab_id=”1389245883-2-13″][vc_column_text]ArduBlock is designed to make it easy to get start with programming Arduino and we believe that electronic brick is more suitable for starter than breadboard or protoboard approach. LinkSprite has a full set of Linker kit, which can help teach programming with Arduino.

We can launch ArduBlock by navigating the menu Tools->ArduoBlock.

绘图3

绘图4

We can create a program by picking the elements in the left column to the work space in right column:

绘图5

Save the program to a file named ‘test’. The experiment setup is shown below:

绘图6

LED module is connected to GPIO 13, and the touch sensor module is connected to GPIO 1.

Click ‘Upload’ to flash the program to Arduino Uno. We can see the LEDs on Arduino Uno blinking very fast, and after the uploading is done, we can press touch sensor to turn on/off the LED.

[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]

Tags: Book: Get Started with pcDuino

Share!
Tweet

Alvin Jin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors