Go Down

Topic: Solved, cannot use pins 0/1 for JY-MCU V1.06 BT Module & USB at the same time (Read 351 times) previous topic - next topic


I'm using Arduino Software 1.8.8 version

New Arduino Uno R3

JY-MCU Bluetooth Module is wired up and the red led blinks maybe 2-3 times per second.

I am simply trying to communicate via the Arduino USB using the Sketch Serial Monitor. The sketch is attached. Keep in mind I have about a week learning all this stuff. I'm a retired engineer. I managed to have a spider robot walking and wish it to be controlled via a phone app. And please keep responses simple and complete. Not too many secret code words novices have to look up. Please Dumb it down.

It looks as though the Arduino simply echoes what it receives right back to the serial monitor. So data is typed on computer in the serial monitor and sent, string traverses the USB into the Arduino and it sends it right back to the computer. As if TX is connected to RX.

AT command returns AT. Not the expected OK.

I have looked into this for a couple of days, searched the web and forums and simply cannot understand why it does not work.


Pins 0 and 1 are used for Serial on the Uno. You are trying to use those same pins for both the serial communication between the Uno and your computer and the communication between the Uno and the Bluetooth module via software serial. You should connect the Bluetooth module to any pins other than 0 and 1 and then update this code accordingly:
Code: [Select]
SoftwareSerial BTSerial(0, 1); // RX | TX

In general, you should avoid using pins 0 and 1. In addition to their use for printing things to Serial Monitor, the pins are also used for uploading sketches to your Uno. Anything connected to those pins can interfere with the upload process.


makes perfect sense. I had assumed they were separate connections.

Thanks, will give it a try tomorrow

Go Up