FNK0063
C language
Welcome
Getting Started
Get Support and Offer Input
Safety and Precautions
About Freenove
Copyright
Preface
Raspberry Pi Pico
UART, I2C, SPI Default Pin
UART
I2C
SPI
Raspberry Pi Pico W
UART, I2C, SPI Default Pin
UART
I2C
SPI
Wireless
Raspberry Pi Pico 2
UART, I2C, SPI Default Pin
UART
I2C
SPI
0. Chapter Getting Ready (Important)
Programming Software
Installation of Development Board Support Package
Uploading Arduino-compatible Firmware for Pico
Paste the Sticker on the Breadboard
1. Chapter 1 LED (Important)
1.1. Project Blink
1.1.1. Component List
1.1.1.1. Power
1.1.2. Sketch
1.1.2.1. Reference
1.2. Project Blink
1.2.1. Component List
1.2.2. Component Knowledge
1.2.2.1. LED
1.2.2.2. Resistor
1.2.2.3. Breadboard
1.2.2.4. Power
1.2.3. Circuit
1.2.4. Sketch
2. Chapter Button & LED
2.1. Project Button & LED
2.1.1. Component List
2.1.2. Component Knowledge
2.1.2.1. Push button
2.1.3. Circuit
2.1.4. Sketch
2.1.4.1. Sketch_ButtonAndLed
2.1.4.2. Reference
2.2. Project MINI table lamp
2.2.1. Debounce for Push Button
2.2.2. Sketch
2.2.2.1. Sketch_TableLamp
3. Chapter LED Bar
3.1. Project Flowing Light
3.1.1. Component List
3.1.2. Component Knowledge
3.1.2.1. LED bar
3.1.3. Circuit
3.1.4. Sketch
3.1.4.1. Sketch_FlowingLight
4. Chapter Analog & PWM
4.1. Project Breathing LED
4.1.1. Component List
4.1.2. Related Knowledge
4.1.2.1. Analog & Digital
4.1.2.2. PWM
4.1.2.3. Raspberry Pi Pico and PWM
4.1.3. Circuit
4.1.4. Sketch
4.1.4.1. Sketch_BreathingLight
analogWrite()
4.2. Project Meteor Flowing Light
4.2.1. Component List
4.2.2. Circuit
4.2.3. Sketch
4.2.3.1. Sketch_FlowingLight2
map()
5. Chapter RGBLED
5.1. Project Random Color Light
5.1.1. Component List
5.1.2. Related Knowledge
5.1.3. Circuit
5.1.4. Sketch
5.1.4.1. Sketch_ColorfulLight
5.2. Project Gradient Color Light
5.2.1. Sketch
5.2.1.1. Sketch_SoftColorfulLight
6. Chapter NeoPixel
6.1. Project NeoPixel
6.1.1. Component List
6.1.2. Related Knowledge
6.1.2.1. Freenove 8 RGB LED Module
6.1.3. Circuit
6.1.4. Sketch
6.1.4.1. How to install the library
6.1.4.2. Sketch_LEDPixel
6.1.4.3. Reference
Adafruit_NeoPixel()
6.2. Project Rainbow Light
6.2.1. Sketch
6.2.1.1. Sketch_RainbowLight
7. Chapter Buzzer
7.1. Project Doorbell
7.1.1. Component List
7.1.2. Component Knowledge
7.1.2.1. Buzzer
7.1.2.2. Transistor
7.1.3. Circuit
7.1.4. Sketch
7.1.4.1. Sketch_Doorbell
7.2. Project Alertor
7.2.1. Component List
7.2.2. Circuit
7.2.3. Sketch
7.2.3.1. Sketch_Alertor
8. Chapter Serial Communication
8.1. Project Serial Print
8.1.1. Component List
8.1.2. Related Knowledge
8.1.2.1. Serial communication
8.1.2.2. Serial port on Raspberry Pi Pico
8.1.3. Circuit
8.1.4. Sketch
8.1.4.1. Sketch_SerialPrinter
8.1.4.2. Reference
8.2. Project Serial Read and Write
8.2.1. Sketch
8.2.1.1. Sketch_SerialRW
8.2.1.2. Reference
9. Chapter AD Converter
9.1. Project Read the Voltage of Potentiometer
9.1.1. Component List
9.1.2. Related Knowledge
9.1.2.1. ADC
9.1.2.2. ADC ChannelsRaspberry Pi Pico
9.1.3. Component Knowledge
9.1.3.1. Potentiometer
9.1.3.2. Rotary potentiometer
9.1.4. Circuit
9.1.5. Sketch
9.1.5.1. Sketch_ADC
9.1.5.2. Reference
10. Chapter Potentiometer & LED
10.1. Project Soft Light
10.1.1. Component List
10.1.2. Circuit
10.1.3. Sketch
10.1.3.1. Sketch_Softlight
10.2. Project Soft Colorful Light
10.2.1. Component List
10.2.2. Circuit
10.2.3. Sketch
10.2.3.1. Sketch_SoftColorfulLight
10.3. Project Soft Rainbow Light
10.3.1. Component List
10.3.2. Circuit
10.3.3. Sketch
10.3.3.1. Sketch_Soft_Rainbow_Light
11. Chapter Photoresistor & LED
11.1. Project Control LED through Photoresistor
11.1.1. Component List
11.1.2. Component Knowledge
11.1.2.1. Photoresistor
11.1.3. Circuit
11.1.4. Sketch
11.1.4.1. Sketch_Nightlamp
12. Chapter Thermistor
12.1. Project Thermometer
12.1.1. Component List
12.1.2. Component Knowledge
12.1.2.1. Thermistor
12.1.3. Circuit
12.1.4. Sketch
12.1.4.1. Sketch_Thermometer
13. Chapter 13 Joystick
13.1. Project Joystick
13.1.1. Component List
13.1.2. Component Knowledge
13.1.2.1. Joystick
13.1.3. Circuit
13.1.4. Sketch
13.1.4.1. Sketch_Joystick
14. Chapter 74HC595 & LED Bar Graph
14.1. Project Flowing Water Light
14.1.1. Component List
14.1.2. Related Knowledge
14.1.2.1. 74HC595
14.1.3. Circuit
14.1.4. Sketch
14.1.4.1. Sketch_FlowingLight2
14.1.4.2. Reference
15. Chapter 74HC595 & 7-Segment Display
15.1. Project 7-Segment Display.
15.1.1. Component List
15.1.2. Component Knowledge
15.1.2.1. 7-segment display
15.1.3. Circuit
15.1.4. Sketch
15.1.4.1. Sketch_7_Segment_Display
16. Chapter L293D & Motor
16.1. Project Control Motor with Potentiometer
16.1.1. Component List
16.1.2. Component Knowledge
16.1.2.1. L293D
16.1.3. Circuit
16.1.4. Sketch
16.1.4.1. Sketch_Control_Motor_by_L293D
17. Chapter Servo
17.1. Project Servo Sweep
17.1.1. Component List
17.1.2. Component Knowledge
17.1.2.1. Servo
17.1.3. Circuit
17.1.4. Sketch
17.1.4.1. How to install the library
17.1.4.2. Sketch_Servo_Sweep
17.1.4.3. Reference
17.2. Project Servo Knob
17.2.1. Component List
17.2.2. Circuit
17.2.3. Sketch
17.2.3.1. Sketch_17.2_Control_Servo_by_Potentiometer
18. Chapter LCD1602
18.1. Project LCD1602
18.1.1. Component List
18.1.2. Component Knowledge
18.1.2.1. I2C communication
18.1.2.2. LCD1602 communication
18.1.3. Circuit
18.1.4. Sketch
18.1.4.1. How to install the library
18.1.4.2. Sketch_Display_the_string_on_LCD1602
18.1.4.3. Reference
19. Chapter Ultrasonic Ranging
19.1. Project Ultrasonic Ranging
19.1.1. Component List
19.1.2. Component Knowledge
19.1.3. Circuit
19.1.4. Sketch
19.1.4.1. Sketch_Ultrasonic_Ranging
19.2. Project Ultrasonic Ranging
19.2.1. Component List and Circuit
19.2.2. Sketch
19.2.2.1. How to install the library
19.2.2.2. Sketch_19.2_Ultrasonic_Ranging
19.2.2.3. Reference
20. Chapter Infrared Remote
20.1. Project Infrared Remote Control
20.1.1. Component List
20.1.2. Component Knowledge
20.1.2.1. Infrared Remote
20.1.2.2. Infrared receiver
20.1.3. Circuit
20.1.4. Sketch
20.1.4.1. Sketch_Infrared_Remote_Control
20.1.4.2. IR.cpp
20.2. Project Control LED through Infrared Remote
20.2.1. Component List
20.2.2. Circuit
20.2.3. Sketch
20.2.3.1. Sketch_20.2_Control_LED_through_Infrared_Remote
21. Chapter WiFi Working Modes (Only for Pico W)
21.1. Project Station mode
21.1.1. Component List
21.1.2. Component knowledge
21.1.2.1. Wireless
21.1.2.2. Station mode
21.1.3. Circuit
21.1.4. Sketch
21.1.4.1. Sketch_21.1_Station_mode
21.2. Project AP mode
21.2.1. Component List & Circuit
21.2.2. Component knowledge
21.2.2.1. AP mode
21.2.3. Circuit
21.2.4. Sketch
21.2.4.1. Sketch_AP_mode
21.2.4.2. Reference
21.3. Project AP+Station mode
21.3.1. Component List & Circuit
21.3.2. Component knowledge
21.3.2.1. AP+Station mode
21.3.3. Circuit
21.3.4. Sketch
21.3.4.1. Sketch_AP_Station_mode
22. Chapter TCP/IP (Only for Pico W)
22.1. Project as Client
22.1.1. Component List
22.1.2. Component knowledge
22.1.2.1. TCP connection
22.1.2.2. Install Processing
22.1.2.3. Use Server mode for communication
22.1.3. Circuit
22.1.4. Sketch
22.1.4.1. Sketch_As_Client
22.1.4.2. Reference
22.2. Project as Server
22.2.1. Component List
22.2.2. Circuit
22.2.3. Sketch
22.2.3.1. Sketch_As_Server
22.2.3.2. Reference
23. Chapter Control LED with Web (Only for Pico W)
23.1. Project Control the LED with Web
23.1.1. Component List
23.1.2. Component knowledge
23.1.2.1. HTML
23.1.3. Circuit
23.1.4. Sketch
23.1.4.1. Sketch_Control_the_LED_with_Web
24. Chapter Bluetooth (Only for Pico W)
24.1. Project Bluetooth Passthrough
24.1.1. Component List
24.1.2. Component knowledge
24.1.2.1. Master mode
24.1.2.2. Slave mode
24.1.3. Circuit
24.1.4. Sketch
24.1.4.1. Sketch_Serial_BT
24.1.4.2. Reference
24.2. Project Bluetooth Low Energy Data Passthrough
24.2.1. Component List
24.2.2. Circuit
24.2.3. Sketch
24.2.3.1. Sketch_Serial_BT
24.2.3.2. Serial Bluetooth
24.2.3.3. LightBlue
24.3. Project Bluetooth Control LED
24.3.1. Component List
24.3.2. Circuit
24.3.3. Sketch
24.3.3.1. Sketch_LEDControl_BT
24.3.3.2. Reference
24.4. Project Bluetooth Low Energy Control LED
24.4.1. Component List
24.4.2. Circuit
24.4.3. Sketch
24.4.3.1. Sketch_LEDControl_BLE
What’s Next?
Python language
Welcome
Getting Started
Get Support and Offer Input
Safety and Precautions
About Freenove
Copyright
Preface
Raspberry Pi Pico
UART, I2C, SPI Default Pin
UART
I2C
SPI
Raspberry Pi Pico W
UART, I2C, SPI Default Pin
UART
I2C
SPI
Wireless
Raspberry Pi Pico 2
UART, I2C, SPI Default Pin
UART
I2C
SPI
0. Chapter Getting Ready (Important)
0.1 Installing Thonny (Important)
Downloading Thonny
Installing on Windows
0.2 Basic Configuration of Thonny
0.3 Burning Micropython Firmware (Important)
Downloading Micropython Firmware
Option 1
Option 2
Burning a Micropython Firmware
0.4 Thonny Connected to Raspberry Pi Pico
0.5 Testing codes (Important)
Running Online
Operation
Exiting Running Online
Running Offline
Operation
Exiting Offline Running
0.6 Thonny Common Operation
Uploading Code to Raspberry Pi Pico
Downloading Code to Computer
Deleting Files from your Computer Directory
Creating and Saving the code
0.7 Paste the Sticker on the Breadboard
1. Chapter 1 LED (Important)
1.1. Project Blink
1.1.1. Component List
1.1.1.1. Power
1.1.2. Code
1.1.2.1. 01.1_Blink
1.1.2.2. Uploading code to Raspberry Pi Pico
1.1.2.3. How to import python files
1.1.2.4. Reference
1.2. Project Blink
1.2.1. Component List
1.2.2. Component List
1.2.3. Component Knowledge
1.2.3.1. LED
1.2.3.2. Resistor
1.2.3.3. Breadboard
1.2.3.4. Power
1.2.4. Circuit
1.2.5. Code
1.2.5.1. 01.2_Blink
1.2.5.2. Uploading code to Raspberry Pi Pico
2. Chapter Button & LED
2.1. Project Button & LED
2.1.1. Component List
2.1.2. Component Knowledge
2.1.2.1. Push button
2.1.3. Circuit
2.1.4. Code
2.1.4.1. ButtonAndLed
2.2. Project MINI table lamp
2.2.1. Debounce for Push Button
2.2.2. Code
2.2.2.1. Tablelamp
3. Chapter LED Bar
3.1. Project Flowing Light
3.1.1. Component List
3.1.2. Component Knowledge
3.1.2.1. LED bar
3.1.3. Circuit
3.1.4. Code
3.1.4.1. FlowingLight
3.1.4.2. Reference
for()
4. Chapter Analog & PWM
4.1. Project Breathing LED
4.1.1. Component List
4.1.2. Related Knowledge
4.1.2.1. Analog & Digital
4.1.2.2. PWM
4.1.2.3. Raspberry Pi Pico and PWM
4.1.3. Circuit
4.1.4. Code
4.1.4.1. BreatheLight
4.1.4.2. Reference
4.2. Project Meteor Flowing Light
4.2.1. Component List
4.2.2. Circuit
4.2.3. Code
4.2.3.1. 04.2_FlowingLight
4.3. How to import a custom python module
4.3.1. Code
5. Chapter RGBLED
5.1. Project Random Color Light
5.1.1. Component List
5.1.2. Related Knowledge
5.1.3. Circuit
5.1.4. Sketch
5.1.4.1. RandomColorLight
5.1.4.2. Reference
5.2. Project Gradient Color Light
5.2.1. Code
5.2.1.1. 05.2_GradientColorLight
6. Chapter NeoPixel
6.1. Project NeoPixel
6.1.1. Component List
6.1.2. Related Knowledge
6.1.2.1. Freenove 8 RGB LED Module
6.1.3. Circuit
6.1.4. Code
6.1.4.1. 06.1_Neopixel
6.1.4.2. Reference
6.2. Project Rainbow Light
6.2.1. Code
6.2.1.1. Rainbow_light
7. Chapter Buzzer
7.1. Project Doorbell
7.1.1. Component List
7.1.2. Component Knowledge
7.1.2.1. Buzzer
7.1.2.2. Transistor
7.1.3. Circuit
7.1.4. Code
7.1.4.1. Doorbell
7.2. Project Alertor
7.2.1. Component List
7.2.2. Circuit
7.2.3. Code
7.2.3.1. Alertor
8. Chapter Serial Communication
8.1. Project Serial Print
8.1.1. Component List
8.1.2. Related Knowledge
8.1.2.1. Serial communication
8.1.2.2. Serial port on Raspberry Pi Pico
8.1.3. Circuit
8.1.4. Code
8.1.4.1. Serial_Print
8.2. Project Serial Read and Write
8.2.1. Component List
8.2.2. Circuit
8.2.3. Code
8.2.3.1. Serial_Read_and_Write_UART1_to_UART0
9. Chapter AD Converter
9.1. Project Read the Voltage of Potentiometer
9.1.1. Component List
9.1.2. Related Knowledge
9.1.2.1. ADC
9.1.2.2. ADC ChannelsRaspberry Pi Pico
9.1.3. Component Knowledge
9.1.3.1. Potentiometer
9.1.3.2. Rotary potentiometer
9.1.4. Circuit
9.1.5. Code
9.1.5.1. 09.1_AnalogRead
9.1.5.2. Reference
10. Chapter Potentiometer & LED
10.1. Project Soft Light
10.1.1. Component List
10.1.2. Circuit
10.1.3. Code
10.1.3.1. Soft_LED
10.2. Project Soft Colorful Light
10.2.1. Component List
10.2.2. Circuit
10.2.3. Code
10.2.3.1. Soft_Colorful_Light
10.3. Project Soft Rainbow Light
10.3.1. Component List
10.3.2. Circuit
10.3.3. Code
10.3.3.1. Soft_Rainbow_Light
10.4. Project Soft Colorful Light
10.4.1. Component List
10.4.2. Circuit
10.4.3. Code
10.4.3.1. Soft_Colorful_Light
10.5. Project Soft Rainbow Light
10.5.1. Component List
10.5.2. Circuit
10.5.3. Code
10.5.3.1. Soft_Rainbow_Light
11. Chapter Photoresistor & LED
11.1. Project Control LED through Photoresistor
11.1.1. Component List
11.1.2. Component Knowledge
11.1.2.1. Photoresistor
11.1.3. Circuit
11.1.4. Code
11.1.4.1. Photoresistor
12. Chapter Thermistor
12.1. Project Thermometer
12.1.1. Component List
12.1.2. Component Knowledge
12.1.2.1. Thermistor
12.1.3. Circuit
12.1.4. Code
12.1.4.1. Thermometer
13. Chapter 13 Joystick
13.1. Project Joystick
13.1.1. Component List
13.1.2. Component Knowledge
13.1.2.1. Joystick
13.1.3. Circuit
13.1.4. Code
13.1.4.1. Joystick
14. Chapter 74HC595 & LED Bar Graph
14.1. Project Flowing Water Light
14.1.1. Component List
14.1.2. Related Knowledge
14.1.2.1. 74HC595
14.1.3. Circuit
14.1.4. Code
14.1.4.1. Flowing_Water_Light
14.1.4.2. Reference
15. Chapter 74HC595 & 7-Segment Display
15.1. Project 7-Segment Display.
15.1.1. Component List
15.1.2. Component Knowledge
15.1.2.1. 7-segment display
15.1.3. Circuit
15.1.4. Code
15.1.4.1. 74HC595_and_7_segment_display
16. Chapter L293D & Motor
16.1. Project Control Motor with Potentiometer
16.1.1. Component List
16.1.2. Component Knowledge
16.1.2.1. L293D
16.1.3. Circuit
16.1.4. Code
16.1.4.1. Motor_And_Driver
17. Chapter Servo
17.1. Project Servo Sweep
17.1.1. Component List
17.1.2. Component Knowledge
17.1.2.1. Servo
17.1.3. Circuit
17.1.4. Code
17.1.4.1. Servo_Sweep
17.1.4.2. Reference
17.2. Project Servo Knob
17.2.1. Component List
17.2.2. Circuit
17.2.3. Code
17.2.3.1. Servo_Knob
18. Chapter LCD1602
18.1. Project LCD1602
18.1.1. Component List
18.1.2. Component Knowledge
18.1.2.1. I2C communication
18.1.2.2. LCD1602 communication
18.1.3. Circuit
18.1.4. Code
18.1.4.1. I2C_LCD1602
18.1.4.2. Reference
19. Chapter Ultrasonic Ranging
19.1. Project Ultrasonic Ranging
19.1.1. Component List
19.1.2. Component Knowledge
19.1.3. Circuit
19.1.4. Code
19.1.4.1. Ultrasonic_Ranging
19.2. Project Ultrasonic Ranging
19.2.1. Component List and Circuit
19.2.2. Code
19.2.2.1. Ultrasonic_Ranging
19.2.2.2. Reference
20. Chapter Infrared Remote
20.1. Project Infrared Remote Control
20.1.1. Component List
20.1.2. Component Knowledge
20.1.2.1. Infrared Remote
20.1.2.2. Infrared receiver
20.1.3. Circuit
20.1.4. Code
20.1.4.1. Infrared_Remote
20.1.4.2. Reference
20.2. Project Control LED through Infrared Remote
20.2.1. Component List
20.2.2. Circuit
20.2.3. Code
20.2.3.1. Control_LED_through_Infrared_Remote
21. Chapter WiFi Working Modes (Only for Pico W)
21.1. Project Station mode
21.1.1. Component List
21.1.2. Component knowledge
21.1.2.1. Wireless
21.1.2.2. Station mode
21.1.3. Circuit
21.1.4. Code
21.1.4.1. Station_mode
21.1.4.2. Reference
21.2. Project AP mode
21.2.1. Component List & Circuit
21.2.2. Component knowledge
21.2.2.1. AP mode
21.2.3. Circuit
21.2.4. Code
21.2.4.1. AP_mode
21.2.4.2. Reference
21.3. Project AP+Station mode
21.3.1. Component List & Circuit
21.3.2. Component knowledge
21.3.2.1. AP+Station mode
21.3.3. Circuit
21.3.4. Code
21.3.4.1. 21.3_AP+STA_mode
22. Chapter TCP/IP (Only for Pico W)
22.1. Project as Client
22.1.1. Component List
22.1.2. Component knowledge
22.1.2.1. TCP connection
22.1.2.2. Install Processing
22.1.2.3. Use Server mode for communication
22.1.3. Circuit
22.1.4. Code
22.1.4.1. TCP_as_Client
22.1.4.2. Reference
22.2. Project as Server
22.2.1. Component List
22.2.2. Circuit
22.2.3. Code
22.3. Project as Server
22.3.1. Component List
22.3.2. Circuit
22.3.3. Sketch
22.3.3.1. 22.2_TCP_as_Server
23. Chapter Control LED with Web (Only for Pico W)
23.1. Project Control the LED with Web
23.1.1. Component List
23.1.2. Component knowledge
23.1.2.1. HTML
23.1.3. Circuit
23.1.4. Code
23.1.4.1. Control_LED_through_Web
24. Chapter Bluetooth (Only for Pico W)
24.1. Project Bluetooth Passthrough
24.1.1. Component List
24.1.2. Component knowledge
24.1.2.1. Master mode
24.1.2.2. Slave mode
24.1.3. Circuit
24.1.4. Code
24.1.4.1. 24.1_BLE
24.2. Project Bluetooth Control LED
24.2.1. Component List
24.3. Project Bluetooth Control LED
24.3.1. Component List
24.3.2. Circuit
24.3.3. Code
24.3.3.1. BLE_LED
What’s Next?
Processing language
Welcome
Getting Started
Get Support and Offer Input
Safety and Precautions
About Freenove
Copyright
Prepare
Processing Software
First Use
Communication protocol
1. Chapter Oscilloscope
1.1. Project Oscilloscope
1.1.1. Component List
1.1.2. Circuit
1.1.3. Circuit
1.1.4. Sketch
1.1.4.1. Sketch Oscilloscope
2. Chapter Control 2D and 3D Figures
2.1. Project Ellipse
2.1.1. Component List
2.1.2. Circuit
2.1.3. Sketch
2.1.3.1. Sketch Ellipse
2.2. Project Box 3D
2.2.1. Component list
2.2.2. Circuit
2.2.3. Sketch
3. Chapter Snake Game
3.1. Project Snake Game
3.1.1. Component List
3.1.2. Circuit
3.1.3. Sketch
3.1.3.1. Sketch Snake_Game
3.2. Project Snake Game 3D
3.2.1. Component List
3.2.2. Circuit
3.2.3. Sketch
3.2.3.1. Sketch Snake_Game_3D
4. Chapter Pick Apples
4.1. Project Pick Apples
4.1.1. Component List
4.1.2. Circuit
4.1.3. Sketch
4.1.3.1. Sketch Pick Apples
5. Chapter Pong Game
5.1. Project Pong Game
5.1.1. Circuit
5.1.2. Sketch
5.1.2.1. Sketch Pong_Game
5.2. Project Pong Game 3D
5.2.1. Component List
5.2.2. Circuit
5.2.3. Sketch
5.2.4. Sketch Pong_Game_3D
6. Chapter Tetris
6.1. Project Tetris
6.1.1. Component List
6.1.2. Circuit
6.1.3. Sketch
6.1.3.1. Sketch Tetris
What’s Next?
Product Certification
fnk0063-docs
Index
Index
A
|
B
|
F
|
M
A
Adafruit_NeoPixel()
built-in function
analogWrite()
built-in function
B
built-in function
Adafruit_NeoPixel()
analogWrite()
for()
map()
F
for()
built-in function
M
map()
built-in function