If so, then it is likely a fault in the bluetooth module. Do you have the 1.06 board version, or something else?
What he found out: what the bluetooth is sending to the arduino is not understood because a diode is blocking/scrambling it. The possible solution is to connect a resistor (anything between 10k and 100k should be ok I think) between the arduino RX pin and Vcc, or at the bluetooth module between the TX pin and Vcc (3.3volt).
When you connected RX to TX you (accidentally) fixed the problem with a resistor on the bluetooth module on the RX pin. So the sent 1s and 0s could go back to the phone.
If you want to avoid adding the resistor then you can also add a special pinMode line into the setup() function of the program. This enables a built in resistor in the Arduino microcontroller. I’m not 100% sure it sufficiently solves the problem though. So if it doesn’t help, place the resistor manually anyway.
void setup() {
// set the digital pin as output:
pinMode(ledPin, OUTPUT);
// Enable Pull-up resistor of RX pin 0, to make bluetooth module work.
pinMode(0, INPUT_PULLUP);
}
actaully i think i havent because i just sent the 1 and a 0 to the Bluetooth module again using an application called ArduDroid the 1 sent → *12|99|99|1# the 0 ->99|99|0# sent zero again and got this *12|99|99|0#
i dont understand how to connect a resistor between the arduino RX pin and VCC pin and i thought the solution in the article you sent earlier today was to remove the diode and to build a bridge over it
just saw this in the page you sent “:idea: And indeed: adding a pull-up resistor to the Tx line (Tx from the module to the Rx of the microcontroller) solved the problem too (like removing that diode on the Rx-to-Tx as described below.”
i added the resistor (10k ohm) between the RX of the ardiono and the TX of the Bluetooth module and it did the same thing, i connected the rx and tx wires from the bluetooth moulde to see the message its receiving and for 1 its still 1 → 99|99|1# or 12|99|99|1# and when i send a zero ithe data that is returned it *12|99|99|0# or 99|99|0# or 99|0# or |99|0#
If im trying to conserve battery by adding a switch where it would stop the current from going to the bluetooth module and the arduino, where should i put it.
ah91086:
i added the resistor (10k ohm) between the RX of the ardiono and the TX of the Bluetooth module and it did the same thing, i connected the rx and tx wires from the bluetooth moulde to see the message its receiving and for 1 its still 1 → 99|99|1# or 12|99|99|1# and when i send a zero ithe data that is returned it *12|99|99|0# or 99|99|0# or 99|0# or |99|0#
I have no idea what this means. I never used or heard of Ardudroid or whatever until yesterday. Personally I consider it one more element of complexity that can cause added confusion. If you can get it to work with a simple serial terminal communication program by sending a single 1 or 0 then use that.
ah91086:
i dont understand how to connect a resistor between the arduino RX pin and VCC pin and i thought the solution in the article you sent earlier today was to remove the diode and to build a bridge over it
Removing the diode and bridging it does make it work and behave as one would expect. But considering your soldering skills I thought it could cause more damage elsewere than it fixes. Sticking a resistor on the breadboard, or eventually soldering it to wires, is a lot easier than (de-)soldering these tiny parts on a small crowded board.
ah91086:
If im trying to conserve battery by adding a switch where it would stop the current from going to the bluetooth module and the arduino, where should i put it.
If you want to turn off both the arduino AND the bluetooth module then simply put it between the RAW input of the Arduino, and the positive terminal of the battery.
You’ll have to use the resistance mode of the multimeter to test which pins on it work together to open and close the switch.
Electricity flows when there is a conductive path from the positive to the negative terminal. So if you have a switch function as a break in the wire then it doesn’t flow. And cannot discharge the battery anymore.
Batteries do slowly self-discharge over the years, but that is due to the chemistry going on internally. Nothing that you can do much about except recharge it if it gets low after long storage. And with lithium you are fairly good in that respect.