|
// Show How to Setup ESP32 Simulation
|
|
|
|
// Read Values
|
|
|
|
// Feedback via LED
|
|
|
|
|
|
|
|
# Simulate an ESP
|
|
# Simulate an ESP
|
|
|
|
|
|
> Wokwi is an online simulation tool for IOT hardware. This enables us to test out some code snippets, without the need of the real hardware.
|
|
> Wokwi is an online simulation tool for IOT hardware. This enables us to test out some code snippets, without the need of the real hardware.
|
|
|
|
|
|
## 1st Steps in Wokwi
|
|
## 1st Steps in Wokwi
|
|
|
|
|
|
Visit [https://wokwi.com/](https://wokwi.com/). There is no need to create an account, unless you want to save your projects.
|
|
Visit https://wokwi.com/. There is no need to create an account, unless you want to save your projects.
|
|
|
|
|
|

|
|

|
|
|
|
|
... | @@ -20,13 +16,13 @@ Visit [https://wokwi.com/](https://wokwi.com/). There is no need to create an ac |
... | @@ -20,13 +16,13 @@ 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 ESP32, 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!
|
|
|
|
|
... | @@ -38,8 +34,6 @@ Visit [https://wokwi.com/](https://wokwi.com/). There is no need to create an ac |
... | @@ -38,8 +34,6 @@ Visit [https://wokwi.com/](https://wokwi.com/). There is no need to create an ac |
|
|
|
|
|
> :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, ...)
|
|
> :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 |
|
|