| 00:00:00 | so I finally received the pre-crimped jst connectors from Amazon that I was talking about in the last few videos this will make my life so much easier as I work out a wiring harness for the final coin bot but before I do that I |
| 00:00:15 | need to make sure that all of the wiring that I've worked out so far is still connected correctly this board that I created this temporary setup that I created has gone through a couple of different moves now and I want to make |
| 00:00:28 | sure that all of the wires are connected properly we have a little script running on the Raspberry Pi that I can use to test all of the lighting the stepper Motors and the limit switches that control the stepper Motors and I want to |
| 00:00:40 | make sure that everything is working before I tried to wire up everything permanently and solder the connections actually permanently to the board now the brins of this whole operation is a Raspberry Pi with I think 4 GB of RAM |
| 00:00:54 | and on top of that there is a motor stepper hat that is resting on top of the Raspberry Pi that is what I'm using to control the stepper Motors now attached to those are two limit switches those limit switches get pressed and |
| 00:01:08 | that's how we will know how to home each one of the stepper Motors but uh if everything is working properly the stepper motor should Spin and when we press each one of those limit switches the stepper Motors attached to it should |
| 00:01:20 | turn off now if we scroll down here in the code we can see which pins are controlling the two limit switches right here we can see that the top one is pin 22 and the other limit switch is controlled by pin number 13 and before |
| 00:01:34 | we actually inspect anything of course I need to put on my glasses because that makes me about 50% smarter but anyway let's check those two pins and make sure that the limit switches are connected correctly I can |
| 00:01:46 | see that one side of the limit switch on top of this stepper motor is plugged into ground which is appropriate and the other the blue wire is plugged into pin 13 which is correct on the other limit switch that's |
| 00:02:00 | attached to this stepper motor I see also that one wire the green wire is plugged into the ground Rail and the other one is plugged into pin number 22 which is also correct so that means that those two limit switches are plugged in |
| 00:02:15 | correctly the two stepper Motors are connected to the stepper motor hat that's attached to the top of the Raspberry Pi and since those use screw down terminals I know that they are wired correctly so I don't have to touch |
| 00:02:27 | those the next thing we need to check is make sure that the addressable LEDs are connected to the correct pin and again if we go back to the code we can see that the pixel pin on the board is pin number 10 that's shown |
| 00:02:42 | right here so we need to go back to the addressable LEDs and make sure that the data wire that's connected to those is actually attached to pin 10 on the Raspberry Pi pin 10 is the mosy PIN so I need to make sure that the led the |
| 00:02:56 | addressable LEDs that control the coin Studio lighting are attached to pin number 10 on the motor hat so I will do that now I also need to check the CPU fan to make sure that it's connected to both |
| 00:03:11 | the positive and negative terminals on the 5vt rail of the breadboard and that all looks good here I can see that the black and red wires are connected and then I'm going to connect the breadboards 5vt rail to the stepper |
| 00:03:25 | motor hat 5vt Rail and make sure that those are interconnected so I just connected the 5vt rail of the breadboard with the 5vt rail of the motor hat that's attached to the top of the Raspberry Pi that means that the |
| 00:03:43 | motor hat will be supplying 5V power to the breadboard and to the addressable LEDs that provide lighting to the coin Studio that I have in this pill bottle that 5 Vols is ultimately coming from the bench top power supply that I have |
| 00:03:57 | here on my desk the last thing we want do is just run the test script on the raspberry pod to make sure that everything is working correctly if everything's working as it should and everything is electrically connected |
| 00:04:08 | properly that means the LED lights should light up and then the two stepper motor should start spinning they should also turn off when we press these limit switches so let's give it a test and see what |
| 00:04:21 | happens we'll run the script here you can see that the LED lights turn on and they go through a a series of different patterns and then the stepper Motors turn which is great so you can see this |
| 00:04:35 | stepper motor here is spinning and when I press the limit switch on top of it it shuts off now this stepper motor is still spinning and again when I hit the limit switch on top of that it also stops so all of that is |
| 00:04:50 | perfect the only thing that I see here that's a problem is that the LED lights still remain lit after I've stopped the script and they really should be turning off I think that's the result of a ground issue here with these wired |
| 00:05:02 | connections and I'm hoping that goes away in tomorrow's video when we create a finalized wiring harness for the coin bot and eliminate any of those grounding issues by permanently soldering the wires directly to the the Hat that's on |
| 00:05:16 | top of the Raspberry Pi but I think that's enough for this video and as I've said in the last few videos if anyone has any feedback for me about how I can do a better wiring job for the coin bot or make better videos please leave a |
| 00:05:22 | comment down below but for now that's my two cents thanks for watching everyone stay awesome |