|
// 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.
|
|
|
|
|
|

|
|

|
|
|
|
|
|
> Now you can choose which microcontroller you want to simulate. Choose the ESP32.
|
|
> Now you can choose which microcontroller you want to simulate. Choose the ESP32.
|
|
|
|
|
|
> A new page will open, where you can open sample projects, that are saved on the WokWi page. Take a look at these projects.
|
|
> A new page will open, where you can open sample projects, that are saved on the WokWi page. Take a look at these projects.
|
|
|
|
|
|
> :bulb: Code can be written in the left window. The right upper panel, lets you move and add hardware to your microcontroller. The right bottom panel is used as the serial monitor.
|
|
> :bulb: Code can be written in the left window. The right upper panel, lets you move and add hardware to your microcontroller. The right bottom panel is used as the serial monitor.
|
|
|
|
|
|

|
|

|
|
|
|
|
|
***
|
|
---
|
|
|
|
|
|
### 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 |
|
|