Hello all,
This is my first post, so if something isn't in the right format, let me know! Anyway, my problem arises when I try to wire an HC06 bluetooth module into an Arduino Uno R3 (w/atmega328p) constructed on a breadboard. My project was to make a light detector that I could turn on and off at will by sending a command to do so using a PC terminal program (PuTTY) and a bluetooth dongle. I followed this Arduino tutorial up to the point where USB functionality was mentioned as optional:
(I also had: 1.) A photoresistor hooked up to 5v & GND via 10k ohm resistor with connection to Analog A0 in between, and 2.) An LED connected to digital pin 11 and GND via a 220 Ohm resistor)
I used this module:
(**Note: since the module's RX pin is set to work under 3.3v, I routed the Arduino's TX pin as input to a separate voltage divider exactly like the one mentioned in the section below...)
(**For reference, here's the pinOut map I used for the Atmega328p:
http://www.instructables.com/file/F1PWPB9H337KORO
)
After researching, I was led to belive that the module would work nominally if the input voltage was 3.3v, and conveniently the Arduino Uno R3 comes with a 3.3v pin labled "3V3" if it comes ready-made. However, I did not have the voltage regulator component necessary to drop down the voltage at hand, so I improvised and created a voltage divider. To put it simply, the circuit was connected in the shape of a "T", with the left leg connected to 5v as input via a 10k Ohm resistor, the bottom leg being the theoretical 3.3v output connecting to the module VCC, and the right leg connecting to GND by two 10k resistors summing up to 20 Ohms (alternatively, I could've used a 1.2k resistor and 2.2k resistor, respectively). My assumption was that if I provided 3.3v (regardless of whether the divider's input voltage came from a 5v-outputting digital I/O pin or from the 5v power pin), the bluetooth module would work. I connected the divider's input to multiple places, including directly to the VCCs (pins 7 and 20 on the atmega), and several other available output pins, but the HC06 module wouldn't operate. I replaced wires, changed breadboards, and even scrapped the divider and connected VCC to 5v directly (caused the module to turn on, but data could not be transmitted). I connect everything back to the ready-made Arduino Uno board, and connect the module's VCC to the 3V3 pin (w/o voltage divider), and this has since been the only way that I could get the HC06 to work properly. Is there any way to get the module to work on a handmade Arduino Uno without using the 3.3v regulator, or is that unavoidable? Please advise
-rjavier441, CA, USA