1
00:00:00,690 --> 00:00:06,840
In the previous lecture, we went through the schematic diagram of the circuit that makes up the terrorism

2
00:00:06,840 --> 00:00:07,370
controller.

3
00:00:07,630 --> 00:00:10,980
We walk through this schematic right here in this lecture.

4
00:00:10,980 --> 00:00:16,270
I'm going to show you how you can implement this circuit or breadboard in the next lecture.

5
00:00:16,290 --> 00:00:18,720
What are going to show you how to do the same on a PC?

6
00:00:19,310 --> 00:00:23,730
I have tested this circuit in the circuit on two breadboard.

7
00:00:23,880 --> 00:00:31,450
I started with the mini breadboard here and I used a 30 pin E.S.P 32 deficit and it looks like this.

8
00:00:31,830 --> 00:00:37,650
So the important components of the circuit are implemented on this small breadboard.

9
00:00:37,980 --> 00:00:44,430
So I've got the circuit that controls the pump, which is this one here, which is the circuit that

10
00:00:44,430 --> 00:00:46,280
you see right here.

11
00:00:47,100 --> 00:00:55,260
I'm using a potential murder to simulate the moisture sensor instead of using the actual moisture.

12
00:00:55,260 --> 00:01:00,030
Since I was trying to figure out how it all works and figure out thresholds and things like that, it

13
00:01:00,030 --> 00:01:07,980
was more convenient to use Consuegra instead of having to use the actual moisture sensor.

14
00:01:08,490 --> 00:01:12,650
And this is what actually worked really well for the basics.

15
00:01:12,680 --> 00:01:18,840
I was able to connect a motor right here using a screw terminal.

16
00:01:20,500 --> 00:01:26,200
It's like sitting right there and this motor simulates the water pump.

17
00:01:27,450 --> 00:01:33,660
I was able to move that consumer up and down and then trigger the operation of the motor or the motor

18
00:01:34,110 --> 00:01:42,120
simulation, and I was also able to work with an external power supply, which is this power supply

19
00:01:42,120 --> 00:01:47,050
here just for double a batteries with a switch.

20
00:01:47,370 --> 00:01:53,670
So we do like that in here so that the motor had its own power supply.

21
00:01:54,330 --> 00:01:54,990
There you go.

22
00:01:55,350 --> 00:01:56,220
It looked like this.

23
00:01:56,220 --> 00:01:58,090
Everything fit it really nice.

24
00:01:58,110 --> 00:02:06,240
There's no circuit, though, to allow me to check for the voltage of the the motor battery and that

25
00:02:06,240 --> 00:02:07,100
needed more space.

26
00:02:07,110 --> 00:02:09,210
It was not available in the mini breadboard.

27
00:02:09,390 --> 00:02:18,420
And therefore I decided to expand and move on to the larger breadboard or something like that and that

28
00:02:19,380 --> 00:02:21,900
and have a look at the larger breadboard.

29
00:02:22,440 --> 00:02:25,430
So with a larger breadboard ahead, more space.

30
00:02:25,430 --> 00:02:28,140
So it's a lot more comfortable to work with it.

31
00:02:28,800 --> 00:02:31,690
Zoom in so we can have a look at the details here.

32
00:02:32,250 --> 00:02:39,390
So having a look at the components you can see down here, I've got the two voltage devices, which

33
00:02:39,390 --> 00:02:42,420
are these two parts of the circuit.

34
00:02:42,810 --> 00:02:48,900
This voltage divided here is for the motor battery sensor is this one here?

35
00:02:48,900 --> 00:02:54,210
It takes a signal from the battery connector, which is this is what I would connect.

36
00:02:54,210 --> 00:02:56,400
The battery takes a signal here.

37
00:02:57,180 --> 00:03:03,120
It appropriately so that it puts it in a range of zero to three point three volts.

38
00:03:03,360 --> 00:03:12,210
And then I've got this this wire here takes the signal to be 34.

39
00:03:12,600 --> 00:03:21,060
Right there again is set in within the range of zero to three point three volts instead of seven to

40
00:03:21,060 --> 00:03:22,540
actually beat this power supply.

41
00:03:22,540 --> 00:03:23,610
It was meant to be

42
00:03:26,250 --> 00:03:33,160
six foot instead of six volts, which is beyond the capability of the SB 13 to read use of voltage divider

43
00:03:33,180 --> 00:03:36,510
to break it down to zero to three point three fourths.

44
00:03:37,110 --> 00:03:45,180
And the signal to set comes directly from the motor power supply, which is that this bottom power rail

45
00:03:45,510 --> 00:03:53,280
here, I'm taking it from these banana connectors, which I can connect all four to five battery power

46
00:03:53,280 --> 00:04:02,880
supply or to my benchtop power supply right there through the wires.

47
00:04:08,310 --> 00:04:16,170
Now, another interesting detail of this implementation here is instead of going for the regular thirty

48
00:04:16,170 --> 00:04:23,670
eight point thirty two or the thirty three to this one here, I decided to go for one of these.

49
00:04:24,090 --> 00:04:33,000
This is a regular E.S.P 32, but it contains a LAPO battery holder and of course, the necessary SEGERT

50
00:04:33,000 --> 00:04:35,300
plus a convenient on off switch.

51
00:04:35,700 --> 00:04:38,810
So I thought I would give this a go and try it out.

52
00:04:38,820 --> 00:04:45,600
And it actually worked quite well as it works exactly as a normal E.S.P 32 with a difference that it's

53
00:04:45,600 --> 00:04:50,100
got its own battery that can turn it on and the circuit will start working.

54
00:04:50,430 --> 00:04:59,520
So what I did here was that I got the voltage divided on which you can see here in the circuit, which

55
00:04:59,910 --> 00:05:03,770
takes a signal from a year or two or three.

56
00:05:04,200 --> 00:05:07,620
And that is what this white wire does.

57
00:05:07,620 --> 00:05:09,300
It goes over to the other side.

58
00:05:11,710 --> 00:05:16,150
Right here, which is Gibril 30 33.

59
00:05:19,780 --> 00:05:26,440
And then the input voltage that it measures comes from ground and the positive side of the battery.

60
00:05:26,470 --> 00:05:34,390
That's what this jumper wire is for, could not find a pin on the board itself to give me access to

61
00:05:34,390 --> 00:05:36,670
the voltage from the battery directly.

62
00:05:36,670 --> 00:05:40,630
So it just stuck a jumper wire in there and that worked quite well.

63
00:05:42,490 --> 00:05:49,420
Next up on this side of the Bridport is where we've got the controlling circuit for the motor, so there's

64
00:05:49,430 --> 00:05:54,700
the tape, 122 plus it's necessary trigger resistance that put down register.

65
00:05:54,910 --> 00:05:59,800
And we've got this short key diode and a capacitor for the noise.

66
00:06:00,190 --> 00:06:04,570
So you can see all that here are used a ceramic capacitor for the noise.

67
00:06:04,840 --> 00:06:13,600
And I also plugged in a bypass capacitor directly onto the radio because I was having initially problems

68
00:06:13,600 --> 00:06:19,950
with the motor causing a voltage drop that would cause the hospitality to Brown out.

69
00:06:19,960 --> 00:06:27,340
So the capacitor here helps a little like the Castlebar is not on this diagram.

70
00:06:27,340 --> 00:06:29,470
It's just something that are added separately.

71
00:06:30,750 --> 00:06:31,960
Let's see what else.

72
00:06:31,960 --> 00:06:34,960
I've got a little LCD here for the power.

73
00:06:35,450 --> 00:06:37,900
Let's use this LCD here.

74
00:06:38,440 --> 00:06:42,810
When power is applied, the energy gets on Stavisky.

75
00:06:43,210 --> 00:06:46,640
I have not implemented the other to indicate OLED.

76
00:06:46,840 --> 00:06:54,730
Those are available on the breadboard that are designed separately and finally for the humidities.

77
00:06:54,730 --> 00:06:59,170
And so I've got this board here, which is an look board.

78
00:06:59,440 --> 00:07:01,090
It contains a little amplifier here.

79
00:07:01,390 --> 00:07:09,700
And I'm taking the signal from analog from H0, the leftmost pin and convey that.

80
00:07:12,680 --> 00:07:14,080
A schematic.

81
00:07:16,530 --> 00:07:30,300
To 35 right there by this green wire, so I can just connect the moisture sensor on to the breakout.

82
00:07:34,410 --> 00:07:38,460
Like this and then connected or inserted into the soil.

83
00:07:39,210 --> 00:07:43,260
Now I start testing again just similarly to what I did with my mini breadboard.

84
00:07:43,600 --> 00:07:45,570
I was using a.

85
00:07:48,970 --> 00:07:53,150
But then show me that this is not properly connected, of course, I need to rearrange the power and

86
00:07:53,170 --> 00:08:01,510
ground wires, but I was using a potential method to help me figure out how the circuit and my flow

87
00:08:01,510 --> 00:08:08,000
on node read behaves depending on a variety of inputs from the sensor.

88
00:08:08,290 --> 00:08:14,830
That's how I was prototyping it when I got a sense of what is going on with the sensor and how it behaves.

89
00:08:15,160 --> 00:08:21,040
Then I continued with the use of the actual sensor in the terrorism itself.

90
00:08:23,550 --> 00:08:30,180
The circuit, which is so connected would look like this and to put in my Mogra.

91
00:08:31,700 --> 00:08:34,910
Which stimulates the pump and it would look like this.

92
00:08:36,700 --> 00:08:43,850
Later on, I also decided to add the DHT 22 cents, and that's what this group is about.

93
00:08:43,870 --> 00:08:45,940
You can see it right here on the schematic.

94
00:08:46,390 --> 00:08:48,160
This sensor looks like this.

95
00:08:48,490 --> 00:08:56,920
It's a the twenty two inside, just a regular DHT 22, but it's mounted in a larger casing, which you

96
00:08:56,920 --> 00:09:02,980
can use a bit of Velcro to stick on the inside of the terrarium, and therefore you can measure our

97
00:09:02,990 --> 00:09:04,240
temperature and humidity.

98
00:09:04,630 --> 00:09:10,510
So it also comes with a much longer Y, as you can see, sort of why is cable.

99
00:09:10,840 --> 00:09:19,210
So I would use that the screw terminal to connect power and the yellow one is the signal.

100
00:09:19,210 --> 00:09:26,590
So the signal goes in the middle, which is connected to the O2 25, according to the schematic.

101
00:09:29,270 --> 00:09:40,610
And that's about it, so she can she can use Bridport and a choice of E.S.P 32 defecates to implement

102
00:09:40,610 --> 00:09:42,620
this circuit is nothing special about it.

103
00:09:43,100 --> 00:09:47,860
In the next lecture, I'm going to walk you through the features of the PSP.
