Hi, I have a Arduino BT (Bluetooth) witch comunicates with processing. It seems to require hit the reset button everytime I upload code to the board, or everytime I hit Run on Processing. Since I'm putting the Arduino in a closed box, I want to connect an exterior button so I can reset from outside. Any ideas how to do it? Can this be done from the code, for example from processing? I would still like to know how to connect a phisical button on it. They say Digital Pin 7 is for reseting the board But tryed connecting a button to 7 and 5V, and it doesnt work. Thank you for your help
The reset pin on an ATMEGA8 and ATMEGA165 is PIN 1 on the chip, don't confuse that with digital pins. Depending on the sort of arduino you have this is normally brought out to a connector, labelled, surprisingly enough "reset". Simply connect this line through a push switch to ground.
Thanks for your response. My board isnt any of those. My Board is ATMega168. ON the following link, it says that Pin7 is connected to RESET pin. (http://arduino.cc/en/Guide/ArduinoBT). But I tryed to connect a button there and through to 5V... But it doesnt work.
ON the following link, it says that Pin7 is connected to RESET pin. (http://arduino.cc/en/Guide/ArduinoBT). But I tryed to connect a button there and through to 5V... But it doesnt work
It says that the reset signal [u]for the Bluetooth device[/u] is on pin 7. The datasheet for the device: http://www.bluegiga.com/files/bluegiga/Pub%20files/WT11_datasheet.pdf
suggests Bluetooth reset is on pin 17 of the module, and is active high, unlike the processor's /reset, which active low. I'm guessing they mean digital pin 7 on the AVR is connected to pin 17 on the Bluetooth module, allowing the processor to reset the Bluetooth module.
ok, now I’m confused…
Where do I phisically connect the reset button on the board? Sorry for my ignorance.
Difficult to say, sorry - I can't open the schematic - it gives a PDF error. I'd go with what Mike said, and reset the AVR with a switch between Gnd and the AVR reset pin.
Just looked at the schematic http://arduino.cc/en/uploads/Main/arduino_bt06.pdf and the reset line is pin 29 of the processor chip. You could also solder something onto the junction of C8 and R1 or connect it to pin 5 of the ICSP connector. As I said from there to ground through a push switch.
The board has 14 Digital in (0-13) and 6 analog in (0-5). On the board, all digital pins have a number on it except for Number 7, witch just has a minus sign "-". there is nothing with reset identification. When they say "Pin 7 is connected to the reset pin of the bluetooth module." it doesn't mean the digital pin 7 on the board? Sorry Mike, can you explain exactly how to connect. I'm not understanding where to connect the button.
Looking at the schematic (which I can now see - thanks Mike), digital pin 7 of the AVR (IC1 PD7, aka AIN1, aka physical pin 11) is connected to the reset pin of the bluetooth module (pin 17 "RES").
So if you want to reset the bluetooth, all you need to do is declare pin 7 an output set it LOW, and pulse it high to perform the reset.
If you want to reset the AVR, you need to wire the switch across S1.
all digital pins have a number on it except for Number 7, witch just has a minus sign "-".
That's probably to remind you not to use it ;)