Author Topic: Arduino Digital Pins...1 and 2, 13 and PWM...urgent answer needed please!  (Read 5356 times)

0 Members and 1 Guest are viewing this topic.

Offline blackheartTopic starter

  • Full Member
  • ***
  • Posts: 111
  • Helpful? 1
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!
I'm out of ideas!

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,430
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
yes, yes, yes

Offline blackheartTopic starter

  • Full Member
  • ***
  • Posts: 111
  • Helpful? 1
Thank YoU!
I'm out of ideas!

Offline offy

  • Supreme Robot
  • *****
  • Posts: 340
  • Helpful? 1
You can but it is not recommended. You could run into some problems.

Offline chelmi

  • Supreme Robot
  • *****
  • Posts: 496
  • Helpful? 15
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...

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
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?
Howdy

Offline Ro-Bot-X

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,431
  • Helpful? 25
  • Store: RoBotXDesigns.ca
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.
Check out the uBotino robot controller!

Offline Hawaii00000

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 347
  • Helpful? 2
Are you saying that you can turn the resistor off for pin 13??
"God chose to make the world according to very beautiful mathematics."
-Paul Dirac
**************************************************************
Its Hawaii Five-O. Get it?

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
internal or external? external no. internal yes
Howdy

 


Get Your Ad Here