keyestudio WiKi

KS4034 Keyestudio micro bit 4WD Mecanum Robot Car Kit V2.0

  • 1. Introduction
  • 2. Installation
  • 3. Makecode
    • Resource Download
    • 1.Getting Started with Micro:bit
    • 2. CoolTerm Installation
    • 3.Makecode Extension Libraries
    • Project 1: Heartbeat
    • Project 2: Light A Single LED
    • Project 3: LED Dot Matrix
    • Project 4: Programmable Buttons
    • Project 5: Temperature Detection
    • Project 6: Geomagnetic Sensor
    • Project 7: Accelerometer
    • Project 8: Light Detection
    • Project 9: Speaker
    • Project 10: Touch-sensitive Logo
      • (1)Project Description:
      • (2)Components Needed:
      • (3)Test Code :
      • (4)Test Results:
    • Project 11: Microphone
    • Project 12: Bluetooth Wireless Communication
    • Project 13:Seven-Color LED
    • Project 14:4 WS2812 RGB LEDs
    • Project 15:Servo
    • Project 16:Motor
    • Project 17:Line Tracking Sensor
    • Project 18:Ultrasonic Sensor
    • Project 19:IR Remote Control
    • Project 20:Bluetooth Multi-purpose Smart Car
    • Common Problems
  • 4. Python
keyestudio WiKi
  • 3. Makecode
  • Project 10: Touch-sensitive Logo
  • View page source

Project 10: Touch-sensitive Logo

Click to download the code for this lesson

(1)Project Description:

The Micro: Bit main board V2 is equipped with a golden touch- sensitive logo, which can act as an input component and function like an extra button.

It contains a capacitive touch sensor that senses small changes in the electric field when pressed (or touched), just like your phone or tablet screen do.When you press it , you can activate the program.

(2)Components Needed:

Micro:bit main board V2

Micro USB cable

(3)Test Code :

Link computer with micro:bit board by micro USB cable, and program in MakeCode editor,

Complete Program :

(4)Test Results:

After uploading the code, touching the logo with your hand will display a heart shape on the dot matrix. Releasing your touch will reveal a number, with longer contact times displaying larger numbers.

Previous Next

© Copyright keyestudio , WiKi.

Built with Sphinx using a theme provided by Read the Docs.