0:00
Okay, I have a mock-up circuit here on the breadboard that's similar to the scrubber bot circuit
0:07
I have the power supply coming in here, the positive power coming in
0:12
There's an orange jumper wire going to the center pin of this slide switch
0:18
This slide switch has three pins, and I have the center pin going in line with
0:29
this orange jumper wire and also in line with the center pin is this resistor in
0:40
series with this LED the anode or positive leg of the LED is in line with this
0:48
resistor and then we have the cathode or negative leg of the LED going to ground
0:55
and then the far right pin I have this yellow jumper wire
1:00
going to this diode here. This is just your typical 1N-4-001 diode
1:10
and I have it in reverse bias here, which is what we wanted for our circuit
1:19
to have the diode in reverse bias, meaning that its cathode in is facing
1:26
towards the positive input here. and I have its anode or positive leg of the diode going toward ground And also coming back to the yellow jumper wire here I have this red wire which is coming from the motor going to the motor here and also the other wire of the motor which happens to be black here going to ground
2:00
Now, in the scenario, if you hook up your power, and I don't have the power hooked up here, but it was because I wanted to demonstrate this, I wanted to demonstrate the case if you have power hooked up and your switch is in the off position
2:24
So in this case, it's all the way, the slide is all the way to the left side of the switch here
2:33
And your LED is lit up, but you haven't turned the switch on yet
2:40
and obviously the motor is not on. So we can see that the LED light is on
2:48
So the reason why this might be happening is, if you notice
2:54
that I said that I had this resistor and LED in line with the center pin of this slide switch
3:01
And that the reason why this LED is on because the positive side of the power supply from the battery is coming in and it allowed to go through this jumper wire
3:17
And the jumper wire, this orange jumper wire, is in line or attached to the center pin
3:24
of this slide switch, which is allowing current to flow from the positive supply to the center
3:32
pin, and through that, through this resistor, and through this resistor, and through the LED to ground
3:37
So there's a circuit here that's coming from the power, from the positive supply of the battery
3:44
through this orange jumper wire, through the center pin of the slide switch
3:48
through the resistor, through the LED, and back to the ground for the battery
3:55
So that's why this LED is on. So if I were, I wanna unhook this battery real quick
4:04
if I were to a judge, adjust this to where the resistor is now in line with the right pin, the far right
4:13
pin of this slide switch, which is in line with this leg of the yellow jumper wire, and
4:21
I were to move the LED in line with the resistor. Now the resistors in line with the far right pin of the slide switch
4:34
and then we have our resistor in line with the LED and the LED cathode to ground So if I hook up the battery now the LED does not come on
4:52
That's because we've got the slide on the slide switch to the far left side here
5:01
So it's in its off position. So the current is not allowed to come from the positive supply
5:10
into this center pin of the slide switch, it's not allowed to go over to this far right pin
5:19
as of yet to go through the resistor and through the LED into ground
5:25
or even through this section of the circuit to go through the motor
5:30
Because we haven't turned this slide yet, and if I were to push the slide over
5:37
we can see, oh, my motor's getting away from, me the light comes on and the motor is on now so again if I press the slide over
5:51
the light comes on and the motor comes on so that might be a reason why that when
5:58
your motor or when the switch is in the off position and your motor's not on but your
6:03
LED is coming on that might be the reason why it might be because you have it
6:08
You have your resistor and LED in line with the center pin of the switch instead of the far right pin in this case, which would be the off position here