Tutorial.SoftwareSerialExample History

Hide minor edits - Show changes to markup

September 03, 2015, at 10:46 AM by Simone Maiocchi -
Changed line 56 from:
 Last revision 2015/08/19 by SM 
to:

Last revision 2015/08/19 by SM

September 03, 2015, at 10:45 AM by Simone Maiocchi -
Changed lines 1-6 from:
to:
Deleted line 49:
September 03, 2015, at 10:44 AM by Simone Maiocchi -
Changed lines 45-47 from:
  • MultiSerialMega: use two of the serial ports available on the Arduino Mega.
  • Serial Call Response: send multiple vairables using a call-and-response (handshaking) method.
  • Serial Call Response ASCII: send multiple variables using a call-and-response (handshaking) method, and ASCII-encode the values before sending.
to:
  • SoftwareSerialExample - Two serial ports that route data between them mirroring TX and RX.
  • TwoPortReceive – Two serial ports that receive data switching from one to the other one when a special character is received.
  • MultiSerialMega - Use two of the serial ports available on the Arduino and Genuino Mega.
  • Serial Call Response - Send multiple vairables using a call-and-response (handshaking) method.
  • Serial Call Response ASCII - Send multiple variables using a call-and-response (handshaking) method, and ASCII-encode the values before sending.
Added line 51:
August 19, 2015, at 12:10 PM by Simone Maiocchi -
Changed lines 48-49 from:
to:


Last revision 2015/08/19 by SM

August 19, 2015, at 11:43 AM by Simone Maiocchi -
Changed line 28 from:
to:
Changed line 37 from:
to:
August 19, 2015, at 11:40 AM by Simone Maiocchi -
Changed lines 9-13 from:

Arduinos have built in support for serial communication on pins 0 and 1, but what if you need more serial ports? The SoftwareSerial Library has been developed to allow serial communication to take place on the other digital pins of your Arduino, using software to replicate the functionality of the hardwired RX and TX lines. This can be extremely helpful when the need arises to communicate with two serial enabled devices, or to talk with just one device while leaving the main serial port open for debugging purpose.

In the example below, digital pins 10 and 11 on your Arduino are used as virtual RX and TX serial lines. The virtual RX pin is set up to listen for anything coming in on via the main serial line, and to then echo that data out the virtual TX line. Conversely, anything received on the virtual RX is sent out over the hardware TX.

to:

Arduino and Genuino boards have built in support for serial communication on pins 0 and 1, but what if you need more serial ports? The SoftwareSerial Library has been developed to allow serial communication to take place on the other digital pins of your boards, using software to replicate the functionality of the hardwired RX and TX lines. This can be extremely helpful when the need arises to communicate with two serial enabled devices, or to talk with just one device while leaving the main serial port open for debugging purpose.

In the example below, digital pins 10 and 11 on your Arduino or Genuino boards are used as virtual RX and TX serial lines. The virtual RX pin is set up to listen for anything coming in on via the main serial line, and to then echo that data out the virtual TX line. Conversely, anything received on the virtual RX is sent out over the hardware TX.

Changed line 16 from:
  • Arduino Board
to:
  • Arduino or Genuino Board
Changed lines 21-23 from:

There is no circuit for this example. Make sure that your Arduino is attached to your computer via USB to enable serial communication.

to:

There is no circuit for this example. Make sure that your Arduino or Genuino board is attached to your computer via USB to enable serial communication through the serial monitor window of the Arduino Software (IDE).

Added lines 26-31:

Schematics

Attach:ArduinoUNO_Sch.png Δ Δ image developed using Fritzing. For more circuit examples, see the Fritzing project page

August 19, 2015, at 11:00 AM by Simone Maiocchi -
Changed lines 1-4 from:

Examples > Software Serial Library

Software Serial Example

to:
March 06, 2013, at 12:50 PM by Scott Fitzgerald -
Changed lines 5-9 from:

Arduinos have built in support for serial communication on pins 0 and 1, but what if you need more serial ports? The SoftwareSerial Library has been developed to allow serial communication to take place on the other digital pins of your Arduino, using software to replicate the functionality of the hardwired RX and TX lines. This can be extremely helpful when the need arises to communicate with two serial enabled devices, or to talk with just one device while leaving the main serial port open for debugging purpose.

In the example below, digital pins 2 and 3 on your Arduino are used as virtual RX and TX serial lines. The virtual RX pin is set up to listen for anything coming in on via the main serial line, and to then echo that data out the virtual TX line. Conversely, anything received on the virtual RX is sent out over the hardware TX.

to:

Arduinos have built in support for serial communication on pins 0 and 1, but what if you need more serial ports? The SoftwareSerial Library has been developed to allow serial communication to take place on the other digital pins of your Arduino, using software to replicate the functionality of the hardwired RX and TX lines. This can be extremely helpful when the need arises to communicate with two serial enabled devices, or to talk with just one device while leaving the main serial port open for debugging purpose.

In the example below, digital pins 10 and 11 on your Arduino are used as virtual RX and TX serial lines. The virtual RX pin is set up to listen for anything coming in on via the main serial line, and to then echo that data out the virtual TX line. Conversely, anything received on the virtual RX is sent out over the hardware TX.

November 16, 2011, at 04:39 AM by Scott Fitzgerald -
Changed line 27 from:
to:
October 28, 2011, at 10:21 PM by Scott Fitzgerald - Page Creation
October 28, 2011, at 10:20 PM by Scott Fitzgerald - Page Creation
Added lines 1-38:

Share