3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

How to add 6 extra pins to your Arduino with no extra hardware

How to add 6 extra pins to your Arduino with no extra hardware
Hello, this is my second Instructable so please bear with me.
I am going to tell you how to get 6 extra Arduino digital pins.
I discovered this by playing with the Arduino IDE and tried setting up a LED on pin 14 (which does not exist on the board) And guess what? Analog pin 0 is pin 14!
 
Remove these adsRemove these ads by Signing Up
 

Step 1How to get the other analog inputs working too

How to get the other analog inputs working too
It is pretty simple to get the others working too! Here is a list of all of the pins:

Pin 14 = Analog in 0
Pin 15 = Analog in 1
Pin 16 = Analog in 2
Pin 17 = Analog in 3
Pin 18 = Analog in 4
Pin 19 = Analog in 5

Unfortunately these are not PWM pins, but you can use the SoftPWM library to get software-based PWM, which is almost as good as native PWM.
« Previous StepDownload PDFView All StepsNext Step »
11 comments
Jul 22, 2011. 6:49 AMoqla2000 says:
Good info thanks !
Apr 28, 2011. 10:19 AM'jaiswal says:
thanks for the information.....as all know that "analog pin can be use as digital" is already on arduino.cc....... but helpful info. is that A0 is pin 14...that is not given on site... :)
Mar 18, 2010. 7:42 PMneutron7 says:
On the MEGA the anlog pins are digital  53,54,55 etc.
Nov 4, 2009. 6:46 PMGrathio says:
It's new to me!  Thanks for sharing!  I know this will come in handy!
Oct 27, 2009. 8:53 PMReCreate says:
Its nothing new, Its already on the board >_<
Oct 22, 2009. 5:44 AMdavidbuzz says:
it's also on this page:  www.arduino.cc/en/Guide/Board  whereit says :
" Most of the analog inputs can also be used as digital pins "
Oct 21, 2009. 6:00 PMbelectric23 says:
News to me - thanks for the tip!
Oct 17, 2009. 9:06 PMmikemmcmeans says:
neat, but what about the arduino MEGA's?
they have digital pins up to 53 and analog pins upto 16
Oct 8, 2009. 7:18 AMDege says:
 It's already in the arduino documentation but it's a bit hidden:
http://arduino.cc/en/Reference/PinMode
(watch the note at the end of the page...)
Oct 6, 2009. 4:56 AMNoodle93 says:
Yeah, this is pretty well known.
Oct 5, 2009. 5:04 PMikestarm17 says:
that's pretty cool and is very helpful. Thanks!

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
12
Followers
5
Author:baharini
I'm a software developer, but I also love tinkering with electronics. My Instructables are all about Arduino.