0

enter image description here

I am working on an Arduino based Bluetooth controlled home automation using a mobile app.

When I power ON the circuit, it works fine but when I power it OFF and power it ON again I have to remove the RX and TX pins and reconnect them to make the circuit.

What is wrong?

JRE
  • 67,678
  • 8
  • 104
  • 179
sriram
  • 1
  • That is a wiring diagram. Schematic diagrams are more useful when discussing electronic circuits. – JRE Jan 01 '21 at 12:10

1 Answers1

0

You need to use the SoftwareSerial library that replicates the serial protocol on any of the PWM pins on the Arduino Uno.

I am guessing you are using the USB to power up Arduino. This is not going to work with your Bluetooth module because it is connected to RX and TX pins on the Arduino. The RX and TX pins are used for USB communication and hence should only be used when you are not using the serial terminal on the Arduino IDE.

JRE
  • 67,678
  • 8
  • 104
  • 179
David Norman
  • 1,475
  • 2
  • 20
  • 31