4WD Robot

KS0559 Keyestudio 4WD robot V2.0

  • 1. Getting started with 4WD robot
  • 2. Product installation
  • 3. Driver installation
  • 4. Arduino Tutorial
  • 5. Kidsblock Tutorial
    • Kidsblock - Read Me First
    • Kidsblock - Projects
      • Project 1 LED Blink
        • 1.Description
        • 2.Specification
        • 3.Components
        • 4.Wiring Diagram
        • 5.Test Code
        • 6.Test Result
        • 7.Extension Practice
      • Project 2: Adjust LED Brightness
      • Project 3: Line Tracking Sensor
      • Project 4 Servo Control
      • Project 5 Ultrasonic Sensor
      • Project 6 IR Reception
      • Project 7 Bluetooth Remote Control
      • Project 8 Motor Driving and Speed Control
      • Project 9 Facial Expression LED Board
      • Project 10 Restricting Smart Car
      • Project 11 Line Tracking Smart Car
      • Project 12 Ultrasonic Following Smart Car
      • Project 13 Ultrasonic Obstacle Avoidance Smart Car
      • Project 14 IR Remote Control Smart Car
      • Project 15 Bluetooth Control Smart Car
      • Project 16 Bluetooth Speed Control Smart Car
      • Project 17 Multi-purpose Bluetooth Smart Car
4WD Robot
  • 5. Kidsblock Tutorial
  • Project 1 LED Blink
  • View page source

Project 1 LED Blink

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 color by altering the delay time in the test code. When in control, power on GND and VCC, the LED will be on if S end is in high level, otherwise it will go off.

2.Specification

  • Control interface: digital port

  • Working voltage: DC 3.3-5V

  • Pin spacing: 2.54mm

  • LED display color: red

3.Components

Development Board *1

8833 Motor Driver *1

Red LED Module*1

img

img

img

3P F-F Dupont Wire*1

USB Cable*1

img

img

4.Wiring Diagram

As can be seen from the above figure, the Keyestudio 8833 motor driver expansion board is stacked on the Keyestudio 4.0 development board.

The pin G, V and S of the LED module are connected to G, 5V and D9 of the expansion board respectively.

5.Test Code

You can drag blocks to edit. Blocks listed below are for your reference.

(1).

(2).

(3).

Complete Test Code

6.Test Result

After successfully uploading the code to the V4.0 board, connect the wirings according to the wiring diagram, and use a USB cable to connect the computer to power the board. After powering on, you will see the LED connected to the D9 will be on and off.

7.Extension Practice

Next, we look to change the frequency of LED flicker by changing the wait time.

After successfully uploading the code to the V4.0 board, connect the wirings according to the wiring diagram, and use a USB cable to connect the computer to power the board. The test result shows that the LED flashes faster.

Previous Next

© Copyright keyestudio , WiKi.

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