keyestudio WiKi

KS0607 Mini Tank Robot V3.1 tutorial

  • 1. Product introduction
  • 2. Product Installation
  • 3. Driver installation
  • 4. Arduino Tutorial
  • 5. Kidsblock Tutorial
    • Assemble Fire Extinguishing Robot
    • 5.1 Data download
    • 5.2 Software installation of Windows System
    • 5.3 Software installation of Mac System
    • 5.4 Projects
      • Project 1: LED Blinks
        • (1)Description:
        • (2)Parameters:
        • (3)Components Required:
        • (4)8833 Motor Driver Expansion Board:
        • (5)Connection Diagram:
        • (6)Test Code:
        • (7)Test Results:
        • (8)Extension Practice:
      • Project 2: Adjust LED Brightness
      • Project 3: Photoresistor
      • Project 4: Line Tracking Sensor
      • Project 5: Servo Control
      • Project 6: Ultrasonic Sensor
      • Project 7: IR Reception
      • Project 8: Motor Driving and Speed Control
      • Project 9: 8*16 Facial Expression LED Dot Matrix
      • Project 10: Light-following Tank
      • Project 11: Ultrasonic Sound-following Tank
      • Project 12: Ultrasonic Obstacle Avoidance Tank
      • Project 13: Move-in-Confined-Space Tank
      • Project 14:Line-tracking Tank
      • Project 15: IR Remote Control Tank
      • Project 16: Bluetooth Remote Control
      • Project 17: Bluetooth Control Tank
      • Project 18: Ultrasonic Tank Robot Multiple Functions
      • Project 19: Flame Sensor
      • Project 20: Fan
      • Project 21: Fire Extinguishing Tank
      • Project 22: Fire Extinguishing Robot Multiple Functions
  • 6. Need Technical Support?
keyestudio WiKi
  • 5. Kidsblock Tutorial
  • Project 1: LED Blinks
  • View page source

Project 1: LED Blinks

(1)Description:

For starters and enthusiasts, LED Blink is a fundamental program. LED, the abbreviation of light emitting diodes, consists of Ga, As, P, N chemical compounds and so on. The LED can flash in diverse colors by altering the delay time in the test code. When in control, power on GND and VCC. The LED will be on if the S end is at a high level; otherwise, it will go off.

(2)Parameters:

  • Control interface: digital port

  • Working voltage: DC 3.3-5V

  • Pin spacing: 2.54mm

  • LED display color: yellow

(3)Components Required:

(4)8833 Motor Driver Expansion Board:

The Keyestudio 8833 motor driver expansion board is compatible with the Arduino UNO development board. Just stack it onto the development board when using it.

(5)Connection Diagram:

NOTE: The LED is connected to the D9 port. Remember to install jumper caps onto the shield.

(6)Test Code:

You can also drag blocks to edit your code, as shown below.

Complete Test Code

(Note: Do not connect the Bluetooth module before uploading the code, because uploading the code also uses serial communication, and there may be conflicts with the Bluetooth serial communication, which can cause the upload to fail.)

(7)Test Results:

Upload the program, LED blinks at the interval of 1s.

(8)Extension Practice:

We have known how to control the LED, then let’s change the frequency of the LED.

We can the frequency of the LED without changing the pin of the LED. Let’s modify the code.

You can also drag blocks to edit your code, as shown below.

Complete Test Code

(Note: Do not connect the Bluetooth module before uploading the code, because uploading the code also uses serial communication, and there may be conflicts with the Bluetooth serial communication, which can cause the upload to fail.)

The test result shows that the LED flashes faster. Therefore, we can draw a conclusion that pins and time delaying affect flash frequency.

Previous Next

© Copyright Shenzhen keyestudio Technology Co., Ltd.

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