User Tools

Site Tools


arduino:arduino_crash_course:serial_communication

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
arduino:arduino_crash_course:serial_communication [2012/11/03 21:40] mithatarduino:arduino_crash_course:serial_communication [2012/11/12 18:23] (current) – [Switch controlled LED with serial reporting] mithat
Line 1: Line 1:
 ====== Serial Communication ====== ====== Serial Communication ======
  
-Serial communication is a two-way stream of text that is communicated over a **serial port**--most often between the Arduino board (called the **target**) and the computer you are using to develop Arduino programs (called the **development host** or just **host**). It is one way to let the host system communicate with the Arduino board+Serial communication is a two-way stream of text characters that is communicated over a **serial port**. It is one way to let the Arduino board (called the **target**) communicate with the computer you are using to develop Arduino programs (called the **development host** or just **host**).
  
 Serial communication is often used to make the Arduino report back to the host the value of the program's variables or other information as the program is running. This can be of great value when you are trying to debug programs. Serial communication is often used to make the Arduino report back to the host the value of the program's variables or other information as the program is running. This can be of great value when you are trying to debug programs.
Line 7: Line 7:
 ===== Switch controlled LED with serial reporting ===== ===== Switch controlled LED with serial reporting =====
  
-The following is the [[arduino:arduino_crash_course:basic_interaction#using_internal_pullups|switch-controlled LED]] example modifed to report the state of the pushbutton back to the host computer.+The following is our [[arduino:arduino_crash_course:basic_interaction#using_internal_pullups|switch-controlled LED]] example modifed to report the state of the pushbutton back to the host computer.
  
 Once you have uploaded the program to the Arduino and it is running, open the serial monitor using the IDE's //Tools > Serial Monitor// menu item. Notice the values that are reported in the Serial Monitor window when you press and unpress the switch. Once you have uploaded the program to the Arduino and it is running, open the serial monitor using the IDE's //Tools > Serial Monitor// menu item. Notice the values that are reported in the Serial Monitor window when you press and unpress the switch.
Line 42: Line 42:
 } }
 </file> </file>
 +
 +The official Arduino [[http://arduino.cc/en/Reference/Serial|Serial]] reference material.
arduino/arduino_crash_course/serial_communication.1351978829.txt.gz · Last modified: 2012/11/03 21:40 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki