Logo

FNK0024

  • C language tutorial
    • Get Started
    • Remove the Chips
      • Get Support and Offer Input
      • Safety and Precautions
      • About Freenove
      • Copyright
    • Preface
    • Raspberry Pi
    • 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
        • Remote desktop & VNC
          • MAC OS Remote Desktop
          • Windows OS Remote Desktop
          • VNC Viewer & VNC
            • Enable VNC
            • set resolution
    • 0. Chapter Preparation
      • Linux Command
        • Shortcut Key
      • Install WiringPi
        • WiringPi Installation Steps
      • Obtain the Project Code
    • 1. Chapter LED
      • 1.1. Project Blink
        • 1.1.1. Component List
        • 1.1.2. GPIO
          • 1.1.2.1. BCM GPIO Numbering
          • 1.1.2.2. PHYSICAL Numbering
          • 1.1.2.3. WiringPi GPIO Numbering
        • 1.1.3. Circuit
        • 1.1.4. Component knowledge
          • 1.1.4.1. LED
          • 1.1.4.2. Resistor
          • 1.1.4.3. Breadboard
          • 1.1.4.4. GPIO Extension Board
        • 1.1.5. Code
          • 1.1.5.1. C Code Blink
        • 1.1.6. Other Code Editors (Optional)
          • 1.1.6.1. nano
          • 1.1.6.2. geany
        • 1.1.7. Freenove Car, Robot and other products for Raspberry Pi
    • 2. Chapter Button and leds
      • 2.1. Project Push Button Switch & LED
        • 2.1.1. Component List
        • 2.1.2. Component knowledge
          • 2.1.2.1. Push Button Switch
        • 2.1.3. Circuit
        • 2.1.4. Code
          • 2.1.4.1. C Code ButtonLED
          • 2.1.4.2. Reference
      • 2.2. Project MINI Table Lamp
        • 2.2.1. Debounce a Push Button Switch
        • 2.2.2. Code
          • 2.2.2.1. C Code Tablelamp
            • millis()
    • 3. Chapter LED Bar Graph
      • 3.1. Project Flowing Water Light
        • 3.1.1. Component List
        • 3.1.2. Component knowledge
          • 3.1.2.1. Bar Graph LED
        • 3.1.3. Circuit
        • 3.1.4. Code
          • 3.1.4.1. C Code LightWater
    • 4. Chapter Analog & PWM
      • 4.1. Project Breathing LED
        • 4.1.1. Component List
        • 4.1.2. Component Knowledge
          • 4.1.2.1. Analog & Digital
          • 4.1.2.2. PWM
        • 4.1.3. Circuit
        • 4.1.4. Code
          • 4.1.4.1. C Code BreathingLED
    • 5. Chapter RGB LED
      • 5.1. Project Multicolored LED
        • 5.1.1. Component List
        • 5.1.2. Circuit
        • 5.1.3. Code
          • 5.1.3.1. C Code Colorful LED
    • 6. Chapter Buzzer
      • 6.1. Project Doorbell
        • 6.1.1. Component knowledge
          • 6.1.1.1. Buzzer
          • 6.1.1.2. Transistors
        • 6.1.2. Circuit
        • 6.1.3. Code
          • 6.1.3.1. C Code Doorbell
      • 6.2. Project Alertor
        • 6.2.1. Code
          • 6.2.1.1. C Code Alertor
    • 7. (Important) Chapter ADC
      • 7.1. Project Read the Voltage of Potentiometer
        • 7.1.1. Component List
        • 7.1.2. Circuit knowledge
          • 7.1.2.1. ADC
          • 7.1.2.2. DAC
        • 7.1.3. Component knowledge
          • 7.1.3.1. Potentiometer
          • 7.1.3.2. Rotary potentiometer
          • 7.1.3.3. PCF8591
          • 7.1.3.4. ADS7830
          • 7.1.3.5. I2C communication
        • 7.1.4. Circuit with ADS7830
        • 7.1.5. Circuit with PCF8591
        • 7.1.6. Configure I2C and Install Smbus
          • 7.1.6.1. Enable I2C
          • 7.1.6.2. Install I2C-Tools
        • 7.1.7. Code
          • 7.1.7.1. C Code ADC
          • 7.1.7.2. Reference
    • 8. Chapter Potentiometer & LED
      • 8.1. Project Soft Light
        • 8.1.1. Component List
        • 8.1.2. Circuit with ADS7830
        • 8.1.3. Circuit with PCF8591
        • 8.1.4. Code
          • 8.1.4.1. C Code Softlight
    • 9. Chapter Potentiometer & RGBLED
      • 9.1. Project Colorful Light
        • 9.1.1. Component List
        • 9.1.2. Circuit with ADS7830
        • 9.1.3. Circuit with PCF8591
        • 9.1.4. Code
          • 9.1.4.1. C Code Colorful Softlight
    • 10. Chapter Photoresistor & LED
      • 10.1. Project NightLamp
        • 10.1.1. Component List
        • 10.1.2. Component knowledge
          • 10.1.2.1. Photoresistor
        • 10.1.3. Circuit with ADS7830
        • 10.1.4. Circuit with PCF8591
        • 10.1.5. Code
          • 10.1.5.1. C Code Nightlamp
    • 11. Chapter Thermistor
      • 11.1. Project Thermometer
        • 11.1.1. Component List
        • 11.1.2. Component knowledge
          • 11.1.2.1. Thermistor
        • 11.1.3. Circuit with ADS7830
        • 11.1.4. Circuit with PCF8591
        • 11.1.5. Code
          • 11.1.5.1. C Code Thermometer
    • 12. Chapter Joystick
      • 12.1. Project Joystick
        • 12.1.1. Component List
        • 12.1.2. Component knowledge
          • 12.1.2.1. Joystick
        • 12.1.3. Circuit with ADS7830
        • 12.1.4. Circuit with PCF8591
        • 12.1.5. Code
          • 12.1.5.1. C Code Joystick
    • 13. Chapter Motor & Driver
      • 13.1. Project Control a DC Motor with a Potentiometer
        • 13.1.1. Component List
        • 13.1.2. Component knowledge
          • 13.1.2.1. Breadboard Power Module
          • 13.1.2.2. DC Motor
          • 13.1.2.3. L293D
        • 13.1.3. Circuit with ADS7830
        • 13.1.4. Circuit with PCF8591
        • 13.1.5. Code
          • 13.1.5.1. C Code Motor
    • 14. Chapter Relay & Motor
      • 14.1. Project Relay & Motor
        • 14.1.1. Component knowledge
          • 14.1.1.1. Relay
          • 14.1.1.2. Inductor
        • 14.1.2. Circuit
        • 14.1.3. Code
          • 14.1.3.1. C Code Relay
    • 15. Chapter Servo
      • 15.1. Project Servo Sweep
        • 15.1.1. Component List
        • 15.1.2. Component knowledge
          • 15.1.2.1. Servo
        • 15.1.3. Circuit
        • 15.1.4. Code
          • 15.1.4.1. C Code Sweep
    • 16. Chapter Stepper Motor
      • 16.1. Project Stepper Motor
        • 16.1.1. Component List
        • 16.1.2. Component knowledge
          • 16.1.2.1. Stepper Motor
          • 16.1.2.2. ULN2003 Stepper Motor driver
        • 16.1.3. Circuit
        • 16.1.4. Code
          • 16.1.4.1. C Code SteppingMotor
    • 17. Chapter 74HC595 & Bar Graph LED
      • 17.1. Project FollowLight
        • 17.1.1. Component List
        • 17.1.2. Component knowledge
        • 17.1.3. Circuit
        • 17.1.4. Code
          • 17.1.4.1. C Code LightWater02
    • 18. Chapter 74HC595 & 7-Segment Display
      • 18.1. Project 7-Segment Display
        • 18.1.1. Component List
        • 18.1.2. Component knowledge
          • 18.1.2.1. 7-segment display
        • 18.1.3. Circuit
        • 18.1.4. Code
          • 18.1.4.1. C Code SevenSegmentDisplay
    • 19. Chapter 74HC595 & LED Matrix
      • 19.1. Project LED Matrix
        • 19.1.1. Component List
        • 19.1.2. Component knowledge
          • 19.1.2.1. LED matrix
        • 19.1.3. Circuit
        • 19.1.4. code
          • 19.1.4.1. C Code LEDMatrix
    • 20. Chapter LCD1602
      • 20.1. Project I2C LCD1602
        • 20.1.1. Component List
        • 20.1.2. Circuit
        • 20.1.3. Code
          • 20.1.3.1. C Code I2CLCD1602
            • lcdPutchar()
    • 21. Chapter Ultrasonic Ranging
      • 21.1. Project Ultrasonic Ranging
        • 21.1.1. Component List
        • 21.1.2. Component Knowledge
        • 21.1.3. Circuit
        • 21.1.4. Code
          • 21.1.4.1. C Code UltrasonicRanging
    • 22. Other Components
      • 22.1. Component Knowledge
        • 22.1.1. Toggle switch
        • 22.1.2. Switch diode
        • 22.1.3. 9V battery cable
        • 22.1.4. Power supply module for breadboard
    • What’s Next?
  • Python language tutorial
    • Getting Started
    • Remove the Chips
      • Get Support and Offer Input
      • Safety and Precautions
      • About Freenove
      • Copyright
    • Preface
    • Raspberry Pi
    • 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
        • Remote desktop & VNC
          • MAC OS Remote Desktop
          • Windows OS Remote Desktop
          • VNC Viewer & VNC
            • Enable VNC
            • set resolution
    • 0. Chapter Preparation
      • Linux Command
        • Shortcut Key
      • Install GPIO Zero Python library
        • GPIO Zero Python library Installation Steps
      • Obtain the Project Code
      • Python2 & Python3
        • Set Python3 as default python
          • Shortcut Key
    • 1. Chapter LED
      • 1.1. Project Blink
        • 1.1.1. Component List
        • 1.1.2. GPIO
          • 1.1.2.1. BCM GPIO Numbering
          • 1.1.2.2. PHYSICAL Numbering
        • 1.1.3. GPIO Numbering
        • 1.1.4. Circuit
        • 1.1.5. Component knowledge
          • 1.1.5.1. LED
          • 1.1.5.2. Resistor
          • 1.1.5.3. Breadboard
          • 1.1.5.4. GPIO Extension Board
        • 1.1.6. Code
          • 1.1.6.1. Python Code Blink
          • 1.1.6.2. Reference
        • 1.1.7. Freenove Car, Robot and other products for Raspberry Pi
    • 2. Chapter Button and leds
      • 2.1. Project Push Button Switch & LED
        • 2.1.1. Component List
        • 2.1.2. Component knowledge
          • 2.1.2.1. Push Button Switch
        • 2.1.3. Circuit
        • 2.1.4. Code
          • 2.1.4.1. Python Code ButtonLED
      • 2.2. Project MINI Table Lamp
        • 2.2.1. Debounce a Push Button Switch
        • 2.2.2. Code
          • 2.2.2.1. Python Code Tablelamp
    • 3. Chapter LED Bar Graph
      • 3.1. Project Flowing Water Light
        • 3.1.1. Component List
        • 3.1.2. Component knowledge
          • 3.1.2.1. Bar Graph LED
        • 3.1.3. Circuit
        • 3.1.4. Code
          • 3.1.4.1. Python Code LightWater
    • 4. Chapter Analog & PWM
      • 4.1. Project Breathing LED
        • 4.1.1. Component List
        • 4.1.2. Component Knowledge
          • 4.1.2.1. Analog & Digital
          • 4.1.2.2. PWM
        • 4.1.3. Circuit
        • 4.1.4. Code
          • 4.1.4.1. Python Code BreathingLED
    • 5. Chapter RGB LED
      • 5.1. Project Multicolored LED
        • 5.1.1. Component List
        • 5.1.2. Circuit
        • 5.1.3. Code
          • 5.1.3.1. Python Code ColorfulLED
    • 6. Chapter Buzzer
      • 6.1. Project Doorbell
        • 6.1.1. Component knowledge
          • 6.1.1.1. Buzzer
          • 6.1.1.2. Transistors
        • 6.1.2. Circuit
        • 6.1.3. Code
          • 6.1.3.1. Python Code Doorbell
      • 6.2. Project Alertor
        • 6.2.1. Code
          • 6.2.1.1. Python Code Alertor
    • 7. Chapter ADC
      • 7.1. Project Read the Voltage of Potentiometer
        • 7.1.1. Component List
        • 7.1.2. Circuit knowledge
          • 7.1.2.1. ADC
          • 7.1.2.2. DAC
        • 7.1.3. Component knowledge
          • 7.1.3.1. Potentiometer
          • 7.1.3.2. Rotary potentiometer
          • 7.1.3.3. PCF8591
          • 7.1.3.4. ADS7830
          • 7.1.3.5. I2C communication
        • 7.1.4. Circuit with ADS7830
        • 7.1.5. Circuit with PCF8591
        • 7.1.6. Configure I2C and Install Smbus
          • 7.1.6.1. Enable I2C
          • 7.1.6.2. Install I2C-Tools
          • 7.1.6.3. Install Smbus Module
        • 7.1.7. Code
          • 7.1.7.1. Python Code ADC
          • 7.1.7.2. Reference
    • 8. Chapter Potentiometer & LED
      • 8.1. Project Soft Light
        • 8.1.1. Component List
        • 8.1.2. Circuit with ADS7830
        • 8.1.3. Circuit with PCF8591
        • 8.1.4. Code
          • 8.1.4.1. Python Code Softlight
    • 9. Chapter Potentiometer & RGBLED
      • 9.1. Project Colorful Light
        • 9.1.1. Component List
        • 9.1.2. Circuit with ADS7830
        • 9.1.3. Circuit with PCF8591
        • 9.1.4. Code
          • 9.1.4.1. Python Code ColorfulSoftlight
    • 10. Chapter Photoresistor & LED
      • 10.1. Project NightLamp
        • 10.1.1. Component List
        • 10.1.2. Component knowledge
          • 10.1.2.1. Photoresistor
        • 10.1.3. Circuit with ADS7830
        • 10.1.4. Circuit with PCF8591
        • 10.1.5. Code
          • 10.1.5.1. Python Code Nightlamp
    • 11. Chapter Thermistor
      • 11.1. Project Thermometer
        • 11.1.1. Component List
        • 11.1.2. Component knowledge
          • 11.1.2.1. Thermistor
        • 11.1.3. Circuit with ADS7830
        • 11.1.4. Circuit with PCF8591
        • 11.1.5. Code
          • 11.1.5.1. Python Code Thermometer
    • 12. Chapter Joystick
      • 12.1. Project Joystick
        • 12.1.1. Component List
        • 12.1.2. Component knowledge
          • 12.1.2.1. Joystick
        • 12.1.3. Circuit with ADS7830
        • 12.1.4. Circuit with PCF8591
        • 12.1.5. Code
          • 12.1.5.1. Python Code Joystick
    • 13. Chapter Motor & Driver
      • 13.1. Project Control a DC Motor with a Potentiometer
        • 13.1.1. Component List
          • 13.1.1.1. Breadboard Power Module
        • 13.1.2. Component knowledge
          • 13.1.2.1. Breadboard Power Module
          • 13.1.2.2. DC Motor
          • 13.1.2.3. L293D
        • 13.1.3. Circuit with ADS7830
        • 13.1.4. Circuit with PCF8591
        • 13.1.5. Code
          • 13.1.5.1. Python Code Motor
    • 14. Chapter Relay & Motor
      • 14.1. Project Relay & Motor
        • 14.1.1. Component knowledge
          • 14.1.1.1. Relay
          • 14.1.1.2. Inductor
        • 14.1.2. Circuit
        • 14.1.3. Code
          • 14.1.3.1. Python Code Relay
    • 15. Chapter Servo
      • 15.1. Project Servo Sweep
        • 15.1.1. Component List
        • 15.1.2. Component knowledge
          • 15.1.2.1. Servo
        • 15.1.3. Circuit
        • 15.1.4. Code
          • 15.1.4.1. Python Code Sweep
    • 16. Chapter Stepper Motor
      • 16.1. Project Stepper Motor
        • 16.1.1. Component List
        • 16.1.2. Component knowledge
          • 16.1.2.1. Stepper Motor
          • 16.1.2.2. ULN2003 Stepper Motor driver
        • 16.1.3. Circuit
        • 16.1.4. Code
          • 16.1.4.1. Python Code SteppingMotor
    • 17. Chapter 74HC595 & Bar Graph LED
      • 17.1. Project FollowLight
        • 17.1.1. Component List
        • 17.1.2. Component knowledge
        • 17.1.3. Circuit
        • 17.1.4. Code
          • 17.1.4.1. Python Code LightWater02
    • 18. Chapter 74HC595 & 7-Segment Display
      • 18.1. Project 7-Segment Display
        • 18.1.1. Component List
        • 18.1.2. Component knowledge
          • 18.1.2.1. 7-segment display
        • 18.1.3. Circuit
        • 18.1.4. Code
          • 18.1.4.1. Python Code SevenSegmentDisplay
    • 19. Chapter 74HC595 & LED Matrix
      • 19.1. Project LED Matrix
        • 19.1.1. Component List
        • 19.1.2. Component knowledge
          • 19.1.2.1. LED matrix
        • 19.1.3. Circuit
        • 19.1.4. Code
          • 19.1.4.1. Python Code LEDMatrix
    • 20. Chapter LCD1602
      • 20.1. Project I2C LCD1602
        • 20.1.1. Component List
        • 20.1.2. Circuit
        • 20.1.3. Code
          • 20.1.3.1. Python Code I2CLCD1602
    • 21. Chapter Ultrasonic Ranging
      • 21.1. Project Ultrasonic Ranging
        • 21.1.1. Component List
        • 21.1.2. Component Knowledge
        • 21.1.3. Circuit
        • 21.1.4. Code
          • 21.1.4.1. Python Code UltrasonicRanging
    • 22. Chapter Web IoT
      • 22.1. Project Remote LED
        • 22.1.1. Component List
        • 22.1.2. Circuit
        • 22.1.3. Solution from E-Tinkers
        • 22.1.4. WebIOPi Service Framework
          • 22.1.4.1. Installation
          • 22.1.4.2. Run
          • 22.1.4.3. Access WebIOPi over local network
          • 22.1.4.4. Completed
    • What’s Next?
  • Processing IDE tutorial
    • 0. Chapter Processing
      • Installing Processing Software
      • First Use
      • Installing Freenove_Processing_IO Library
      • Set Commands to run on the Terminal
    • 1. Chapter LED
      • 1.1. Project Blink
        • 1.1.1. Component List
        • 1.1.2. Circuit
        • 1.1.3. Component knowledge
          • 1.1.3.1. LED
          • 1.1.3.2. Resistor
          • 1.1.3.3. Resistor
          • 1.1.3.4. GPIO Extension Board
        • 1.1.4. Sketch
          • 1.1.4.1. Sketch Blink
            • setup()
            • draw()
            • size()
            • framerate()
            • background()
            • GPIO.pinMode()
            • GPIO.digitalWrite()
      • 1.2. Project MouseLED
        • 1.2.1. Sketch
          • 1.2.1.1. Sketch MouseLED
        • 1.2.2. Freenove Car, Robot and other products for Raspberry Pi
    • 2. Chapter LED Bar Graph
      • 2.1. Project FollowLight
        • 2.1.1. Component List
        • 2.1.2. Component knowledge
          • 2.1.2.1. Bar Graph LED
        • 2.1.3. Circuit
        • 2.1.4. Sketch
          • 2.1.4.1. Sketch FollowLight
    • 3. Chapter PWM
      • 3.1. Project Breathing LED
        • 3.1.1. Component List
        • 3.1.2. Circuit
        • 3.1.3. Sketch
          • 3.1.3.1. Sketch BreathingLED
          • 3.1.3.2. Reference
    • 4. Chapter RGBLED
      • 4.1. Project Multicolored LED
        • 4.1.1. Component List
        • 4.1.2. Circuit
        • 4.1.3. Sketch
          • 4.1.3.1. Sketch ColorfulLED
          • 4.1.3.2. Reference
    • 5. Chapter Buzzer
      • 5.1. Project Doorbell
        • 5.1.1. Circuit
        • 5.1.2. Sketch
          • 5.1.2.1. Sketch ActiveBuzzer
    • 6. Chapter ADC Module
      • 6.1. Project Voltmeter
        • 6.1.1. Component List
        • 6.1.2. Circuit with ADS7830
        • 6.1.3. Circuit with PCF8591
        • 6.1.4. Sketch
          • 6.1.4.1. Configure I2C (required)
            • 6.1.4.1.1. Enable I2C
            • 6.1.4.1.2. Install I2C-Tools
          • 6.1.4.2. Sketch ADC
    • 7. Chapter ADC & LED
      • 7.1. Project SoftLight
        • 7.1.1. Component List
        • 7.1.2. Circuit with ADS7830
        • 7.1.3. Circuit with PCF8591
        • 7.1.4. Sketch
          • 7.1.4.1. Sketch SoftLight
      • 7.2. Project NightLamp
        • 7.2.1. Component List
        • 7.2.2. Circuit with ADS7830
        • 7.2.3. Circuit with PCF8591
        • 7.2.4. Sketch
    • 8. Chapter Thermistor
      • 8.1. Project Thermometer
        • 8.1.1. Component List
        • 8.1.2. Component knowledge
          • 8.1.2.1. Thermistor
        • 8.1.3. Circuit with ADS7830
        • 8.1.4. Circuit with PCF8591
        • 8.1.5. Sketch
          • 8.1.5.1. Sketch Thermometer
    • 9. Chapter Motor & Driver
      • 9.1. Project Motor
        • 9.1.1. Circuit
        • 9.1.2. Sketch
          • 9.1.2.1. Sketch Motor
          • 9.1.2.2. Reference
    • 10. Chapter 74HC595 & LED Bar Graph
      • 10.1. Project FollowLight
        • 10.1.1. Component List
        • 10.1.2. Component knowledge
        • 10.1.3. Circuit
        • 10.1.4. Sketch
          • 10.1.4.1. Sketch LightWater
    • 11. Chapter 74HC595 & Seven-segment display.
      • 11.1. Project Seven -segment display
        • 11.1.1. Component List
        • 11.1.2. Component knowledge
          • 11.1.2.1. 7-segment display
        • 11.1.3. Circuit
        • 11.1.4. Sketch
          • 11.1.4.1. Sketch SSD
    • 12. Chapter 74HC595 & LED Matrix
      • 12.1. Project LED Matrix
        • 12.1.1. Component List
        • 12.1.2. Component knowledge
          • 12.1.2.1. LED matrix
        • 12.1.3. Circuit
        • 12.1.4. Sketch
          • 12.1.4.1. Sketch LEDMatrix
    • 13. Chapter I2C-LCD1602
      • 13.1. Project I2C LCD1602
        • 13.1.1. Component List
        • 13.1.2. Circuit
        • 13.1.3. Sketch
          • 13.1.3.1. Sketch LCD
          • 13.1.3.2. Reference
    • 14. Chapter Joystick
      • 14.1. Project Joystick
        • 14.1.1. Component List
        • 14.1.2. Circuit with ADS7830
        • 14.1.3. Circuit with PCF8591
        • 14.1.4. Sketch
          • 14.1.4.1. Sketch Joystick
    • 15. Chapter Relay & Motor
      • 15.1. Project Relay & Motor
        • 15.1.1. Component knowledge
          • 15.1.1.1. Relay
          • 15.1.1.2. Inductor
        • 15.1.2. Circuit
        • 15.1.3. Sketch
          • 15.1.3.1. Sketch Relay
          • 15.1.3.2. Reference
    • 16. Chapter Stepper Motor
      • 16.1. Project Seven -segment display
        • 16.1.1. Component List
        • 16.1.2. Component knowledge
          • 16.1.2.1. Stepper Motor
          • 16.1.2.2. ULN2003 Stepper Motor driver
        • 16.1.3. Circuit
        • 16.1.4. Sketch
          • 16.1.4.1. Sketch SteppingMotor
          • 16.1.4.2. Reference
    • 1. App Oscilloscope
      • 1.1. App Oscilloscope
        • 1.1.1. Component List
        • 1.1.2. Circuit with PCF8591
        • 1.1.3. Circuit with ADS7830
        • 1.1.4. Sketch
          • 1.1.4.1. Sketch Oscilloscope
    • 2. App Control Graphics
      • 2.1. App Ellipse
        • 2.1.1. Component List
        • 2.1.2. Circuit with PCF8591
        • 2.1.3. Circuit with ADS7830
        • 2.1.4. Sketch
          • 2.1.4.1. Sketch Ellipse
    • 3. App Pong Game
      • 3.1. App Pong Game
        • 3.1.1. Component List
        • 3.1.2. Circuit with PCF8591
        • 3.1.3. Circuit with ADS7830
        • 3.1.4. Sketch
          • 3.1.4.1. Sketch PongGame
    • 4. App Snake Game
      • 4.1. App Snake Game
        • 4.1.1. Component List
        • 4.1.2. Circuit
        • 4.1.3. Sketch
          • 4.1.3.1. Sketch SnakeGame
    • 5. App Tetris Game
      • 5.1. App Tetris Game
        • 5.1.1. Component List
        • 5.1.2. Circuit
        • 5.1.3. Sketch
          • 5.1.3.1. Sketch TetrisGame
    • What’s Next?
  • Java language tutorial
    • Getting Started
    • Remove the Chips
      • Get Support and Offer Input
      • Safety and Precautions
      • About Freenove
      • Copyright
    • Preface
    • Raspberry Pi
    • 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
        • Remote desktop & VNC
          • MAC OS Remote Desktop
          • Windows OS Remote Desktop
          • VNC Viewer & VNC
            • Enable VNC
            • set resolution
    • 0. Chapter Preparation
      • Linux Command
        • Shortcut Key
        • Pi4j Introduction
      • Download Code
      • Installation of JBang
      • Installation of Geany
      • Geany Configuration
    • 1. Chapter LED
      • 1.1. Project Blink
        • 1.1.1. Component List
        • 1.1.2. Component knowledge
          • 1.1.2.1. LED
          • 1.1.2.2. Resistor
          • 1.1.2.3. Breadboard
          • 1.1.2.4. GPIO Extension Board
        • 1.1.3. Sketch
          • 1.1.3.1. Sketch_01_Blink
        • 1.1.4. Freenove Car, Robot and other products for Raspberry Pi
    • 2. Chapter Flowing Light
      • 2.1. Project Flowing Water Light
        • 2.1.1. Component List
        • 2.1.2. Component knowledge
          • 2.1.2.1. Bar Graph LED
        • 2.1.3. Circuit
        • 2.1.4. Sketch
          • 2.1.4.1. Sketch_02_FlowingLight
    • 3. Chapter Buttons & LEDs
      • 3.1. Project Push Button Switch & LED
        • 3.1.1. Component List
        • 3.1.2. Component knowledge
          • 3.1.2.1. Push Button Switch
        • 3.1.3. Circuit
        • 3.1.4. Sketch
          • 3.1.4.1. Sketch_03_ButtonLED
    • 4. Chapter Analog & PWM
      • 4.1. Project Breathing LED
        • 4.1.1. Component List
        • 4.1.2. Component Knowledge
          • 4.1.2.1. Analog & Digital
          • 4.1.2.2. PWM
        • 4.1.3. Circuit
        • 4.1.4. Sketch
          • 4.1.4.1. Sketch_04_BreathingLED
    • 5. Chapter RGB LED
      • 5.1. Project RainbowLED
        • 5.1.1. Component List
        • 5.1.2. Circuit
        • 5.1.3. Sketch
          • 5.1.3.1. Sketch_05_RainbowLED
    • 6. Chapter Buzzer
      • 6.1. Project Doorbell
        • 6.1.1. Component knowledge
          • 6.1.1.1. Buzzer
          • 6.1.1.2. Transistors
        • 6.1.2. Circuit
        • 6.1.3. Sketch
          • 6.1.3.1. Sketch_06_1_Doorbell
      • 6.2. Project Alertor
        • 6.2.1. Sketch
          • 6.2.1.1. Sketch_Alertor
    • 7. (Important) Chapter ADC
      • 7.1. Project Read the Voltage of Potentiometer
        • 7.1.1. Component List
        • 7.1.2. Circuit knowledge
          • 7.1.2.1. ADC
          • 7.1.2.2. DAC
        • 7.1.3. Component knowledge
          • 7.1.3.1. Potentiometer
          • 7.1.3.2. Rotary potentiometer
          • 7.1.3.3. ADS7830
          • 7.1.3.4. I2C communication
        • 7.1.4. Circuit
        • 7.1.5. Configure I2C and Install Smbus
          • 7.1.5.1. Enable I2C
        • 7.1.6. Sketch
          • 7.1.6.1. Sketch_ADC
      • 7.2. Project Soft Light
        • 7.2.1. Component List
        • 7.2.2. Circuit
        • 7.2.3. Sketch
          • 7.2.3.1. Sketch_Softlight
      • 7.3. Project Colorful Light
        • 7.3.1. Component List
        • 7.3.2. Circuit
        • 7.3.3. Sketch
        • 7.3.4. Sketch_ColorfulSoftlight
    • 8. Chapter Photoresistor & LED
      • 8.1. Project Soft Light
        • 8.1.1. Component List
        • 8.1.2. Circuit with ADS7830
        • 8.1.3. Sketch
          • 8.1.3.1. Sketch_08_Nightlamp
    • 9. Chapter Thermistor
      • 9.1. Project Thermometer
        • 9.1.1. Component List
        • 9.1.2. Component knowledge
          • 9.1.2.1. Thermistor
        • 9.1.3. Circuit
        • 9.1.4. Sketch
          • 9.1.4.1. Sketch_Thermometer
    • 10. Chapter Joystick
      • 10.1. Project Joystick
        • 10.1.1. Component List
        • 10.1.2. Component knowledge
          • 10.1.2.1. Joystick
        • 10.1.3. Circuit
        • 10.1.4. Sketch
          • 10.1.4.1. Sketch_Joystick
    • 11. Chapter Motor & Driver
      • 11.1. Project Control a DC Motor with a Potentiometer
        • 11.1.1. Component List
        • 11.1.2. Component knowledge
          • 11.1.2.1. Breadboard Power Module
          • 11.1.2.2. DC Motor
          • 11.1.2.3. L293D
        • 11.1.3. Circuit
        • 11.1.4. Sketch
          • 11.1.4.1. Sketch_Motor
    • 12. Chapter Relay & LED
      • 12.1. Project Relay & Motor
        • 12.1.1. Component knowledge
          • 12.1.1.1. Relay
          • 12.1.1.2. Inductor
        • 12.1.2. Circuit
        • 12.1.3. Sketch
          • 12.1.3.1. Sketch_12_Relay
    • 13. Chapter Servo
      • 13.1. Project Servo Sweep
        • 13.1.1. Component List
        • 13.1.2. Component knowledge
          • 13.1.2.1. Servo
        • 13.1.3. Circuit
        • 13.1.4. Sketch
          • 13.1.4.1. Sketch_13_1_Sweep
    • 14. Chapter Stepper Motor
      • 14.1. Project Stepper Motor
        • 14.1.1. Component List
        • 14.1.2. Component knowledge
          • 14.1.2.1. Stepper Motor
          • 14.1.2.2. ULN2003 Stepper Motor driver
        • 14.1.3. Circuit
        • 14.1.4. Sketch
          • 14.1.4.1. Sketch_14_SteppingMotor
    • 15. Chapter 74HC595 & Bar Graph LED
      • 15.1. Project FollowLight
        • 15.1.1. Component List
        • 15.1.2. Component knowledge
        • 15.1.3. Circuit
        • 15.1.4. Sketch
          • 15.1.4.1. Sketch_FlowingLight02
    • 16. Chapter 74HC595 & LED Matrix
      • 16.1. Project LED Matrix
        • 16.1.1. Component List
        • 16.1.2. Component knowledge
          • 16.1.2.1. LED matrix
        • 16.1.3. Circuit
        • 16.1.4. Sketch
          • 16.1.4.1. Sketch_LEDMatrix
    • 17. Chapter LCD1602
      • 17.1. Component List
      • 17.2. Circuit
      • 17.3. Sketch
        • 17.3.1. Sketch_I2CLCD1602
    • 18. Chapter Ultrasonic Ranging
      • 18.1. Project Ultrasonic Ranging
        • 18.1.1. Component List
        • 18.1.2. Component Knowledge
        • 18.1.3. Circuit
        • 18.1.4. Sketch
          • 18.1.4.1. Sketch_UltrasonicRanging
    • What’s Next?
  • Scratch language tutorial
    • Getting Started
    • Remove the Chips
      • Get Support and Offer Input
      • Safety and Precautions
      • About Freenove
      • Copyright
    • Preface
    • Raspberry Pi
    • 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
        • Remote desktop & VNC
          • MAC OS Remote Desktop
          • Windows OS Remote Desktop
          • VNC Viewer & VNC
            • Enable VNC
            • set resolution
    • 0. Chapter Preparation
      • Linux Command
        • Shortcut Key
      • Obtain the Project Code
      • Install and Configure Scratch 3
        • Installation Steps
        • Add Raspberry Pi Library
    • 1. Chapter LED
      • 1.1. Project 01.0_Blink, 01.1_Keyboard_LED and 01.2 Sprite_LED
        • 1.1.1. Component List
        • 1.1.2. GPIO
        • 1.1.3. BCM GPIO Numbering
          • 1.1.3.1. PHYSICAL Numbering
        • 1.1.4. Circuit
        • 1.1.5. Component knowledge
          • 1.1.5.1. LED
          • 1.1.5.2. Resistor
          • 1.1.5.3. Resistor
          • 1.1.5.4. GPIO Extension Board
        • 1.1.6. Code
          • 1.1.6.1. Blink
          • 1.1.6.2. Keyboard_LED
          • 1.1.6.3. Sprite_LED
        • 1.1.7. Freenove Car, Robot and other products for Raspberry Pi
    • 2. Chapter Button and leds
      • 2.1. Project Push Button Switch & LED
        • 2.1.1. Component List
        • 2.1.2. Component knowledge
          • 2.1.2.1. Push Button Switch
        • 2.1.3. Circuit
        • 2.1.4. Code
          • 2.1.4.1. Electronic_Button_LED
          • 2.1.4.2. Floating_Ballon
    • 3. Chapter LED Bar Graph
      • 3.1. Project LED_Bar_Graph
        • 3.1.1. Component List
        • 3.1.2. Component knowledge
          • 3.1.2.1. Bar Graph LED
        • 3.1.3. Circuit
        • 3.1.4. Code
          • 3.1.4.1. LED_Bar_Graph
    • 4. Chapter RGB LED
      • 4.1. Project Multicolored LED
        • 4.1.1. Component List
        • 4.1.2. Circuit
        • 4.1.3. Code
          • 4.1.3.1. RGBLED
          • 4.1.3.2. Keyboard_RGBLED
    • 5. Chapter Two Electronic Button Switch
      • 5.1. Project 05.0_Two_Electronic_Button_LED, 05.1_Squash0 and 5.2_Jump
        • 5.1.1. Components
        • 5.1.2. Circuit
        • 5.1.3. Code
          • 5.1.3.1. Two_Electronic_Button_LED
          • 5.1.3.2. Squash
          • 5.1.3.3. Jump
    • 6. Chapter Buzzer
      • 6.1. Project 06.0_Buzzer
        • 6.1.1. Component knowledge
          • 6.1.1.1. Buzzer
          • 6.1.1.2. Transistors
        • 6.1.2. Circuit
        • 6.1.3. Code
    • 7. Chapter Motor
      • 7.1. Component List
      • 7.2. Component knowledge
        • 7.2.1. Breadboard Power Module
        • 7.2.2. DC Motor
      • 7.3. Circuit
      • 7.4. Code
        • 7.4.1. Motor
    • 8. Chapter Four button swithches games.
      • 8.1. Project 08.0_Pick_Apple and 08.1_Fish
        • 8.1.1. PicK_Apple
        • 8.1.2. Fish
    • What’s Next?
fnk0024-docs
  • Search