Logo

FNK0073

  • C language
    • Important Information
      • Getting Started
      • Get Support and Offer Input
      • Safety and Precautions
      • About Freenove
      • Copyright
    • Preface
      • ESP8266
      • CH340
        • Windows
          • Check whether CH340 has been installed
          • Installing CH340
        • MAC
      • Programming Software
      • Environment Configuration
    • Chapter 0 LED
      • 0.1. Project 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_Blink2
    • 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
          • ESP8266 and PWM
        • Circuit
        • Sketch
          • Sketch_04.1_BreathingLight
          • Reference
            • map()
      • Project 4.2 Meteor Flowing Light
        • Circuit
        • 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
          • Sketch_5.2_SoftColorfulLight
    • Chapter 6 LEDPixel
      • Project 6.1 LEDPixel
        • Component List
        • Related knowledge
          • Freenove 8 RGB LED Module
        • Circuit
        • Sketch
          • How to install the library
          • Sketch_06.1_LEDPixel
          • Reference
      • Project 6.2 Rainbow Light
        • Sketch
          • Sketch_06.2_RainbowLight
    • Chapter 7 Buzzer
      • Project Doorbell
        • Component List
        • Component knowledge
          • Buzzer
          • Transistor
        • Circuit
        • Sketch
          • Sketch_07.1_Doorbell
      • Project 7.2 Alertor
        • Sketch
          • Sketch_07.2_Alertor
          • Reference
            • tone()
    • Chapter 8 Serial Communication
      • Project 8.1 Serial Print
        • Component List
        • Related knowledge
          • Serial communication
          • Serial port on ESP8266
        • Circuit
        • Sketch
          • Sketch_SerialPrinter
          • Reference
      • Project 8.2 Serial Read and Write
        • Sketch
          • Sketch_08.2_SerialRW
          • Reference
    • Chapter 9 ADC Converter
      • Project 9.1 Read the Voltage of Potentiometer
        • Component List
        • Related knowledge
          • ADC
          • ADC on ESP8266
        • Component knowledge
          • Potentiometer
          • Rotary potentiometer
        • Circuit
        • Sketch
          • Sketch_09.1_ADC
    • Chapter 10 Potentiometer & LED
      • Project Soft Light
        • Component List
        • Circuit
        • Sketch
          • Sketch_10.1_Softlight
      • Project Color Light
        • Component List
        • Circuit
        • Sketch
      • Project 10.3 Soft Rainbow Light
        • Component List
        • Circuit
        • Sketch
          • Sketch_10.3_Soft_Rainbow_Light
    • 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
        • Circuit
        • Sketch
          • Sketch_12.1_Thermometer
    • Chapter 13 74HC595 & LED Bar Graph
      • Project 13.1 Flowing Water Light
        • Component List
        • Related knowledge
          • 74HC595
        • Circuit
        • Sketch
          • Sketch_13.1_FlowingLight02
          • Reference
    • Chapter 14 74HC595 & 7-Segment Display
      • Project 14.1 1-Digit 7-Segment Display.
        • Component List
        • Component knowledge
          • 7-segment display
        • Circuit
        • Sketch
          • Sketch_14.1_1_Dight_7-Segment_Display
      • Project 14.2 4-Digit 7-Segment Display
        • Component List
        • Component knowledge
          • 4 Digit 7-Segment Display
        • Circuit
        • Sketch
          • Sketch_4_Dight_7-Segment_Display
    • Chapter 15 74HC595 & LED Matrix
      • Project 15.1 LED Matrix
        • Component List
        • Component knowledge
          • LED Matrix
        • Circuit
        • Sketch
          • Sketch_15.1_LED_Matrix
    • Chapter 16 Relay & Motor
      • Project 16.1 Relay & Motor
        • Component List
        • Component knowledge
          • Relay
          • Inductor
          • Motor
        • Circuit
        • Sketch
          • Sketch_16.1_Control_Motor_by_Relay
    • Chapter 17 Motor & Driver
      • Project 17.1 Control Motor with Potentiometer
        • Component List
        • Component knowledge
          • L293D
        • Circuit
        • Sketch
          • Sketch_17.1_Control_Motor_by_L293D
    • Chapter 18 Servo
      • Project 18.1 Servo Sweep
        • Component List
        • Component knowledge
          • Servo
        • Circuit
        • Sketch
          • How to install the library
          • Sketch_18.1_Servo_Sweep
          • Reference
      • Project 18.2 Servo Knop
        • Component List
        • Circuit
        • Sketch
          • Sketch_18.2_Control_Servo_by_Potentiometer
    • Chapter 19 Stepper Motor
      • Project 19.1 Stepper Motor
        • Component List
        • Component knowledge
          • Stepper Motor
          • ULN2003 Stepper motor driver
        • Circuit
        • Sketch
          • Sketch_19.1_Drive_Stepper_Motor
    • Chapter 20 LCD1602
      • Project 20.1 LCD1602
        • Component List
        • Component knowledge
          • I2C communication
          • LCD1602 communication’
        • Circuit
        • Sketch
          • How to install the library
          • Sketch_20.1_Display_the_string_on_LCD1602
          • Reference
    • Chapter 21 Ultrasonic Ranging
      • Project 21.1 Ultrasonic Ranging
        • Component List
        • Component Knowledge
        • Circuit
        • Sketch
          • Sketch_21.1_Ultrasonic_Ranging
      • Project 21.2 Ultrasonic Ranging
        • Component List and Circuit
        • Sketch
          • How to install the library
          • Sketch_21.2_Ultrasonic_Ranging
          • Reference
    • Chapter 22 Matrix Keypad
      • Project 22.1 Matrix Keypad
        • Component List
        • Component knowledge
          • 4x4 Matrix Keypad
        • Circuit
        • Sketch
          • How to install the library
          • Sketch_22.1_Get_Input_Characters
          • Reference
    • Chapter 23 Infrared Remote
      • Project 23.1 Infrared Remote Control
        • Component List
        • Component knowledge
          • Infrared Remote
          • Infrared receiver
        • Circuit
        • Sketch
          • How to install the library
          • Sketch_23.1_Infrared_Remote_Control
          • Reference
      • Project 23.2 Control LED through Infrared Remote
        • Component List
        • Circuit
        • Sketch
          • Sketch_23.2_Control_LED_through_Infrared_Remote
    • Chapter 24 Hygrothermograph DHT11
      • Project 24.1 Hygrothermograph
        • Component List
        • Component knowledge
        • Circuit
        • Sketch
          • How to install the library
          • Sketch_24.1_Temperature_and_Humidity_Sensor
          • Reference
      • Project 24.2 Hygrothermograph
        • Component List
        • Circuit
        • Sketch
          • Sketch_24.1_Temperature_and_Humidity_Sensor
    • Chapter 25 Infrared Motion Sensor
      • Project 25.1 Infrared Motion Detector with LED Indicator
        • Component List
        • Component knowledge
        • Circuit
        • Sketch
          • Sketch_25.1_Infrared_Motion_Sensor
    • Chapter 26 Attitude Sensor MPU6050
      • Project 26.1 Read a MPU6050 Sensor Module
        • Component List
        • Component knowledge
          • MPU6050
        • Circuit
        • Sketch
          • How to install the library
          • Sketch_26.1_Acceleration_Detection
    • Chapter 27 RFID
      • Project 27.1 RFID read UID
        • Component List
        • Component knowledge
          • RFID
          • MFRC522 RFID Module
          • Mifare1 S50 Card
        • Circuit
        • Sketch
          • Sketch_27.1_RFID_Read_UID
      • Project 27.2 Read and write
        • Component List
        • Circuit
        • Sketch
          • Sketch_27.2_RFID_Read_And_Write
    • Chapter 28 WiFi Working Modes
      • Project 28.1 Station mode
        • Component List
        • Component knowledge
          • Station mode
        • Circuit
        • Sketch
          • Sketch_28.1_Station_mode
          • Reference
      • Project 28.2 AP mode
        • Component List & Circuit
        • Component knowledge
          • AP mode
        • Circuit
        • Sketch
          • Sketch_28.2_AP_mode
          • Reference
      • Project 28.3 AP+Station mode
        • Component List
        • Component knowledge
          • AP+Station mode
        • Circuit
        • Sketch
          • Sketch_28.3_AP_Station_mode
    • Chapter 29 TCP/IP
      • Project 29.1 As Client
        • Component List
        • Component knowledge
          • TCP connection
        • Install Processing
          • Use Server mode for communication
        • Circuit
        • Sketch
          • Sketch_29.1_As_Client
          • Reference
      • Project 29.2 As Server
        • Component List
        • Circuit
        • Sketch
          • Sketch_29.2_As_Server
          • Reference
    • Chapter 30 Smart home
      • Project 30.1 Control_LED_through_Web
        • Component List
        • Component knowledge
          • HTML
        • Circuit
        • Sketch
          • Sketch_30.1_Control_LED_through_Web
    • Chapter 31 Play music
      • Project 31.1 Play_music
        • Component List
        • Circuit
        • Sketch
          • How to install the library
          • Install the Arduino IDE plug-in Arduino-ESP8266Fs-Plugin
          • Upload music
          • Sketch_31.1_Play_music
    • Chapter 32 Play music with audio decoder
      • Project 32.1 Play_music_with_audio_decoder
        • Component List
        • Component knowledge
        • Circuit
        • Sketch
          • How to install the library
          • Install the Arduino IDE plug-in Arduino-ESP8266Fs-Plugin
          • Upload music
          • Sketch_32.1_Play_music_with_audio_decoder
    • Chapter 33 Soldering Circuit Board
      • Project 33.1 Soldering a Buzzer
        • Component List
        • Circuit
        • Soldering the Circuit
        • Testing circuit
      • Project 33.2 Soldering a Flowing Water Light
        • Component List
        • Circuit
        • Soldering the Circuit
        • Connecting the Circuit
        • Sketch
    • What’s next?(73)
    • What’s next?(others)
    • End of the Tutorial
  • Python language
    • Welcome
      • How to Start
      • Get Support
      • Attention
      • About
      • Copyright
    • Preface
      • ESP8266
    • 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
          • Installing CH340
        • MAC
      • 0.4 Burning Micropython Firmware (Important)
        • Burning a Micropython Firmware
      • 0.5 Testing codes (Important)
        • Testing Shell Command
        • Running Online
        • Running Offline(Important)
      • 0.6 Thonny Common Operation
        • Uploading Code to ESP8266
        • Downloading Code to Computer
        • Deleting Files from ESP8266’s Root Directory
        • Creating and Saving the code
    • Chapter 1 LED (Important)
      • Project 1.1 Blink
        • Component List
          • Power
        • Code
          • 01.1_Blink
          • Uploading code to ESP8266
          • How to import python files
          • Reference
      • Project Blink
        • Component List
        • Component knowledge
          • LED
          • Resistor
          • Breadboard
          • Power
        • Circuit
        • Code
          • Blink
          • Uploading code to ESP8266
    • Chapter 2 Button & LED
      • Project 2.1 Button & LED
        • Component List
        • Component knowledge
          • Push button
        • Circuit
        • Code
          • 02.1_ButtonAndLed
          • Upload Code to ESP8266
      • Project 2.2 MINI table lamp
        • Debounce for Push Button
        • Code
          • 02.2_Tablelamp
          • Upload code to ESP8266
    • 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
          • ESP8266 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 LEDPixel
      • Project 6.1 LEDPixel
        • Component List
        • Related knowledge
          • Freenove 8 RGB LED Module
        • Circuit
        • Code
          • 06.1_Neopixel
          • Reference
      • Project 6.2 Rainbow Light
        • Code
          • 06.2_Rainbow_light
    • Chapter 7 Buzzer
      • Project 7.1 Doorbell
        • Component List
        • Component knowledge
          • Buzzer
          • Transistor
        • Circuit
        • Code
          • 07.1_Doorbell
      • Project 7.2 Alertor
        • Code
          • 07.2_Alertor
    • Chapter 8 Serial Communication
      • Project 8.1 Serial Print
        • Component List
        • Related knowledge
          • Serial communication
          • Serial port on ESP8266
        • Circuit
        • Code
          • 08.1_Serial_Print
          • Reference
      • Project 8.2 Serial Read and Write
        • Code
          • 08.2_Serial_Read_and_Write
    • Chapter 9 ADC Converter
      • Project 9.1 Read the Voltage of Potentiometer
        • Component List
        • Related knowledge
          • ADC
          • ADC on ESP8266
        • Component knowledge
          • Potentiometer
          • Rotary potentiometer
        • Circuit
        • Code
          • 09.1_AnalogRead
    • Chapter 10 Potentiometer & LED
      • Project 10.1 Soft Light
        • Component List
        • Circuit
        • Code
          • 10.1_Soft_LED
      • Project 10.2 Color Light
        • Component List
        • Circuit
        • Code
          • 10.2_Color_Light
      • Project 10.3 Soft Rainbow Light
        • Component List
        • Circuit
        • Code
          • 10.3_Soft_Rainbow_Light
    • Chapter 11 Photoresistor & LED
      • Project 11.1 NightLamp
        • Component List
        • Component knowledge
          • Photoresistor
        • Circuit
        • Sketch
          • 11.1_Nightlamp
    • Chapter 12 Thermistor
      • Project 12.1 Thermometer
        • Component List
        • Component knowledge
          • 12.1_Thermistor
        • Circuit
        • Circuit
        • Code
          • Thermometer
    • Chapter 13 74HC595 & LED Bar Graph
      • Project 13.1 Flowing Water Light
        • Component List
        • Related knowledge
          • 74HC595
        • Circuit
        • Sketch
          • 13.1_Flowing_Water_Light
          • Reference
    • Chapter 14 74HC595 & 7-Segment Display
      • Project 14.1 1-Digit 7-Segment Display.
        • Component List
        • Component knowledge
          • 7-segment display
        • Circuit
        • Code
          • 14.1_74HC595_and_7_segment_display
      • Project 14.2 4-Digit 7-Segment Display
        • Component List
        • Component knowledge
          • 14.2_4 Digit 7-Segment Display
        • Circuit
        • Code
          • 4_Digit_7_Segment_Display
    • Chapter 15 74HC595 & LED Matrix
      • Project 15.1 LED Matrix
        • Component List
        • Component knowledge
          • LED Matrix
        • Circuit
        • Code
          • 15.1_LED_Matrix
          • Reference
    • Chapter 16 Relay & Motor
      • Project 16.1 Relay & Motor
        • Component List
        • Component knowledge
          • Relay
          • Inductor
          • Motor
        • Circuit
        • Code
          • 16.1_Relay_And_Motor
    • Chapter 17 Motor & Driver
      • Project 17.1 Control Motor with Potentiometer
        • Component List
        • Component knowledge
          • L293D
        • Circuit
        • Code
          • 17.1_Motor_And_Driver
    • Chapter 18 Servo
      • Project 18.1 Servo Sweep
        • Component List
        • Component knowledge
          • Servo
        • Circuit
        • Code
          • 18.1_Servo_Sweep
          • Reference
      • Project 18.2 Servo Knop
        • Component List
        • Circuit
        • Code
          • 18.2_Servo_Knop
    • Chapter 19 Stepper Motor
      • Project 19.1 Stepper Motor
        • Component List
        • Component knowledge
          • Stepper Motor
          • ULN2003 Stepper motor driver
        • Circuit
        • Code
          • 19.1_Stepping_Motor
          • Reference
    • Chapter 20 LCD1602
      • Project 20.1 LCD1602
        • Component List
        • Component knowledge
          • I2C communication
          • LCD1602 communication’
        • Circuit
        • Code
          • 20.1_I2C_LCD1602
          • Reference
    • Chapter 21 Ultrasonic Ranging
      • Project Ultrasonic Ranging
        • Component List
        • Component Knowledge
        • Circuit
        • Code
          • 21.1_Ultrasonic_Ranging
      • Project 21.2 Ultrasonic Ranging
        • Component List and Circuit
        • Code
          • 21.2_Ultrasonic_Ranging
          • Reference
    • Chapter 22 Matrix Keypad
      • Project 22.1 Matrix Keypad
        • Component List
        • Component knowledge
          • 4x4 Matrix Keypad
        • Circuit
        • Code
          • 22.1_Matrix_Keypad
          • Reference
    • Chapter 23 Infrared Remote
      • Project Infrared Remote Control
        • Component List
        • Component knowledge
          • Infrared Remote
          • Infrared receiver
        • Circuit
        • Code
          • Infrared_Remote
          • Reference
      • Project 23.2 Control LED through Infrared Remote
        • Component List
        • Circuit
        • Code
          • 23.2_Control_LED_through_Infrared_Remote
    • Chapter 24 Hygrothermograph DHT11
      • Project 24.1 Hygrothermograph
        • Component List
        • Component knowledge
        • Circuit
        • Code
          • Hygrothermograph
          • Reference
      • Project 24.2 Hygrothermograph
        • Component List
        • Circuit
        • Code
          • 24.2_Hygrothermograph
    • Chapter 25 Infrared Motion Sensor
      • Project Infrared Motion Detector with LED Indicator
        • Component List
        • Component knowledge
        • Circuit
        • Code
          • 25.1_Infrared_Motion_Detector
    • Chapter 26 Attitude Sensor MPU6050
      • Project 26.1 Read a MPU6050 Sensor Module
        • Component List
        • Component knowledge
          • MPU6050
        • Circuit
        • Code
          • 26.1_MPU6050
          • Reference
    • Chapter 27 RFID
      • Project 27.1RFID read UID
        • Component List
        • Component knowledge
          • RFID
          • MFRC522 RFID Module
          • Mifare1 S50 Card
        • Circuit
        • Code
          • 27.1_RFID_Read_UID
          • Reference
      • Project RFID Read and Write
        • Component List
        • Circuit
        • Code
          • 27.2_RFID_Read_UID
    • Chapter 28 WiFi Working Modes
      • Project 28.1 Station mode
        • Component List
        • Component knowledge
          • Station mode
        • Circuit
        • Code
          • 28.1_Station_mode
          • Reference
      • Project 28.2 AP mode
        • Component List & Circuit
        • Component knowledge
          • AP mode
        • Circuit
        • Code
          • 28.2_AP_mode
          • Reference
      • Project 28.3 AP+Station mode
        • Component List
        • Component knowledge
          • AP+Station mode
        • Circuit
        • Code
          • 28.3_AP+STA_mode
    • Chapter 29 TCP/IP
      • Project 29.1 As Client
        • Component List
        • Component knowledge
          • TCP connection
        • Install Processing
          • Use Server mode for communication
        • Circuit
        • Code
          • 29.1_TCP_as_Client
          • Reference
      • Project 29.2 As Server
        • Component List
        • Circuit
        • Code
          • 29.2_TCP_as_Server
    • Chapter 30 Smart home
      • Project 30.1 Control_LED_through_Web
        • Component List
        • Component knowledge
          • HTML
        • Circuit
        • Code
          • 30.1_Control_LED_through_Web
    • Chapter 31 Soldering Circuit Board
      • Project 31.1 Soldering a Buzzer
        • Component List
        • Circuit
        • Soldering the Circuit
        • Testing circuit
      • Project 31.2 Soldering a Flowing Water Light
        • Component List
        • Circuit
        • Soldering the Circuit
        • Connecting the Circuit
        • Code
    • What’s next?
    • End of the Tutorial
  • Processing language
    • Welcome
      • Getting Started
      • Get Support and Offer Input
      • Safety and Precautions
      • About Freenove
      • Copyright
    • Preface
      • Processing Software
      • Install ControlP5
      • First Use
      • Communication protocol (Important)
    • Chapter 1 Oscilloscope
      • Project Oscilloscope
        • Component List
        • Circuit
        • Sketch
          • Sketch Oscilloscope
    • Chapter 2 Snake Game
      • Project Snake Game
        • Component list
        • Circuit
        • Sketch
          • Sketch Snake_Game
      • Project Snake Game 3D
        • Component list
        • Circuit
        • Sketch
          • Sketch Snake_Game_3D
    • Chapter 3 Pick Apples
      • Project 3.1 Pick Apples
        • Component list
        • Circuit
        • Sketch
          • Sketch Pick Apples
    • Chapter 4 Pong Game
      • Project Pong Game
        • Component list
        • Circuit
        • Sketch
          • Sketch Pong_Game
      • Project Pong Game 3D
        • Component list
        • Circuit
        • Sketch
          • Sketch Pong_Game_3D
    • Chapter 5 Tetris
      • Project Tetris
        • Component list
        • Circuit
        • Sketch
          • Sketch Tetris
    • What’s next?
fnk0073-docs
  • Search