1
00:00:00,600 --> 00:00:07,500
In this lecture, I'm going to walk you through the circuit schematic for the Tyrolean controller of

2
00:00:07,500 --> 00:00:14,730
this project, and of course, I have drawn the schematic using Kit Cat and I've also used it to design

3
00:00:14,730 --> 00:00:20,340
the PSP that I'm going to show you in a later lecture in this section.

4
00:00:21,050 --> 00:00:28,800
The main component of the circuit and in this schematic is you can see is the death itself.

5
00:00:29,340 --> 00:00:37,760
I am using the kid with the 38 PIN configuration, which is a very common version of the E.S.P 32 deficit.

6
00:00:37,860 --> 00:00:44,700
You can easily find it on eBay or other retailers on the Web on the breadboard.

7
00:00:44,700 --> 00:00:51,220
I have tested the exact same circuit with the 30 pin version of the E.S.P 32 deaf kids.

8
00:00:51,240 --> 00:00:57,480
So you can use whichever you want as long as the pins that you are connecting to the various peripherals

9
00:00:57,480 --> 00:00:58,290
are the same.

10
00:00:59,040 --> 00:01:02,930
So we've got the 38 PIN E.S.P 32 deficit in the middle.

11
00:01:03,060 --> 00:01:05,850
Most of the pins are unused and I'm not exposing them.

12
00:01:05,850 --> 00:01:10,860
Even in the PSP that I've designed again as part of this project that I'm going to talk about in a separate

13
00:01:10,980 --> 00:01:20,250
lecture on the left side of the connectors for the sensors up here on J5 is that the 22 Connector and

14
00:01:20,250 --> 00:01:27,540
Termini is a screw terminal, as you can see from the schematic, using a version of the DHC 22, which

15
00:01:27,900 --> 00:01:34,230
is got a special casing that I can install inside the terrarium and get the air temperature and the

16
00:01:34,410 --> 00:01:35,090
humidity.

17
00:01:35,730 --> 00:01:37,860
So it's got three panes ground.

18
00:01:37,980 --> 00:01:41,730
This is C and I'm connecting the Terrapin to Jupiter 25.

19
00:01:42,600 --> 00:01:42,930
Right.

20
00:01:42,930 --> 00:01:44,850
Then we've got the moisture sensor.

21
00:01:45,150 --> 00:01:53,550
The moisture sensor comes in a module with four pins and I've got a simple header, a female header

22
00:01:53,550 --> 00:02:00,060
on the B itself to which the module is connected to three panes are used.

23
00:02:00,390 --> 00:02:06,960
The second pin here is on use of court and unused mark on it just in case.

24
00:02:06,960 --> 00:02:14,760
At some point in the future, I want to use an environment sensor like the to the BMY or PMP 280 of

25
00:02:14,760 --> 00:02:21,960
made a provision for a connector for this sensor here for the ISO, which the protocol, although I

26
00:02:21,960 --> 00:02:25,710
did not really use it, at least in the current version of the project.

27
00:02:27,790 --> 00:02:34,210
Then you've got a bunch of indicators, ladies, I've got one for the power just to indicate when power

28
00:02:34,210 --> 00:02:38,710
is applied and I've got another couple of these that show me various types of activity.

29
00:02:38,720 --> 00:02:45,580
For example, the circuit will blink these LEDs when there is a temperature, humidity or motor operation

30
00:02:45,760 --> 00:02:46,420
update.

31
00:02:46,630 --> 00:02:49,060
So that can visibly see what is going on.

32
00:02:50,200 --> 00:02:58,020
Now, down here, I've got a couple of circuits, just voltage devices to give me a voltage indicator.

33
00:02:58,210 --> 00:03:03,180
This one here is for the battery and this one here is for the MCU, the microcontroller unit.

34
00:03:03,670 --> 00:03:11,650
Now for the MCU, I've made a provision to be able to power it either from the same power source as

35
00:03:11,650 --> 00:03:16,980
the battery or from its own three point three fourth power source.

36
00:03:17,500 --> 00:03:26,620
So depending on how you want to power the controller, you can just short these two jumpers and you'll

37
00:03:26,620 --> 00:03:28,570
be able to provide appropriate power.

38
00:03:28,750 --> 00:03:36,040
If he's a jumper wire to shorten these two terminals, then you'll be powering your MCU from the external

39
00:03:36,040 --> 00:03:37,120
five-fold pin.

40
00:03:37,120 --> 00:03:40,840
Otherwise it will be powered by the three point three volt pin.

41
00:03:42,600 --> 00:03:46,580
Let's move over to the right side of the dog.

42
00:03:46,770 --> 00:03:49,350
Going to zoom out a little so we can see the whole lot.

43
00:03:49,450 --> 00:03:50,190
OK, here we go.

44
00:03:50,730 --> 00:03:55,620
So there's a couple of different ways to power the circuit.

45
00:03:56,250 --> 00:04:03,300
I've got the barrel jacks, which up here and also crude terminals where you connect motor battery to

46
00:04:03,300 --> 00:04:09,660
the motor battery is meant to provide at least five volts of power, but no more than nine volts, which

47
00:04:09,660 --> 00:04:13,120
will feed directly into the motor.

48
00:04:13,160 --> 00:04:17,880
You can see that the crude terminals here fall is where you connect the motor.

49
00:04:17,880 --> 00:04:20,440
The motor, of course, is what powers the pump.

50
00:04:20,700 --> 00:04:27,360
Alternatively, what you can do is you can also use the same power source that powers the motor to also

51
00:04:27,360 --> 00:04:30,400
power the microcontroller unit.

52
00:04:30,420 --> 00:04:33,680
So there's a jumper here that can enable that connectivity.

53
00:04:33,690 --> 00:04:41,070
Apart from that, whether you use the J3 connector for the motor power source or the barrels, which

54
00:04:41,640 --> 00:04:47,010
is the same thing, you can use one or the other, but of course, not both at the same time.

55
00:04:48,090 --> 00:04:54,720
Below that, we've got the simple circuit for the motor that powers the water pump.

56
00:04:54,930 --> 00:05:00,720
I've got a Shawqi diode here and a small capacitor.

57
00:05:01,020 --> 00:05:08,100
The capacitor is here to try and dampen down any electrical noise that comes from the motor while it's

58
00:05:08,100 --> 00:05:08,730
spinning.

59
00:05:09,090 --> 00:05:15,450
And then this short circuit diode prevents back Karyn's from passing onto the rest of the circuit when

60
00:05:15,450 --> 00:05:22,290
the motor is no longer powered by just is free spinning as it's slowing down.

61
00:05:22,290 --> 00:05:27,360
That could produce current, that can damage other part of the circuit and especially the microcontroller.

62
00:05:27,660 --> 00:05:31,770
So you've got this diode here to prevent that from happening.

63
00:05:32,170 --> 00:05:36,330
And then down the bottom of this part of the circuit, we've got a tip.

64
00:05:36,330 --> 00:05:41,240
One hundred and twenty two transistor, which I'm using as a switch.

65
00:05:41,430 --> 00:05:49,230
The combination of the 330 ohm and the 20 kilogram pulled down resistor right here allow us to turn

66
00:05:49,230 --> 00:05:54,450
this switch on with a very small amount of Charente coming from Tapio three to.

67
00:05:56,230 --> 00:06:01,900
And that's about it with this circle, as you can see, it's fairly simple, you can easily implement

68
00:06:01,900 --> 00:06:07,810
it on a breadboard or you can go for a proper piece of be designed.

69
00:06:07,810 --> 00:06:14,860
That is, as I said, and I'm going to show you what that looks like in a later lecture in this section.
