Archive for the 'Us Arduino' Category
Us Arduino Assignment

Us Arduino assignments

due midnight before October 24 (MW) or October 25 (TR)

Al dhuraif, Hamed
My Us Arduino is running 3 red LEDs and 2 green LEDs  sequentially.

LED_PROJect Prog


  •  How fast that LEDs  run are controlled by a button
  • All LEDs run togother when you turn the button to the maximum 
  • All these LEDs are programmed by  an Arduino .
  • I used 6 wires 
  • 3 red LEDs and 2 green LEDs 
  • No resisters .


  • making a signboard by these LEDs using Arduino must be an awsone idea 
  • I  would like to make these LEDs run reversely
  • Basic or some programming
Aisha Baig – MW

For my Arduino project, I really wanted to associate the “main idea” of it around the bright LED’s we received. Therefore, I created a lamp!

  • Must be compact in size, roughly 8-9 inches altogether. 
  • Must rely on the potentiometer in order to alternate the speeds at which the LED’s are flashing.
  • LED’s should fade in/out in a graceful manner.
  • Potentiometer should have the capability of having the LED’s not fading at all, and also the capability of them fading in/out at very fast speeds.
  • Project should be portable , to an extent of course.

1 Arduino
1 Breadboard
3 LED’s (Red, Blue, Green)
6 wires
1 Potentiometer 

Instructions :
Assemble the LED circuit on the breadboard:

  1. Disconnect the Arduino board from any power supply or computer.
  2.  Connect the three resistors from pins 9, 10, and 11 to separate rows on the breadboard.
  3. Connect the anodes of the three LEDs to the three rows of the resistors and the cathodes to a common row.
  4. Connect the LED cathodes to ground (GND).
    (These steps were retrieved from Instructables, however I have some in addition to these.)
    5. Wire 5V to + field, and GND to – field.
    6. Time to wire the potentiometer. The meter has 3 wire attachments. The central wire is to be wired to A0, where this wire meets the central through a common row. The two outer wire attachments, doesn’t quite matter which one, but one is to be connect to  5V (+ field), and the other is to be connect to GND (- field).
    7. In addition, to the code provided by Instructables, you need to replace :
    then right before this line add :
    int sensorValue = analogRead(A0);


I added a paper based diffuser  to mellow out all the colors being blended together . Just fold a piece of paper into a cube and tape it together. Use white tissue paper for inside your cube for additional greatness.
If my instructions are unclear in any way, refer to this:

Or:  Arduino Code

Without a doubt, this project wasn’t an easy one for me, but I think I made it work out. 
I could’ve made my project a lot more advanced, but I still think it’s pretty cool.
I was kind of confused with the way the resisters worked with the LED’s, also the numbering of all the pins made my actual construction a bit complicated ( I made it a lot more complicated then it really ended up to be)
I can say I did learn plenty, with the researching online and the additional help from John, I did seem to learn or at least develop a clearer understanding of the Arduino’s capabilities.



 YouTube Preview Image

Jason Counter – TR

Four multicolor LED’s, two buttons. When the left button is pressed the left-most LED turns on and is red. Each time the left button is pressed the next red LED will activate until all 4 LED’s are red. The right button activates the LED’s starting from the right and when activated from the right button the LED’s are green. If a green light is where a red light is about to be it will turn red.

So if the lights are..

Red Red OFF Green

and the red button is pressed twice it would go..

Red Red Red Green

Red Red Red Red

and pressing the green button 3 times would result in..

Red Red Red Green

Red Red Green Green

Red Green Green Green

I lost the cable for my Arduino so I have no idea if this program will even work, but everything seems right to me. The trickiest parts of programing this was: dealing with having no internet at home; breaking away from my “every episode and movie of Stargate.. ever” marathon; and figuring out a good way to make the lights push each other back without moving the deactivated lights. With my original code..

Red Off Off Green

In this example if I would press the red button then it would turn off the green light.

Red Red Off Off

Also the only way I could have got the above combination would be to press one button twice and the other once.

Off Off Off Green

Off Off Green Green

Red Off Off Green

My solution was to make a variable that added the total amount of lights the code suggests should be on. The code checks that variable after it adds one to either the red progress or the green progress variables. If the total equals five(one greater than the total number of LED’s) then one LED of the opposite color will be deactivated.


4 x Multicolor LED’s

8 x 30’000(?) Resistors

1 x 10’000 Resistor

2 x Push buttons



Push button 1 from 5v to pin 13

Pin 13 to ground

Push button 2 from 5v to pin 12

Pin 12 to ground

All LED’s to ground

LED 1 to pin 2 (green side) and pin 3 (red side)

LED 2 to pin 4 (green side) and pin 5 (red side)

LED 3 to pin 6 (green side) and pin 7 (red side)

LED 1 to pin 8 (green side) and pin 9 (red side)




Kori DaCosta – TR Section

My project is based off of the concept of a power gauge. As the values of the potentiometer increase, more of the led’s are activated until the uppermost led is lit, indicating maximum power.


YouTube Preview Image


  • 6 red led’s
  • 4 green led’s
  • 1 blue led
  • one potentiometer
  • computer, or another power source for the Arduino
  • solderless breadboard
  • wires


  • The power gauge is designed to light a row of  two led’s at set values, and to deactivate them if those values are not met.
  • The Potentiometer’s range is between 0 and 1023; The first row of led’s are lit when it is turned to a value of 20. From there, the following rows are activated at every 200.
  • Start by connecting the led’s to pins 2-12; pin 12 should by the upper most led. From top to bottom, row 1 of green led’s connect to pins 2 and 3. Row 2 to pins 4 and 5 and so on.
  • Connect the potentiometer to analog pin A0. 
  • powergauge_project       


  • I’m sure there is a better way to write the code. I tried a couple of different techniques and decided to go with this one.
  • I would like to use the concept to show power or acceleration. If I combine it with an LCD, as a certain speed is reached, the values could be written out on the LCD screen. 
  • I didn’t know if more than one led could be connected to one pin, so I used a total of 12 pins
Austin Haase – TR Section
Complete this template by replacing this text and the text between the headings.

My US Arduino Project is supposed to represent somewhat of a runway as if it were on/at an airport. My motivation was that I understood how to make the lights blink the most but I figured I would take it to the next level…..and have 4 blinking lights instead of 2!!


  • Lights turn on one-by-one
  • Lights stay on for 1000 milliseconds (1 second)
  • Lights turn off in the order that they come on
  • Lights turn of for 1000 milliseconds (1 second)
  • Repeats


  • First “Ground” the Arduino.
  • Next connect the inputs.
  • The inputs are in ports 13,11,9, and 7.
  • Put the Green lights in inputs 13,11, and 9 and a Red light in input 7.
  • Connect the Resistors anywhere along the column that the Ground is connected too.
  • Finally Upload the Program.


  • I wish I understood more about the Arduino, and if I did I feel like that alone would have made my project more AWESOME!
Peyton Randolph – TR Section

Well my idea started off wanting to build runway lights then it changed to arrows pointing in one directing. but thanks to my boy Chase Pote we both can up with both our ideas together but his might look cooler.


  • 1 Arduino
  • 1 Bread Board
  • 16 LED’s (8 red, 8 green)
  • 10 wires
  • 8 resistors 
  • 1 power cord 
  • 1 computer and program


  • My project looks complicated but its really not.
  • each wire is placed in a different number in the arduino and the other end to the positive end of the LED’s.
  • 1 resistor per each group of LED’s to the negative end of the LED’s.
  • The other end of the resistor in the it positive slot on the bread board.
  • then two final wires from the positive and negative slots  to the 5V and GRD.


  • For some reason it says that my arduino is not synced so the code is not working
     Here is the code for my project Blink it is supposed to blink each set of LED’s at different times.


Hussam Mohammed – TR Section]

It’s my first experience making the arduino so I was very specfic in organizing the design that I constsructed. I made a point to make it really simple.                                                                                                                                                                                                                                                                                          


 9 wires

1 resistor

3 LEDs  2 red, and green

1 switch


 I created a pattern in the lights. Starting with red, then green, then red. and then the pattern in the lights loops and does it over again.


 This project helped me to learn about electricity so I will be able to improve my ablilities with the practice.

Jenny Pinkston – TR
I wanted to add on to my Foam project.  Therefore, I decided my Christmas Tree needed some lights on it.


  • A foam Christmas Tree
  • 4 led lights (red and green lights are manditory if you want the full Christmas effect)
  • 11 wires (the amount of wires will depend on the amount of led lights)
  • An arduino
  • tape


  • The bottom lights light up at the same time and then the top light illuminates.
  • Include here a diagram showing your wiring. Draw a schematic if you can. A cell phone pic of a hand drawing is fine.
  • Give at least 1 picture of your project. If you can, provide a short video as well.
  • Include your arduino code (ino file) as an attachment.


  • I could have got the bottom lights to work.
  • What would you do differently?
  • ^^I would make the wires look more clean.  Also, I would add more lights.
  • Anything specific you learned while doing the project that you want to share?
  • ^^The wiring takes a long time when trying to use the foam as a breadboard.


 int led = 13; int led2 = 12;

   pinMode(led, OUTPUT);  

 pinMode(led2, OUTPUT); }

 void loop() {   digitalWrite(led, HIGH);  


digitalWrite(led2, HIGH);    


digitalWrite(led, HIGH);   

(HIGH is the voltage level)  


digitalWrite(led2, LOW);    


digitalWrite(led, LOW);  


digitalWrite(led2, HIGH);   


digitalWrite(led, LOW);   


digitalWrite(led2, LOW);   

delay(200); }

Matt Gillan – TR

My Project is based off the blinking example we first learned in class.



  • 1 Arduino Board
  • 1 Bread Board
  • 7 Short Wires
  • 2 LED bulbs (1 red, 1 green)
  • 2 Resistors


My project is made up of 2 LED’s that turn on in a sequence. It goes red on, red + green on, green off + red on, and finally both off. This was based off of the blink example. I changed the original example by adding another pin for my second light and also changing the delays.

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

This example code is in the public domain.

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

// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
pinMode(12, 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, HIGH); // turn the LED off by making the voltage LOW
// wait for a second
digitalWrite(12, HIGH);
digitalWrite(12, LOW);
digitalWrite(led, LOW);



I was trying to make this project more complex than what I finally was able to finish, but as many of you have found out, coding is a little more complicated than what we would like it to be. I was trying to use a potentiometer to control the lights but was unable to figure it out in time. For the final project in this class I would like to do something fun and original with a potentiometer to control my lights.