Logo

FNK0045

  • Welcome
    • Getting Started
    • Get Support and Offer Input
    • Safety and Precautions
    • About Freenove
    • Copyright

Preface

  • Preface

Micro:bit

  • Micro:bit
    • Meet micro:bit
    • Features
    • Hardware
      • GPIO

Micro:bit GPIO Extension Board

  • Micro:bit GPIO Extension Board
    • Hardware and Feature
    • How to use?

Code & Programming

  • Code & Programming
    • Quick Start
      • Step 1: Connecting Micro:bit
      • Step 2: Write Program
      • Step 3: Flashing Code to your Micro:bit
      • Step 4: Run the Program
      • Warning
    • MakeCode
    • Quick Download
      • Pair device
    • Import Code
    • Python
      • Mu
      • Import necessary Python file into micro:bit

Projects

  • 1. Chapter LED matrix
    • 1.1. Project Heartbeat
      • 1.1.1. Component List
      • 1.1.2. Circuit
      • 1.1.3. Block code
        • 1.1.3.1. Reference
      • 1.1.4. Python Code
        • 1.1.4.1. Reference
          • display.show()
          • sleep()
    • 1.2. Project Displaying Number
      • 1.2.1. Circuit
      • 1.2.2. Block code
        • 1.2.2.1. Reference
      • 1.2.3. Python code
        • 1.2.3.1. Reference
          • display.scroll()
    • 1.3. Project Displaying Text
      • 1.3.1. Circuit
      • 1.3.2. Block code
        • 1.3.2.1. Reference
      • 1.3.3. Python code
    • 1.4. Project Displaying Custom
      • 1.4.1. Circuit
      • 1.4.2. Block code
        • 1.4.2.1. Reference
      • 1.4.3. Python code
        • 1.4.3.1. Reference
  • 2. Built-in Button
    • 2.1. Project Button A and B
      • 2.1.1. Circuit
      • 2.1.2. Block code
        • 2.1.2.1. Reference
      • 2.1.3. Python code
        • 2.1.3.1. Reference
          • is_pressed()
  • 3. Chapter LED
    • 3.1. Project Blink
      • 3.1.1. Component List
      • 3.1.2. Circuit Knowledge
        • 3.1.2.1. Current
        • 3.1.2.2. Resistor
        • 3.1.2.3. Analog signal and Digital signal
        • 3.1.2.4. Low level and high level
        • 3.1.2.5. Jumper
        • 3.1.2.6. Breadboard
        • 3.1.2.7. LED
      • 3.1.3. Circuit
      • 3.1.4. Block code
        • 3.1.4.1. Reference
      • 3.1.5. Python code
        • 3.1.5.1. Reference
          • pin.write_digital()
  • 4. Chapter Button and LED
    • 4.1. Project Control LED by Button
      • 4.1.1. Component List
      • 4.1.2. Circuit knowledge
        • 4.1.2.1. Connection of Push Button Switch
      • 4.1.3. Circuit
      • 4.1.4. Block code
        • 4.1.4.1. Reference
      • 4.1.5. Python code
        • 4.1.5.1. Reference
          • pin.read_digital()
    • 4.2. Project Table Lamp
      • 4.2.1. Component list
      • 4.2.2. Circuit knowledge
        • 4.2.2.1. Debounce for Push Button
      • 4.2.3. Circuit
        • 4.2.3.1. Reference
      • 4.2.4. Python code
  • 5. Chapter LED Bar Graph
    • 5.1. Project Flowing Light
      • 5.1.1. Component List
      • 5.1.2. Component knowledge
        • 5.1.2.1. LED Bar Graph
      • 5.1.3. Circuit
      • 5.1.4. Block code
        • 5.1.4.1. Reference
      • 5.1.5. Python code
        • 5.1.5.1. Reference
          • display.off()
  • 6. Chapter PWM
    • 6.1. Project Breathing Light
      • 6.1.1. Component list
      • 6.1.2. Circuit knowledge
        • 6.1.2.1. PWM
      • 6.1.3. Circuit
      • 6.1.4. Block code
        • 6.1.4.1. Reference
      • 6.1.5. Python code
        • 6.1.5.1. Reference
          • pin.write_analog()
  • 7. Chapter RGBLED
    • 7.1. Project Breathing Light
      • 7.1.1. Component list
      • 7.1.2. Component knowledge
        • 7.1.2.1. RGB LED
      • 7.1.3. Circuit
      • 7.1.4. Block code
        • 7.1.4.1. Reference
        • 7.1.4.2. Python code
        • 7.1.4.3. Reference
          • map()
    • 7.2. Project Multicolored Light
      • 7.2.1. Component list
      • 7.2.2. HSL color
      • 7.2.3. Circuit
      • 7.2.4. Block code
        • 7.2.4.1. Reference
        • 7.2.4.2. Extensions
      • 7.2.5. Python code
        • 7.2.5.1. Reference
          • HSL_RGB()
  • 8. Chapter Neopixel
    • 8.1. Project Rainbow Water Light
      • 8.1.1. Component list
      • 8.1.2. Component knowledge
        • 8.1.2.1. Freenove 8 RGB LED Module
      • 8.1.3. Circuit
      • 8.1.4. Block code
        • 8.1.4.1. Reference
      • 8.1.5. Python code
        • 8.1.5.1. Reference
          • neopixel.NeoPixel()
          • show()
          • np()
  • 9. Chapter Buzzer
    • 9.1. Component knowledge
      • 9.1.1. Transistor
      • 9.1.2. Buzzer
    • 9.2. Project Active Buzzer
      • 9.2.1. Component list
      • 9.2.2. Circuit
      • 9.2.3. Block code
      • 9.2.4. Python code
    • 9.3. Project Happy Birthday Melody
      • 9.3.1. Component list
      • 9.3.2. Circuit
      • 9.3.3. Block code
        • 9.3.3.1. Reference
      • 9.3.4. Python code
        • 9.3.4.1. Reference
          • music.play()
    • 9.4. Project Custom Melody
      • 9.4.1. Component list
      • 9.4.2. Circuit
      • 9.4.3. Block code
      • 9.4.4. Python code
  • 10. Chapter Serial Communication
    • 10.1. Project Display the Data
      • 10.1.1. Component list
      • 10.1.2. Circuit
        • 10.1.2.1. Reference
      • 10.1.3. Python code
        • 10.1.3.1. Reference
          • uart.write()
  • 11. Chapter Magnetometer
    • 11.1. Project Display Magnetometer Data
      • 11.1.1. Component list
      • 11.1.2. Circuit
      • 11.1.3. Block code
        • 11.1.3.1. Reference
      • 11.1.4. Python code
        • 11.1.4.1. Reference
          • compass.calibrate()
          • compass.heading()
    • 11.2. Project Electronic Compass
      • 11.2.1. Component list
      • 11.2.2. Circuit
      • 11.2.3. Block code
        • 11.2.3.1. Reference
      • 11.2.4. Python code
  • 12. Chapter Accelerometer
    • 12.1. Project Display Accelerometer Data
      • 12.1.1. Component list
      • 12.1.2. Circuit
      • 12.1.3. Block code
        • 12.1.3.1. Reference
      • 12.1.4. Python code
        • 12.1.4.1. Reference
          • accelerometer.get_values()
    • 12.2. Project Gradiometer
      • 12.2.1. Component list
      • 12.2.2. Circuit
      • 12.2.3. Block code
        • 12.2.3.1. Reference
      • 12.2.4. Python code
        • 12.2.4.1. Reference
          • display.clear()
          • display.set_pixel()
          • accelerometer.get_x()
          • accelerometer.get_y()
  • 13. Chapter Potentiometer
    • 13.1. Project Potentiometer
      • 13.1.1. Component list
      • 13.1.2. Component knowledge
        • 13.1.2.1. ADC
        • 13.1.2.2. Potentiometer
        • 13.1.2.3. Rotary potentiometer
      • 13.1.3. Circuit
      • 13.1.4. Block code
        • 13.1.4.1. Reference
      • 13.1.5. Python code
        • 13.1.5.1. Reference
          • read_analog()
          • print()
  • 14. Chapter Potentiometer and LED
    • 14.1. Project Soft Light
      • 14.1.1. Component list
      • 14.1.2. Circuit
      • 14.1.3. Block code
      • 14.1.4. Python code
    • 14.2. Project Multicolored Soft Light
      • 14.2.1. Component list
      • 14.2.2. Circuit
      • 14.2.3. Block code
      • 14.2.4. Python code
    • 14.3. Project Rainbow Light
      • 14.3.1. Component list
      • 14.3.2. Circuit
      • 14.3.3. Block code
      • 14.3.4. Python code
  • 15. Chapter Light Sensor
    • 15.1. Project Built-in Light Sensor
      • 15.1.1. Component list
      • 15.1.2. Component knowledge
        • 15.1.2.1. Light sensor
      • 15.1.3. Circuit
      • 15.1.4. Block code
        • 15.1.4.1. Reference
      • 15.1.5. Python code
        • 15.1.5.1. Reference
          • display.read_light_level()
    • 15.2. Project Night Light
      • 15.2.1. Component list
      • 15.2.2. Component knowledge
        • 15.2.2.1. Photoresistor
      • 15.2.3. Circuit
      • 15.2.4. Block code
      • 15.2.5. Python code
  • 16. Chapter Temperature Sensor
    • 16.1. Project Built-in Temperature Sensor
      • 16.1.1. Component list
      • 16.1.2. Circuit
      • 16.1.3. Block code
        • 16.1.3.1. Reference
      • 16.1.4. Python code
        • 16.1.4.1. Reference
          • temperature()
          • display.scroll()
    • 16.2. Project Thermistor
      • 16.2.1. Component list
      • 16.2.2. Component knowledge
        • 16.2.2.1. Thermistor
      • 16.2.3. Circuit
      • 16.2.4. Block code
        • 16.2.4.1. Reference
        • 16.2.4.2. Extensions
      • 16.2.5. Python code
  • 17. Chapter Joystick
    • 17.1. Project Displaying Joystick Data
      • 17.1.1. Component list
      • 17.1.2. Component knowledge
        • 17.1.2.1. Joystick
      • 17.1.3. Component knowledge
        • 17.1.3.1. Joystick
      • 17.1.4. Circuit
      • 17.1.5. Block code
      • 17.1.6. Python code
    • 17.2. Project Showing Direction
      • 17.2.1. Component list
      • 17.2.2. Circuit
      • 17.2.3. Block code
      • 17.2.4. Python code
  • 18. Chapter 74HC595 and LED Bar Graph
    • 18.1. Project Flowing Water Light
      • 18.1.1. Component list
      • 18.1.2. Component knowledge
        • 18.1.2.1. 74HC595
      • 18.1.3. Circuit
      • 18.1.4. Block code
        • 18.1.4.1. Reference
      • 18.1.5. python code
        • 18.1.5.1. Reference
          • shiftOut()
  • 19. Chapter 74HC595 and 7-segment display
    • 19.1. Project 7-segment display
      • 19.1.1. Component list
      • 19.1.2. Component knowledge
        • 19.1.2.1. 1-digit 7-segment display
      • 19.1.3. Circuit
      • 19.1.4. Block code
        • 19.1.4.1. Reference
      • 19.1.5. Python code
  • 20. Chapter LCD1602
    • 20.1. Project I2C LCD1602
      • 20.1.1. Component list
      • 20.1.2. Component knowledge
        • 20.1.2.1. LCD1602
      • 20.1.3. Circuit
      • 20.1.4. Block code
        • 20.1.4.1. Reference
        • 20.1.4.2. Extensions
      • 20.1.5. Python code
        • 20.1.5.1. Import necessary Python file into micro:bit
        • 20.1.5.2. Reference
          • puts()
  • 21. Chapter Motor
    • 21.1. Project Relay & Motor
      • 21.1.1. Component list
      • 21.1.2. Component knowledge
        • 21.1.2.1. DC Motor
        • 21.1.2.2. Relay
        • 21.1.2.3. Inductor
      • 21.1.3. Circuit
      • 21.1.4. Block code
      • 21.1.5. Python code
    • 21.2. Project Potentiometer & Motor
      • 21.2.1. Component list
      • 21.2.2. Component knowledge
        • 21.2.2.1. L293D
      • 21.2.3. Circuit
      • 21.2.4. Block code
        • 21.2.4.1. Reference
        • 21.2.4.2. Python code
        • 21.2.4.3. Reference
          • pin.set_analog_period()
          • pin.write_analog()
  • 22. Chapter Servo
    • 22.1. Project Sweep
      • 22.1.1. Component list
      • 22.1.2. Component knowledge
        • 22.1.2.1. Servo
      • 22.1.3. Circuit
      • 22.1.4. Block code
        • 22.1.4.1. Reference
      • 22.1.5. python code
    • 22.2. Project Knob
      • 22.2.1. Component list
      • 22.2.2. Circuit
      • 22.2.3. Block code
      • 22.2.4. Python code
  • 23. Chapter Stepper Motor
    • 23.1. Project Stepper Motor
      • 23.1.1. Component list
      • 23.1.2. Component knowledge
        • 23.1.2.1. Stepper Motor
        • 23.1.2.2. ULN2003 Stepping motor driver
      • 23.1.3. Circuit
      • 23.1.4. Block code
      • 23.1.5. Python code
  • 24. Chapter Hygrothermograph
    • 24.1. Project Hygrothermograph
      • 24.1.1. Component list
      • 24.1.2. Component knowledge
      • 24.1.3. Circuit
      • 24.1.4. Block code
        • 24.1.4.1. Reference
        • 24.1.4.2. Extensions
      • 24.1.5. Python code
        • 24.1.5.1. Import necessary Python file into micro:bit
        • 24.1.5.2. Reference
          • sensor.read()
  • 25. Chapter Matrix Keypad
    • 25.1. Project Matrix Keypad
      • 25.1.1. Component list
      • 25.1.2. Component knowledge
        • 25.1.2.1. 4x4 Matrix Keypad
      • 25.1.3. Circuit
      • 25.1.4. Block code
      • 25.1.5. Python code
    • 25.2. Project Countdown Timer
      • 25.2.1. Python code
  • 26. Chapter Infrared Motion Sensor
    • 26.1. Project Sense Light
      • 26.1.1. Component list
      • 26.1.2. Component knowledge
      • 26.1.3. Circuit
      • 26.1.4. Block code
      • 26.1.5. Python code
  • 27. Chapter Ultrasonic Ranging
    • 27.1. Project Ultrasonic Ranging
      • 27.1.1. Component list
      • 27.1.2. Component Knowledge
      • 27.1.3. Circuit
      • 27.1.4. Block code
        • 27.1.4.1. Reference
        • 27.1.4.2. Extensions
      • 27.1.5. Python code
        • 27.1.5.1. Reference
          • getdistance()

What's next?

  • What’s Next?
fnk0045-docs
  • Search