Tutorial.MultiSerialMega History

Hide minor edits - Show changes to markup

December 01, 2015, at 03:16 PM by Luca Cipriani -
Changed line 50 from:
to:
August 28, 2015, at 10:41 AM by Simone Maiocchi -
Changed lines 16-17 from:

MultiSerialMega

to:

MultiSerialMega

Changed line 20 from:

Hardware Required

to:

Hardware Required

Changed line 28 from:

Circuit

to:

Circuit

Changed line 41 from:

Schematic

to:

Schematic

Changed line 46 from:

Code

to:

Code

Changed line 54 from:

See Also

to:

See Also

August 28, 2015, at 10:39 AM by Simone Maiocchi -
Changed lines 1-6 from:
to:
Added line 20:

Hardware Required

Changed line 22 from:

Hardware Required

to:
August 28, 2015, at 10:34 AM by Simone Maiocchi -
Changed lines 45-55 from:
to:
  • serial.begin()
  • serial.read()
  • serial.available()
  • if()

  • ASCIITable - Demonstrates Arduino's advanced serial output functions.
  • Dimmer - Move the mouse to change the brightness of an LED.
  • Graph - Send data to the computer and graph it in Processing.
  • Midi - Send MIDI note messages serially.
  • PhysicalPixel - Turn a LED on and off by sending data to your board from Processing or Max/MSP.
  • ReadASCIIString - Parse a comma-separated string of integers to fade an LED.
  • SerialCallResponse - Send multiple variables using a call-and-response (handshaking) method.
  • SerialCallResponseASCII - Send multiple variables using a call-and-response (handshaking) method, and ASCII-encode the values before sending.
  • SerialEvent - Demonstrates the use of SerialEvent().
  • VirtualColorMixer - Send multiple variables from Arduino to your computer and read them in Processing or Max/MSP.
July 29, 2015, at 07:39 PM by Simone Maiocchi -
Changed lines 9-10 from:

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.

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 and Genuino 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.

Changed lines 14-15 from:
  • Serial enabled device (a Xbee Radio, Bluetooth module, or RFID reader, or another Arduino, for instance).
to:
  • Serial enabled device (a Xbee Radio, a Bluetooth module, or RFID reader, or another board, for instance).
Changed lines 56-58 from:
to:


Last revision 2015/07/29 by SM

July 09, 2015, at 03:19 PM by Simone Maiocchi -
Changed line 2 from:

Tutorials > Examples? > USB > Communication >MultiSerialMega

to:

Tutorials > Examples? > Communication >MultiSerialMega

July 09, 2015, at 02:10 PM by Simone Maiocchi -
Changed lines 12-15 from:

Hardware Required

  • (1) Arduino Mega Board
  • (1) serial enabled device (a Xbee Radio, Bluetooth module, or RFID reader, or another Arduino, for instance).
to:

Hardware Required

  • Arduino or Genuino Mega Board
  • Serial enabled device (a Xbee Radio, Bluetooth module, or RFID reader, or another Arduino, for instance).
Changed line 18 from:

Circuit

to:

Circuit

Changed lines 21-22 from:

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.

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 TX1 and RX1 pins of your Mega, as shown in the schematic below.

Changed line 31 from:

Schematic

to:

Schematic

Changed lines 36-37 from:

Code

to:

Code

This sketch assumes that you connect your serial enabled device is attached to TX1 and RX1.

Changed lines 44-49 from:
to:
Changed lines 51-56 from:
  • 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.
  • 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.
to:
  • 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.
  • 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.
July 09, 2015, at 02:03 PM by Simone Maiocchi -
Changed lines 1-2 from:

Examples > Communication

to:
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