... | @@ -20,6 +20,8 @@ Visit [https://wokwi.com/](https://wokwi.com/). There is no need to create an ac |
... | @@ -20,6 +20,8 @@ Visit [https://wokwi.com/](https://wokwi.com/). There is no need to create an ac |
|
|
|
|
|
### Create your own Project.
|
|
### Create your own Project.
|
|
|
|
|
|
|
|

|
|
|
|
|
|
> :books: Create an empty project and add some simple hardware components. (an LDR (photoresistor), an LED, a resistor od 470Ohm, and a button)
|
|
> :books: Create an empty project and add some simple hardware components. (an LDR (photoresistor), an LED, a resistor od 470Ohm, and a button)
|
|
|
|
|
|
> :books: Try to read the values of the Light Depending Resisitor (LDR) and paste it in the Serial Monitor! :bulb: look up the function analogRead(), be careful which Pin you choose as input pin!
|
|
> :books: Try to read the values of the Light Depending Resisitor (LDR) and paste it in the Serial Monitor! :bulb: look up the function analogRead(), be careful which Pin you choose as input pin!
|
... | @@ -30,7 +32,7 @@ Visit [https://wokwi.com/](https://wokwi.com/). There is no need to create an ac |
... | @@ -30,7 +32,7 @@ Visit [https://wokwi.com/](https://wokwi.com/). There is no need to create an ac |
|
|
|
|
|
> :books: Change your code, in order that the intensity on the LDR detemines the light intensity of the LED!
|
|
> :books: Change your code, in order that the intensity on the LDR detemines the light intensity of the LED!
|
|
|
|
|
|
> :books: Add a pushbutton. The functionality of the LED should remain the same, but it should only light up, when the Button is being pressed! ( :bulb: digitalRead() )
|
|
> :books: Add a pushbutton. The functionality of the LED should remain the same, but it should only light up, when the Button is being pressed! How is the button to be connected? ( :bulb: digitalRead(), INPUT_PULLUP, ...)
|
|
|
|
|
|
|
|
|
|
Do you need [help](https://wokwi.com/projects/405280861526418433)? |
|
Do you need [help](https://wokwi.com/projects/405280861526418433)? |
|
|
|
\ No newline at end of file |