workshops:arduino_for_the_curious:stage_3
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
workshops:arduino_for_the_curious:stage_3 [2017-04-05 12:52] – external edit 127.0.0.1 | workshops:arduino_for_the_curious:stage_3 [2017-04-10 11:30] (current) – Simon | ||
---|---|---|---|
Line 4: | Line 4: | ||
This stage involves the following new components. | This stage involves the following new components. | ||
- | * | + | * [[ldrs|Light Dependent Resistor]] |
* Speaker | * Speaker | ||
Line 12: | Line 12: | ||
We are now going to start on our first real sensor - the light sensor! | We are now going to start on our first real sensor - the light sensor! | ||
- | The light sensor we are using is called a Light Dependent Resistor (LDR). | + | The light sensor we are using is called a Light Dependent Resistor (LDR). |
Using the Arduino' | Using the Arduino' | ||
- | * Create your voltage divider circuit as shown in the below diagram. The voltage output is made to Arduino analog input A1. Two 10K Ohm resistors in parallel results in a suitable 5K resistance. | + | * Create your voltage divider circuit as shown in the below diagram. The voltage output is made to Arduino analog input A1. Two 10K Ohm [[https:// |
{{workshops: | {{workshops: | ||
Line 22: | Line 22: | ||
* Change your Arduino program to read the value on A1 instead of A0 and upload it. Now, instead of the rotation sensor determining the flashing speed/which lights which are on, the light levels on the light sensor will. | * Change your Arduino program to read the value on A1 instead of A0 and upload it. Now, instead of the rotation sensor determining the flashing speed/which lights which are on, the light levels on the light sensor will. | ||
- | | {{workshops: | + | | {{workshops: |
Line 31: | Line 31: | ||
By following this [[http:// | By following this [[http:// | ||
- | Tip: If you breadboard is getting a bit crowded then remove a few of the LEDs for the time being. | + | Tip: If your breadboard is getting a bit crowded then remove a few of the LEDs for the time being. |
- | | {{workshops: | + | | {{workshops: |
Line 40: | Line 40: | ||
- | Congratulations. Now you can go onto the next stage! [[stage_4|Stage 4]]. | + | Congratulations. Now you can go onto the next stage. [[stage_4|Stage 4]]!. |
workshops/arduino_for_the_curious/stage_3.txt · Last modified: 2017-04-10 11:30 by Simon