View on GitHub

kiddo_blocks

A MakeCode project

Kiddo Robot Extension

Kiddo Robot

This extension provides a comprehensive set of blocks for controlling the Kiddo Robot, including sensors, actuators, and other utilities. It is designed to work with the MakeCode editor and supports various functionalities such as motor control, sensor reading, IR remote control, and RGB LED control.

Created by Edusharks

Website


πŸš€ Features


πŸ› οΈ Installation

πŸ“˜ Usage

Pins


πŸ” Sensors

Line Follower

Ultrasonic Sensor


πŸ”§ Actuators

Motors

RGB LED

Servo Motors


πŸš€ Examples

Line Following Robot

Kiddo.initializeLineFollower()
basic.forever(function () {
    if (Kiddo.readLeftLineFollowerSensor() === 1 && Kiddo.readRightLineFollowerSensor() === 1) {
        Kiddo.move(Kiddo.Direction.Forward, 50)
    } else if (Kiddo.readLeftLineFollowerSensor() === 1) {
        Kiddo.controlMotor(Kiddo.Motor.R, Kiddo.Direction.Forward, 50)
        Kiddo.stopMotor(Kiddo.Motor.L)
    } else if (Kiddo.readRightLineFollowerSensor() === 1) {
        Kiddo.controlMotor(Kiddo.Motor.L, Kiddo.Direction.Forward, 50)
        Kiddo.stopMotor(Kiddo.Motor.R)
    } else {
        Kiddo.stopAllMotors()
    }
})

IR Remote Controlled Robot

Kiddo.initializeIrReceiver()
Kiddo.onIrButton(Kiddo.IrButton.CH, Kiddo.IrButtonAction.Pressed, function () {
    Kiddo.move(Kiddo.Direction.Forward, 50)
})
Kiddo.onIrButton(Kiddo.IrButton.CH, Kiddo.IrButtonAction.Released, function () {
    Kiddo.stopAllMotors()
})

πŸ“ License

This project is licensed under the MIT License. See the LICENSE file for details.


πŸ™Œ Contributing

Contributions are welcome! If you have improvements or new features to add, feel free to submit a pull request or open an issue.

Happy coding with Kiddo Robot! πŸš€πŸ€–


Got any adjustments in mind or new features you want to highlight? Let us know! ✨