Hello,
I've recently been trying to set up my arduino pro mini (3.3v 8MHz) to be able to receive OTA programming updates via a HC05 bluetooth module.
For starters, i have been able to receive serial data from the HC05 module sent out from an app from my phone and can also send AT commands to configure the HC05 module. However, i am currently unable to upload a new code to the pro mini via the HC05 module.
I have configured my HC05 based on the above image (which i have found on many websites) and my physical connections between my pro mini and HC05 are as follows:
(Pro Mini/HC05)
VCC => VCC
GND => GND
RST => STATE (connected ONLY when i am trying to upload code via HC05)
PIN0 => RXD
PIN1 => TXD
I've initially connected the TXD and RXD pins of the HC05 to 2 SoftwareSerial pins but it does not work. Following this website: Arduino Remote Programming Using A HC-05 Bluetooth Module | Paynter's Palace, I switched the TXD/RXD to connect to the TXD/RXD of the pro mini but it still does not seem to work.
When i open the serial monitor on the arduino IDE using the bluetooth serial port, i can see that the connection is established (LED on HC05 blinks twice every 5 seconds), and when i close the serial monitor the LED goes back to blinking twice every second.
Would appreciate if anyone here could give me some advice on this!
Edit: The error message that is displayed on the arduino IDE whenever i try to upload a code via the HC05 module is as follows;
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM23
Using Programmer : arduino
Overriding Baud Rate : 57600
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xb8
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x90
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xb8
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x90
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x90
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xb8
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x90
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xb8
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x90
avrdude done. Thank you.
An error occurred while uploading the sketch