Tuesday, March 3, 2015

My first Arduino project

Last week i was given a Arduino kit, but let me explain what is a Arduino kit.  An Arduino kit is a kit that enables you to develop interactive objects,taking inputs from a variety of switches or sensors,and  controlling  a variety of lights ,motors, and other physical  outputs. Interesting!!!!!!!











Now lets see whats inside the box!!!!


As you can see there are a lot of components ,but lets list them.  Drum rollllll!!!!











The components in a Arduino kit

  • Arduino project book
  • Arduino uno board
  • usb cable
  • breadboard
  • easy-to-assemble wooden base
  • 9v battery snap
  • solid core jumper wire
  • stranded jumper wire 
  • photoresistor[VT90N2 LDR]
  • potentiometer 10kilohm
  • pushbuttons
  • temperature sensor[TMP36]
  • tilt sensor
  • alphanumeric LCD(16x2 characters)
  • LED(bright white)
  • LED(RGB)
  • LED(red)
  • LED(green)
  • LED(yellow)
  • LED(blue)
  • Small DC motor 6/9V
  • small servo motor
  • piezo capsule[PKM17EPP-4OO1-BO]
  • H-bridge motor driver [L239D]
  • optocouplers
  • transistor[BC547]
  • mosfet transistors[IRF520]
  • capacitors 100nF
  • capacitors 100uF
  • capacitor 100pF
  • Diodes [1N4007]
  • transparent gels (red,green/blue)
  • male pins (40x1)
  • resistors 220 ohm
  • resistors 560 ohm
  • resistors 1 kilohm
  • resistors 4.7 kilohm
  • resistors 10kilohm
  • resistors 1megohm
  • resistors 10 megohm
Now lets start with my project!!!
I was assigned to illuminate LED using a code ,requiring the use of the Arduino kit .

Step 1

- I downloaded Arduino the application on my mac by going to http://arduino.cc/en/Main/Software 


As you can see , i have the Arduino application on my dock












Step 2 
- I connected the Arduino Uno Board to my laptop using the USB cable and that enables me to upload a program
note the green light











step 3 

- The next thing to do is to select your board so to do so , you have to got to tools>board>Arduino Uno 












 
-once choosing your board , its important to open up the code thats going to light up the LED . To do so , you are going to follow the instructions below 
File>examples >01 Basics>Blink









As you can see ,the code will show up like this . It's important to save it ,but don't copy my name though !!!!












step 4

- checking for Syntax errors is crucial ,so verifying  will do the job  . Pressing the the verify option (aka the check sign)  will check for syntax errors
















-once you verify the code  , you'll have to upload it by pressing the right arrow shown in the photo . 
















step 5


-  once the code is finished uploading you will notice a yellow LED blinking continuous  and thats a signal that the the LED you are going to attach is going to light up
















taddaaaaa!!!, as you can see ,the light is blinking non stop. Yayy :)







Click here for more cool stuff

1 comment:

  1. Nice start. Can you discuss changes you made to code for the assignment and post it?

    I also look forward to the rest of the assignment.

    ReplyDelete