title
Raspberry pi with Python for Robotics 2 - Motor Control

description
Basic Raspberry Pi Robot Car Playlist: http://www.youtube.com/watch?v=LlFkybEQFFA&list=PLQVvvaa0QuDeJlgD1RX9_49tMLUxvIxF4&feature=share Greetings and welcome to the second part of our robotics with python and the raspberry pi! In this video, the basic assembly is shown for how to hook up our pi to the l298n controller, battery pack, and motors. After the initial hooking up, you are shown an extremely basic python script that will make the motor run momentarily and then stop. As we continue, we will build slightly more complex code, and get the motors to work with each other. http://seaofbtc.com http://sentdex.com http://hkinsley.com https://twitter.com/sentdex Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6

detail
{'title': 'Raspberry pi with Python for Robotics 2 - Motor Control', 'heatmap': [{'end': 586.235, 'start': 524.7, 'weight': 0.733}, {'end': 669.613, 'start': 654.384, 'weight': 0.789}, {'end': 717.692, 'start': 699.883, 'weight': 0.915}, {'end': 738.253, 'start': 726.336, 'weight': 0.819}, {'end': 886.134, 'start': 866.486, 'weight': 0.817}], 'summary': 'Covers wiring up a motor for raspberry pi robotics, connecting motor leads to an h-bridge and gpio pins, configuring gpio pins using color codes and pin assignments, and programming the first robot script to control motor pins to make the motor go for half a second.', 'chapters': [{'end': 89.918, 'segs': [{'end': 89.918, 'src': 'embed', 'start': 0.998, 'weight': 0, 'content': [{'end': 6.76, 'text': 'Alright, hello everybody and welcome back to our Python Raspberry Pi and robotics tutorial video series.', 'start': 0.998, 'duration': 5.762}, {'end': 10.681, 'text': "In this video, we're going to start wiring up this motor and get it going.", 'start': 7.26, 'duration': 3.421}, {'end': 15.803, 'text': "So the first thing that we're going to go ahead and do is actually wire up our motor here.", 'start': 10.721, 'duration': 5.082}, {'end': 19.424, 'text': "So as you can see, I've already attached the wheel to this.", 'start': 15.883, 'duration': 3.541}, {'end': 23.146, 'text': 'Anyway, the leads are right on the edges here, so here and here.', 'start': 20.145, 'duration': 3.001}, {'end': 29.931, 'text': 'The first thing that we want to go ahead and do is go ahead and actually wire up these leads.', 'start': 24.306, 'duration': 5.625}, {'end': 32.412, 'text': "What you'll want is two wires.", 'start': 30.532, 'duration': 1.88}, {'end': 34.875, 'text': 'These are the wires here.', 'start': 33.874, 'duration': 1.001}, {'end': 38.538, 'text': "I've already stripped off the ends of the wire.", 'start': 35.516, 'duration': 3.022}, {'end': 46.105, 'text': "Then what we'll go ahead and do is with our black on top, I'm just going to thread it through.", 'start': 39.479, 'duration': 6.626}, {'end': 49.928, 'text': 'It helps if you kind of twist it up a little bit.', 'start': 46.125, 'duration': 3.803}, {'end': 54.637, 'text': 'Here you would solder, I suppose, if you wanted.', 'start': 52.236, 'duration': 2.401}, {'end': 62.881, 'text': "Again, I just don't really see the point of soldering it when it's highly likely that you will just take this apart.", 'start': 55.638, 'duration': 7.243}, {'end': 66.322, 'text': 'And then do the same thing, connect your red lead.', 'start': 63.221, 'duration': 3.101}, {'end': 81.569, 'text': "So I'm just gonna take some electrical tape, put it on here, and then just wrap it around.", 'start': 66.342, 'duration': 15.227}, {'end': 89.918, 'text': "so again the better way to do it would be indeed to solder it but i'm not going to do that for now so that's that uh.", 'start': 83.376, 'duration': 6.542}], 'summary': 'Tutorial on wiring a motor for raspberry pi robot, using wires and electrical tape.', 'duration': 88.92, 'max_score': 0.998, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pbCdNh0TiUo/pics/pbCdNh0TiUo998.jpg'}], 'start': 0.998, 'title': 'Wiring up motor for raspberry pi', 'summary': 'Covers the process of wiring up a motor for raspberry pi robotics, including attaching the wheel, wiring the leads, and the decision not to solder due to the likelihood of disassembly.', 'chapters': [{'end': 89.918, 'start': 0.998, 'title': 'Wiring up motor for raspberry pi', 'summary': 'Covers the process of wiring up a motor for raspberry pi robotics, including attaching the wheel, wiring the leads, and the decision not to solder due to the likelihood of disassembly.', 'duration': 88.92, 'highlights': ['The first thing is to wire up the motor leads, using two wires and attaching them with electrical tape, as soldering is considered unnecessary due to potential disassembly.', 'Demonstration of the process of attaching the wheel to the motor and identifying the motor leads for wiring.', 'Explanation of the decision not to solder the leads due to the likelihood of disassembly and the use of electrical tape instead.']}], 'duration': 88.92, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pbCdNh0TiUo/pics/pbCdNh0TiUo998.jpg', 'highlights': ['Demonstration of attaching the wheel to the motor and identifying the motor leads for wiring.', 'The first thing is to wire up the motor leads, using two wires and attaching them with electrical tape.', 'Explanation of the decision not to solder the leads due to the likelihood of disassembly.']}, {'end': 499.211, 'segs': [{'end': 116.883, 'src': 'embed', 'start': 89.918, 'weight': 0, 'content': [{'end': 98.741, 'text': "the next thing that we're gonna want to do now is we can, actually we could hook this up to our h-bridge, so we might as well go ahead and do that.", 'start': 89.918, 'duration': 8.823}, {'end': 101.562, 'text': 'so, come over here and this is our h-bridge.', 'start': 98.741, 'duration': 2.821}, {'end': 116.883, 'text': "now you're going to want to get a small screwdriver of some sort and flathead or Phillips head, depending on what kind of screws are in there for you,", 'start': 101.562, 'duration': 15.321}], 'summary': 'Guidance on connecting to h-bridge and using a small screwdriver.', 'duration': 26.965, 'max_score': 89.918, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pbCdNh0TiUo/pics/pbCdNh0TiUo89918.jpg'}, {'end': 198.556, 'src': 'embed', 'start': 167.74, 'weight': 1, 'content': [{'end': 168.641, 'text': "i guess we'll leave this here.", 'start': 167.74, 'duration': 0.901}, {'end': 172.703, 'text': 'So on the power supply.', 'start': 171.382, 'duration': 1.321}, {'end': 176.125, 'text': 'your power supply is going to be plugged in to your H-bridge.', 'start': 172.703, 'duration': 3.422}, {'end': 179.126, 'text': "only it's going to be plugged in here where it says VCC.", 'start': 176.125, 'duration': 3.001}, {'end': 181.727, 'text': "then you've got GND, which is ground, and then 5 volts.", 'start': 179.126, 'duration': 2.601}, {'end': 185.309, 'text': 'Well, 5 volts is for the power that you get from your Pi.', 'start': 181.767, 'duration': 3.542}, {'end': 190.731, 'text': 'so your Pi sends a signal through the 5 volts, which will send the signal to the battery pack to turn on these motors.', 'start': 185.309, 'duration': 5.422}, {'end': 191.772, 'text': "and that's how it works.", 'start': 190.731, 'duration': 1.041}, {'end': 198.556, 'text': 'VCC. you might also have something there that says like 12 volts or 12 V.', 'start': 192.532, 'duration': 6.024}], 'summary': 'The power supply is connected to the h-bridge with 5 volts from the pi to activate the motors.', 'duration': 30.816, 'max_score': 167.74, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pbCdNh0TiUo/pics/pbCdNh0TiUo167740.jpg'}, {'end': 414.904, 'src': 'embed', 'start': 384.38, 'weight': 2, 'content': [{'end': 391.566, 'text': "So looking at your Pi, that is going to be, apparently we can't fit our Pi under here.", 'start': 384.38, 'duration': 7.186}, {'end': 392.507, 'text': 'There we go.', 'start': 392.107, 'duration': 0.4}, {'end': 397.852, 'text': 'That is going to be literally this one, like the top right pin.', 'start': 392.988, 'duration': 4.864}, {'end': 399.894, 'text': 'So plug into that one.', 'start': 398.553, 'duration': 1.341}, {'end': 407.592, 'text': 'And from there, we plug that into the 5 volt spot on our H-bridge.', 'start': 401.455, 'duration': 6.137}, {'end': 414.904, 'text': "Now what we want to go ahead and do is get the GPIO pins all set up because we've got everything else that we want now.", 'start': 409.4, 'duration': 5.504}], 'summary': 'Setting up the pi with the h-bridge, connecting to the 5 volt spot and configuring gpio pins.', 'duration': 30.524, 'max_score': 384.38, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pbCdNh0TiUo/pics/pbCdNh0TiUo384380.jpg'}], 'start': 89.918, 'title': 'Motor lead connection and gpio wiring', 'summary': 'Demonstrates connecting motor leads to an h-bridge using a screwdriver, and wiring raspberry pi gpio pins to the power supply and h-bridge for motor control, emphasizing specific pins and connectors.', 'chapters': [{'end': 167.74, 'start': 89.918, 'title': 'Connecting motor leads to h-bridge', 'summary': 'Demonstrates connecting motor leads to an h-bridge, including using a screwdriver to secure the wires, and plugging in the power supply.', 'duration': 77.822, 'highlights': ['Using a screwdriver to secure the motor leads into the h-bridge by unscrewing and inserting the wires, ensuring they are secure with a good tug.', 'Demonstrating the process of plugging in the power supply to the setup.', 'Guiding on the steps to connect motor leads to the h-bridge and ensuring their security for proper functionality.']}, {'end': 499.211, 'start': 167.74, 'title': 'Raspberry pi gpio wiring', 'summary': 'Covers the process of wiring raspberry pi gpio pins to the power supply and h-bridge, illustrating the connections needed for motor control, emphasizing the use of specific pins and connectors.', 'duration': 331.471, 'highlights': ['The process of wiring the Raspberry Pi GPIO pins to the power supply and H-bridge is explained, detailing the connections required for motor control. This includes connecting the 5 volts from the Pi to the battery pack to control the motors and the specific pin numbers used for the ground and 5-volt signals.', 'The importance of using specific pins and connectors, such as male to female jumper wires and the correct placement of GPIO pins on the H-bridge, is emphasized for proper functionality. Using male to female jumper wires, plugging them into the correct GPIO pins, and ensuring the proper placement on the H-bridge is highlighted to ensure the code functions correctly.', 'The relevance of enabling additional motors by utilizing specific pins on the H-bridge is mentioned, indicating the potential for controlling more motors with the correct connections. The possibility of enabling additional motors by utilizing specific pins on the H-bridge is noted, suggesting the potential for controlling more motors with the correct connections.']}], 'duration': 409.293, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pbCdNh0TiUo/pics/pbCdNh0TiUo89918.jpg', 'highlights': ['Guiding on the steps to connect motor leads to the h-bridge and ensuring their security for proper functionality.', 'The process of wiring the Raspberry Pi GPIO pins to the power supply and H-bridge is explained, detailing the connections required for motor control.', 'The importance of using specific pins and connectors, such as male to female jumper wires and the correct placement of GPIO pins on the H-bridge, is emphasized for proper functionality.']}, {'end': 920.894, 'segs': [{'end': 586.235, 'src': 'heatmap', 'start': 499.211, 'weight': 0, 'content': [{'end': 503.854, 'text': "so instead, what we're going to do is just plug your, your male or your female to females.", 'start': 499.211, 'duration': 4.643}, {'end': 506.216, 'text': "in each of these four, there's four spots there.", 'start': 503.854, 'duration': 2.362}, {'end': 507.557, 'text': "like i said, i've got a strip.", 'start': 506.216, 'duration': 1.341}, {'end': 510.979, 'text': 'if you have a strip, then you can use the strip as well.', 'start': 507.557, 'duration': 3.422}, {'end': 521.398, 'text': "so anyway, i'm going to plug, starting from input one to input four white, gray, purple, blue, just for your notes.", 'start': 510.979, 'duration': 10.419}, {'end': 523.999, 'text': "so if you're looking and trying to figure out how I plugged mine in,", 'start': 521.398, 'duration': 2.601}, {'end': 531.302, 'text': "Once you've got those plugged in on that end, now you're going to want to plug them into the GPIO pins on your Raspberry Pi.", 'start': 524.7, 'duration': 6.602}, {'end': 543.147, 'text': 'So for me, input one, which is my white cable, I plug into pin 15, or GPIO 22, on the Raspberry Pi.', 'start': 531.782, 'duration': 11.365}, {'end': 548.711, 'text': "And so bringing over our Pi, It's going to be hard to show both of these at the same time, but I'll do my best.", 'start': 543.867, 'duration': 4.844}, {'end': 558.78, 'text': 'Pin 15 on your pie is going to be, I guess, 8 down from the top left.', 'start': 549.852, 'duration': 8.928}, {'end': 562.764, 'text': 'Input 2 is going to go into pin 13, which is right above that.', 'start': 558.92, 'duration': 3.844}, {'end': 567.969, 'text': "So I'm going to take my gray and plug that in right above it.", 'start': 562.784, 'duration': 5.185}, {'end': 586.235, 'text': 'And then from there, input 3 is going to go into pin 11, which is 1 right on top of 13.', 'start': 574.269, 'duration': 11.966}], 'summary': 'Connecting cables from inputs 1 to 4 to gpio pins on raspberry pi.', 'duration': 43.936, 'max_score': 499.211, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pbCdNh0TiUo/pics/pbCdNh0TiUo499211.jpg'}, {'end': 643.476, 'src': 'embed', 'start': 613.784, 'weight': 4, 'content': [{'end': 621.169, 'text': 'All right, so again, input 1 goes into pin 15, which is 8 down from the top or 6 up from the bottom, depending on which way you go.', 'start': 613.784, 'duration': 7.385}, {'end': 624.531, 'text': 'Input 2 is in pin 13, which is GPIO 21, and pin 15 is GPIO 22.', 'start': 621.189, 'duration': 3.342}, {'end': 638.112, 'text': 'Then Input 3 is in pin 11, so basically, those three are right together with each other, right?', 'start': 624.531, 'duration': 13.581}, {'end': 643.476, 'text': 'And then you skip one and then input 4 is going into pin 7, or GPIO4..', 'start': 638.912, 'duration': 4.564}], 'summary': 'Inputs 1, 2, 3, and 4 are connected to pins 15, 13, 11, and 7 respectively on the gpio, with inputs 1 and 2 using gpio 22 and 21.', 'duration': 29.692, 'max_score': 613.784, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pbCdNh0TiUo/pics/pbCdNh0TiUo613784.jpg'}, {'end': 683.059, 'src': 'heatmap', 'start': 654.384, 'weight': 0.789, 'content': [{'end': 659.508, 'text': "Now that you've got everything hooked up, the next thing that we want to do is come into our Raspberry Pi,", 'start': 654.384, 'duration': 5.124}, {'end': 662.731, 'text': 'and now we want to actually program our first script.', 'start': 659.508, 'duration': 3.223}, {'end': 669.613, 'text': 'Now, as I said in the previous tutorial video, you are going to need rpi.gpio.', 'start': 663.271, 'duration': 6.342}, {'end': 672.935, 'text': "so if you haven't already done it, do sudo apt-get.", 'start': 669.613, 'duration': 3.322}, {'end': 683.059, 'text': 'install python-rpi.gpio, hit enter and make sure that you have the most recent version.', 'start': 672.935, 'duration': 10.124}], 'summary': 'Set up raspberry pi and install python-rpi.gpio for programming first script.', 'duration': 28.675, 'max_score': 654.384, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pbCdNh0TiUo/pics/pbCdNh0TiUo654384.jpg'}, {'end': 699.122, 'src': 'embed', 'start': 669.613, 'weight': 1, 'content': [{'end': 672.935, 'text': "so if you haven't already done it, do sudo apt-get.", 'start': 669.613, 'duration': 3.322}, {'end': 683.059, 'text': 'install python-rpi.gpio, hit enter and make sure that you have the most recent version.', 'start': 672.935, 'duration': 10.124}, {'end': 685.179, 'text': "Otherwise, you're going to run into some trouble.", 'start': 683.139, 'duration': 2.04}, {'end': 686.56, 'text': "I already have it, so we're good.", 'start': 685.199, 'duration': 1.361}, {'end': 692.895, 'text': "Now the next thing we want to do is let's go ahead and create a directory called robotics.", 'start': 687.409, 'duration': 5.486}, {'end': 695.238, 'text': 'So make dir robotics.', 'start': 692.975, 'duration': 2.263}, {'end': 696.659, 'text': 'Hit enter.', 'start': 696.319, 'duration': 0.34}, {'end': 699.122, 'text': 'CD into robotics.', 'start': 697.06, 'duration': 2.062}], 'summary': 'Install python-rpi.gpio and create directory robotics.', 'duration': 29.509, 'max_score': 669.613, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pbCdNh0TiUo/pics/pbCdNh0TiUo669613.jpg'}, {'end': 733.319, 'src': 'heatmap', 'start': 699.883, 'weight': 0.915, 'content': [{'end': 702.346, 'text': "Now let's go ahead and make our first robot script.", 'start': 699.883, 'duration': 2.463}, {'end': 706.47, 'text': "So let's go ahead and do sudo nano robot1.py.", 'start': 702.386, 'duration': 4.084}, {'end': 717.692, 'text': 'Now what we want to do is import capital R capital P lowercase i dot all caps GPIO as lowercase GPIO and then finally import time.', 'start': 709.008, 'duration': 8.684}, {'end': 725.715, 'text': 'So GPIO here, this is so we can control our pins and time is so we can specify the time length that we want to control the pins.', 'start': 718.272, 'duration': 7.443}, {'end': 733.319, 'text': 'Now the next thing we want to do is GPIO dot set mode GPIO dot all caps board.', 'start': 726.336, 'duration': 6.983}], 'summary': 'Creating first robot script to control gpio pins using python', 'duration': 33.436, 'max_score': 699.883, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pbCdNh0TiUo/pics/pbCdNh0TiUo699883.jpg'}, {'end': 750.495, 'src': 'heatmap', 'start': 726.336, 'weight': 0.819, 'content': [{'end': 733.319, 'text': 'Now the next thing we want to do is GPIO dot set mode GPIO dot all caps board.', 'start': 726.336, 'duration': 6.983}, {'end': 738.253, 'text': 'Now we want to specify the pins that we want to be using.', 'start': 734.352, 'duration': 3.901}, {'end': 741.794, 'text': "So we're going to specify pins 7, 11, 13, and 15 as GPIO output pins.", 'start': 738.753, 'duration': 3.041}, {'end': 743.654, 'text': 'So GPIO.setup 7 as GPIO.out.', 'start': 741.854, 'duration': 1.8}, {'end': 750.495, 'text': "And now we're going to do the same thing for 11, 13, and 15.", 'start': 743.774, 'duration': 6.721}], 'summary': 'Configured pins 7, 11, 13, and 15 as gpio output pins', 'duration': 24.159, 'max_score': 726.336, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pbCdNh0TiUo/pics/pbCdNh0TiUo726336.jpg'}, {'end': 861.123, 'src': 'embed', 'start': 825.127, 'weight': 5, 'content': [{'end': 826.368, 'text': 'gpio.output 11 true.', 'start': 825.127, 'duration': 1.241}, {'end': 828.429, 'text': 'gpio.output 13 true and gpio.output 15 false.', 'start': 826.368, 'duration': 2.061}, {'end': 847.216, 'text': 'and we want this to happen for half of a second 0.5.', 'start': 828.429, 'duration': 18.787}, {'end': 852.819, 'text': "Now, when we're all done, what we're going to want to do is do gpio.cleanup.", 'start': 847.216, 'duration': 5.603}, {'end': 861.123, 'text': "And what this is going to do is stop all of the signals coming to our pins, because if you don't do gpio.cleanup, what's going to happen is,", 'start': 853.859, 'duration': 7.264}], 'summary': 'Set gpio pins 11, 13, and 15 to specific states, then clean up signals.', 'duration': 35.996, 'max_score': 825.127, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pbCdNh0TiUo/pics/pbCdNh0TiUo825127.jpg'}, {'end': 893.597, 'src': 'heatmap', 'start': 866.486, 'weight': 0.817, 'content': [{'end': 872.569, 'text': "That's how sleep even works at all, right? It's because this is all activated, we sleep for this long, then we clean it up.", 'start': 866.486, 'duration': 6.083}, {'end': 874.91, 'text': "So that's what we're going to do.", 'start': 873.129, 'duration': 1.781}, {'end': 880.532, 'text': 'So now we can control X, save, yes, enter, good.', 'start': 875.05, 'duration': 5.482}, {'end': 886.134, 'text': "Now sudo python robot1.py, now don't hit enter just yet.", 'start': 880.992, 'duration': 5.142}, {'end': 888.855, 'text': "Make sure your motor isn't going to like run over something.", 'start': 886.534, 'duration': 2.321}, {'end': 893.597, 'text': 'And when you hit enter, it should run for half of a second.', 'start': 890.796, 'duration': 2.801}], 'summary': 'Discussion on controlling x, saving, and running the robot for half a second', 'duration': 27.111, 'max_score': 866.486, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pbCdNh0TiUo/pics/pbCdNh0TiUo866486.jpg'}, {'end': 915.273, 'src': 'embed', 'start': 886.534, 'weight': 3, 'content': [{'end': 888.855, 'text': "Make sure your motor isn't going to like run over something.", 'start': 886.534, 'duration': 2.321}, {'end': 893.597, 'text': 'And when you hit enter, it should run for half of a second.', 'start': 890.796, 'duration': 2.801}, {'end': 896.729, 'text': 'Sure enough, mine ran for half of a second.', 'start': 894.909, 'duration': 1.82}, {'end': 898.13, 'text': "And that's it.", 'start': 897.71, 'duration': 0.42}, {'end': 901.53, 'text': 'So hopefully you guys got your motors working there.', 'start': 898.55, 'duration': 2.98}, {'end': 904.351, 'text': 'If you have any questions or comments, feel free to leave them below.', 'start': 902.19, 'duration': 2.161}, {'end': 905.911, 'text': 'As always, thanks for watching.', 'start': 904.851, 'duration': 1.06}, {'end': 907.331, 'text': 'Thanks for all the support and subscriptions.', 'start': 905.951, 'duration': 1.38}, {'end': 915.273, 'text': 'Until the next video, which will be hooking up the rest of our motors and also plugging them into a frame.', 'start': 907.591, 'duration': 7.682}], 'summary': 'Tested motor for 0.5 seconds, successful. next video: hooking up rest of motors.', 'duration': 28.739, 'max_score': 886.534, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pbCdNh0TiUo/pics/pbCdNh0TiUo886534.jpg'}], 'start': 499.211, 'title': 'Raspberry pi gpio pin configuration and robotics', 'summary': 'Explains the gpio pin configuration using color codes and pin assignments, with specific inputs going into corresponding pins. it also covers setting up a raspberry pi, programming the first robot script, and controlling motor pins to make the motor go for half a second, ensuring proper cleanup afterward.', 'chapters': [{'end': 643.476, 'start': 499.211, 'title': 'Raspberry pi gpio pin configuration', 'summary': 'Explains the process of plugging male or female cables into gpio pins on a raspberry pi, using specific color codes and pin assignments, with input 1 going into pin 15, input 2 into pin 13, input 3 into pin 11, and input 4 into pin 7.', 'duration': 144.265, 'highlights': ['The process of plugging male or female cables into GPIO pins on a Raspberry Pi is explained, using specific color codes and pin assignments, with input 1 going into pin 15, input 2 into pin 13, input 3 into pin 11, and input 4 into pin 7.', 'Specific color codes are mentioned for the cables: white for input 1, gray for input 2, purple for input 3, and blue for input 4.', 'Detailed instructions are provided for plugging the cables, with specific GPIO pin assignments for each input, such as pin 15 for input 1, pin 13 for input 2, pin 11 for input 3, and GPIO 4 for input 4.']}, {'end': 920.894, 'start': 645.538, 'title': 'Raspberry pi robotics', 'summary': 'Covers the process of setting up a raspberry pi, programming the first robot script, and controlling the motor pins to make the motor go for half a second, ensuring proper cleanup afterward.', 'duration': 275.356, 'highlights': ['The chapter covers the process of setting up a Raspberry Pi, including the installation of rpi.gpio and creating a directory called robotics.', 'The process of programming the first robot script and controlling the motor pins to make the motor go for half a second is explained.', 'The importance of performing gpio.cleanup to stop all signals coming to the pins after controlling the motor is emphasized.']}], 'duration': 421.683, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/pbCdNh0TiUo/pics/pbCdNh0TiUo499211.jpg', 'highlights': ['The process of plugging male or female cables into GPIO pins on a Raspberry Pi is explained, using specific color codes and pin assignments.', 'The chapter covers the process of setting up a Raspberry Pi, including the installation of rpi.gpio and creating a directory called robotics.', 'Specific color codes are mentioned for the cables: white for input 1, gray for input 2, purple for input 3, and blue for input 4.', 'The process of programming the first robot script and controlling the motor pins to make the motor go for half a second is explained.', 'Detailed instructions are provided for plugging the cables, with specific GPIO pin assignments for each input, such as pin 15 for input 1, pin 13 for input 2, pin 11 for input 3, and GPIO 4 for input 4.', 'The importance of performing gpio.cleanup to stop all signals coming to the pins after controlling the motor is emphasized.']}], 'highlights': ['The process of programming the first robot script and controlling the motor pins to make the motor go for half a second is explained.', 'The process of plugging male or female cables into GPIO pins on a Raspberry Pi is explained, using specific color codes and pin assignments.', 'The chapter covers the process of setting up a Raspberry Pi, including the installation of rpi.gpio and creating a directory called robotics.', 'Guiding on the steps to connect motor leads to the h-bridge and ensuring their security for proper functionality.', 'The importance of using specific pins and connectors, such as male to female jumper wires and the correct placement of GPIO pins on the H-bridge, is emphasized for proper functionality.', 'Demonstration of attaching the wheel to the motor and identifying the motor leads for wiring.', 'The first thing is to wire up the motor leads, using two wires and attaching them with electrical tape.', 'Explanation of the decision not to solder the leads due to the likelihood of disassembly.', 'Specific color codes are mentioned for the cables: white for input 1, gray for input 2, purple for input 3, and blue for input 4.', 'Detailed instructions are provided for plugging the cables, with specific GPIO pin assignments for each input, such as pin 15 for input 1, pin 13 for input 2, pin 11 for input 3, and GPIO 4 for input 4.', 'The importance of performing gpio.cleanup to stop all signals coming to the pins after controlling the motor is emphasized.']}