This lab is going to focus on the inputs and output functions of microcontrollers and the amazing things that various configs can have on the way electricity is interpreted by the board.
This is written with a code that tells the arduino to vary the frequency at which the LED is on/off.
In this one the light will instead flicker at a higher frequency until it blinks so fast it looks like it's just on!
This is the opposite of the previous video, in that the LED is on at max power and slowly grows dimmer using the same formula as before.
Now we'll test the reaction that the board gets from an input! The data it will get from me pushing this button, giving it a signal to turn on the LED!

And in video form of course:
Now in this next segment we're going to see a config that uses an LDR to determine the different electrical signal sent to to the board. With some programming and two LEDs, a couple of states of light can be read:
One where both LEDs are on, signifying bright light.
One where only the top is on due to medium light.
One where only the bottom one is on, signifying dim light.
And one where both are off, signifying no light, and thus, no power being let through.
In this next config we use a thermistor (think an LDR but with temperature instead of light) to dictate the power sent to the motor attached.
The objective here is to get the motor to turn on with a touch but my finger couldn't do it on it's own, it took a little pinch to warm it up I suppose. Either way, it's a really cool way to get a motor moving!
No comments:
Post a Comment