FNK0074
C language
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
Chapter 15 Motor & Driver
Project 15.1 Control Motor with Potentiometer
Component List
Component knowledge
L293D
Circuit
Sketch
Sketch_15.1_Control_Motor_by_L293D
Chapter 16 Servo
Project 16.1 Servo Sweep
Component List
Component knowledge
Servo
Circuit
Sketch
How to install the library
Sketch_16.1_Servo_Sweep
Reference
Project 16.2 Servo Knop
Component List
Circuit
Sketch
Sketch_16.2_Control_Servo_by_Potentiometer
Chapter 17 LCD1602
Project 17.1 LCD1602
Component List
Component knowledge
I2C communication
LCD1602 communication’
Circuit
Sketch
How to install the library
Sketch_17.1_Display_the_string_on_LCD1602
Reference
Chapter 18 Ultrasonic Ranging
Project 18.1 Ultrasonic Ranging
Component List
Component Knowledge
Circuit
Sketch
Sketch_18.1_Ultrasonic_Ranging
Project 18.2 Ultrasonic Ranging
Component List and Circuit
Sketch
How to install the library
Sketch_18.2_Ultrasonic_Ranging
Reference
Chapter 19 Infrared Remote
Project 19.1 Infrared Remote Control
Component List
Component knowledge
Infrared Remote
Infrared receiver
Circuit
Sketch
How to install the library
Sketch_19.1_Infrared_Remote_Control
Reference
Project 19.2 Control LED through Infrared Remote
Component List
Circuit
Sketch
Sketch_19.2_Control_LED_through_Infrared_Remote
Chapter 20 WiFi Working Modes
Project 20.1 Station mode
Component List
Component knowledge
Station mode
Circuit
Sketch
Sketch_20.1_Station_mode
Reference
Project 20.2 AP mode
Component List & Circuit
Component knowledge
AP mode
Circuit
Sketch
Sketch_20.2_AP_mode
Reference
Project 20.3 AP+Station mode
Component List
Component knowledge
AP+Station mode
Circuit
Sketch
Sketch_20.3_AP_Station_mode
Chapter 21 TCP/IP
Project 21.1 As Client
Component List
Component knowledge
TCP connection
Install Processing
Use Server mode for communication
Circuit
Sketch
Sketch_21.1_As_Client
Reference
Project 21.2 As Server
Component List
Circuit
Sketch
Sketch_21.2_As_Server
Reference
Chapter 22 Smart home
Project 22.1 Control_LED_through_Web
Component List
Component knowledge
HTML
Circuit
Sketch
Sketch_22.1_Control_LED_through_Web
Chapter 23 Play music
Project 23.1 Play_music
Component List
Circuit
Sketch
How to install the library
Install the Arduino IDE plug-in Arduino-ESP8266Fs-Plugin
Upload music
Sketch_23.1_Play_music
What’s next?
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
Chapter 15 Motor & Driver
Project 15.1 Control Motor with Potentiometer
Component List
Component knowledge
L293D
Circuit
Code
15.1_Motor_And_Driver
Chapter 16 Servo
Project 16.1 Servo Sweep
Component List
Component knowledge
Servo
Circuit
Code
16.1_Servo_Sweep
Reference
Project 16.2 Servo Knop
Component List
Circuit
Code
16.2_Servo_Knop
Chapter 17 LCD1602
Project 17.1 LCD1602
Component List
Component knowledge
I2C communication
LCD1602 communication’
Circuit
Code
17.1_I2C_LCD1602
Reference
Chapter 18 Ultrasonic Ranging
Project Ultrasonic Ranging
Component List
Component Knowledge
Circuit
Code
18.1_Ultrasonic_Ranging
Project 18.2 Ultrasonic Ranging
Component List and Circuit
Code
18.2_Ultrasonic_Ranging
Reference
Chapter 19 Infrared Remote
Project Infrared Remote Control
Component List
Component knowledge
Infrared Remote
Infrared receiver
Circuit
Code
Infrared_Remote
Reference
Project 19.2 Control LED through Infrared Remote
Component List
Circuit
Code
19.2_Control_LED_through_Infrared_Remote
Chapter 20 WiFi Working Modes
Project 20.1 Station mode
Component List
Component knowledge
Station mode
Circuit
Code
20.1_Station_mode
Reference
Project 20.2 AP mode
Component List & Circuit
Component knowledge
AP mode
Circuit
Code
20.2_AP_mode
Reference
Project 20.3 AP+Station mode
Component List
Component knowledge
AP+Station mode
Circuit
Code
20.3_AP+STA_mode
Chapter 21 TCP/IP
Project 21.1 As Client
Component List
Component knowledge
TCP connection
Install Processing
Use Server mode for communication
Circuit
Code
21.1_TCP_as_Client
Reference
Project 21.2 As Server
Component List
Circuit
Code
21.2_TCP_as_Server
Chapter 22 Smart home
Project 22.1 Control_LED_through_Web
Component List
Component knowledge
HTML
Circuit
Code
22.1_Control_LED_through_Web
What’s next?
End of the Tutorial
fnk0074-docs
Index
Index
B
|
C
|
M
|
R
|
T
B
built-in function
constrain()
map()
Reset()
tone()
C
constrain()
built-in function
M
map()
built-in function
R
Reset()
built-in function
T
tone()
built-in function