This will include the car to be able to do both autonomous and remote control, driving with the ir remote. So first lay out all your kit components. You will need everything. Besides the wires that are not attached to any components already so you’ll need your rc car chassis and that will include motor brackets on the bottom. A breadboard and a double a battery holder you’ll also need your l298 motor controller. You’Ll need an uno board. The ultrasonic sensor, holder you’ll, need four dc motor wheel: pairs sg90 servo, two line, trackers two line tracker holders, an ultrasonic sensor, an allen wrench and the miscellaneous set of screws that you receive in addition to the servo horn, screw this little one right here. That will be included in the servo bag. Além disso, you will also need a screwdriver, so i’m using two different screwdrivers i’m using a flathead and a smaller phillips head, the phillips head, it’s not necessary, but that will be used for the servo screw and the flathead will be used for the l298. I just figured out that is a favorable item to have when you’re screwing, those in so we’re going to move all this out of the way. OKEY, we will begin our assembly with the robot chassis. You’Ll also need your inner board and l298 and several screws and the allen wrench. So these are attached in a certain way that allows for the most room on the board and most efficiency in using it.
So you’ll see already that the battery holder is included on the board. It is glued on already there’s no need to do any attachment with that. Além disso, the the 400 pin breadboard is also attached to the top of that um. So let’s go ahead and attach the uno board. The uno board will be attached on this side compared to the battery holder and it’ll, be the right side of the board looking at it. This way from my point of view and line up the screw holes, and then i prefer doing a screw through the bottom, so placing a screw through the bottom of the the chassis and up through the board. That way, you don’t have anything interfering below the board and you can see all the nuts and making sure that there are no connections lost. Anything like that. Let’S go ahead and screw that in don’t tighten it all the way, keep it a little loose and tighten the rest of them in the same way. So once you’re done with that you’ll have it fastened on just go ahead and make sure all the screws are tight, tighten them equally, and you should have a firmly established board so now, with your l298 motor controller you’re going to do the same thing on the Other side, so what you should do is you should point the these are going to be the voltage pins that connect to the battery they should face towards the outside of the robot.
So you don’t have to put high voltage wires near any of the arduino board components, maybe risking a spark. Do the same thing we’re going to go through the back of the board in that same way, again, not tightening all the way until the end place that through all right. So now that you’ve done all that, you should have everything set up to be tight on the board and if you shake it, you should not hear any wiggling rattling. Anything like that, so make sure it’s all good, and then we are going to add the servo. So the servo is going to go here and it’s going to support the ultrasonic sensor. So what you do is go ahead and put that there and you want this to be farther towards the middle, so you’re going to point it inwards, the horn place. So this is where you’re going to put the servo horn on top of here, you want it to be down the midline for the best effect for a lot of these sg90 servos. You do not need a nut on the other side. You can do that. If you want, but sometimes the hole is just tight enough on there to screw in the screw, and it should go right through to the other side and stay in place same thing. On the other side, okay i’ve now tightened the servo down and it’s time to make sure that that is in place, and then we can put the ultrasonic sensor holder on top of that.
So what you do is you take your servo screw horn, which is this little screw right here, it’s included in the bag, and you place this with the preset servo horn already in it, and you try to line it up with the midline. So what you’re going to do is you’re going to make sure that when you turn this thing, so you turn it all the way and it should make a complete. So if you turn it all the way, it should go all the way to here. This is the position that, if it is fully turned in the clockwise direction, you would like that to be facing there, because what’s going to happen is the ultrasonic sensor is going to be in here, and you want that its 180 degree point so once you have It there just pull it back to the middle and tighten that in, and you know you have a good position so i’m going to use the screwdriver and go ahead and tighten that in use the servo screw through the servo horn hole there’s a space in the Plastic for you to do that, tighten it down a good amount. Don’T worry about overdoing it. It doesn’t need to be the most sturdy thing ever after you have the ultrasonic sensor holder in place, clip it in and you should feel a snug fit. The sockets should line up with the echo and trick chambers and fit nicely so just give it a little shake make sure it’s not coming off and once we’re done with that, we can now move on to the motor attachments so go ahead and take out the Four dc motors that you have and we are going to add those now so probably best flipped over and make sure that the ultrasonic sensor doesn’t get broken in the meantime.
So now that we’re ready to add the dc motors you’re, going to do it by taking each one of these. You see the holes that on these and they are going to line up with the holes on the motor chambers, so the motor holders, you see the holes line up right there, you take a 30 millimeter screw that’s in your kit, the longer one and it is Going to go through one of the holes, i prefer doing the top one just because it gives more leverage for it, it’s just more advantageous for it. You only need one. You can use two if you want, but the kit does come with one so go ahead and move it in through there. You want the short, the short cap of the screw on the outside of the robot, because it interferes with the wheel. Less than does the leftover portion of it so you’re going to go ahead and screw that in it is an m 2.5 screw. So you are going to use an allen wrench that you used for all the other screws just go ahead and tighten that up same for the other motors. Keep in mind that you want the motor shafts to be on the outside of the robot. So the shafts are these white parts. You want those to be on the ends of the robot, so you want the wires internal, the shafts extra. So additionally, you want the wires internal.
So you do not want this motor flip directions and the wires extending outside that risks, collision and in collision. It could break the connection and it is just safer if it is on the inside. So now that you have everything firmly attached, you can now add the wheels the wheels have a rectangular pattern that fit directly with the motor shaft make sure not to press them in too hard, as you don’t, and counter that, on the other end of the motor Shaft so the odd scenario that it does happen, the shaft does not go through the motor while you’re pressing this on also make sure that it is not all the way on there. You do not want the wheel bent as it rubs against the screw. So just keep that in mind and make sure you have a little bit of wiggle room. You will do that on each of the sides, all right so now you should have all the wheels attached. You should be able to flip it over and start to recognize the rc car forming. So the last part we’re going to do is the line trackers, and these line trackers are going to be added through the line. Tracker holders line tracker holders are first going to be fitted with a line tracker, so you can go ahead and move the robot body out of the way and that’s going to be done through attaching this through there. So you’re going to attach this to the underside.
The line tracker to the underside and make sure that the tower portion of it is on the side of the ir leds, so you’re going to keep those on the same side. You see here and put a screw through the bottom, as we have done before. Keep in mind keeping the same orientation as i am and then tighten the screw through the center i’m just going to fasten that onto there roll it up the counter, the camera a little bit. Então, as you see, that is a fully attached line tracker you set that aside and do the same thing with the other one and you’re going to keep the line tracker again with the tower facing outwards, with the led turned around on the bottom i’m going to Place the screw from the underside again and then tighten with a nut from the top should have two ir line: trackers with holders now you’re going to connect those to the robots, go ahead and bring the robot chassis back into frame and what you may need to Do you may need to pop the two of the wheels off, but i usually have success just placing it in here so you’re going to need to place it like this place, the screw through here and then a nut on the other side it’s a little bit. Tedious, but eventually you’ll get it the nut drives very close motor by design so that the line tracker does not swivel, as the code is running so once you have that securely fastened in you are going to move to the other side.
Então, on the other side, you do the exact same thing: placing this here, placing a screw through this side and then putting it up on the other side, all right now that the other side is attached.