Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: blackheart on March 20, 2009, 03:49:06 PM
-
Hello?
Can I use PWM pins on the arduino as normal digital output pins? I suppose I can, but I want to be sure.
Can I use pin 13 for anything other than LED? I want to hook it up to stby pin on a motor driver to activate it.
Can I use pins 1 and 2 digital for normal digital use?
Thank You!
-
yes, yes, yes
-
Thank YoU!
-
You can but it is not recommended. You could run into some problems.
-
You can but it is not recommended. You could run into some problems.
The only "problem" you could run into is that the pin wont be available anymore...
I dont see why it is not recommended...
-
You can but it is not recommended. You could run into some problems.
The only "problem" you could run into is that the pin wont be available anymore...
I dont see why it is not recommended...
you mean for the led? you can still have the led there and just have a socket and unplug the led if you want to use the servo side of things?
-
Pins digital 0 and 1 are also serial pins. If you use them as digital input-output do not declare and use the serial port.
Pin digital 13 has a LED in series with a 1k resistor solderd on board. You can use this pin as output (the LED will flicker) but as input it depends, it's pulled LOW, so make sure you don't turn on the internal pull up resitor. You can use a push button for example, tied to Vcc.
PWM is just another function of those pins, the primary function is input-output, so you're fine.
-
Are you saying that you can turn the resistor off for pin 13??
-
internal or external? external no. internal yes