Hey, in this lecture, want to do a quick recap of what we have implemented in this section of the
project and then talk a little bit about what we are going to be doing in the next section of the bridge,
the next iteration of our prototyping process.
So what we have implemented is the terrorism controller hardware or the circuit on a breadboard, which
includes the motor, the motor control circuitry and the potential motor which simulates the soil humidity
sensor, taking external power from the benchtop power supply for the motor specifically.
And then there to be 30 plus.
It's potentially powered by USB at the moment.
On the software side, we've implemented the first iteration of the terrorism controller, ESP 32 sketch,
which simply takes readings from the potential mirror and publishes them to a appropriate social committee.
The topic of the and Braco right here.
This is a topic.
And then the sketch is subscribed to the control topic so that it can use information stored there were
sent there from the note read flow to turn the motor on and off.
In terms of the flow itself, we've implemented a simple user interface which looks like this.
We can manually control the pump from the switch or via the potential motor.
And test that that it works and the flu itself is fairly simple, as you can see, we've got one subscriber
to the soil humidity topic using the immunity in node.
And then we've got a simple calculation happening here, a comparison to determine whether the pump
should be on or off.
And then we use the R, b, e node to throw messages that are going to the hospital to and finally,
whatever the state of the pump is calculated to be, we publishing it to this.
Topic here on the kitty mosquito, Brooke, a very sad thought on the scene, frustrated point, what
we are going to do in the next iteration of this project to add these two circuit components, which
are two voltage devices which allow us to measure the voltages or for the motor and for the motor control
unity SB 32 and will publish this information to the Broca as well so that we can see these voltages
in our red dashboard.
And this is something that is useful to do if you decide to use battery power for your project and therefore
you'll be able to monitor the battery power levels and know when to change or recharge the batteries.
It's also an interesting thing to do anyway, I think, because it allows us to see how easy it is to
implement features like that that do require some back and forth communication between the two parts
of our controller.
So let's move on to the next picture and implement the voltage sensing circuits and the necessary changes
to the script and to the new Drechsler.