In the previous lecture, we went through the schematic diagram of the circuit that makes up the terrorism
controller.
We walk through this schematic right here in this lecture.
I'm going to show you how you can implement this circuit or breadboard in the next lecture.
What are going to show you how to do the same on a PC?
I have tested this circuit in the circuit on two breadboard.
I started with the mini breadboard here and I used a 30 pin E.S.P 32 deficit and it looks like this.
So the important components of the circuit are implemented on this small breadboard.
So I've got the circuit that controls the pump, which is this one here, which is the circuit that
you see right here.
I'm using a potential murder to simulate the moisture sensor instead of using the actual moisture.
Since I was trying to figure out how it all works and figure out thresholds and things like that, it
was more convenient to use Consuegra instead of having to use the actual moisture sensor.
And this is what actually worked really well for the basics.
I was able to connect a motor right here using a screw terminal.
It's like sitting right there and this motor simulates the water pump.
I was able to move that consumer up and down and then trigger the operation of the motor or the motor
simulation, and I was also able to work with an external power supply, which is this power supply
here just for double a batteries with a switch.
So we do like that in here so that the motor had its own power supply.
There you go.
It looked like this.
Everything fit it really nice.
There's no circuit, though, to allow me to check for the voltage of the the motor battery and that
needed more space.
It was not available in the mini breadboard.
And therefore I decided to expand and move on to the larger breadboard or something like that and that
and have a look at the larger breadboard.
So with a larger breadboard ahead, more space.
So it's a lot more comfortable to work with it.
Zoom in so we can have a look at the details here.
So having a look at the components you can see down here, I've got the two voltage devices, which
are these two parts of the circuit.
This voltage divided here is for the motor battery sensor is this one here?
It takes a signal from the battery connector, which is this is what I would connect.
The battery takes a signal here.
It appropriately so that it puts it in a range of zero to three point three volts.
And then I've got this this wire here takes the signal to be 34.
Right there again is set in within the range of zero to three point three volts instead of seven to
actually beat this power supply.
It was meant to be
six foot instead of six volts, which is beyond the capability of the SB 13 to read use of voltage divider
to break it down to zero to three point three fourths.
And the signal to set comes directly from the motor power supply, which is that this bottom power rail
here, I'm taking it from these banana connectors, which I can connect all four to five battery power
supply or to my benchtop power supply right there through the wires.
Now, another interesting detail of this implementation here is instead of going for the regular thirty
eight point thirty two or the thirty three to this one here, I decided to go for one of these.
This is a regular E.S.P 32, but it contains a LAPO battery holder and of course, the necessary SEGERT
plus a convenient on off switch.
So I thought I would give this a go and try it out.
And it actually worked quite well as it works exactly as a normal E.S.P 32 with a difference that it's
got its own battery that can turn it on and the circuit will start working.
So what I did here was that I got the voltage divided on which you can see here in the circuit, which
takes a signal from a year or two or three.
And that is what this white wire does.
It goes over to the other side.
Right here, which is Gibril 30 33.
And then the input voltage that it measures comes from ground and the positive side of the battery.
That's what this jumper wire is for, could not find a pin on the board itself to give me access to
the voltage from the battery directly.
So it just stuck a jumper wire in there and that worked quite well.
Next up on this side of the Bridport is where we've got the controlling circuit for the motor, so there's
the tape, 122 plus it's necessary trigger resistance that put down register.
And we've got this short key diode and a capacitor for the noise.
So you can see all that here are used a ceramic capacitor for the noise.
And I also plugged in a bypass capacitor directly onto the radio because I was having initially problems
with the motor causing a voltage drop that would cause the hospitality to Brown out.
So the capacitor here helps a little like the Castlebar is not on this diagram.
It's just something that are added separately.
Let's see what else.
I've got a little LCD here for the power.
Let's use this LCD here.
When power is applied, the energy gets on Stavisky.
I have not implemented the other to indicate OLED.
Those are available on the breadboard that are designed separately and finally for the humidities.
And so I've got this board here, which is an look board.
It contains a little amplifier here.
And I'm taking the signal from analog from H0, the leftmost pin and convey that.
A schematic.
To 35 right there by this green wire, so I can just connect the moisture sensor on to the breakout.
Like this and then connected or inserted into the soil.
Now I start testing again just similarly to what I did with my mini breadboard.
I was using a.
But then show me that this is not properly connected, of course, I need to rearrange the power and
ground wires, but I was using a potential method to help me figure out how the circuit and my flow
on node read behaves depending on a variety of inputs from the sensor.
That's how I was prototyping it when I got a sense of what is going on with the sensor and how it behaves.
Then I continued with the use of the actual sensor in the terrorism itself.
The circuit, which is so connected would look like this and to put in my Mogra.
Which stimulates the pump and it would look like this.
Later on, I also decided to add the DHT 22 cents, and that's what this group is about.
You can see it right here on the schematic.
This sensor looks like this.
It's a the twenty two inside, just a regular DHT 22, but it's mounted in a larger casing, which you
can use a bit of Velcro to stick on the inside of the terrarium, and therefore you can measure our
temperature and humidity.
So it also comes with a much longer Y, as you can see, sort of why is cable.
So I would use that the screw terminal to connect power and the yellow one is the signal.
So the signal goes in the middle, which is connected to the O2 25, according to the schematic.
And that's about it, so she can she can use Bridport and a choice of E.S.P 32 defecates to implement
this circuit is nothing special about it.
In the next lecture, I'm going to walk you through the features of the PSP.