Logo

FNK0046

  • Remove the Chips
  • C language
    • Important Information
      • Getting Started
      • Get Support and Offer Input
      • Safety and Precautions
      • About Freenove
      • Copyright
    • Preface
      • ESP32-WROVER
      • Extension board of the ESP32-WROVER
      • CH340 (Importance)
        • Windows
          • Installing CH340
        • MAC
      • Programming Software
      • Environment Configuration
      • Notes for GPIO
        • Strapping Pin
        • Cam Pin
    • Chapter 0 LED
      • Project 0.1 Blink
        • Component List
          • Power
        • Sketch
          • Sketch_01.1_Blink
            • Reset()
          • Reference
    • Chapter 1 LED
      • Project 1.1 Blink
        • Component List
        • Component knowledge
          • LED
          • Resistor
          • Breadboard
          • Power
        • Circuit
        • Sketch
          • Sketch_01.1_Blink
    • Chapter 2 Button & LED
      • Project 2.1 Button & LED
        • Component List
        • Component knowledge
          • Push button
        • Circuit
        • Sketch
          • Sketch_02.1_ButtonAndLed
          • Reference
      • Project 2.2 MINI table lamp
        • Debounce for Push Button
        • Sketch
          • Sketch_02.2_Tablelamp
    • Chapter 3 LED Bar
      • Project 3.1 Flowing Light
        • Component List
        • Component knowledge
          • LED bar
        • Circuit
        • Sketch
          • Sketch_03.1_FlowingLight
    • Chapter 4 Analog & PWM
      • Project 4.1 Breathing LED
        • Component List
        • Related knowledge
          • Analog & Digital
          • PWM
          • ESP32 and PWM
        • Circuit
        • Sketch
          • Sketch_04.1_BreathingLight
      • Project 4.2 Meteor Flowing Light
        • Sketch
          • Sketch_04.2_FlowingLight2
    • Chapter 5 RGB LED
      • Project 5.1 Random Color Light
        • Component List
        • Related knowledge
        • Circuit
        • Sketch
          • Sketch_05.1_ColorfulLight
      • Project 5.2 Gradient Color Light
        • Sketch_05.2_SoftColorfulLight
    • Chapter 6 Buzzer
      • Project 6.1 Doorbell
        • Component List
        • Component knowledge
          • Buzzer
        • Transistor
        • Circuit
        • Sketch
          • Sketch_06.1_Doorbell
      • Project 6.2 Alertor
        • Sketch
          • Sketch_06.2_Alertor
          • Reference
      • Project 6.3 Alertor (use timer)
        • Sketch
          • Sketch_Alertor
          • Reference
    • Chapter 7 Serial Communication
      • Project 7.1 Serial Print
        • Component List
        • Related knowledge
          • Serial communication
        • Serial port on ESP32
        • Circuit
        • Sketch
          • Sketch_07.1_SerialPrinter
      • Project 7.2 Serial Read and Write
        • Sketch
          • Sketch_07.2_SerialRW
          • Reference
    • Chapter 8 AD/DA Converter
      • Project 8.1 Read the Voltage of Potentiometer
        • Component List
        • Related knowledge
          • ADC
          • DAC
          • ADC on ESP32
          • DAC on ESP32
        • Component knowledge
          • Potentiometer
          • Rotary potentiometer
        • Circuit
        • Sketch
          • Sketch_08.1_ADC_DAC
          • Reference
    • Chapter 9 Touch Sensor
      • Project 9.1 Read Touch Sensor
        • Component List
        • Related knowledge
          • Touch sensor
        • Circuit
        • Sketch
          • Sketch_09.1_TouchRead
          • Reference
      • Project 9.2 Touch Lamp
        • Component List
        • Circuit
        • Sketch
          • Sketch_09.2_TouchLamp
    • Chapter 10 Potentiometer & LED
      • Project 10.1 Soft Light
        • Component List
        • Circuit
        • Sketch
          • Sketch_10.1_Softlight
    • Chapter 11 Photoresistor & LED
      • Project 11.1 NightLamp
        • Component List
        • Component knowledge
          • Photoresistor
        • Circuit
        • Sketch
          • Sketch_11.1_Nightlamp
          • Reference
            • constrain()
    • Chapter 12 Thermistor
      • Project 12.1 Thermometer
        • Component List
        • Component knowledge
          • Thermistor
        • Circuit
        • Sketch
          • Sketch_12.1_Thermometer
    • Chapter 13 Joystick
      • Project 13.1 Joystick
        • Component List
        • Component knowledge
          • Joystick
        • Circuit
        • Sketch
          • Sketch_13.1_Joystick
    • Chapter 14 74HC595 & LED Bar Graph
      • Project 14.1 Flowing Water Light
        • Component List
        • Related knowledge
          • 74HC595
        • Circuit
        • Sketch
          • Sketch_14.1_FlowingLight2
          • Reference
    • Chapter 15 74HC595 & 7-Segment Display
      • Project 15.1 7-Segment Display.
        • Component List
        • Component knowledge
          • 7-segment display
        • Circuit
        • Sketch
          • Sketch_15.1_7_Segment_Display
    • Chapter 16 Relay & Motor
      • Project 16.1 Control Motor with Potentiometer
        • Component knowledge
          • L293D
        • Circuit
        • Sketch
          • Sketch_16.1_Control_Motor_by_L293D
    • Chapter 17 Servo
      • Project 17.1 Servo Sweep
        • Component List
        • Component knowledge
          • Servo
        • Circuit
        • Sketch
          • How to install the library
          • Sketch_17.1_Servo_Sweep
          • Reference
      • Project 17.2 Servo Knop
        • Component List
        • Circuit
        • Sketch
          • How to install the library
          • Sketch_17.2_Servo_Sweep
    • Chapter 18 LCD1602
      • Project 18.1 LCD1602
        • Component List
        • Component knowledge
          • I2C communication
          • LCD1602 communication’
        • Circuit
        • Sketch
          • How to install the library
          • Sketch_18.1_Display_the_string_on_LCD1602
          • Reference
    • Chapter 19 Ultrasonic Ranging
      • Project 19.1 Ultrasonic Ranging
        • Component List
        • Component Knowledge
        • Circuit
        • Sketch
          • Sketch_19.1_Ultrasonic_Ranging
      • Project 19.2 Ultrasonic Ranging
        • Component List and Circuit
        • Sketch
          • How to install the library
          • Sketch_19.2_Ultrasonic_Ranging
          • Reference
    • Chapter 20 Bluetooth
      • Project 20.1 Bluetooth Passthrough
        • Component List
        • Component knowledge
          • Master mode
          • Slave mode
        • Circuit
        • Sketch
          • Sketch_20.1_SerialToSerialBT
          • Reference
      • Project 20.2 Bluetooth Low Energy Data Passthrough
        • Component List
        • Circuit
        • Sketch
          • Sketch_20.2_BLE
          • Serial Bluetooth
          • Lightblue
      • Project 20.3 Bluetooth Control LED
        • Component List
        • Circuit
        • Sketch
          • Sketch_20.3_Bluetooth_Control_LED
          • Reference
    • Chapter 21 Bluetooth Media by DAC
      • Project 21.1 Playing Bluetooth Music through DAC
        • Component List
        • Component knowledge
          • signal conversion
        • Circuit
        • Sketch
          • Sketch_21.1_Bluetooth_Music_by_DAC(2.x.x)
          • Sketch_21.1_Bluetooth_Music_by_DAC(3.x.x)
            • How to install the library
            • Code
            • Code Explanation
    • Chapter 22 Read and Write the Sdcard
      • Project 22.1 SDMMC Test
        • Component knowledge
          • SD card read and write method
        • Format SD card
          • Windows
          • MAC
        • Circuit
        • Sketch
          • Sketch_22.1_SDMMC_Test
    • Chapter 23 Play SD card music
      • Project 23.1 SDMMC Music
        • Component List
        • Circuit
        • Sketch
          • How to install the library
          • Sketch_23.1_PlayMP3FromSD
      • Project 31.2 SDMMC Music
        • Component List
        • Circuit
        • Sketch
          • How to install the library
          • Sketch_31.2_SDMMC_Music
    • Chapter 24 WiFi Working Modes
      • Project 24.1 Station mode
        • Component List
        • Component knowledge
          • Station mode
        • Circuit
        • Sketch
          • Sketch_24.1_Station_mode
          • Reference
      • Project 24.2 AP mode
        • Component List & Circuit
        • Component knowledge
          • AP mode
        • Circuit
        • Sketch
          • Sketch_24.2_AP_mode
          • Reference
      • Project 24.3 AP+Station mode
        • Component List
        • Component knowledge
          • AP+Station mode
        • Circuit
        • Sketch
          • Sketch_24.3_AP_Station_mode
    • Chapter 25 TCP/IP
      • Project 25.1 As Client
        • Component List
        • Component knowledge
          • TCP connection
          • Install Processing
          • Use Server mode for communication
        • Circuit
        • Sketch
          • Sketch_25.1_As_Client
          • Reference
      • Project 25.2 As Server
        • Component List
        • Circuit
        • Sketch
          • Sketch_25.2_As_Server
          • Reference
    • Chapter 26 Camera Web Server
      • Project 26.1 Camera Web Server
        • Component List
        • Circuit
        • Sketch
          • Sketch_26.1_As_CameraWebServer
          • Reference
      • Project 26.2 Video Web Server
        • Component List
        • Circuit
        • Sketch
          • Sketch_26.2_As_VideoWebServer
    • What’s next?
    • End of the Tutorial
  • Python language
    • Welcome
      • How to Start
      • Get Support
      • Attention
      • About
      • Copyright
      • Remove the Chips
    • Prepare
      • ESP32-WROVER
      • Extension board of the ESP32-WROVER
    • 0. Chapter Ready (Important)
      • 0.1 Installing Thonny (Important)
        • Downloading Thonny
        • Installing on Windows
      • 0.2 Basic Configuration of Thonny
      • 0.3 Installing CH340 (Important)
        • Windows
          • Check whether CH340 has been installed
          • Installing CH340
        • MAC
      • 0.4 Burning Micropython Firmware (Important)
        • Downloading Micropython Firmware
        • Burning a Micropython Firmware
      • 0.5 Testing codes (Important)
        • Testing Shell Command
        • Running Online
        • Running Offline(Importance)
      • 0.6 Thonny Common Operation
        • Uploading Code to ESP32
        • Downloading Code to Computer
        • Deleting Files from ESP32’s Root Directory
        • Deleting Files from your Computer Directory
        • Creating and Saving the code
      • 0.7 Note
        • Strapping Pin
        • Flash Pin
        • Cam Pin
    • Chapter 1 LED (Important)
      • Project 1.1 Blink
        • Component List
          • Power
        • Code
          • 01.1_Blink
          • Uploading code to ESP32
          • How to import python files
          • Reference
      • Project 1.2 Blink
        • Component List
        • Component knowledge
          • LED
          • Resistor
          • Breadboard
          • Power
        • Circuit
        • Code
          • 01.1_Blink
          • Uploading code to ESP32
    • Chapter 2 Button & LED
      • Project 2.1 Button & LED
        • Component List
        • Component knowledge
          • Push button
        • Circuit
        • Code
          • 02.1_ButtonAndLed
          • Upload Code to ESP32
      • Project 2.2 MINI table lamp
        • Debounce for Push Button
        • Code
          • 02.2_Tablelamp
          • Upload code to ESP32
    • Chapter 3 LED Bar
      • Project 3.1 Flowing Light
        • Component List
        • Component knowledge
          • LED bar
        • Circuit
        • Code
          • 03.1_FlowingLight
          • Reference
    • Chapter 4 Analog & PWM
      • Project 4.1 Breathing LED
        • Component List
        • Related knowledge
          • Analog & Digital
          • PWM
          • ESP32 and PWM
        • Circuit
        • Code
          • 04.1_BreatheLight
          • Reference
      • Project 4.2 Meteor Flowing Light
        • Component List
        • Circuit
        • Code
          • 04.2_FlowingLight
          • How to import a custom python module
    • Chapter 5 RGB LED
      • Project 5.1 Random Color Light
        • Component List
        • Related knowledge
        • Circuit
        • Code
          • 05.1_RandomColorLight
          • Reference
      • Project 5.2 Gradient Color Light
    • Chapter 6 Buzzer
      • Project 6.1 Doorbell
        • Component List
        • Component knowledge
          • Buzzer
        • Transistor
        • Circuit
        • Code
          • 06.1_Doorbell
      • Project 6.2 Alertor
        • Code
          • 06.2_Alertor
    • Chapter 7 Serial Communication
      • Project 7.1 Serial Print
        • Component List
        • Related knowledge
          • Serial communication
        • Serial port on ESP32
        • Circuit
        • Code
          • 07.1_Serial_Print
          • Reference
      • Project 7.2 Serial Read and Write
        • Code
          • 07.2_Serial_Read_and_Write
    • Chapter 8 AD/DA Converter
      • Project 8.1 Read the Voltage of Potentiometer
        • Component List
        • Related knowledge
          • ADC
          • DAC
          • ADC on ESP32
          • DAC on ESP32
        • Component knowledge
          • Potentiometer
          • Rotary potentiometer
        • Circuit
        • Code
          • 08.1_AnalogRead
          • Reference
    • Chapter 9 Touch Sensor
      • Project 9.1 Read Touch Sensor
        • Component List
        • Related knowledge
          • Touch sensor
        • Circuit
        • Code
          • 09.1_Read_Touch_Sensor
          • Reference
      • Project 9.2 Touch Lamp
        • Component List
        • Circuit
        • Code
          • 09.2_TouchLamp
    • Chapter 10 Potentiometer & LED
      • Project 10.1 Soft Light
        • Component List
        • Circuit
        • Code
          • 10.1_Soft_LED
    • Chapter 11 Photoresistor & LED
      • Project 11.1 NightLamp
        • Component List
        • Component knowledge
          • Photoresistor
        • Circuit
        • Code
          • 11.1_Nightlamp
    • Chapter 12 Thermistor
      • Project 12.1 Thermometer
        • Component List
        • Component knowledge
          • Thermistor
        • Circuit
        • Code
          • 12.1_Thermometer
    • Chapter 13 Joystick
      • Project 13.1 Joystick
        • Component List
        • Component knowledge
          • Joystick
        • Circuit
        • Code
          • 13.1_Joystick
    • Chapter 14 74HC595 & LED Bar Graph
      • Project 14.1 Flowing Water Light
        • Component List
        • Related knowledge
          • 74HC595
        • Circuit
        • Code
          • 14.1_Flowing_Water_Light
          • Reference
    • Chapter 15 74HC595 & 7-Segment Display
      • Project 15.1 7-Segment Display.
        • Component List
        • Component knowledge
          • 7-segment display
        • Circuit
        • Code
          • 15.1_74HC595_and_7_segment_display
    • Chapter 16 Relay & Motor
      • Project 16.1 Control Motor with Potentiometer
        • Component knowledge
          • L293D
        • Circuit
        • Code
          • 16.1_Motor_And_Driver
    • Chapter 17 Servo
      • Project 17.1 Servo Sweep
        • Component List
        • Component knowledge
          • Servo
        • Circuit
        • Code
          • 17.1_Servo_Sweep
          • Reference
      • Project 17.2 Servo Knop
        • Circuit
        • Code
          • 17.2_Servo_Knop
    • Chapter 18 LCD1602
      • Project 18.1 LCD1602
        • Component List
        • Component knowledge
          • I2C communication
          • LCD1602 communication’
        • Circuit
        • Code
          • 18.1_I2C_LCD1602
          • Reference
    • Chapter 19 Ultrasonic Ranging
      • Project 19.1 Ultrasonic Ranging
        • Component List
        • Component Knowledge
        • Circuit
        • Code
          • 19.1_Ultrasonic_Ranging
      • Project 19.2 Ultrasonic Ranging
        • Component List and Circuit
        • Code
          • Ultrasonic_Ranging
          • Reference
    • Chapter 20 Bluetooth
      • Project 20.1 Bluetooth Low Energy Data Passthrough
        • Component List
        • Lightblue
        • Code
          • 20.1_BLE
      • Project 20.2 Bluetooth Control LED
        • Component List
        • Circuit
        • Code
          • 20.2_BLE_LED
    • Chapter 21 WiFi Working Modes
      • Project 21.1 Station mode
        • Component List
        • Component knowledge
          • Station mode
        • Circuit
        • Code
          • 21.1_Station_mode
          • Reference
      • Project 21.2 AP mode
        • Component List & Circuit
        • Component knowledge
          • AP mode
        • Circuit
        • Code
          • 21.2_AP_mode
          • Reference
      • Project 21.3 AP+Station mode
        • Component List
        • Component knowledge
          • AP+Station mode
        • Circuit
        • Code
          • 21.3_AP+STA_mode
    • Chapter 22 TCP/IP
      • Project 22.1 As Client
        • Component List
        • Component knowledge
          • TCP connection
          • Install Processing
          • Use Server mode for communication
        • Circuit
        • Code
          • 22.1_TCP_as_Client
          • Reference
      • Project 22.2 As Server
        • Component List
        • Circuit
        • Code
          • 22.2_TCP_as_Server
    • Chapter 23 Camera Web Server
      • Project 23.1 Camera Web Server
        • Component List
        • Circuit
        • Code
          • 23.1_Camera_WebServer
          • Reference
    • What’s next?(others)
    • End of the Tutorial
fnk0046-docs
  • Search