Go Down

Topic: Printing to Bluetooth Module (Read 440 times) previous topic - next topic

encryptor

I'm curious if I use the println() command on a bluetooth module connected to (RX0/TX1) where does it print to?  There must be something critical I'm missing.  If I initialize the liquid crystal library with the numbers of interface pins like so
Code: [Select]
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); I can do something like
Code: [Select]
lcd.println("hello");.  So by using the following program I'm not sure how it suppose to work on 2 pins.  This doesn't print in the Serial Monitor when using the bt port and baud rate.  

Code: [Select]
#include <SoftwareSerial.h>

//We use the pin 2,3 for TX & RX
SoftwareSerial bt(1, 0);

void setup(){
 // set the data rate for the SoftwareSerial port
 bt.begin(115200);
 bt.println("Hello, world?");
}

void loop(){
 bt.println("Are u there world?");
}


peace*&^

PaulS

Code: [Select]
SoftwareSerial bt(1, 0);
You can't do software serial on the hardware serial pins.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy