Logo

FNk0054

  • C & Python language
    • Getting Started
      • Getting Started
      • Get Support and Offer Input
      • Safety and Precautions
      • Car and Robot for Raspberry Pi
      • About Freenove
      • Copyright
    • Preface
    • Raspberry Pi
      • Raspberry Pi Introduction
    • Installing an Operating System
      • Component List
        • Required Components
      • Optional Components
        • Required Accessories for Monitor
        • Required Accessories for Remote Desktop
      • Raspberry Pi OS
        • Automatically Method
        • Manually Method
          • Write System to Micro SD Card
        • Enable ssh and configure WiFi
        • Insert SD card
      • Getting Started with Raspberry Pi
        • Monitor desktop
        • Set Resolution
        • Remote desktop & VNC
          • MAC OS Remote Desktop
          • Windows OS Remote Desktop
          • VNC Viewer & VNC
            • Enable VNC
    • Chapter 0 Preparation
      • Linux Command
        • Shortcut Key
      • Install WiringPi
        • WiringPi Installation Steps
      • Obtain the Project Code
      • Python2 & Python3
      • Projects Board for Raspberry Pi
      • Assembly
    • Chapter 1 LED
      • Project 1.1 Blink
        • GPIO
          • BCM GPIO Numbering
          • PHYSICAL Numbering
          • WiringPi GPIO Numbering
        • Component List
        • Circuit
        • Component knowledge
          • LED
          • Resistor
        • Code
          • C Code 1.1 Blink
          • Python Code 1.1 Blink
            • gpiozero.LED()
            • LED()
            • led.on()
            • led.off()
            • led.close()
    • Chapter 2 FlowingLight
      • Project 2.1 Flowing Water Light
        • Component List
        • Circuit
        • Code
          • C Code 2.1 LightWater
          • Python Code 2.1 LightWater
    • Chapter 3 Buttons & LEDs
      • Project 3.1 Push Button Switch & LED
        • Component knowledge
          • Push Button Switch
        • Component List
        • Circuit
        • Code
          • C Code 3.1 ButtonLED
            • Reference
          • Python Code 3.1 ButtonLED
    • Chapter 4 Analog & PWM
      • Project 4.1 Breathing LED
        • Component Knowledge
          • Analog & Digital
          • PWM
        • Component List
        • Circuit
        • Code
          • C Code 4.1 BreathingLED
          • Python Code 4.1 BreathingLED
            • gpiozeri.PWMLED()
            • led.value()
            • led.close()
    • Chapter 5 RGB LED
      • Project 5.1 RainbowLED
        • Component List
        • Circuit
        • Code
          • C Code 5.1 RainbowLED
          • Python Code 5.1 RainbowLED
            • random.randint()
    • Chapter 6 Buzzer
      • Project 6.1 Doorbell
        • Component knowledge
          • Buzzer
          • Transistors
        • Component List
        • Circuit
        • Code
          • C Code 6.1 Doorbell
          • Python Code 6.1 Doorbell
      • Project 6.2 Alertor
        • Component List
        • Circuit
        • Code
          • C Code 6.2 Alertor
          • Python Code 6.2 Alertor
    • Chapter 7 (Important) Chapter ADC
      • Project 7.1 Read the Voltage of Potentiometer
        • Circuit knowledge
          • ADC
          • DAC
        • Component knowledge
          • Potentiometer
          • Rotary potentiometer
          • ADS7830
          • I2C communication
        • Component List
        • Circuit
        • Configure I2C and Install Smbus
          • Enable I2C
          • Install I2C-Tools
        • Code
          • C Code 7.1 ADC
            • Reference
          • Python Code 7.1 ADC
            • Reference
      • Project 7.2 Soft Light
        • Component List
        • Circuit
        • Code
          • C Code 7.2 Softlight
          • Python Code 7.2 Softlight
      • Project 7.3 Colorful Light
        • Component List
        • Circuit
        • Code
          • C Code 7.3 Colorful Softlight
          • Python Code 7.3 ColorfulSoftlight
    • Chapter 8 Photoresistor & LED
      • Project 8.1 NightLamp
        • Component List
        • Circuit
        • Code
          • C Code 8.1 Nightlamp
          • Python Code 8.1 Nightlamp
    • Chapter 9 Thermistor
      • Project 9.1 Thermometer
        • Component knowledge
          • Thermistor
        • Component List
        • Circuit
        • Code
          • C Code 9.1 Thermometer
          • Python Code 9.1 Thermometer
    • Chapter 10 Joystick
      • Project 10.1 Joystick
        • Component knowledge
          • Joystick
        • Component List
        • Circuit
        • Code
          • C Code 10.1 Joystick
          • Python Code 10.1 Joystick
    • Chapter 11 Motor & Driver
      • Project 11.1 Control a DC Motor with a Potentiometer
        • Component knowledge
          • DC Motor
        • Component List
        • Circuit
        • Code
          • C Code 11.1 Motor
          • Python Code 11.1 Motor
    • Chapter 12 Relay & LED
      • Project 12.1 Relay & LED
        • Component knowledge
          • Relay
          • Inductor
        • Component List
        • Circuit
        • Code
          • C Code 12.1 Relay
          • Python Code 12.1 Relay
    • Chapter 13 Servo
      • Project 13.1 Sweep
        • Component knowledge
          • Servo
        • Component List
        • Circuit
        • Code
          • C Code 13.1 Sweep
          • Python Code 13.1 Sweep
      • Project 13.2 Knob
        • Component List
        • Circuit
        • Code
          • C Code 13.2 Knob
          • Python Code 13.2 Knob
    • Chapter 14 Stepper Motor
      • Project 14.1 Stepper Motor
        • Component knowledge
          • Stepper Motor
          • ULN2003 Stepper Motor driver
        • Component List
        • Circuit
        • Code
          • C Code 14.1 SteppingMotor
          • Python Code 14.1 SteppingMotor
    • Chapter 15 LEDpixel
      • Project 15.1 LEDpixel
        • Component knowledge
          • Freenove 8 RGB LED Module
        • Component List
        • Circuit
        • Code
          • C Code Ledpixel
          • Python Code Ledpixel
      • Project 15.2 Rainbow Light
        • Component List
        • Circuit
        • Code
          • C Code Rainbow Light
          • Python Code Rainbow Light
      • Project 15.3 SpiLEDpixel
        • Component knowledge
          • Freenove 8 RGB LED Module
        • Circuit
        • Additional supplement
        • Code
          • C Code SpiLedpixel
          • Python Code SpiLedpixel
    • Chapter 16 74HC595 & Bar Graph LED
      • Project 16.1 Flowing Water Light
        • Component knowledge
          • Bar Graph LED
          • 74HC595
        • Component List
        • Circuit
        • Code
          • C Code LightWater02
          • Python Code LightWater02
    • Chapter 17 74HC595 & 4-Digit 7-Segment Display
      • Project 17.1 4-Digit 7-Segment Display
        • Component List
        • Circuit
        • Component knowledge
          • 4 Digit 7-Segment Display
        • Code
          • C Code SevenSegmentDisplay
          • Python Code SevenSegmentDisplay
      • Project 4-Digit 7-Segment Display
        • Component List
        • Circuit
        • Code
          • C Code 17.2 StopWatch
          • Python Code 17.2 StopWatch
    • Chapter 18 74HC595 & LED Matrix
      • Project 18.1 LED Matrix
        • Component knowledge
          • LED matrix
        • Component List
        • Circuit
        • Code
          • C Code LEDMatrix
          • Python Code LEDMatrix
    • Chapter 19 LCD1602
      • Project 19.1 I2C LCD1602
        • Component List
        • Circuit
        • Code
          • C Code 19.1 I2CLCD1602
            • lcdPutchar()
            • lcdPuts()
            • lcdPrintf()
          • Python Code I2CLCD1602
    • Chapter 20 Hygrothermograph DHT11
      • Project 20.1 Hygrothermograph
        • Component knowledge
        • Component List
        • Circuit
        • Code
          • C Code DHT11
          • Python Code 20.1 DHT11
    • Chapter 21 Matrix Keypad
      • Project 21.1 Matrix Keypad
        • Component knowledge
          • 4x4 Matrix Keypad
        • Component List
        • Circuit
        • Code
          • C Code 21.1 MatrixKeypad
          • Python Code 21.1 MatrixKeypad
    • Chapter 22 Infrared Motion Sensor
      • Project 22.1 PIR Infrared Motion Detector with LED Indicator
        • Component Knowledge
        • Component List
        • Circuit
        • Code
          • C Code SenseLED
          • Python Code 22.1 SenseLED
    • Chapter 23 Ultrasonic Ranging
      • Project 23.1 Ultrasonic Ranging
        • Component Knowledge
        • Component List
        • Circuit
        • Code
          • C Code UltrasonicRanging
          • Python Code UltrasonicRanging
    • Chapter 24 Attitude Sensor MPU6050
      • Project 24.1 Read an MPU6050 Sensor Module
        • Component knowledge
          • MPU6050
        • Component List
        • Circuit
        • Code
          • C Code MPU6050RAW
          • Python Code 24.1 MPU6050RAW
    • Chapter 25 RFID
      • Project 25.1 RFID
        • Component Knowledge
          • RFID
          • MFRC522
          • Mifare1 S50 Card
        • Component List
        • Circuit
        • Configure SPI
          • Enable SPI
        • Code
          • C Code RFID
          • Python Code 25.1 RFID
    • What’s Next?
  • Pi4j language
    • Getting Started
      • Getting Started
      • Get Support and Offer Input
      • Safety and Precautions
      • Car and Robot for Raspberry Pi
      • About Freenove
      • Copyright
    • Preface
    • Raspberry Pi
      • Raspberry Pi Introduction
    • Installing an Operating System
      • Component List
        • Required Components
      • Optional Components
        • Required Accessories for Monitor
        • Required Accessories for Remote Desktop
      • Raspberry Pi OS
        • Automatically Method
        • Manually Method
          • Write System to Micro SD Card
        • Enable ssh and configure WiFi
        • Insert SD card
      • Getting Started with Raspberry Pi
        • Monitor desktop
        • Set Resolution
        • Remote desktop & VNC
          • MAC OS Remote Desktop
          • Windows OS Remote Desktop
          • VNC Viewer & VNC
            • Enable VNC
    • Chapter 0 Preparation
      • Download Code
      • Installation of JBang
      • Installation of Geany
      • Geany Configuration
      • Projects Board for Raspberry Pi
    • Chapter 1 LED
      • Project Blink
        • GPIO
          • BCM GPIO Numbering
        • Component List
        • Circuit
        • Component knowledge
          • LED
          • Resistor
        • Sketch
          • Sketch_01_Blink
    • Chapter 2 Flowing Light
      • Project Flowing Water Light
        • Component List
        • Circuit
        • Sketch
          • Sketch_02_FlowingLight
    • Chapter 3 Buttons & LEDs
      • Project Push Button Switch & LED
        • Component knowledge
          • Push Button Switch
        • Component List
        • Circuit
        • Sketch
          • Sketch_03_ButtonLED
    • Chapter 4 Analog & PWM
      • Project Breathing LED
        • Component Knowledge
          • Analog & Digital
          • PWM
        • Component List
        • Circuit
        • Sketch
          • Sketch_04_BreathingLED
    • Chapter 5 RGB LED
      • Project 5.1 RainbowLED
        • Component List
        • Circuit
        • Sketch
          • Sketch_05_RainbowLED
    • Chapter 6 Buzzer
      • Project 6.1 Doorbell
        • Component knowledge
          • Buzzer
          • Transistors
        • Component List
        • Circuit
        • Sketch
          • Sketch_06_1_Doorbell
      • Project 6.2 Alertor
        • Component List
        • Circuit
        • Sketch
          • Sketch_06_2_Alertor
    • Chapter 7 (Important) Chapter ADC
      • Project 7.1 Read the Voltage of Potentiometer
        • Circuit knowledge
          • ADC
          • DAC
        • Component knowledge
          • Potentiometer
          • Rotary potentiometer
          • ADS7830
          • I2C communication
        • Component List
        • Circuit
        • Configure I2C and Install Smbus
          • Enable I2C
          • Install I2C-Tools
        • Sketch
          • Sketch_07_1_ADC
      • Project 7.2 Soft Light
        • Component List
        • Circuit
        • Sketch
          • Sketch_07_2_Softlight
      • Project 7.3 Colorful Light
        • Component List
        • Circuit
        • Sketch
          • Sketch_07_3_ColorfulSoftlight
    • Chapter 8 Photoresistor & LED
      • Project 8.1 NightLamp
        • Component List
        • Circuit
        • Sketch
          • Sketch_08_Nightlamp
    • Chapter 9 Thermistor
      • Project 9.1 Thermometer
        • Component knowledge
          • Thermistor
        • Component List
        • Circuit
        • Sketch
          • Sketch_09_Thermometer
    • Chapter 10 Joystick
      • Project 10.1 Joystick
        • Component knowledge
          • Joystick
        • Component List
        • Circuit
        • Sketch
          • Sketch_10_Joystick
    • Chapter 11 Motor & Driver
      • Project 11.1 Control a DC Motor with a Potentiometer
        • Component knowledge
          • DC Motor
          • L293D
        • Component List
        • Circuit
        • Sketch
          • Sketch_11_Motor
    • Chapter 12 Relay & LED
      • Project 12.1 Relay & LED
        • Component knowledge
          • Relay
          • Inductor
        • Component List
        • Circuit
        • Sketch
          • Sketch_12_Relay
    • Chapter 13 Servo
      • Project Sweep
        • Component knowledge
          • Servo
        • Component List
        • Circuit
        • Sketch
          • Sketch_13_1_Sweep
      • Project Knob
        • Component List
        • Circuit
        • Sketch
          • Sketch_13_2_Knob
    • Chapter 14 Stepper Motor
      • Project Stepper Motor
        • Component knowledge
          • Stepper Motor
          • ULN2003 Stepper Motor driver
        • Component List
        • Circuit
        • Sketch
          • Sketch_14_SteppingMotor
    • Chapter 15 74HC595 & Bar Graph LED
      • Project 15.1 Flowing Water Light
        • Component knowledge
          • Bar Graph LED
          • 74HC595
        • Component List
        • Circuit
        • Sketch
          • Sketch_15_FlowingLight02
    • Chapter 1674HC595 & 4-Digit 7-Segment Display
      • Project 4-Digit 7-Segment Display
        • Component knowledge
          • 4 Digit 7-Segment Display
        • Component List
        • Circuit
        • Sketch
          • Sketch_16_1_SevenSegmentDisplay
      • Project 4-Digit 7-Segment Display
        • Component List
        • Circuit
        • Sketch
          • Sketch_16_2_StopWatch
    • Chapter 17 74HC595 & LED Matrix
      • Project 17.1 LED Matrix
        • Component knowledge
          • LED matrix
        • Component List
        • Circuit
        • Sketch
          • Sketch_17_LEDMatrix
    • Chapter 18_LEDMatrixLCD1602
      • Project 18.1 I2C LCD1602
        • Component List
        • Circuit
        • Sketch
          • Sketch_18_I2CLCD1602
    • Chapter 19 Hygrothermograph DHT11
      • Project 19.1 Hygrothermograph
        • Component knowledge
        • Component List
        • Circuit
        • Sketch
          • Configure the config.txt file
          • Sketch_19_DHT11
    • Chapter 20 Matrix Keypad
      • Project 20.1Matrix Keypad
        • Component knowledge
          • 4x4 Matrix Keypad
        • Component List
        • Circuit
        • Sketch
          • Sketch_20_MatrixKeypad
    • Chapter 21 Infrared Motion Sensor
      • Project 21.1 PIR Infrared Motion Detector with LED Indicator
        • Component Knowledge
        • Component List
        • Circuit
        • Sketch
          • Sketch_21_1_InfraredSensor
    • Chapter 22 Ultrasonic Ranging
      • Project 22.1 Ultrasonic Ranging
        • Component Knowledge
        • Component List
        • Circuit
        • Sketch
          • Sketch_22_UltrasonicRanging
    • Chapter 23 Attitude Sensor MPU6050
      • Project 23.1 Read an MPU6050 Sensor Module
        • Component knowledge
          • MPU6050
        • Component List
        • Circuit
        • Sketch
          • Sketch_23_MPU6050
    • What’s Next?
  • Processing language
    • Getting Started
      • Get Support and Offer Input
      • Safety and Precautions
      • About Freenove
      • Copyright
    • Chapter 0 Processing
      • Download Code
      • Installing Processing Software
      • First Use
      • Installing Freenove_Processing_IO Library
      • Set Commands to run on the Terminal
      • Projects Board for Raspberry Pi
    • Chapter 1 LED
      • Project 1.1 Blink
        • Component List
        • Circuit
        • Sketch
          • Sketch 1.1.1 Blink
            • setup()
            • draw()
            • size()
            • framerate()
            • background()
            • GPIO.pinMode()
            • GPIO.digitalWrite()
      • Project 1.2 MouseLED
        • Component List
        • Circuit
        • Sketch
          • Sketch 1.2.1 MouseLED
    • Chapter 2 Flowing Light
      • Project 2.1 Flowing Water Light
        • Component List
        • Circuit
        • Sketch
          • Sketch 2.1.1 FollowLight
    • Chapter 3 PWM
      • Project 3.1 BreathingLED
        • Component List
        • Circuit
        • Sketch
          • Sketch 3.1.1 BreathingLED
          • Reference
    • Chapter 4 RGB LED
      • Project 4.1 Multicolored LED
        • Component List
        • Circuit
        • Sketch
          • Sketch 4.1.1 ColorfulLED
          • Reference
    • Chapter 5 Buzzer
      • Project 5.1 ActiveBuzzer
        • Component List
        • Circuit
        • Code
          • Sketch 5.1.1 ActiveBuzzer
    • Chapter 6 ADC Module
      • Project 6.1 Voltmeter
        • Component List
        • Circuit
        • Configure I2C and Install Smbus
          • Enable I2C
          • Install I2C-Tools
        • Sketch
          • Sketch 6.1.1 ADC
    • Chapter 7 ADC & LED
      • Project 7.1 SoftLight
        • Component List
        • Circuit
        • Sketch
          • Sketch 7.1.1 SoftLight
    • Chapter 8 Thermistor
      • Project 8.1 Thermometer
        • Component knowledge
          • Thermistor
        • Component List
        • Circuit
        • Sketch
          • Sketch 8.1.1 Thermometer
    • Chapter 9 Motor & Driver
      • Project 9.1 Motor
        • Component List
        • Circuit
        • Sketch
          • Sketch 9.1.1 Motor
          • Reference
    • Chapter 10 74HC595 & LED Bar Graph
      • Project 10 Flowing Water Light
        • Component List
        • Circuit
        • Sketch
          • Sketch 10.1.1 LightWater
    • Chapter 11 74HC595 & Seven-segment display
      • Project 11.1 Seven -segment display.
        • Component List
        • Circuit
        • Sketch
          • Sketch 11.1.1 SSD
      • Project 11.2 4-digit Seven-segment display.
        • Component List
        • Circuit
        • Sketch
          • Sketch 11.2.1 FDSSD
    • Chapter 12 74HC595 & LED Matrix
      • Project 12.1 LED Matrix
        • Component knowledge
          • LED matrix
        • Component List
        • Circuit
        • Sketch
          • Sketch 12.1.1 LEDMatrix
    • Chapter 13 I2C-LCD1602
      • Project 13.1 I2C LCD1602
        • Component List
        • Circuit
        • Sketch
          • Sketch 13.1.1 LCD
          • Reference
    • Chapter 14 Joystick
      • Project 14.1 Joystick
        • Component knowledge
        • Component List
        • Circuit
        • Sketch
          • Sketch 14.1.1 Joystick
    • Chapter 15 Relay & LED
      • Project 15.1 Relay & LED
        • Component List
        • Circuit
        • Sketch
          • Sketch 15.1.1 Relay
          • Reference
    • Chapter 16 Stepper Motor
      • Project 16.1 Stepper Motor
        • Component List
        • Circuit
        • Sketch
          • Sketch SteppingMotor
          • Reference
    • Chapter 17 Matrix Keypad
      • Project 17.1 Matrix Keypad
        • Component knowledge
          • 4x4 Matrix Keypad
        • Component List
        • Circuit
        • Sketch
          • Sketch 17.1.1 Calculator
          • Reference
    • Chapter 18 Infrared Motion Sensor
      • Project 18.1 Sense LED
        • Component Knowledge
        • Component List
        • Circuit
        • Sketch
          • Sketch 18.1.1 SenseLED
    • App 1 Oscilloscope
      • App 1.1 Oscilloscope
        • Component List
        • Circuit
        • Sketch
          • Sketch 1.1.1 Oscilloscope
    • App 2 Control Graphics
      • App 2.1 Ellipse
        • Component List
        • Circuit
        • Sketch
          • Sketch 2.1.1 Ellipse
    • App 3 Pong Game
      • App 3.1 Pong Game
        • Component List
        • Circuit
        • Sketch
          • Sketch 3.1.1 PongGame
    • App 4 Snake Game
      • App 4.1 Snake Game
        • Component List
        • Circuit
        • Sketch
          • Sketch 4.1.1 SnakeGame
    • App 5 Tetris Game
      • App 5.1 Tetris Game
        • Component List
        • Circuit
        • Sketch
          • Sketch 5.1.1 TetrisGame
    • What’s Next?
fnk0054-docs
  • Search