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:5:40

Video transcript

okay so now what we're gonna do is we're going to modify our arduino nano to work with this bot so the the nano that we have has these header pins that stick out of the bottom of it and you can see them here and the header pins are great for connecting it to a prototyping board or a breadboard but they they don't provide a lot of ways for us to connect it to our particular bots so we have these female header pin connectors and they've got a a male end and a female end so we're going to trim off just the right number of those using our nipper pliers and so once we have those trimmed off we're going to connect the header pins from the Arduino to the header pins on our female male header pin connectors and that will allow us to plug wires in and take them back out really easily so it'll make it easier for us to change things out otherwise we would have to solder directly to the Arduino and that could be a problem if for some reason we wanted to change something around so we want to make sure that we count the exact number of pins that is sticking out of the Arduino board and we match the male-female header pin connector to the number of pins that are sticking out there so we're going to take these pins and we're going to bend them 90 degrees with our pliers so we're gonna grab our pliers and just going to bend those pins 90 degrees it's really important that we that we do this carefully and that we bend them completely out 90 degrees so that they're sticking straight out of the sides so they were sticking straight down so we're gonna make sure that we bend them completely to stick straight out the side and you'll probably have to bend them a couple of times to get them perfectly straight and get them to line up just right but this is gonna make it a lot easier for us to connect to those male female header socket pins which are sitting there on the table okay so we're bending all these out and what we can do is once we've got those bent out it's important also that they're all sort of bent out at the same angle you don't want them sticking in all bunch of different directions you want them all reasonably the same okay so when we push this down we can tell that there's still a little bit that we can bend those to get them perfectly horizontal so they should they should be at the same plane they should be in the same plane as the actual Arduino board so perfectly horizontal and that'll make it a lot easier to make our solder connections with our male female socket pin connectors or header pin connectors that are again sitting on the table there okay so now that we've got all that bent out we're going to take our alligator clips are the helping hand clips and we're gonna hold our Arduino in place now if you're working with a partner you can get this you can get them to take appliers and hold the the Nano in place just be sure when you grab the Nano that you only touch the very corners the parts that you see the little holes on you don't want to squeeze any of the components you see a lot of little boxes on the back there those are components and if you grab those with a alligator clip or a pliers you could break them off and that means that the the chip won't work the way it's supposed to or the board won't work the way it's supposed to I should say so once you have the the piece you should have the the pins from the header pin the male-female header pin connecting to the pins from your Arduino they should be flush up against the pins from the Arduino so what I'm doing now is I'm just using some spare alligator clips to make sure that those two things are squeezed tightly against one another and then I'm gonna take my soldering iron and makes you put a little bit of solder on it and just knock that extra solder off again we're just tinning the tip of the soldering iron and then I'm going to put the soldering iron right on the joint between those two things and just put enough solder on them to make sure that there's a good connection you don't want to put too much solder because if you bridge the joint between the two pins I mean in other words if you bridge across two different connections it'll cause some problems for you you it won't the chip won't work the way it's supposed to so you want to put just enough solder to connect the two but not a whole lot more and you can see that that that smoke from the flux is moving out of the way rapidly and that's because I've got a good airflow so I definitely recommend making sure you've got like a fan going or something so you don't don't breathe the the flux and so once you've got a number of those connected you can take that final alligator clip off and I just saw a pin they needed a little bit more solder and we'll do the the rest there so now all of those pins are connected and what we've done is I'm just going back through and double-checking any of the other pins we've we've done this is the second side so I did the second side the exact same way as the first side and so that means now that we can easily swap out the two and so I'm trimming off the excess wires there's some wire that sticks past the solder joint so I'm going to trim that off using the nipper pliers and when you do this make sure you're wearing safety glasses because those extra little wires can fly off and so you want to make sure you're wearing safety glasses to do that now we have to make sure that the parts that we just put connected don't conduct electricity some part of the board we don't want them to so we're going to cover over the bottom of our Arduino Nano with electrical tape and we want to make sure all of those connections we just made are completely covered otherwise they could rub up against some part of the motor controller or another exposed metal piece and cause a short and that might ruin our board and we don't want that to happen so now we are ready to connect our Arduino board to our motor controller