1
00:00:00,120 --> 00:00:06,840
Hi and welcome to a new section in this course, what we do in this section is we'll start the implementation

2
00:00:06,840 --> 00:00:12,000
of the terrorism controller and we'll do that step by step.

3
00:00:12,000 --> 00:00:20,490
That is, as usual with my courses will create a series of prototypes and in each prototype or implement

4
00:00:20,490 --> 00:00:25,590
and test a new set of functionalities of capabilities.

5
00:00:26,190 --> 00:00:32,090
So this is the first step towards building our terrarium controller.

6
00:00:32,430 --> 00:00:38,820
I've decided that instead of going straight into the PCB will stop, we start our prototyping process

7
00:00:38,820 --> 00:00:40,820
the usual way on a breadboard.

8
00:00:41,250 --> 00:00:47,580
You could go and start working on a small or a mini breadboard.

9
00:00:47,670 --> 00:00:50,030
The circuit here so you can see is fairly small.

10
00:00:50,310 --> 00:00:55,710
But keep in mind that things are going to get a little bit more complicated and will be adding components

11
00:00:55,710 --> 00:00:56,390
on the breadboard.

12
00:00:56,400 --> 00:00:58,390
So this is probably not going to be enough.

13
00:00:59,010 --> 00:01:08,670
You can and I have actually done so using multiple breadboard, multiple mini inputs, so you can put

14
00:01:08,670 --> 00:01:14,370
them side by side and then attach components on them and join them together using jumper wires.

15
00:01:14,670 --> 00:01:18,630
Or you can instead go for a larger Bridport like this.

16
00:01:19,030 --> 00:01:23,550
Also, what I like about this breadboard is that it's got the banana connectors for external power on

17
00:01:23,550 --> 00:01:27,180
the side in the first few iterations.

18
00:01:27,180 --> 00:01:35,040
Are we powering my motor, which represents the pump through these banana clips?

19
00:01:35,040 --> 00:01:40,740
And then why is it go to my benchtop power supply?

20
00:01:41,760 --> 00:01:47,360
And then of course I'm powering the E.S.P 32 via USB, so that allows me to have two rails.

21
00:01:47,370 --> 00:01:53,520
This one is going to be for the motor power and then the rest of the rails to dedicated to sensors in

22
00:01:53,520 --> 00:01:54,960
the spirit to itself.

23
00:01:54,990 --> 00:02:00,390
So in this first lecture of the first section, I just want to show you a review of what it is that

24
00:02:00,390 --> 00:02:06,000
we are targeting, what it is that will implement by the end of this section, both in terms of the

25
00:02:06,000 --> 00:02:13,170
hardware and the software and then in the remaining lectures in this section will do the implementation

26
00:02:13,170 --> 00:02:13,890
and testing.

27
00:02:14,460 --> 00:02:20,490
So hardware wise, what we have just from a high level perspective and I'll show you the actual schematic

28
00:02:20,490 --> 00:02:28,200
in the next lecture, it's just a very, very basic features that this terrorism controller without

29
00:02:28,200 --> 00:02:30,450
these features would not be a terrorism controller.

30
00:02:30,720 --> 00:02:34,590
We can add more capabilities later, but this is where it starts.

31
00:02:34,980 --> 00:02:39,180
So I've got the motor here, which represents the actual pump.

32
00:02:39,610 --> 00:02:48,180
I did not want to have a jug of water like a water reservoir with soil in a jar with soil and the plant

33
00:02:48,180 --> 00:02:55,170
in it on my bench as I'm trying to figure out the various electrical connections and the nutrient flow.

34
00:02:55,410 --> 00:03:05,910
So instead of having the actual water pump submerged in water, I've got a five old Holby modem in terms

35
00:03:05,910 --> 00:03:12,780
of the soil sensor, again, another essential component of the terrarium controller, so that the soil

36
00:03:12,780 --> 00:03:16,500
since the soil humidity sensor looks like this.

37
00:03:16,500 --> 00:03:21,780
And again, for this to work properly, it needs to be inside soil.

38
00:03:22,770 --> 00:03:30,810
And I thought that this is just a simple voltage divider, really, this module here, simply an amplifier.

39
00:03:31,230 --> 00:03:39,260
So I could easily simulate, in a way, the soil humidity sensor using this potential mirror.

40
00:03:39,810 --> 00:03:47,130
So when the time comes and I'm ready to test the real thing, I will simply remove the potential and

41
00:03:47,130 --> 00:03:49,920
replace it with the soil humidity sensor.

42
00:03:50,050 --> 00:03:51,210
It's got for pinch here.

43
00:03:51,210 --> 00:03:54,000
But really the three pins are the ones that are used.

44
00:03:54,720 --> 00:04:00,390
I'll be using the analog pin on the left side, which plays the role of the consumer, a middle pin,

45
00:04:00,660 --> 00:04:05,910
and then you've got ground in five or three point three boards for the ease with the two of power.

46
00:04:06,660 --> 00:04:08,040
So put it aside for now.

47
00:04:08,310 --> 00:04:11,820
Put the consumer back in right there.

48
00:04:12,810 --> 00:04:19,530
And I've got the motor control circuit here, which is based on the tip one twenty two and that's about

49
00:04:19,530 --> 00:04:19,770
it.

50
00:04:19,860 --> 00:04:26,790
Now, as I said, I'm going to show you the circuit diagram in the next lecture in terms of the software

51
00:04:27,840 --> 00:04:36,330
that all that we're going to do is to build a node red flow, which will present us with this dashboard

52
00:04:36,570 --> 00:04:45,960
so he can see, yes, I'm moving the nub of the potential mirror the soil humidity indicator changes

53
00:04:45,960 --> 00:04:46,770
accordingly.

54
00:04:51,200 --> 00:04:57,950
And back to zero gets to the range near zero to one thousand and twenty three, because that's the resolution

55
00:04:57,950 --> 00:05:02,870
of the unlooked input pin that I will implement in my sketch.

56
00:05:03,410 --> 00:05:11,300
I also have a switch here so that I could manually control the motor and I can turn it on or off.

57
00:05:11,310 --> 00:05:19,160
But of course, in my flow, I'm going to have a function here that will trigger the pump on its own.

58
00:05:19,430 --> 00:05:24,680
If the soil humidity, the real value of the solar humidity goes above a certain value.

59
00:05:24,950 --> 00:05:30,440
And I'm going to decide what the value is by playing around with it, with the geometry.

60
00:05:31,280 --> 00:05:31,780
All right.

61
00:05:32,060 --> 00:05:37,090
So that gives you an introduction of what it is that we'll be doing in this section.

62
00:05:37,100 --> 00:05:40,730
So let's move on to the next lecture and start building it.
