How to make a Smart tricycle?

How to make a Smart tricycle?

STORY

Unlike another smart tricycle on the market, which can only load goods, this one can not only load goods, but also turn automatically when it encounters obstacles ahead, and when it encounters strong UV rays, it will also sound a voice alarm and automatically back up to a place where the UV rays are weak.

 

CASE INTRODUCTION

This smart tricycle not only enables automatic obstacle avoidance when it encounters an obstacle but also sounds an alert when it encounters a very strong ultraviolet light and backs up to a place where the ultraviolet light is wea

 

REQUIRED EQUIPMENT

micro bit accessories online

micro:bit *1

micro bit accessories online

Nezha Breakout Board *1

micro bit accessories online

Motor*2

micro bit accessories online

PlanetX UV Sensor *1

micro bit accessories online

ELECFREAKS RJ11 4P4C 400mm Cable *4

micro bit accessories online

PlanetX MP3 Sensor *1

micro bit accessories online

Planetx Ultrasonic Sensor *1

micro bit accessories online

LED*1

micro bit accessories online

Some Blocks

 

ASSEMBLY STEPS

STEP 1

First, take a quadrilateral building block and start building the structural foundation.

STEP 2

Attach the four pins to the four corners of the block as shown in the diagram.

STEP 3

Then place the two motors on each side in turn.

STEP 4

Then according to the figure below, build the first half of a car on the square blocks, first superimpose the first four yellow blocks, superimpose two 9-hole blocks, then a 5-hole block, and a 12-hole block. The hole building block, (this 12-hole building block is mainly used to fix two sensors later), then put the H-shaped building block and then put two identical five-hole building blocks in front, and you are done.

STEP 5

Then build the two handles that fix the wheels on the front of the trolley.

STEP 6

Then follow the steps below to install the wheels and a ball to decorate the trolley.

STEP 7

Then attach the two wheels at the back of the trolley to the top of the motor, one on each side.

STEP 8

Extend two more square blocks, as shown in the picture, and two nine-hole blocks, for the purpose of making a carrier module for loading the back of the cart.

STEP 9

As shown in the picture, this is the built-up cargo carriage.

STEP 10

We then installed the H-blocks in the front car section for the ultrasound, as shown in the picture below.

STEP 11

As shown in the picture, first fix the led light to the 12-hole yellow block, and then fix the 7-shaped block to the back of the led light for decoration, or fix different types of blocks according to your situation.

STEP 12

As shown in the picture, then the UV sensor, again fixed in the nine holes blocks there, and then the 7 blocks fixed on the other side, left and right symmetry, this is also decorative, also according to their preferences, change different types of blocks decorative, so that is, the left and right sides have sensors, and decorative symmetry. (Note: the UV module is not available in the software, so it has been replaced with another model.)

STEP 13

This is mainly used to set the voice prompts, you can put different voice prompts according to your preference, and putting the songs inside is also possible.

Note: This is because the mp3 module is not available in the building software, so it is replaced by another model.

STEP 14

As shown in the picture, and then put this which tza expansion board into the blocks below, this expansion board is mainly used to insert micro:bit, and some sensors to expand, or expand a very strong expansion.

STEP 15

As shown in the picture, the last thing is to insert the motherboard, basically, a three-wheeled minivan has been built.

STEP 16

The built-up smart tricycle is shown in the picture.

 

micro:bit PROGRAMMING

We have now started to program the product to allow for voice prompts, obstacle avoidance and UV intensity detection.

STEP 1

As shown in the picture, first set a boot option, the interface of the mp3 first set to connect to the J1 interface of which tza, and then set the volume of the mp3, volume as shown in the picture is too small to hear, and then the motherboard set a boot display love icon, but also for a better look.

STEP 2

As shown in the diagram, there are three steps to run the program.

The first step is to set the ultrasonic sensing distance, when the distance is less than 20 cm obstacles, will be sensed, so as to implement obstacle avoidance, the implementation of obstacle avoidance procedures is to turn right, so we have to set the speed of the two motors, one side set 0, the other side set -50, will achieve the right turn, pause two seconds, is to turn right two seconds.

STEP 3

As shown in the diagram, the second step, we have to set the UV working mode, when the UV intensity is greater than or equal to 1, then the UV sensor, will detect the UV intensity, and begin to voice prompts, and red light on, and backward to the UV weak place.

STEP 4

As shown in the diagram, if the conditions of the first and second steps are not met, then we will set a program that allows the car to be executed directly, the car will go straight without triggering the above two conditions, and that is, because the red light is only lit when the trigger detects UV light, so to be set in this program off, as long as the conditions are not triggered, it will always be off.

STEP 5

The entire program is programmed as shown in the diagram.

 

DISPLAY

 

 

RESULTS

After entering the program, the very smart tricycle is finished and ready for use. The purpose of making this case is also to hope that, one day in the future, our cars, which can become even more intelligent, will also be greatly