When electricity passes through them, they turn on like light bulbs. They can be all sorts of colours. When you will hold it you will realise that one metal string is longer than the other. The longest is positive(It is called ANODE) and the shortest one is negative(It is called CATHODE)
That is where we will attach all sorts of components such as LEDs, resistors... In order to make the electricity pass through the components you have to attach both components on the same line otherwise nothing will happen.
It is made to control the amount of electricity in the circuit to prevent it from burning
1 - The red cable is meant to connect the plus crocodile cable, and this crocodile cable will be led to the plus side of the battery.
2 - Then we use something called resistances to avoid too much electricity or your project will burn.
3-A LED is an electronic component which turns on and off, more precisely it is a little lamp.
On a robot, it is used to light up the eyes of the robot. The most important thing to know is that where it is flat, it is the cathode (negative minus) and the round side is the anode (positive plus).
4- The jumper wires are used to connect the breadboard and the components to the Raspberry Pi
5- The battery contains all the power and can be connected to the breadboard with the crocodiles
6- the output is when the electricity goes up in the circuit.
7- The input is when the electricity goes back into the battery
8- The breadboard is the component where we will connect all the other components.
1- Connection GPIO (6) The ground 0v
2- Current flows go throw the LED and the resistor
3- Connection GPIO (18) 3.3v
4- Connection GPIO (23) 3.3v
5- Connection GPIO (24) 3.3v
At first, you have to create your chassis. You have to find a box who is about 16 cm maximum (6.3 inches). If you don't have something related to this, you can use the Raspberry Pi box in which you received your robot parts. You will be able to color it at the end if you think it will look prettier you will need the motor controller board, two motors with wires attached to it, two wheels, the battery box. The roller ball and double-sided tape to stick parts to the chassis.
At first, you have to create your chassis. You have to find a box who is about 16 cm maximum (6.3 inches). If you don't have something related to this, you can use the Raspberry Pi box in which you received your robot parts. You will be able to color it at the end if you think it will look prettier you will need the motor controller board, two motors with wires attached to it, two wheels, the battery box. The roller ball and double-sided tape to stick parts to the chassis.
When you have reassembled your parts, you have to turn the box upside down then stick the wheels to the motors with the cables facing the left, next stick the motors with superglue. Afterward, you have to make a hole in between the motors to pass the cables, so you will be able to connect the parts on the other side. Finally, do two small holes in the middle front, place the screws in the black ring and screw them with a bolt on the bottom and the metal ball inside.
Thirdly, you have to stick the raspberry on the battery box with some scratches and some double-sided sticky tape. You have to do four on the scratchy side and the other four on the soft side, or if there is another way it will not be impossible.
After sticking your Raspberry Pi to the battery box, you can put moss under to not damage your components. As you can see on the picture on your left you can see at the back of the robot there is a component called the motor controller you will use that to connect the wires of the motors and the battery box
Now, it is time to add the sensor to follow lines and follow patterns of colours, additionally you will be able to code him in python to control him. You have to stick the sensor at the bottom of the robot. Try to put it at least half a centimetre from the floor. You can put a brick of polystyrene to make it closer to the floor. Make sure the two little lights (the receiver and the receptor) are facing the floor.
The red object is a mini breadboard, we will use it to connect cables.
The mini breadboard was too small, so we replaced it to a big white breadboard. You should add a resistance, and you should also cut to the half, so the circuit does not burn.
You will need :
a sensor h
4 cables
2 resistors 330 OHM and an other one 470 OHM
If you observe the sensor, you might be asking yourself how does it work because there is a lot to know behind those two eyes. Firstly, if you have a look at the sensor right under the two cylinder shaped eyes there is a T and R. The T represents transmitter and the R reciver.
Next, you should put the sensor an the bread board and put resistance to prevent the sensor and the rasberry pi to burn anduse the right resistance depending on your sensor.
Afterwards you can use elastic bands to stick the cables together so you can leave some space for the next steps to build your impressive robot.
https://github.com/yes-means-haq/frankenBot/blob/main/distance.py