Hello Guys and Girls,
I would like to know if I can use the native RX and TX pins on a program, and if so, how i adress they?
for example, as I start a bluetooth module, I write:
SoftwareSerial Bluetooth(10, 11); // RX, TX
for example.
There's a way to connect the RX and TX whithout use other pins? Using the originals RX and TX? How I would call SoftwareSerial?
Thanks a lot!
It’s called Serial or SerialX where X is a number;depends on your hoard.
Serial.begin(9600);
Serial.print("hello");
Note that on boards with a single hardware serial port, you must make sure that you do not receive from USB and bluetooth at the same time. It’s also advisable to add a 220 ohm resistor between the rx pin of the Arduino and the bluetooth tx pin.
renanmmagalhaes:
There's a way to connect the RX and TX whithout use other pins? Using the originals RX and TX?
This is incoherent, but you might find the following background notes useful
http://homepages.ihug.com.au/~npyner/Arduino/GUIDE_2BT.pdf
http://homepages.ihug.com.au/~npyner/Arduino/BT_2_WAY.ino