HI guys,
I have an arduino with an Adafruit bluetooth le shield. I am using the BluefruitLE_nrf51822 sketch to control pins.
I am turning on a small little ensemble from a greeting card that sings to you
I have made a switch using a 2n4401 transistor controlled by digital pin 6. the whole thing works, however,
When you first connect to the BLE shield the pins are set to input mode and are putting out about 1.47 volts.
This voltage seems to be trying to power the circuit, as I am getting a noise out of the piezo.
When you switch the pin 6 to output mode controlling it high or low the circuit works fine, on/off music/no music
When I hookup everything straight to the pins GND and pin 6 I do not get the hum....
why is the pin in input mode putting out voltage?
and is there a better way to do this?