Vision Test

24

Use this if you want vision like Ozil.

Step 1: Materials/Intro

Why Do we even need vision?

Vision actually helps us in life more than you know. For example, when you lost something, you have to bend down to find it. If you can see wider the chances are you are more likely to find that thing. Because you can see more places at the same time. Vision can not only be used in finding things. You can also use it in soccer. For example, when you have the ball you can have more option to pass when you can see wider. Or sometimes when you are about to receive a pass you can spot an opposition team's player charging on you or you can spot a teammate to pass to with the corner of your eyes before you touch the ball. Materials

Materials
Led x5 Breadboard x1

Arduino Mega/Leonardo/uno x1

1/4w resistor 5% x5

1/4w resistor 1% x1

Dupont line Double male 20cm x8

Two-legged button x1

Step 2: Set Up the Led.

All the 1/4w resistor 5% should be aligned with the negative electrode of the Led and all the other side of the resistors should be above the blue(negative) line.

Step 3: Connection

1st led should connect to pin 9

2nd is pin8

3rd is pin2

4th is pin7

5th is pin4

Step 4: Buttons

One side of the purple and yellow Dupont line should be aligned with 1/4w resistor 1%(the Blue resistor). The other side of the purple Dupont line should be on pin3. Another side of the yellow Dupont line should be connected to the button. And the another side of the orange Dupont line that's connected to the button should be on 5v. For the grey line, one side should be aligned with the blue resistor and another side should be on GND beside the orange line.

Step 5: How to Use It?

You will stare at the line drawn on the thin piece of cardboard. You will use the corner of your eyes to try to see the led in the second picture. If you can see if you press the button. Every time you press the button the level gets harder. You stop when you can't see the Led.

Step 6: Coding

int a = 10;
const int d = 5;
void setup() {
  // put your setup code here, to run once:
  Serial.begin (9600);
  pinMode(3, INPUT);
  pinMode(8, OUTPUT);
  pinMode(9, OUTPUT);
  pinMode(2, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(4, OUTPUT);
  digitalWrite(8, 1);
  digitalWrite(9, 0);
  digitalWrite(2, 0);
  digitalWrite(7, 0);
  digitalWrite(4, 0);
}
void loop() {
  // put your main code here, to run repeatedly:
  if (digitalRead(3))
  {
    if ((a % d) == 0)
    {
      digitalWrite(8, 0);
      digitalWrite(9, 1);
      digitalWrite(2, 0);
      digitalWrite(7, 0);
      digitalWrite(4, 0);
      delay(300);
    }
    if ((a % d) == 1)
    {
      digitalWrite(8, 1);
      digitalWrite(9, 0);
      digitalWrite(2, 0);
      digitalWrite(7, 0);
      digitalWrite(4, 0);
      delay(300);
    }
    if ((a % d) == 2)
    {
      digitalWrite(8, 0);
      digitalWrite(9, 0);
      digitalWrite(2, 1);
      digitalWrite(7, 0);
      digitalWrite(4, 0);
      delay(300);
    }
    if ((a % d) == 3)
    {
      digitalWrite(8, 0);
      digitalWrite(9, 0);
      digitalWrite(2, 0);
      digitalWrite(7, 1);
      digitalWrite(4, 0);
      delay(300);
    }
    if ((a % d) == 4)
    {
      digitalWrite(8, 0);
      digitalWrite(9, 0);
      digitalWrite(2, 0);
      digitalWrite(7, 0);
      digitalWrite(4, 1);
      delay(300);
    }
    a++;
  }
  Serial.println(a);
}

Step 7:

Share

    Recommendations

    • Classroom Science Contest

      Classroom Science Contest
    • Backyard Contest

      Backyard Contest
    • Frozen Treats Challenge

      Frozen Treats Challenge

    Discussions