Logo

FNK0059

  • C language
    • Welcome
      • Getting Started
      • Get Support
      • Safety and Precautions
      • About Freenove
      • Copyright
    • Preface
      • Control Board
      • Projects Board
      • Assemble Acrylic Part
      • Programming Software
    • First Use
    • 1. Chapter LED Blink
      • 1.1. Project 1.1 LED Blink
        • 1.1.1. Component List
        • 1.1.2. Component Knowledge
          • 1.1.2.1. Analog signal and Digital signal
          • 1.1.2.2. Low level and high level
          • 1.1.2.3. LED
          • 1.1.2.4. Current
          • 1.1.2.5. Resistor
        • 1.1.3. Code Knowledge
          • 1.1.3.1. Comments
          • 1.1.3.2. Data type
          • 1.1.3.3. Constant
          • 1.1.3.4. Variable
          • 1.1.3.5. Function
        • 1.1.4. Circuit
        • 1.1.5. Sketch
          • 1.1.5.1. Blink
            • Reset()
    • 2. Chapter Flowing LED
      • 2.1. Project 2.1 Flowing LED Display
        • 2.1.1. Component List
        • 2.1.2. Code Knowledge
          • 2.1.2.1. Array
          • 2.1.2.2. Loop
        • 2.1.3. Circuit
        • 2.1.4. Sketch
          • 2.1.4.1. Flowing_LED_Display
    • 3. Control LED with Push Button Switch
      • 3.1. Project 3.1 Control LED with Button
        • 3.1.1. Component List
        • 3.1.2. Circuit Knowledge
          • 3.1.2.1. Connection of Push Button Switch
        • 3.1.3. Circuit
        • 3.1.4. Sketch
          • 3.1.4.1. Control_LED_by_Button
      • 3.2. Project 3.2 Change LED State by Button
        • 3.2.1. Component List
        • 3.2.2. Circuit Knowledge
          • 3.2.2.1. Debounce a push button switch
        • 3.2.3. Circuit
        • 3.2.4. Sketch
          • 3.2.4.1. Change_LED_State_by_Button
    • 4. Chapter Serial
      • 4.1. Project 4.1 Send Data through Serial
        • 4.1.1. Component List
        • 4.1.2. Code Knowledge
          • 4.1.2.1. Bit and Byte
        • 4.1.3. Circuit Knowledge
          • 4.1.3.1. Serial and parallel communication
          • 4.1.3.2. Serial communication
          • 4.1.3.3. Serial port on Control board
        • 4.1.4. Circuit
        • 4.1.5. Sketch
          • 4.1.5.1. Send_data_through_Serial
      • 4.2. Project 4.2 Receive Data through Serial Port
        • 4.2.1. Component List
        • 4.2.2. Code Knowledge
          • 4.2.2.1. Interrupt
        • 4.2.3. Circuit
        • 4.2.4. Sketch
          • 4.2.4.1. Receive_Data_through_Serial_Port
          • 4.2.4.2. Receive_Data_through_Serial_Port
      • 4.3. Project 4.3 Application of Serial
        • 4.3.1. Component List
        • 4.3.2. Circuit Knowledge
          • 4.3.2.1. PWM
        • 4.3.3. Circuit
        • 4.3.4. Sketch
          • 4.3.4.1. Application_of_Serial
            • constrain()
            • analogWrite()
    • 5. Chapter ADC
      • 5.1. Project 5.1 ADC
        • 5.1.1. Component List
        • 5.1.2. Circuit Knowledge
          • 5.1.2.1. ADC
        • 5.1.3. Component Knowledge
          • 5.1.3.1. Potentiometer
          • 5.1.3.2. Rotary potentiometer
        • 5.1.4. Circuit
        • 5.1.5. Sketch
          • 5.1.5.1. ADC
      • 5.2. Project 5.2 Control LED by Potentiometer
        • 5.2.1. Component List
        • 5.2.2. Circuit
        • 5.2.3. Sketch
          • 5.2.3.1. Control_LED_by_Potentiometer
            • map()
      • 5.3. Project 5.3 Control LED by Photoresistor
        • 5.3.1. Component Knowledge
          • 5.3.1.1. Photoresistor
        • 5.3.2. Circuit
        • 5.3.3. Sketch
          • 5.3.3.1. Control_LED_through_Photoresistor
    • 6. Chapter RGB LED
      • 6.1. Project 6.1 Control RGB LED through Potentiometer
        • 6.1.1. Component List
        • 6.1.2. Component Knowledge
          • 6.1.2.1. RGB LED
        • 6.1.3. Circuit
        • 6.1.4. Sketch
          • 6.1.4.1. Control_RGB_LED_through_Potentiometer
      • 6.2. Project 6.2 Multicolored LED
        • 6.2.1. Component List
        • 6.2.2. Circuit
        • 6.2.3. Sketch
          • 6.2.3.1. Colorful_LED
            • random()
    • 7. Chapter LEDPixel
      • 7.1. Project 7.1 LEDPixel
        • 7.1.1. Component List
        • 7.1.2. Related knowledge
          • 7.1.2.1. Freenove 8 RGB LED Module
        • 7.1.3. Circuit
        • 7.1.4. Sketch
          • 7.1.4.1. How to install the library
          • 7.1.4.2. LEDPixel
          • 7.1.4.3. Reference
      • 7.2. Project 7.2 Rainbow Light
        • 7.2.1. Circuit
        • 7.2.2. Sketch
          • 7.2.2.1. RainbowLight
    • 8. Chapter Buzzer
      • 8.1. Project 8.1 Active Buzzer
        • 8.1.1. Component List
        • 8.1.2. Component knowledge
          • 8.1.2.1. Transistor
          • 8.1.2.2. Buzzer
        • 8.1.3. Circuit
        • 8.1.4. Sketch
          • 8.1.4.1. Active_Buzzer
      • 8.2. Project 8.2 Passive Buzzer
        • 8.2.1. Component List
        • 8.2.2. Circuit
        • 8.2.3. Sketch
          • 8.2.3.1. Passive_Buzzer
            • tone()
    • 9. Chapter Relay
      • 9.1. Project 9.1 Control Relay
        • 9.1.1. Component List
        • 9.1.2. Component Knowledge
          • 9.1.2.1. Capacitor
          • 9.1.2.2. Relay
          • 9.1.2.3. Inductor
          • 9.1.2.4. Circuit
        • 9.1.3. Sketch
          • 9.1.3.1. Control_Relay
            • millis()
    • 10. Chapter Motor
      • 10.1. Project 10.1 Control Motor
        • 10.1.1. Component List
        • 10.1.2. Component Knowledge
          • 10.1.2.1. DC Motor
          • 10.1.2.2. DRV8837
        • 10.1.3. Circuit
        • 10.1.4. Sketch
          • 10.1.4.1. Control_Motor
            • abs()
    • 11. Chapter Servo
      • 11.1. Project 11.1 Servo Sweep
        • 11.1.1. Component List
        • 11.1.2. Component Knowledge
          • 11.1.2.1. Servo
        • 11.1.3. Circuit
        • 11.1.4. Sketch
          • 11.1.4.1. Servo_Sweep
      • 11.2. Project 11.2 Control Servo with Potentiometer
        • 11.2.1. Component List
        • 11.2.2. Circuit
        • 11.2.3. Sketch
          • 11.2.3.1. Control_Servo_by_Potentiometer
    • 12. Chapter Temperature Sensor
      • 12.1. Project 12.1 Detect the Temperature
        • 12.1.1. Component Knowledge
          • 12.1.1.1. Thermistor
        • 12.1.2. Circuit
        • 12.1.3. Sketch
          • 12.1.3.1. Detect_the_temperature
    • 13. Chapter Joystick
      • 13.1. Project 13.1 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. Joystick
            • INPUT_PULLUP()
    • 14. Chapter Acceleration sensor
      • 14.1. Project 14.1 Acceleration Detection
        • 14.1.1. Component List
        • 14.1.2. Component Knowledge
          • 14.1.2.1. I2C communication
          • 14.1.2.2. MPU6050
        • 14.1.3. Circuit
        • 14.1.4. Sketch
          • 14.1.4.1. Acceleration_Detection
    • 15. Chapter LED Bar
      • 15.1. Project 15.1 LED Bar
        • 15.1.1. Component List
        • 15.1.2. Code Knowledge
          • 15.1.2.1. Hexadecimal
        • 15.1.3. Component Knowledge
          • 15.1.3.1. 74HC595
        • 15.1.4. Circuit
        • 15.1.5. Sketch
          • 15.1.5.1. 74HC595_LEDBAR
    • 16. Chapter 4-digit 7-segment Display
      • 16.1. Project 16.1 4-digit 7-segment Display
        • 16.1.1. Component List
        • 16.1.2. Component Knowledge
          • 16.1.2.1. 4-digit 7-segment display
        • 16.1.3. Circuit
        • 16.1.4. Sketch
          • 16.1.4.1. Digital_Tube
      • 16.2. Project 16.2 4-digit 7-segment Display
        • 16.2.1. Component List
        • 16.2.2. Circuit
        • 16.2.3. Sketch
          • 16.2.3.1. Digital_Tube
    • 17. Chapter LED Matrix
      • 17.1. Component List
      • 17.2. Component Knowledge
        • 17.2.1. LED matrix
      • 17.3. Circuit
      • 17.4. Sketch
        • 17.4.1. LED_Matrix
    • 18. Chapter I2C LCD1602
      • 18.1. Project 18.1 Display the String on I2C LCD1602
        • 18.1.1. Component List
        • 18.1.2. Component Knowledge
          • 18.1.2.1. I2C LCD1602
        • 18.1.3. Circuit
        • 18.1.4. Sketch
          • 18.1.4.1. Display_the_string_on_LCD1602
      • 18.2. Project 18.2 I2C LCD1602 Clock
        • 18.2.1. Component List
        • 18.2.2. Code Knowledge
          • 18.2.2.1. Timer
        • 18.2.3. Circuit
        • 18.2.4. Sketch
          • 18.2.4.1. LCD1602_Clock
    • 19. Chapter Stepper Motor
      • 19.1. Project 19.1 Drive Stepper Motor
        • 19.1.1. Component List
        • 19.1.2. Component Knowledge
          • 19.1.2.1. Stepper Motor
          • 19.1.2.2. ULN2003 stepper motor driver
        • 19.1.3. Circuit
        • 19.1.4. Sketch
          • 19.1.4.1. Drive_Stepper_Motor
    • 20. Chapter Matrix Keypad
      • 20.1. Project 20.1 Get Input Characters
        • 20.1.1. Component List
        • 20.1.2. Component Knowledge
          • 20.1.2.1. 4x4 keypad
        • 20.1.3. Circuit
        • 20.1.4. Sketch
          • 20.1.4.1. Get_Input_Characters
    • 21. Chapter Infrared Remote
      • 21.1. Project 21.1 Infrared Remote Control
        • 21.1.1. Component Knowledge
          • 21.1.1.1. Infrared remote
          • 21.1.1.2. Infrared receiver
        • 21.1.2. Circuit
        • 21.1.3. Sketch
          • 21.1.3.1. Infrared_Remote_Control
      • 21.2. Project 21.2 Control LED through Infrared Remote
        • 21.2.1. Circuit
        • 21.2.2. Sketch
          • 21.2.2.1. Control_LED_through_Infrared_Remote
    • 22. Chapter Infrared Motion Sensor
      • 22.1. Component List
      • 22.2. Component Knowledge
        • 22.2.1. Infrared Motion Sensor
      • 22.3. Circuit
      • 22.4. Sketch
        • 22.4.1. Infrared_Motion_Sensor
    • 23. Chapter Ultrasonic Ranging
      • 23.1. Project 23 Ultrasonic Ranging
        • 23.1.1. Component List
        • 23.1.2. Component Knowledge
          • 23.1.2.1. Ultrasonic ranging module
        • 23.1.3. Circuit
        • 23.1.4. Sketch
          • 23.1.4.1. Ultrasonic_Ranging
            • pulseIn()
          • 23.1.4.2. Ultrasonic_Ranging
    • 24. Chapter RFID
      • 24.1. Project 24.1 Read UID
        • 24.1.1. Component List
        • 24.1.2. Circuit knowledge
          • 24.1.2.1. RFID
        • 24.1.3. Component Knowledge
          • 24.1.3.1. MFRC522 RFID Module
          • 24.1.3.2. Mifare1 S50 Card
        • 24.1.4. Circuit
        • 24.1.5. Sketch
          • 24.1.5.1. RFID_Read_UID
      • 24.2. Project 24.2 Read and write
        • 24.2.1. Component list
        • 24.2.2. Circuit
        • 24.2.3. Sketch
          • 24.2.3.1. RFID_Read_And_Write
    • What’s Next?
    • Appendix
      • ASCII Table
  • Processing language
    • Note
    • Preface
      • Processing Software
      • First Use
    • 1. Chapter Voltmeter
      • 1.1. Project 1.1 Voltmeter
        • 1.1.1. Component list
        • 1.1.2. Circuit
        • 1.1.3. Communication protocol
        • 1.1.4. Sketch
          • 1.1.4.1. Sketch Voltmeter
        • 1.1.5. Component list
        • 1.1.6. Circuit
        • 1.1.7. Sketch
          • 1.1.7.1. Sketch Voltmeter_Dual_Channel
    • 2. Chapter Oscilloscope
      • 2.1. Project 2.1 Oscilloscope
        • 2.1.1. Component list
        • 2.1.2. Circuit
        • 2.1.3. Sketch
          • 2.1.3.1. Sketch Oscilloscope
    • 3. Chapter Control 2D and 3D Figures
      • 3.1. Project 3.1 Ellipse
        • 3.1.1. Component list
        • 3.1.2. Circuit
        • 3.1.3. Sketch
          • 3.1.3.1. Sketch Ellipse
      • 3.2. Project 3.2 Box 3D
        • 3.2.1. Component list & Circuit
        • 3.2.2. Sketch
          • 3.2.2.1. Sketch Box_3D
    • 4. Chapter Snake Game
      • 4.1. Project 4.1 Snake Game
        • 4.1.1. Component list
        • 4.1.2. Circuit
        • 4.1.3. Sketch
          • 4.1.3.1. Sketch Snake_Game
      • 4.2. Project 4.2 Snake Game 3D
        • 4.2.1. Component list
        • 4.2.2. Circuit
        • 4.2.3. Sketch
          • 4.2.3.1. Sketch Snake_Game_3D
    • 5. Chapter Pong Game
      • 5.1. Project 5.1 Pong Game
        • 5.1.1. Component list
        • 5.1.2. Circuit
        • 5.1.3. Sketch
          • 5.1.3.1. Sketch Pong_Game
      • 5.2. Project 5.2 Pong Game 3D
        • 5.2.1. Component list
        • 5.2.2. Circuit
        • 5.2.3. Sketch
          • 5.2.3.1. Sketch Pong_Game_3D
    • What’s next?
fnk0059-docs
  • Search