| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Get control of your email attachments. Connect all your Gmail accounts and in less than 2 minutes, Dokkio will automatically organize your file attachments. You can also connect Dokkio to Drive, Dropbox, and Slack. Sign up for free.

View
 

LAB2 basak

Page history last edited by Benjamin Tee 7 years, 11 months ago

Lab2

1-BLINKING LEDs WITH THE TEENSY

a Change pin 13 to pin 11.


b-The delay should be change for blinking.


c-We should add resistance to protect the bord for LED.


2-TOOGLE LEDs ON AND OFF USING THE TEENSY

a-We should change the pin 13 to pin 9.

b-void loop() {

for (int fadeValue = 0; fadeValue<=200; fadeValue +=15) {

analogWrite(ledPin, fadeValue);

delay(30); }

for(int fadeValue = 200 ; fadeValue <= 255; fadeValue +=3) {

analogWrite(ledPin, fadeValue);

delay(30); }

 

for(int fadeValue = 255 ; fadeValue >= 200; fadeValue -=3)

{ analogWrite(ledPin, fadeValue);

delay(30); }

for(int fadeValue = 200 ; fadeValue >= 0; fadeValue -=15) {

analogWrite(ledPin, fadeValue);

delay(30); }

}


3.a- None

b- Modifiying the delay lines.


PART C.FRANKENLIGHT

1-SUPER BRIGHT LEDs.

a-The min. Resistor should be:

super bright leds v=3,2v and i=0,03 A

r=v-vled/I      5-3,2/0,03=60 OHM and i used 62 ohm resistance.

 

2-I choosed standart (mechanical) mouse.

 

  

a-There is a computation in the device and this is logical 0 and 1.These are occurs in the microprocessor. 

b-There are four infrared LEDs and four photo transistor in the device. Ball turned into a mouse wheel to detect the positions of these elements and the processor sends the logical 0 and 1's.Located under the mouse ball, two values ​​and the cylinder moves the mouse in this turns the wheels turning to cylinders connected to the ends. One of the up-down movement of the mouse, and the other left - right action. The holes on the wheels are connected to the tip of the cylinders. This is what we call light-emitting LEDs that light from a cut holes in a steam distribution system. Light sensor detectors that we call it an intermittent light from the leds perceive. If there is a computer, the information based on the speed of light coming processor (CPU) sends. Processor (CPU), it calculates the number of rotations of the wheel from the processing of this information.Accordingly,  by the number of rotation of the wheel moves in the arrow on the screen. If a cylinder next to the third ball of the ball for support. If other elements of the mouse buttons. The mouse buttons is pressed contained in the processor, creating a corresponding data line to the CPU (microprocessor)sends. This process is related to work and their surroundings, the CPU executes the command.

c-The device powered from pc.There is a regulation of the power.DC (3,3)voltages are used.

d-The information is stored in processor,all turned into a mouse wheel to detect the positions of these elements and the processor sends the logical 0 and 1's. Other keys are available on the mouse buttons. In addition, these buttons is pressed again, the processor sends it to the computer by creating a data line. Taking their jobs in computer and related process executes the command line data. A crystal frequency of 4 MHz processors, usually the standard we know will work with mouse.

Some pictures of standart Mouse. 

 

 

LAB 2 VIDEOS LINKS

http://www.youtube.com/watch?v=60Qym_22Vvk&feature=youtu.be

http://www.youtube.com/watch?v=o8LgYqPRaA0&feature=youtu.be

http://www.youtube.com/watch?v=itJu7S0hFC8&feature=youtu.be

http://www.youtube.com/watch?v=itJu7S0hFC8&feature=youtu.be

http://www.youtube.com/watch?v=WHewyQVnAtU&feature=youtu.be

 

 

 

Comments (0)

You don't have permission to comment on this page.