If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content
Current time:0:00Total duration:8:33

Video transcript

now we're going to install our on/off switch and and the switch that will control our LEDs so we're gonna put two about 1/2 dime sized blobs of hot glue down on the back of the bot and remember you want to make sure that the hot glue does not interfere with the sliding of the switch or with the contacts on the back so when you push this the switch down just make sure you don't get hot glue in this switch otherwise it won't work so once those are in place the hot glue actually dries fairly quickly on the metal surface because it helps to conduct the heat away from the glue so once those are in place we can begin to connect our motors which will turn on and off with the switch so the first wire that we're going to connect will be to connect the two motors together this will help to complete the circuit and so what we're gonna do is we have a wire that's about the right length it's about two and a half three inches long and we're stripping off a good three-quarters of an inch of one side of that wire and the reason why we're stripping off so much insulation is that we're going to need to connect another wire to that wire later so then on the other side will only take off about a quarter of an inch so this is the side that has a little bit more than quarter maybe three-eighths of an inch there and so again we're going to loop that through the brass contact and we want to make sure that it touches the brass and connects with it as broadly as possible so that it is very firmly conducting the electricity and so it's tricky you got to spend a little bit of time with it but it will work so what I usually do is I'll run the the wire through it in a loop and then I'll run the wire to the other side and connect again thread the longer side of the wire through the motor and that that extra wire we're going to need to to make it connect to make another connection so again I'm looping the wire around the brass contact there so we can get as much of the wire in contact with brass as possible and it helps to take that needlenose pliers and squeeze it against the the wire on the motors and one thing I will say is those brass contacts are very small and thin and they can break easily so you have to be careful with how you how you crimp the wire onto the brass contact there okay so now that we have we've taken a piece of yellow wire and we it's about 2 inches long and we've stripped the ends and put a loop in the end and we're gonna crimp that end onto our switch so it's it's not as easy to do to build the bot this way as it would be if we were using solder because clearly solder is conductive and it allows the basically acts as a glue in and also conducts electricity but the blue we're using the hot glue doesn't conduct electricity so it's really important that our wire connections are sound and so you may need to adjust several times to get the the wire crimped in in such a way that it's gonna hold tightly to the connection on the switch and so it mines coming loose so I'm gonna go ahead and put it back again and see if I can't get it held tightly in place with the needlenose pliers and you can't bend the connections up to give it to give you a little bit more of a something to grip on to there the bend that Bend the terminals I should say okay so now I'm going to run the other side of the yellow wire to the exposed portion of the green wire that we just connected to the motors so I'm gonna put it in there I'm going to twist it around just like we did when we connected the LEDs or we joined the negative wire on our switches so we're gonna just twist this around again we want to make sure that that twisting happens multiple times so we have a good solid connection and there we go one other note is that we want to make sure that the yellow wire doesn't touch the other terminal on the switch otherwise it will always be on and we won't be able to turn the bot on and off so now that we've our motors we can go ahead and hot glue over the wire connections make sure they're all connected there and we we tested our blue wires and so we're going to go ahead and solder over or I should say hot glue over those connections and that will help to hold the wire in place and prevent any it will help to insulate it as well okay so now what we need to do is we need to connect the other wire to our switch that we just wired to the other yellow wire so the way the switch works is this is actually a three connection switch so it's a it's a single-pole double-throw switch and it's a single-pole double-throw sliding switch as opposed to a single pole double slot through a lever switch which we have at the front of the bottom so we only need two of these connections we don't need three of them and it doesn't matter you can choose two on one side or two on the other but you have to choose two that are next to each other in order for the switch to work so since we don't need this connection here this this pin here we're just bending it out of the way this pin won't won't be used useful because all we want to do is open and close the circuit we don't want to switch between it two different circuits so the next thing we're going to do is we're gonna take about the RET while the rest of our yellow wire we're going to strip off again about 3/8 of an inch 3/8 to a quarter of an inch of insulation and once we've got that pulled off there we go we'll create a loop in it and we'll link that loop to the terminal exposed terminal that is on our switch which is the terminal in the middle of the switch so we have one on the from that looking at the top we have one on the left side and then we're going to connect one wire to the middle of the switch so we've got our wire already cut and stripped and we loop put into it or just crimping it on to that Center terminal there and we're going to squeeze that tightly against the center terminal with our needlenose pliers so to test that connection we're running it running that wire back to the batteries and you can hear them running so now we're going to go ahead and hot glue that connection in place now that we know that it works and again basically what this switch is doing is its allowing us to convert our batteries which are wired in series which double the voltage to parallel and that allows us to double the capacity and run the motors at a little bit of a slower speed so once that hot glue has turned that milky color and and has cooled down we will connect the wire to the battery in the back so the hot glue is cool we're going to go ahead and pop our battery out back out of the holder there's a little hole there that we can stick the wire through and so the first thing we need to do is just kind of remove the battery so we can push the wire through and then just loop it up loop the wire up and as long as the wire is connected connecting against the side of the holder and the little rivet there we'll have a good electrical connection because that spring that's inside of the battery holder will push the battery against that and so we'll be able to make sure that we have good solid connection and once we put our battery back in we'll test it to make sure everything's working so I've put just a little bit of tape around the motors to make sure we could see him spin so you can trigger the motors with a single-pole double-throw switches or the slot of the lever switches or you can trigger them turn them on permanently with a sliding switch so when you push the single pulse lever switches causes the motors to back up and that's going to mean that our spout bot will be able to reverse