Go Down

Topic: use of pins 0 and 1 (Read 766 times) previous topic - next topic

arduinoPi

can I use pins 0 and 1 on the ardnuio for example lighting an LED and will this interfere with the data communications?

NI$HANT

You can use the pins 0 and 1 for LEd lighting but when you will load the software in ATmega of your arduino then they will blink unexpectedly as the 0 and 1 pins are receiver RX and Tranfer TX pin's so when you Arduino makes connection via. serial with the computer they will be used by the Chip to communicate(transfer and receive respective data/info).
"Real Men can Accomplish  Anything"

- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੁਂ!

dc42

Assuming you are using a Uno or similar design, using pin 0 to drive anything with a resistance less than about 4K may stop the bootloader working. This is because it's driven from the output of the USB-to-serial chip via a 1K resistor. If you're prepared to disconnect your LED from pin 0 when uploading sketches, then go ahead and use it.

Pin 1 doesn't have this problem because it's normally used as an output anyway.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

radman

You may wish to put print statements in your sketch to help debug it, as the serial data uses those pins you are best to avoid them for use in your circuit.

Techone

My rule about pin 0 and 1 is : Dont TOUCH or USE those pins except for communicate with the on-board USB chip.

dc42


My rule about pin 0 and 1 is : Dont TOUCH or USE those pins except for communicate with the on-board USB chip.


I agree they are the last pins you should use, but sometimes you need all the available I/O pins.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

robtillaart


Also good to know is that you can use the analog pins as digitalIO too which is often forgotten.
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up