FNK0047
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 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
Freenove_ESP32_WS2812()
Project 6.2 Rainbow Light
Sketch
Sketch_06.2_RainbowLight
Chapter 7 Buzzer
Project 7.1 Doorbell
Component List
Component knowledge
Buzzer
Transistor
Circuit
Sketch
Sketch_07.1_Doorbell
Project 7.2 Alertor
Sketch
Sketch_07.2_Alertor
Reference
Project 7.3 Alertor (use timer)
Sketch
Sketch_Alertor
Reference
Chapter 8 Serial Communication
Project 8.1 Serial Print
Component List
Related knowledge
Serial communication
Serial port on ESP32
Circuit
Sketch
Sketch_08.1_SerialPrinter
Project 8.2 Serial Read and Write
Sketch
Sketch_08.2_SerialRW
Reference
Chapter 9 AD/DA Converter
Project 9.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_09.1_ADC_DAC
Reference
Chapter 10 Touch Sensor
Project 10.1 Read Touch Sensor
Component List
Related knowledge
Touch sensor
Circuit
Sketch
Sketch_10.1_TouchRead
Reference
Project 10.2 Touch Lamp
Component List
Circuit
Sketch
Sketch_10.2_TouchLamp
Chapter 11 Potentiometer & LED
Project 11.1 Soft Light
Component List
Circuit
Sketch
Sketch_11.1_Softlight
Project 11.2 Soft Colorful Light
Circuit
Sketch
Sketch_11.2_SoftColorfulLight
Project 11.3 Soft Rainbow Light
Component List
Sketch
Sketch_11.3_Soft_Rainbow_Light
Chapter 12 Photoresistor & LED
Project 12.1 NightLamp
Component List
Component knowledge
Photoresistor
Circuit
Sketch
Sketch_12.1_Nightlamp
Reference
constrain()
Chapter 13 Thermistor
Project 13.1 Thermometer
Component List
Component knowledge
Thermistor
Circuit
Sketch
Sketch_13.1_Thermometer
Chapter 14 Joystick
Project 14.1 Joystick
Component List
Component knowledge
Joystick
Circuit
Sketch
Sketch_14.1_Joystick
Chapter 15 74HC595 & LED Bar Graph
Project 15.1 Flowing Water Light
Component List
Related knowledge
74HC595
Circuit
Sketch
Sketch_15.1_FlowingLight2
Reference
Chapter 16 74HC595 & 7-Segment Display
Project 16.1 7-Segment Display.
Component List
Component knowledge
7-segment display
Circuit
Sketch
Sketch_16.1_7_Segment_Display
Project 16.2 4-Digit 7-Segment Display
Component List
Component knowledge
4 Digit 7-Segment Display
Circuit
Sketch
Sketch_16.2_4_Dight_7-Segment_Display
Chapter 16 74HC595 & LED Matrix
Project 16.3 LED Matrix
Component List
Component knowledge
LED Matrix
Circuit
Sketch
Sketch_16.3_LED_Matrix
Chapter 17 Relay & Motor
Project 17.1 Relay & Motor
Component List
Component knowledge
Relay
Inductor
Motor
Circuit
Sketch
Sketch_17.1_Control_Motor_by_Relay
Chapter 17 Motor & Driver
Project 17.2 Control Motor with Potentiometer
Component knowledge
L293D
Circuit
Sketch
Sketch_17.2_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
How to install the library
Sketch_18.2_Servo_Sweep
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
Project 22.2 Keypad Door
Component List
Circuit
Sketch
Sketch_22.2_Keypad_Door
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.2_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
Reference
Chapter 27 Bluetooth
Project 27.1 Bluetooth Passthrough
Component List
Component knowledge
Master mode
Slave mode
Circuit
Sketch
Sketch_27.1_SerialToSerialBT
Reference
Project 27.2 Bluetooth Low Energy Data Passthrough
Component List
Circuit
Sketch
Sketch_27.2_BLE
Serial Bluetooth
Lightblue
Project 27.3 Bluetooth Control LED
Component List
Circuit
Sketch
Sketch_27.3_Bluetooth_Control_LED
Reference
Chapter 28 Bluetooth Media by DAC
Project 28.1 Playing Bluetooth Music through DAC
Component List
Component knowledge
signal conversion
Circuit
Sketch
Sketch_28.1_Bluetooth_Music_by_DAC(2.x.x)
Sketch_28.1_Bluetooth_Music_by_DAC(3.x.x)
How to install the library
Code
Code Explanation
Chapter 29 Bluetooth Media by Audio Module
Project 29.1 Playing Bluetooth Music through Audio Converter & Amplifier
Component List
Component knowledge
Circuit
Sketch
Sketch_29.1_Bluetooth_Music_by_Audio_Converter(2.x.x)
Code
Code Explanation
Sketch_29.1_Bluetooth_Music_by_Audio_Converter(3.x.x)
Code
Code Explanation
Chapter 30 Read and Write the Sdcard
Project 30.1 SDMMC Test
Component knowledge
SD card read and write method
Format SD card
Windows
MAC
Circuit
Sketch
Sketch_30.1_SDMMC_Test
Chapter 31 Play SD card music
Project 31.1 SDMMC Music
Component List
Circuit
Sketch
How to install the library
Sketch_31.1_PlayMP3FromSD
Project 31.2 SDMMC Music
Component List
Circuit
Sketch
How to install the library
Sketch_31.2_SDMMC_Music
Chapter 32 WiFi Working Modes
Project 32.1 Station mode
Component List
Component knowledge
Station mode
Circuit
Sketch
Sketch_32.1_Station_mode
Reference
Project 32.2 AP mode
Component List & Circuit
Component knowledge
AP mode
Circuit
Sketch
Sketch_32.2_AP_mode
Reference
Project 32.3 AP+Station mode
Component List
Component knowledge
AP+Station mode
Circuit
Sketch
Sketch_32.3_AP_Station_mode
Chapter 33 TCP/IP
Project 33.1 As Client
Component List
Component knowledge
TCP connection
Install Processing
Use Server mode for communication
Circuit
Sketch
Sketch_33.1_As_Client
Reference
Project 33.2 As Server
Component List
Circuit
Sketch
Sketch_33.2_As_Server
Reference
Chapter 34 Camera Web Server
Project 34.1 Camera Web Server
Component List
Circuit
Sketch
Sketch_34.1_As_CameraWebServer
Reference
Project 34.2 Video Web Server
Component List
Circuit
Sketch
Sketch_34.2_As_VideoWebServer
Chapter 35 Camera Tcp Server
Project 35.1 Camera Tcp Server
Component List
Install Freenove app
Method 1
Method 2
Method 3
Menu
Freenove 4WD Car for Raspberry Pi
Circuit
Sketch
Method 1
Method 2
Sketch_35.1_Camera_Tcp_Server
Chapter 36 Soldering Circuit Board
Project 36.1 Soldering a Buzzer
Component List
Circuit
Soldering the Circuit
Testing circuit
Project 36.2 Soldering a Flowing Water Light
Component List
Circuit
Soldering the Circuit
Connecting the Circuit
Sketch
What’s next?
What’s next?(others)
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 NeoPixel
Project 6.1 NeoPixel
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 ESP32
Circuit
Code
08.1_Serial_Print
Reference
Project 8.2 Serial Read and Write
Code
08.2_Serial_Read_and_Write
Chapter 9 AD/DA Converter
Project 9.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
09.1_AnalogRead
Reference
Chapter 10 Touch Sensor
Project 10.1 Read Touch Sensor
Component List
Related knowledge
Touch sensor
Circuit
Code
10.1_Read_Touch_Sensor
Reference
Project 10.2 Touch Lamp
Component List
Circuit
Code
10.2_TouchLamp
Chapter 11 Potentiometer & LED
Project 11.1 Soft Light
Component List
Circuit
Code
11.1_Soft_LED
Project 11.2 Soft Colorful Light
Circuit
Code
11.2_Soft_Colorful_Light
Project 11.3 Soft Rainbow Light
Component List
Code
11.3_Soft_Rainbow_Light
Chapter 12 Photoresistor & LED
Project 12.1 NightLamp
Component List
Component knowledge
Photoresistor
Circuit
Code
12.1_Nightlamp
Chapter 13 Thermistor
Project 13.1 Thermometer
Component List
Component knowledge
Thermistor
Circuit
Code
13.1_Thermometer
Chapter 14 Joystick
Project 14.1 Joystick
Component List
Component knowledge
Joystick
Circuit
Code
14.1_Joystick
Chapter 15 74HC595 & LED Bar Graph
Project 15.1 Flowing Water Light
Component List
Related knowledge
74HC595
Circuit
Code
15.1_Flowing_Water_Light
Reference
Chapter 16 74HC595 & 7-Segment Display
Project 16.1 7-Segment Display.
Component List
Component knowledge
7-segment display
Circuit
Code
16.1_74HC595_and_7_segment_display
Project 16.2 4-Digit 7-Segment Display
Component List
Component knowledge
4 Digit 7-Segment Display
Circuit
Code
16.2_4_Digit_7_Segment_Display
Chapter 16 74HC595 & LED Matrix
Project 16.3 LED Matrix
Component List
Component knowledge
LED Matrix
Circuit
Code
16.3_LED_Matrix
Reference
Chapter 17 Relay & Motor
Project 17.1 Relay & Motor
Component List
Component knowledge
Relay
Inductor
Motor
Code
17.1_Relay_And_Motor
Project 17.2 Control Motor with Potentiometer
Component knowledge
L293D
Circuit
Code
17.2_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
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 21.1 Ultrasonic Ranging
Component List
Component Knowledge
Circuit
Code
21.1_Ultrasonic_Ranging
Project 21.2 Ultrasonic Ranging
Component List and Circuit
Code
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
Project 22.2 Keypad Door
Component List
Circuit
Code
22.2_Keypad_Door
Chapter 23 Infrared Remote
Project 23.1 Infrared Remote Control
Component List
Component knowledge
Infrared Remote
Infrared receiver
Circuit
Code
23.1_Infrared_Remote
Reference
Project 23.2 Control LED through Infrared Remote
Component List
Circuit
Code
23.2_Control_LED_through_Infrared_Remote
Rendering
Chapter 24 Hygrothermograph DHT11
Project 24.1 Hygrothermograph
Component List
Component knowledge
Circuit
Code
24.1_Hygrothermograph
Reference
Project 24.2 Hygrothermograph
Component List
Circuit
Code
24.2_Hygrothermograph
Chapter 25 Infrared Motion Sensor
Project 25.1 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 Bluetooth
Project 27.1 Bluetooth Low Energy Data Passthrough
Component List
Lightblue
Code
27.1_BLE
Project 27.2 Bluetooth Control LED
Component List
Circuit
Code
27.2_BLE_LED
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 Camera Web Server
Project 30.1 Camera Web Server
Component List
Circuit
Code
30.1_Camera_WebServer
Reference
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?(47)
What’s next?(others)
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
Chapter 1 Oscilloscope
Project 1.1 Oscilloscope
Component List
Circuit
Sketch
Sketch Oscilloscope
Chapter 2 Control 2D and 3D Figures
Project 2.1 Ellipse
Component List
Circuit
Sketch
Sketch Ellipse
Project 2.2 Box 3D
Component list
Circuit
Sketch
Sketch Box_3D
Chapter 3 Snake Game
Project 3.1 Snake Game
Component List
Circuit
Sketch
Sketch Snake_Game
Project 3.2 Snake Game 3D
Component list
Circuit
Sketch
Sketch Snake_Game_3D
Chapter 4 Pick Apples
Project 4.1 Pick Apples
Component List
Circuit
Sketch
Sketch Pick Apples
Chapter 5 Pong Game
Project 5.1 Pong Game
Component List
Circuit
Sketch
Sketch Pong_Game
Project 5.2 Pong Game 3D
Component list
Circuit
Sketch
Sketch Pong_Game_3D
Chapter 6 Tetris
Project 6.1 Tetris
Component list
Circuit
Sketch
Sketch Tetris
What’s next?
fnk0047-docs
Index
Index
B
|
C
|
F
|
R
B
built-in function
constrain()
Freenove_ESP32_WS2812()
Reset()
C
constrain()
built-in function
F
Freenove_ESP32_WS2812()
built-in function
R
Reset()
built-in function