Jump to content

C++, Arduino: HC-05 on digital 8,9

ADMDestroyer

Does anyone know how can i connect the HC-05 bluetooth module to my arduino without using TX and RX ? I had some problems with uploading on the board while the module was connected...i needed to disconnect it if i wanted to update my code..this is a problem since it is very hard to get to it. Could someone reply with a simple led on/off software that uses digital pins for the module ?

 

Link to comment
Share on other sites

Link to post
Share on other sites

There is a couple options that you can try.

 

Some MCU's support more than 1 hardware UART. You would need to look at board specs or possibly the datasheet for the MCU.

Or you can use software serial. Its not as fast as hardware UART but depending on your application it shouldn't be a problem. It uses standard DIO pins that are pulsed on and off by software according to the data being sent. The only requirement on the pin is that it is interrupt capable.

 

https://www.arduino.cc/en/Reference/softwareSerial

CPU: Intel i7 - 5820k @ 4.5GHz, Cooler: Corsair H80i, Motherboard: MSI X99S Gaming 7, RAM: Corsair Vengeance LPX 32GB DDR4 2666MHz CL16,

GPU: ASUS GTX 980 Strix, Case: Corsair 900D, PSU: Corsair AX860i 860W, Keyboard: Logitech G19, Mouse: Corsair M95, Storage: Intel 730 Series 480GB SSD, WD 1.5TB Black

Display: BenQ XL2730Z 2560x1440 144Hz

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×