X
Home > Blog > STEM for Arduino > HOW to Make a Seesaw with Kidsuno

HOW to Make a Seesaw with Kidsuno

By r August 14th, 2024 741 views
1. Overview
It is well known that seesaw is sought-after among children. Usually, two children sit on both ends of the seesaw and step on the ground in turn to make one end rise and the other fall. However, in this project, we will work to make a seesaw that can rise and fall automatically.

2. Components

Img

Img

Img

Img

Kidsuno Mainboard×1

360°Servo×1

USB Cable×1

Lego Series×1

Img

3. Make A Seesaw

Img

4. Installation

Please refer to the following link:https://kd.kidsbits.cc/KD3020

5. Programming Steps

Step1:Wiring Diagram

Connect the kidsuno mainboard and computer via a USB cable, and connect the 360° servo to the G, V and D13 interface of the mainboard. The brown wire is connected to G, the red wire is connected to V and the orange wire is connected to D13.

Img

Step2:Add Servo

Img

Img

Diagram of the Extension Instruction Block

Img

Add Servo Instruction Block

Img

Step3: Description of Building Blocks

Img

Set the angle value and delay to the specified pin. When the angle value is 90, the servo will stop rotating; if it is 0 ~ 90, the servo will rotate clockwise, the smaller the value, the faster the rotation speed; if it is 90 ~ 180, the servo will rotate counterclockwise, the larger the value, the faster the rotation speed.

Rotation of 180° Servo and 360° Servo :

Img

Step4:Write the Program

① Drag the instruction block Imgin the Events module to the script area.

Img

② Drag the instruction blockImgin the Servo module to the script area. Since the servo is connected to the G, V and D13 interface of the mainboard(The brown wire is connected to G, the red wire is connected to V and the orange wire is connected to D13), then change the number 3 to 13 and angle to any value within the range of 0 ~ 90 or 90 ~ 180. To make the servo rotate slowly, the angle value entered here is 60.

Img

③ Complete Program

Img

Step5:Test Result

ClickImgto upload the complete program to the kidsuno mainboard and power up, then the seesaw can rise and fall automatically.

1-9

6. Expansion Project
Img
The sample code is below:
Img
HOW to Make An Intelligent Integrated Traffic System with Kidsuno
Previous
HOW to Make An Intelligent Integrated Traffic System with Kidsuno
Read More
How to Program Relay Module on Kidsuno
Next
How to Program Relay Module on Kidsuno
Read More
Message Us