Tutorial.MultiSerialMega History

Show minor edits - Show changes to markup

May 02, 2012, at 04:08 PM by Scott Fitzgerald -
Changed line 35 from:
to:
November 16, 2011, at 04:15 AM by Scott Fitzgerald -
Changed line 35 from:
to:
September 30, 2011, at 03:16 AM by Scott Fitzgerald -
Changed line 35 from:
to:
September 23, 2010, at 10:37 PM by Christian Cerrito -
Changed line 29 from:
to:
September 23, 2010, at 04:56 AM by Christian Cerrito -
Added lines 46-47:
  • DigitalReadSerial - read a switch and print it's state out to the Serial Monitor.
  • AnalogReadSerial - read a potentiometer, print it's state out to the Serial Monitor.
Changed lines 51-55 from:
  • For Loop: - controlling multiple LEDs with a for loop.
  • Array: a variation on the For Loop example that demonstrates how to use an array.
  • While Loop: how to use a while loop to calibrate a sensor while a button is being read.
  • Switch Case: how to choose between a discrete number of values. Equivalent to multiple If statements. This example shows how to divide a sensor's range into a set of four bands and to take four different actions depending on which band the result is in.
to:
September 23, 2010, at 04:52 AM by Christian Cerrito -
Changed lines 40-41 from:
to:
  • serial.begin()
  • serial.read()
  • serial.available()
  • if()

  • The Arduino Serial Library
  • Serial Call Response - send multiple variables using a call and response (handshaking) method.
  • Serial Call and Response ASCII - send multiple vairables using a call-and-response (handshaking) method, and ASCII-encoding the values before sending.
  • If Statement - how to use an if statement to change output conditions based on changing input conditions.
  • For Loop: - controlling multiple LEDs with a for loop.
  • Array: a variation on the For Loop example that demonstrates how to use an array.
  • While Loop: how to use a while loop to calibrate a sensor while a button is being read.
  • Switch Case: how to choose between a discrete number of values. Equivalent to multiple If statements. This example shows how to divide a sensor's range into a set of four bands and to take four different actions depending on which band the result is in.
September 23, 2010, at 04:46 AM by Christian Cerrito -
Changed lines 5-6 from:

Sometimes, one serial port just isn't enough! In trying to communicate with multiple serial enabled devices while also sending info back to the main serial window, a few extra ports can be a welcomed thing. This example makes use of one of Arduino Mega's 3 auxiliary serial ports, routing any incoming data read on that connection straight to the main TX line, and, in turn, to the main serial window.

to:

Sometimes, one serial port just isn't enough! When trying to communicate with multiple serial enabled devices, while also sending info back to the main serial window, a few extra RX/TX ports can be a welcomed thing. This example makes use of one of Arduino Mega's 3 auxiliary serial ports, routing any incoming data read on that connection straight to the main TX line, and, in turn, to the main serial window for you to view.

September 23, 2010, at 04:45 AM by Christian Cerrito -
Changed lines 17-18 from:

After checking the data sheet of whatever serial enabled device you choose to use for this example, make sure that it is properly wired and powered. Connect the RX pin and TX pins of your device to the TX and RX pins of your Mega, as shown in the schematic below.

to:

After checking the data sheet of whatever serial enabled device you choose to use for this example, make sure that it is both properly wired and powered. Connect the RX pin and TX pins of your device to the TX and RX pins of your Mega, as shown in the schematic below.

September 23, 2010, at 04:44 AM by Christian Cerrito -
Changed lines 10-11 from:
  • Any serial enabled device (a Xbee Radio, Bluetooth module, or RFID reader, or another Arduino, for instance).
to:
  • (1) serial enabled device (a Xbee Radio, Bluetooth module, or RFID reader, or another Arduino, for instance).
September 23, 2010, at 04:44 AM by Christian Cerrito -
Changed lines 10-11 from:
  • Any serial enabled device ( a Xbee Radio, Bluetooth module, or RFID reader, for instance)
to:
  • Any serial enabled device (a Xbee Radio, Bluetooth module, or RFID reader, or another Arduino, for instance).
Added lines 17-20:

After checking the data sheet of whatever serial enabled device you choose to use for this example, make sure that it is properly wired and powered. Connect the RX pin and TX pins of your device to the TX and RX pins of your Mega, as shown in the schematic below.

Make sure that your Mega is connected to your computer, via USB, to enable serial communication.

September 23, 2010, at 04:39 AM by Christian Cerrito -
Changed line 28 from:

Describe what's going on here

to:

Code

September 23, 2010, at 04:38 AM by Christian Cerrito -
Changed line 25 from:
to:
September 23, 2010, at 04:37 AM by Christian Cerrito -
Changed line 25 from:
to:
September 23, 2010, at 03:17 AM by Christian Cerrito -
Changed lines 10-11 from:
  • Any serial enabled device ( a Xbee Radio, Bluetooth module, or RFID reader, for instance).
to:
  • Any serial enabled device ( a Xbee Radio, Bluetooth module, or RFID reader, for instance)
September 23, 2010, at 03:16 AM by Christian Cerrito -
Added lines 10-11:
  • Any serial enabled device ( a Xbee Radio, Bluetooth module, or RFID reader, for instance).
September 23, 2010, at 03:07 AM by Christian Cerrito -
Changed lines 15-16 from:
to:
September 23, 2010, at 02:51 AM by Christian Cerrito -
Changed lines 3-6 from:

Example Name

Description

to:

MultiSerialMega

Sometimes, one serial port just isn't enough! In trying to communicate with multiple serial enabled devices while also sending info back to the main serial window, a few extra ports can be a welcomed thing. This example makes use of one of Arduino Mega's 3 auxiliary serial ports, routing any incoming data read on that connection straight to the main TX line, and, in turn, to the main serial window.

Changed line 9 from:
  • Arduino Board
to:
  • (1) Arduino Mega Board
September 23, 2010, at 02:44 AM by Christian Cerrito -
September 16, 2010, at 10:15 PM by Tom Igoe -
Changed line 29 from:
to:
August 13, 2010, at 10:28 PM by Tom Igoe -
Added lines 1-35:

Share