Pages: [1]   Go Down
Author Topic: use of pins 0 and 1  (Read 592 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Sr. Member
****
Karma: 0
Posts: 403
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

ਪੰਜਾਬ
Offline Offline
Edison Member
*
Karma: 7
Posts: 1545
Another year! Alone! :(
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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).
Logged

"Real Men can Accomplish  Anything"
-  Website  
- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੂਂ !

United Kingdom
Offline Offline
Tesla Member
***
Karma: 220
Posts: 6587
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

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.

Offline Offline
God Member
*****
Karma: 7
Posts: 647
"In this house, we obey the Laws of Thermodynamics" Homer J. Simpson
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Toronto, Canada
Offline Offline
Edison Member
*
Karma: 2
Posts: 1234
"Keep it R.E.I.L. - "Research, Experiment, Investigate and Learn"
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

United Kingdom
Offline Offline
Tesla Member
***
Karma: 220
Posts: 6587
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

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.

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 170
Posts: 12482
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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

Rob Tillaart

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

Pages: [1]   Go Up
Jump to: