Introduction: Make a Cool Micro:bit Hovercraft Together
Most of time the cars we made can only run on the surface of the ground. Today we are going to create a hovercraft, which runs both in the water and on the ground, or even in the air. We use two motors to blow air underneath to support the hovercraft body and two motors in the end to control its moving directions.
Step 1: Tools & Materials Needed:
2 x Micro:bit Board
4 x Hollow Cup Motor
2 x Positive Propeller
2 x Negative Propeller
1 x 7.4V Li battery
1 x 3.7V Battery
1 x Foam board
1 x Glue
Step 2: Procedure:
Step 1: Cut Foam Board
Step 2: Fix two motors in the center of the hovercraft body. (Because motors will generate heat, so you cannot use hot melting glue to fix motors.)
In order to reduce hull spinning by itself, we have used a positive propeller and a negative propeller to make the two motor rotate in different directions.
Step 3: Fix the tail motors. (Same to use positive and negative propellers)
Step 4: Fix driver board and batteries.(Pay attention to balance, or your hovercraft will deviate.)
Step 5: Install apron. (We use soft platic film to wrap around the hovercraft edges to reduce the air loss.
Step 6: Connect cables according to the schematic figure below.
Now, we have finished our hovercraft production. Next, we are going to program for our hovercraft.
Step 3: Programming
Click to open Microsoft Makecode, write your code in the edit area. I would like to suggest you to program by yourself first.
Of course, you can see the whole program in the links below. Just click Edit on the right top corner to start edit your program, and then click Download in the bottom to download your code into micro:bit directly.
Code for Hovercraft
Code for remote controller
Step 4: Code Explain
Set group IDs to tell your program to send or receive radio. A group is like a cable channel (a micro:bit can only send or receive in one group at a time). A group ID is like the cable channel number.
If you do not tell your program which group ID to use, it will figure out its own group ID by itself. If you load the very same program onto two different micro:bits, they will be able to talk to each other because they will have the same group ID.
P8 controls the direction of motor M1, while P1controls the speed of motor M1.
P12 controls the direction of M1, while P2 controls the speed of M1.
(The speed can not surpass 500, or the motors will be burned out.)
Read the value of joystick in Y axle to control the front and back of your hovercraft.
Step 5: Read the Values of Six Keys
- The Y axle of joystick controls the forward and backward movement of your hovercraft.
- 3 is for turning left, while 2 is for turning right.
- 5 is for spinning in the left direction in the same place, while 6 is for spinning right in the same place.
Let's download the code and take a look of the final effect!
Amazing! It flies above the ground! That's pretty cool! Now hurry up to move your hands to create a similar hovercraft! I would like to run a hovercraft competition with your own creations. I'm looking forward to it!
How to turn around when your hovercraft moves backward?
Step 6: Source
This article is from: https://www.elecfreaks.com/11518.html
If you have any questions, you can contact： firstname.lastname@example.org.
We have a be nice policy.
Please be positive and constructive.