Skip to content

Raspberry Pi and ESP32 Programming

1 Topics 3 Posts
  • Lesson 1

    3
    0 Votes
    3 Posts
    17 Views
    A
    Open esp32simulator. Create the folder "blinky" in the directory "esp32projects". Create "main.py", "diagram.json" inside the folder "blinky". Connect all components with wires in the same way, as in the picture. You can rotate a component by pressing Ctrl+R. The resistor must be connect to D15. Pay attention to LED, since it emits light only if it's connected correctly. The current must go from an anode to a cathode (LED will not emit light if you connect it in the opposite direction). [image: 1743493140012-blinky.png] Paste the next code to main.py. from machine import Pin from utime import sleep led = Pin(15, Pin.OUT) #makes Pin 15 an output while True: led.on() #turns on LED sleep(2) #time delay 2 seconds led.off() #turns off LED sleep(2) Click the green button to run the project. You should see a blinking LED. Save your project to the local folder "blinky". Copy-paste the code from the files "main.py", "diagram.json" in the simulator to your local files. Make a screenshot of the circuit and save the screenshot to the folder "blinky". Whenever you want to continue programming you can copy-paste the code from the local files to your simulator (Note. The circuit is stored in the file "diagram.json", you don't need to make a new circuit all the time).
Learning English Broadcasts (use a limited vocabulary)

1 - 2025-02-25

2 - 2025-02-24

3 - 2025-02-23

Radio Voice of America
News in the USA and world
Researchers: South Korea’s Birth Rate Increase Last Year Unclear

In 2024, the number of babies born in South Korea increased for the first time in nine years. The change is welcome news for a country that is dealing with serious population problems.