Author Options:

Arduino for the beginner Answered

I would like to get into arduino as a hobby, I have some experience in understanding the C language. I was at a website like http://www.ladyada.net/learn/arduino/lesson5.html trying to understand and slowly catching up, where is some material I can read to get into the hobby? 

And how do the pinholes on a breadboard work? How do you know which hole to insert the wire/pin through? 




7 years ago

A breadboard or protoboard makes it easier to wire up your circuit by allowing you to plug in your components and make connections with the premade wire traces that run inside the rows of holes or ones you add or solder on.  They make things easier to change since they are not permanently soldered in.  You can pull out everything to reuse the breadboard for a new project.  Perfboard is essentially perforated circuit board material with predrilled holes to make it easier to lay out all your components neatly which you can then solder together.


7 years ago

Look at the Arduino Website

Hit the Learning tab and start trying out the various examples they have.

In most cases it doesn't matter what pin you use on the arduino as long as the sketch has been written to use that pin.

Lets look at the Blink tutorial.
The LED and resistor don't have to be in Pin 13. You can put it on any pin you want as long as you change the code to reflect that pin. Lets say you want to put the LED on Pin 4. The int led = 13; would need to be changed to int led = 4;. It would also be a good idea to update the comments. You should always put comments in your code so you can remember what is happening and if you need help with the code other people can easily see what your trying to accomplish. So the edited sketch should look like this.

  Turns on an LED on for one second, then off for one second, repeatedly.

  This example code is in the public domain.

// Pin 4 has an LED connected on most Arduino boards.
// give it a name:
int led = 4;

// the setup routine runs once when you press reset:
void setup() {               
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);   

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second

If your just going straight off the example sketch in the IDE the comments on the sketch will tell you how to hook things up and what should go into what pin.