Logo

FNK0084

  • C language
    • Important Information
      • Getting Started
      • Get Support and Offer Input
      • Safety and Precautions
      • About Freenove
      • Copyright
    • Preface
      • ESP32-S3 WROOM
      • Extension board of the ESP32-S3 WROOM
      • CH343 (Importance)
        • Windows
          • Check whether CH343 has been installed
          • Installing CH343
        • MAC
      • Programming Software
      • Environment Configuration
      • Notes for GPIO
        • Strapping Pin
        • PSRAM Pin
        • SDcard Pin
        • USB Pin
        • Cam Pin
    • 0. Chapter LED
      • Project 0.1 Blink
        • Component List
          • Power
        • Sketch
          • Option 1:
          • Option 2:
          • Sketch_01.1_Blink
            • Reset()
          • Reference
    • 1. Chapter LED
      • 1.1. Project Blink
        • 1.1.1. Component List
        • 1.1.2. Component knowledge
          • 1.1.2.1. LED
          • 1.1.2.2. Resistor
          • 1.1.2.3. Breadboard
          • 1.1.2.4. Power
        • 1.1.3. Circuit
        • 1.1.4. Sketch
          • 1.1.4.1. Sketch_Blink
    • 2. Chapter Button & LED
      • 2.1. Project Button & LED
        • 2.1.1. Component List
        • 2.1.2. Component knowledge
          • 2.1.2.1. Push button
        • 2.1.3. Circuit
        • 2.1.4. Sketch
          • 2.1.4.1. Sketch_ButtonAndLed
          • 2.1.4.2. Reference
      • 2.2. Project MINI table lamp
        • 2.2.1. Debounce for Push Button
        • 2.2.2. Sketch
          • 2.2.2.1. Sketch_Tablelamp
    • 3. Chapter LED Bar
      • 3.1. Project Flowing Light
        • 3.1.1. Component knowledge
          • 3.1.1.1. LED bar
        • 3.1.2. Circuit
        • 3.1.3. Sketch
          • 3.1.3.1. Sketch_FlowingLight
    • 4. Chapter Analog & PWM
      • 4.1. Project Breathing LED
        • 4.1.1. Component List
        • 4.1.2. Related knowledge
          • 4.1.2.1. Analog & Digital
          • 4.1.2.2. PWM
          • 4.1.2.3. ESP32-S3 and PWM
        • 4.1.3. Circuit
        • 4.1.4. Sketch
          • 4.1.4.1. Sketch_BreathingLight
      • 4.2. Project Meteor Flowing Light
        • 4.2.1. Component List
        • 4.2.2. Circuit
        • 4.2.3. Sketch
          • 4.2.3.1. Sketch_FlowingLight2
    • 5. Chapter RGB LED
      • 5.1. Project Random Color Light
        • 5.1.1. Component List
        • 5.1.2. Related knowledge
        • 5.1.3. Circuit
        • 5.1.4. Sketch
          • 5.1.4.1. Sketch_ColorfulLight
      • 5.2. Project Gradient Color Light
        • 5.2.1. Code
          • 5.2.1.1. Sketch_05.2_SoftColorfulLight
    • 6. Chapter Buzzer
      • 6.1. Project Doorbell
        • 6.1.1. Component List
        • 6.1.2. Component knowledge
          • 6.1.2.1. Buzzer
          • 6.1.2.2. Transistor
        • 6.1.3. Sketch
          • 6.1.3.1. Sketch_Doorbell
      • 6.2. Project Alertor
        • 6.2.1. Sketch
          • 6.2.1.1. Sketch_Alertor
          • 6.2.1.2. Reference
    • 7. Chapter Serial Communication
      • 7.1. Project Serial Print
        • 7.1.1. Component List
        • 7.1.2. Related knowledge
          • 7.1.2.1. Serial communication
          • 7.1.2.2. Serial port on ESP32-S3
        • 7.1.3. Circuit
        • 7.1.4. Sketch
          • 7.1.4.1. Sketch_SerialPrinter
          • 7.1.4.2. Reference
      • 7.2. Project Serial Read and Write
        • 7.2.1. Sketch
          • 7.2.1.1. Sketch_SerialRW
          • 7.2.1.2. Reference
    • 8. Chapter AD Converter
      • 8.1. Project Read the Voltage of Potentiometer
        • 8.1.1. Component List
        • 8.1.2. Related knowledge
          • 8.1.2.1. ADC
          • 8.1.2.2. ADC on ESP32-S3
        • 8.1.3. Component knowledge
          • 8.1.3.1. Potentiometer
          • 8.1.3.2. Rotary potentiometer
        • 8.1.4. Circuit
        • 8.1.5. Sketch
          • 8.1.5.1. Sketch_ADC
          • 8.1.5.2. Reference
    • 9. Chapter Touch Sensor
      • 9.1. Project Read Touch Sensor
        • 9.1.1. Component List
        • 9.1.2. Related knowledge
          • 9.1.2.1. Touch sensor
        • 9.1.3. Circuit
        • 9.1.4. Sketch
          • 9.1.4.1. Sketch_TouchRead
          • 9.1.4.2. Reference
      • 9.2. Project Touch Lamp
        • 9.2.1. Component List
        • 9.2.2. Circuit
        • 9.2.3. Sketch
          • 9.2.3.1. Sketch_TouchLamp
    • 10. Chapter Potentiometer & LED
      • 10.1. Project Soft Light
        • 10.1.1. Component List
        • 10.1.2. Circuit
        • 10.1.3. Sketch
          • 10.1.3.1. Sketch_Softlight
    • 11. Chapter Photoresistor & LED
      • 11.1. Project NightLamp
        • 11.1.1. Component List
        • 11.1.2. Component knowledge
          • 11.1.2.1. Photoresistor
        • 11.1.3. Circuit
        • 11.1.4. Sketch
          • 11.1.4.1. Sketch_Nightlamp
          • 11.1.4.2. Reference
            • constrain()
    • 12. Chapter Thermistor
      • 12.1. Project Thermometer
        • 12.1.1. Component List
        • 12.1.2. Component knowledge
          • 12.1.2.1. Thermistor
        • 12.1.3. Circuit
        • 12.1.4. Sketch
          • 12.1.4.1. Sketch_Thermometer
    • 13. Chapter Bluetooth
      • 13.1. Project Bluetooth Low Energy Data Passthrough
        • 13.1.1. Component List
        • 13.1.2. Component knowledge
          • 13.1.2.1. Master mode
          • 13.1.2.2. Slave mode
        • 13.1.3. Circuit
        • 13.1.4. Sketch
          • 13.1.4.1. Lightblue
      • 13.2. Project Bluetooth Control LED
        • 13.2.1. Component List
        • 13.2.2. Circuit
        • 13.2.3. Sketch
          • 13.2.3.1. Sketch_Bluetooth_Control_LED
          • 13.2.3.2. Reference
    • 14. Chapter Read and Write the SDcard
      • 14.1. Project SDMMC Test
        • 14.1.1. Component List
        • 14.1.2. Component knowledge
          • 14.1.2.1. SD card read and write method
        • 14.1.3. Format SD card
          • 14.1.3.1. Windows
          • 14.1.3.2. MAC
        • 14.1.4. Circuit
        • 14.1.5. Sketch
          • 14.1.5.1. Sketch_SDMMC_Test
    • 15. Chapter WiFi Working Modes
      • 15.1. Project Station mode
        • 15.1.1. Component List
        • 15.1.2. Component knowledge
          • 15.1.2.1. Station mode
        • 15.1.3. Circuit
        • 15.1.4. Sketch
          • 15.1.4.1. Sketch_Station_mode
          • 15.1.4.2. Reference
      • 15.2. Project AP mode
        • 15.2.1. Component List & Circuit
        • 15.2.2. Component knowledge
          • 15.2.2.1. AP mode
        • 15.2.3. Circuit
        • 15.2.4. Sketch
          • 15.2.4.1. Sketch_AP_mode
          • 15.2.4.2. Reference
      • 15.3. Project AP+Station mode
        • 15.3.1. Component List
        • 15.3.2. Component knowledge
          • 15.3.2.1. AP+Station mode
        • 15.3.3. Circuit
        • 15.3.4. Sketch
          • 15.3.4.1. Sketch_AP_Station_mode
    • 16. Chapter TCP/IP
      • 16.1. Project As Client
        • 16.1.1. Component List
        • 16.1.2. Component knowledge
          • 16.1.2.1. TCP connection
          • 16.1.2.2. Install Processing
          • 16.1.2.3. Use Server mode for communication
        • 16.1.3. Circuit
        • 16.1.4. Sketch
          • 16.1.4.1. Sketch_As_Client
          • 16.1.4.2. Reference
      • 16.2. Project As Server
        • 16.2.1. Component List
        • 16.2.2. Circuit
        • 16.2.3. Sketch
          • 16.2.3.1. Sketch_As_Server
          • 16.2.3.2. Reference
    • 17. Chapter Camera Web Server
      • 17.1. Project Camera Web Server
        • 17.1.1. Component List
        • 17.1.2. Circuit
        • 17.1.3. Sketch
          • 17.1.3.1. Sketch_As_CameraWebServer
          • 17.1.3.2. Reference
      • 17.2. Project Video Web Server
        • 17.2.1. Component List
        • 17.2.2. Circuit
        • 17.2.3. Sketch
          • 17.2.3.1. Sketch_As_VideoWebServer
      • 17.3. Project Camera and SDcard
        • 17.3.1. Component List
        • 17.3.2. Circuit
        • 17.3.3. Sketch
          • 17.3.3.1. How to install the library
          • 17.3.3.2. Sketch_Camera_SDcard
    • 18. Chapter Camera Tcp Server
      • 18.1. Project Camera Tcp Server
        • 18.1.1. Component List
        • 18.1.2. Install Freenove app
          • 18.1.2.1. Method 1
          • 18.1.2.2. Method 2
          • 18.1.2.3. Method 3
          • 18.1.2.4. Menu
          • 18.1.2.5. Freenove 4WD Car for Raspberry Pi
        • 18.1.3. Circuit
        • 18.1.4. Sketch
          • 18.1.4.1. Method 1:
          • 18.1.4.2. Method 2:
          • 18.1.4.3. Sketch_Camera_Tcp_Server
    • 19. Chapter USB
      • 19.1. Project USB Serial Example
        • 19.1.1. Component List
        • 19.1.2. Power
        • 19.1.3. Component knowledge
          • 19.1.3.1. Difference between USB-OTG and USB-UART Interfaces
          • 19.1.3.2. Enabling USB-OTG
        • 19.1.4. Sketch
          • 19.1.4.1. Sketch USBSerial
      • 19.2. Project USB Mouse Example
        • 19.2.1. Component List
          • 19.2.1.1. Power
        • 19.2.2. Circuit
        • 19.2.3. Sketch
          • 19.2.3.1. Sketch_MouseControl
      • 19.3. Project USB Keypad Example
        • 19.3.1. Component List
          • 19.3.1.1. Power
        • 19.3.2. Circuit
        • 19.3.3. Sketch
          • 19.3.3.1. Sketch_KeyboardControl
      • 19.4. Project USB Control Device Example
        • 19.4.1. Component List
          • 19.4.1.1. Power
        • 19.4.2. Circuit
        • 19.4.3. Sketch
          • 19.4.3.1. Sketch_ConsumerControl
    • What’s next?
    • End of the Tutorial
  • Python language
    • Important Information
      • Getting Started
      • Get Support and Offer Input
      • Safety and Precautions
      • About Freenove
      • Copyright
    • Preface
      • ESP32-S3 WROOM
      • Extension board of the ESP32-S3 WROOM
      • CH343 (Importance)
        • Windows
          • Check whether CH343 has been installed
          • Installing CH343
        • MAC
      • Programming Software
        • Downloading Thonny
        • Installing on Windows
      • Basic Configuration of Thonny
      • Burning Micropython Firmware (Important)
        • Downloading Micropython Firmware
        • Install python3
        • Burning a Micropython Firmware
          • Window
          • Mac
      • Testing codes (Important)
        • Testing Shell Command
        • Running Online
        • Running Offline(Importance)
      • Thonny Common Operation
        • Uploading Code to ESP32S3
        • Downloading Code to Computer
        • Deleting Files from ESP32S3’s Root Directory
        • Deleting Files from your Computer Directory
        • Creating and Saving the code
      • Notes for GPIO
        • Strapping Pin
        • PSRAM Pin
        • SDcard Pin
        • USB Pin
        • Cam Pin
    • 1. Chapter LED (Important)
      • 1.1. Project Blink
        • 1.1.1. Component List
          • 1.1.1.1. Power
        • 1.1.2. Code
          • 1.1.2.1. Blink
          • 1.1.2.2. Uploading code to ESP32S3
          • 1.1.2.3. How to import python files
          • 1.1.2.4. Reference
      • 1.2. Project Blink
        • 1.2.1. Component List
        • 1.2.2. Component knowledge
          • 1.2.2.1. LED
          • 1.2.2.2. Resistor
          • 1.2.2.3. Breadboard
          • 1.2.2.4. Power
        • 1.2.3. Circuit
        • 1.2.4. Code
          • 1.2.4.1. Blink
          • 1.2.4.2. Uploading code to ESP32S3
    • 2. Chapter Button & LED
      • 2.1. Project Button & LED
        • 2.1.1. Component List
        • 2.1.2. Component knowledge
          • 2.1.2.1. Push button
        • 2.1.3. Circuit
        • 2.1.4. Code
          • 2.1.4.1. ButtonAndLed
      • 2.2. Project MINI table lamp
        • 2.2.1. Debounce for Push Button
        • 2.2.2. Code
          • 2.2.2.1. Tablelamp
          • 2.2.2.2. Upload code to ESP32S3
    • 3. Chapter LED Bar
      • 3.1. Project Flowing Light
        • 3.1.1. Component knowledge
          • 3.1.1.1. LED bar
        • 3.1.2. Circuit
        • 3.1.3. Code
          • 3.1.3.1. FlowingLight
          • 3.1.3.2. Reference
    • 4. Chapter Analog & PWM
      • 4.1. Project Breathing LED
        • 4.1.1. Component List
        • 4.1.2. Related knowledge
          • 4.1.2.1. Analog & Digital
          • 4.1.2.2. PWM
          • 4.1.2.3. ESP32-S3 and PWM
        • 4.1.3. Circuit
        • 4.1.4. Code
          • 4.1.4.1. BreatheLight
          • 4.1.4.2. Reference
      • 4.2. Project Meteor Flowing Light
        • 4.2.1. Component List
        • 4.2.2. Circuit
        • 4.2.3. Code
          • 4.2.3.1. FlowingLight
          • 4.2.3.2. How to import a custom python module
    • 5. Chapter RGB LED
      • 5.1. Project Random Color Light
        • 5.1.1. Component List
        • 5.1.2. Related knowledge
        • 5.1.3. Circuit
        • 5.1.4. Code
          • 5.1.4.1. RandomColorLight
          • 5.1.4.2. Reference
      • 5.2. Project Gradient Color Light
        • 5.2.1. Code
          • 5.2.1.1. GradientColorLight
    • 6. Chapter Buzzer
      • 6.1. Project Doorbell
        • 6.1.1. Component List
        • 6.1.2. Component knowledge
          • 6.1.2.1. Buzzer
          • 6.1.2.2. Transistor
        • 6.1.3. Code
          • 6.1.3.1. 06.1_Doorbell
      • 6.2. Project Alertor
        • 6.2.1. Code
          • 6.2.1.1. Alertor
          • 6.2.1.2. Reference
    • 7. Chapter Serial Communication
      • 7.1. Project Serial Print
        • 7.1.1. Component List
        • 7.1.2. Related knowledge
          • 7.1.2.1. Serial communication
          • 7.1.2.2. Serial port on ESP32-S3
        • 7.1.3. Circuit
        • 7.1.4. Code
          • 7.1.4.1. 07.1_Serial_Print
          • 7.1.4.2. Reference
      • 7.2. Project Serial Read and Write
        • 7.2.1. Code
          • 7.2.1.1. Serial_Read_and_Write
    • 8. Chapter AD Converter
      • 8.1. Project Read the Voltage of Potentiometer
        • 8.1.1. Component List
        • 8.1.2. Related knowledge
          • 8.1.2.1. ADC
          • 8.1.2.2. ADC on ESP32-S3
        • 8.1.3. Component knowledge
          • 8.1.3.1. Potentiometer
          • 8.1.3.2. Rotary potentiometer
        • 8.1.4. Circuit
        • 8.1.5. Code
          • 8.1.5.1. AnalogRead
          • 8.1.5.2. Reference
    • 9. Chapter Potentiometer & LED
      • 9.1. Project Soft Light
        • 9.1.1. Component List
        • 9.1.2. Circuit
        • 9.1.3. Code
          • 9.1.3.1. Soft_LED
      • 9.2. Project Soft Colorful Light
        • 9.2.1. Component List
        • 9.2.2. Circuit
        • 9.2.3. Code
          • 9.2.3.1. Soft_Colorful_Light
    • 10. Chapter Photoresistor & LED
      • 10.1. Project NightLamp
        • 10.1.1. Component List
        • 10.1.2. Component knowledge
          • 10.1.2.1. Photoresistor
        • 10.1.3. Circuit
        • 10.1.4. Code
          • 10.1.4.1. Nightlamp
    • 11. Chapter Thermistor
      • 11.1. Project Thermometer
        • 11.1.1. Component List
        • 11.1.2. Component knowledge
          • 11.1.2.1. Thermistor
        • 11.1.3. Circuit
        • 11.1.4. Code
          • 11.1.4.1. Thermometer
    • 12. Chapter Bluetooth
      • 12.1. Project Bluetooth Low Energy Data Passthrough
        • 12.1.1. Component List
        • 12.1.2. Component knowledge
          • 12.1.2.1. Master mode
          • 12.1.2.2. Slave mode
        • 12.1.3. Circuit
        • 12.1.4. Code
          • 12.1.4.1. Lightblue
          • 12.1.4.2. BLE
      • 12.2. Project Bluetooth Control LED
        • 12.2.1. Component List
        • 12.2.2. Circuit
        • 12.2.3. Code
          • 12.2.3.1. BLE_LED
    • 13. Chapter WiFi Working Modes
      • 13.1. Project Station mode
        • 13.1.1. Component List
        • 13.1.2. Component knowledge
          • 13.1.2.1. Station mode
        • 13.1.3. Circuit
        • 13.1.4. Code
          • 13.1.4.1. Station_mode
          • 13.1.4.2. Reference
      • 13.2. Project AP mode
        • 13.2.1. Component List & Circuit
        • 13.2.2. Component knowledge
          • 13.2.2.1. AP mode
        • 13.2.3. Circuit
        • 13.2.4. Code
          • 13.2.4.1. AP_mode
          • 13.2.4.2. Reference
      • 13.3. Project AP+Station mode
        • 13.3.1. Component List
        • 13.3.2. Component knowledge
          • 13.3.2.1. AP+Station mode
        • 13.3.3. Circuit
        • 13.3.4. Code
          • 13.3.4.1. AP+STA_mode
    • 14. Chapter TCP/IP
      • 14.1. Project As Client
        • 14.1.1. Component List
        • 14.1.2. Component knowledge
          • 14.1.2.1. TCP connection
          • 14.1.2.2. Install Processing
          • 14.1.2.3. Use Server mode for communication
        • 14.1.3. Circuit
        • 14.1.4. Code
          • 14.1.4.1. TCP_as_Client
          • 14.1.4.2. Reference
      • 14.2. Project As Server
        • 14.2.1. Component List
        • 14.2.2. Circuit
        • 14.2.3. Code
          • 14.2.3.1. TCP_as_Server
    • 15. Chapter Camera Web Server
      • 15.1. Project 15.1 Camera Web Server
        • 15.1.1. Component List
        • 15.1.2. Circuit
        • 15.1.3. Code
          • 15.1.3.1. 15.1_Camera_WebServer
          • 15.1.3.2. Reference
    • What’s next?
    • End of the Tutorial
fnk0084-docs
  • Python language
Previous Next

Python language

Important Information

  • Important Information

Preface

  • Preface

Projects

  • 1. Chapter LED (Important)
  • 2. Chapter Button & LED
  • 3. Chapter LED Bar
  • 4. Chapter Analog & PWM
  • 5. Chapter RGB LED
  • 6. Chapter Buzzer
  • 7. Chapter Serial Communication
  • 8. Chapter AD Converter
  • 9. Chapter Potentiometer & LED
  • 10. Chapter Photoresistor & LED
  • 11. Chapter Thermistor
  • 12. Chapter Bluetooth
  • 13. Chapter WiFi Working Modes
  • 14. Chapter TCP/IP
  • 15. Chapter Camera Web Server

What's next?

  • What’s next?

End of the Tutorial

  • End of the Tutorial
Previous Next