Skip to content

How to connect Switch and LED in Wokwi simulation with Switch and LED Widget in Arduino IoT Cloud?

How to connect Switch and LED in Wokwi simulation with Switch and LED Widget in Arduino IoT Cloud?

How to connect Slide Switch and LED connected to ESP32 in Wokwi simulation with Switch and LED Widget in Arduino IoT Cloud?
Here are the steps:
1. Open this wokwi project: https://wokwi.com/projects/396587036992845825
2. Open Arduino IoT Cloud in: https://cloud.arduino.cc, create an account and Sign In.
3. Create a Thing, add a variable with boolean type, name it button, make access permission: Read & Write, and Update: On change.
4. Add a second variable with boolean type, name it led, make access permission Read Only, and Update: On change.
5.After adding variables to the Thing, the next step is to connect the Thing to a Device. Select Device: ESP32 Dev Module, save the ID and Secret Key Device. Replace the Device ID and Secret Key code in the Wokwi program with the new ID and Secret Key Device.
5. Create a Dashboard, add Switch widget and LED widget. Select View mode (eye image) to run the Dashboard.
6. Run the Wokwi simulation. Slide the Switch on Wokwi, the LED on the Arduino IoT Cloud should turn on, and go off otherwise. Also slide the switch on the Arduino IoT Cloud, the LED on Wokwi should turn on, and go off otherwise.

For further information, please visit this blog: https://bermainwokwi.blogspot.com/p/koneksi-dengan-arduino-iot-cloud.html#satu

Cursuri interesante:

Leave a Reply

Your email address will not be published. Required fields are marked *