FNK0075
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 Buzzer
Project Doorbell
Component List
Component knowledge
Buzzer
Transistor
Circuit
Sketch
Sketch_06.1_Doorbell
Project 7.2 Alertor
Sketch
Sketch_06.2_Alertor
Reference
tone()
Chapter 7 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_07.2_SerialRW
Reference
Chapter 8 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_08.1_ADC
Chapter 9 Potentiometer & LED
Project Soft Light
Component List
Circuit
Sketch
Sketch_09.1_Softlight
Project Color Light
Component List
Circuit
Sketch
Chapter 10 Photoresistor & LED
Project 10.1 NightLamp
Component List
Component knowledge
Photoresistor
Circuit
Sketch
Sketch_10.1_Nightlamp
Reference
constrain()
Chapter 11 Thermistor
Project 11.1 Thermometer
Component List
Component knowledge
Thermistor
Circuit
Circuit
Sketch
Sketch_11.1_Thermometer
Chapter 12 WiFi Working Modes
Project 12.1 Station mode
Component List
Component knowledge
Station mode
Circuit
Sketch
Sketch_12.1_Station_mode
Reference
Project 12.2 AP mode
Component List & Circuit
Component knowledge
AP mode
Circuit
Sketch
Sketch_12.2_AP_mode
Reference
Project 12.3 AP+Station mode
Component List
Component knowledge
AP+Station mode
Circuit
Sketch
Sketch_12.3_AP_Station_mode
Chapter 13 TCP/IP
Project 13.1 As Client
Component List
Component knowledge
TCP connection
Install Processing
Use Server mode for communication
Circuit
Sketch
Sketch_13.1_As_Client
Reference
Project 29.2 As Server
Component List
Circuit
Sketch
Sketch_29.2_As_Server
Reference
Chapter 14 Smart home
Project 14.1 Control_LED_through_Web
Component List
Component knowledge
HTML
Circuit
Sketch
Sketch_14.1_Control_LED_through_Web
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 7 Buzzer
Project 7.1 Doorbell
Component List
Component knowledge
Buzzer
Transistor
Circuit
Code
06.1_Doorbell
Project 7.2 Alertor
Code
06.2_Alertor
Chapter 8 Serial Communication
Project 8.1 Serial Print
Component List
Related knowledge
Serial communication
Serial port on ESP8266
Circuit
Code
07.1_Serial_Print
Reference
Project 8.2 Serial Read and Write
Code
07.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
08.1_AnalogRead
Chapter 10 Potentiometer & LED
Project 09.1 Soft Light
Component List
Circuit
Code
09.1_Soft_LED
Project 09.2 Color Light
Component List
Circuit
Code
09.2_Color_Light
Chapter 11 Photoresistor & LED
Project 10.1 NightLamp
Component List
Component knowledge
Photoresistor
Circuit
Sketch
10.1_Nightlamp
Chapter 12 Thermistor
Project 11.1 Thermometer
Component List
Component knowledge
11.1_Thermistor
Circuit
Circuit
Code
Thermometer
Chapter 28 WiFi Working Modes
Project 12.1 Station mode
Component List
Component knowledge
Station mode
Circuit
Code
12.1_Station_mode
Reference
Project 12.2 AP mode
Component List & Circuit
Component knowledge
AP mode
Circuit
Code
12.2_AP_mode
Reference
Project 12.3 AP+Station mode
Component List
Component knowledge
AP+Station mode
Circuit
Code
12.3_AP+STA_mode
Chapter 29 TCP/IP
Project 13.1 As Client
Component List
Component knowledge
TCP connection
Install Processing
Use Server mode for communication
Circuit
Code
13.1_TCP_as_Client
Reference
Project 29.2 As Server
Component List
Circuit
Code
29.2_TCP_as_Server
Chapter 30 Smart home
Project 14.1 Control_LED_through_Web
Component List
Component knowledge
HTML
Circuit
Code
14.1_Control_LED_through_Web
What’s next?
End of the Tutorial
fnk0075-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