Lab report for the IDD lab 1 by Fabio Daiber
• Red for 2 as 1st value • Violet for 7 and 2nd value • Black for 0 as 3rd value • Black for 1 as multiplier • Brown for -2% tolerance
I have to press the button to complete the circuit.
I needed to change the parameter digitalWrite(LED_BUILTIN, HIGH) to HIGH.
I change the rate of blinking by chaning the value of delay
We want to add a resistor to protect it from frying.
d. Change the delay parameter to modify blink rate of your LED to make it blink faster. At what delay can you no longer perceive the LED blinking? (And how can you prove to yourself that it is, in fact, still blinking?
With a delay of 15ms I could barely still detect it flashing, with 10ms I can no longer detect it flashing. By taking a video, you can check if it is still flashing as the picture fps are not high enough.
a. Are you able to get the LED to glow the whole turning range of the potentiometer? Why or why not?
No, the LED turns off if the potentiometer is on the highest resistance because the resistance consumes all the current and the LED does not light up anymore.
I had to change the led variable to 11.
int led = 11; // the PWM pin the LED is attached to
The analogWrite allows us to control the brightness of the LED by toggling the LED on and off in a range from 255 to 0 so fast that it looks like the LED is fading. It lets us use the Arduino like a potentiometer whereas the digitalWrite only allows to turn it on or off (5v and 0V).
a. Is there computation in your device? Where is it? What do you think is happening inside the "computer?"
There has to be some kind of computation that determines how fast the mouse is moving and in what direction it is moving. So, it has to calculate the movement and translate it into the movement that we see on the screen.
b. Are there sensors on your device? How do they work? How is the sensed information conveyed to other portions of the device?
There is a LED that emits light and a camera that take thousands of pictures to measure how far the mouse has moved. This information is then translated and sent via the USB cable to the computer. There is also a sensor that recognized physical feedback (clicking) as well as a sensor that recognized movement of the trackball.
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?
The device is powered via the USB cable form the computer. The mouse operates on 5V as well, so there does not seem to be any transformation.
I don't think that there is any information stored within the devide.