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

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Vishesh Gupta Lab Report 2

Page history last edited by Vishesh Gupta 11 years ago

Vishesh Gupta

EE47 Lab #2. 

 

1. Blinking LEDs with Arduino Micro

a. What line(s) of code do you need to change to make the LED blink (like, at all)?  Need to have the pinMode(led, OUTPUT); line to setup the pin to work as a pinout.

b. What line(s) of code do you need to change to change the rate of blinking?        Changing the delay amounts changes the frequency with which the led blinks.

c. What circuit element would you want to add to protect the board and LED?        Would want to add a resistor to protect the LED from frying (but more importantly, the board). 

 

2. Toggle LEDs on and off.

a. I just changed the output pin to Pin 9 which is where I had my LED.

b. I had to switch if (buttonState==HIGH) to if (buttonState==LOW). That did the trick.

 

3. Fading LEDS

a) Which line(s) of code do you need to modify to correspond with your LED pin? None of them, actually (default pin 9 LED out).

b) How would you change the rate of fading?                                                        In the for loop, change += 5 to something smaller or larger. A larger value = faster, smaller value = slower. Similarly in the -=5 loop.

c) (Extra) Since the human eye doesn't see increases in brightness linearly and the diode brightness is also nonlinear with voltage, how could you change the code to make the light appear to fade linearly?      The trick would be to increase the brightness exponentially so that to our eyes (a logarithmic filter) it looks linear. 

 

4. Frankenlight

a) Super brights need only a 60 Ohm resistor to achieve the 30mA current rating. 

 

2. Take apart your electronic device, and draw a schematic of what is inside. 

a. Is there computation in your device? Where is it? What do you think is happening inside the "computer?" There isn't any computation that I can see. 

b. Are there sensors on your device? How do they work? How is the sensed information conveyed to other portions of the device? Seems to be no sensors either. Just a bunch of raw components. 

c. How is the device powered? Is there any transformation or regulation of the power? How is that done? What voltages are used throughout the system? USB power (5V device). If anything, this device is probably? a power regulation of some sort.  I actually can't find out what the device is supposed to do. The 5V power is the only power source to the board. 

d. Is information stored in your device? Where? How? Sure - there are two lights that probably convey information to the user of the device. I just don't know enough about electronics to figure out what's going on in the printed circuit board to light them up. 

 

 

3. Hacking!

 

 

 

 

 

Comments (0)

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