Pages: [1]   Go Down
Author Topic: Printing to Bluetooth Module  (Read 235 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Sr. Member
****
Karma: 1
Posts: 266
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
I can do something like
Code:
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:
#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?");
}

Logged

peace*&^

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 46107
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: