1
00:00:00,660 --> 00:00:07,050
In this lecture, I'll talk about the hard work requirements for this project in choosing hardware components,

2
00:00:07,080 --> 00:00:10,260
I prioritize the flexibility and simplicity.

3
00:00:10,800 --> 00:00:16,530
It should be possible to substitute any of the components with equivalence and still be able to complete

4
00:00:16,530 --> 00:00:19,050
the project without modifications in the software.

5
00:00:19,860 --> 00:00:24,420
I also chose components that are easy to find no matter where you are in the world.

6
00:00:25,020 --> 00:00:30,210
Almost everything I show you in this lecture is generic, meaning that you can get parts from different

7
00:00:30,210 --> 00:00:32,370
ventus at very low costs.

8
00:00:33,000 --> 00:00:38,670
The only exception is the Raspberry Pi, for which there is no 100 per cent compatible alternative to

9
00:00:38,670 --> 00:00:39,690
the genuine board.

10
00:00:39,930 --> 00:00:42,180
But even there, the alternatives.

11
00:00:43,650 --> 00:00:49,830
Of course, you'll need a Raspberry Pi, any model will do as long as it includes ADENHART or Wi-Fi

12
00:00:49,830 --> 00:00:56,820
networking, and you can install the Raspberry Pi OS on it from a ten dollar Raspberry Pi zero w to

13
00:00:56,820 --> 00:00:59,390
the latest Raspberry Pi for the work.

14
00:01:00,270 --> 00:01:02,690
I have used an old Raspberry Pi to.

15
00:01:03,090 --> 00:01:07,710
Having said that, you actually do not need a Raspberry Pi at all.

16
00:01:08,220 --> 00:01:14,400
At the very least, you need a computer on which you can store and run the node rate and make it mosquito

17
00:01:14,430 --> 00:01:15,120
services.

18
00:01:15,750 --> 00:01:21,990
It could be a laptop or a virtual machine with the Knicks running on your computer or a banana pie,

19
00:01:21,990 --> 00:01:28,710
perhaps AAUP to square red and or droid x2 for or an imagination creator.

20
00:01:28,710 --> 00:01:29,750
S.I 20.

21
00:01:30,300 --> 00:01:37,500
As I said, the only real requirement is that whatever you choose, it can run the node red and disservices.

22
00:01:38,610 --> 00:01:44,370
If you choose to use anything other than the Raspberry Pi, you'll have to figure out how to install

23
00:01:44,370 --> 00:01:45,810
those services yourself.

24
00:01:46,110 --> 00:01:48,780
But if you are comfortable with that, go for it.

25
00:01:50,210 --> 00:01:55,850
The microcontroller I've chosen for this project is that E.S.P 32 implemented on a generic development

26
00:01:55,850 --> 00:02:03,410
kit version one point one, I chose the E.S.P 32 as opposed to a regular Arduino like the UNO because

27
00:02:03,410 --> 00:02:04,820
of the integrated Wi-Fi.

28
00:02:05,690 --> 00:02:15,290
The one that I use is marked E.S.P 32 s the onepoint wonderful version, one point one and has 38 pins

29
00:02:15,290 --> 00:02:19,550
with a pitch between the two rows of twenty two point ninety five millimeters.

30
00:02:19,880 --> 00:02:22,870
And I chose it because it fits nicely on my breadboard.

31
00:02:22,880 --> 00:02:29,160
There's no other specific reason I've tested the exact same sketch on a few other, especially two deaf

32
00:02:29,180 --> 00:02:36,590
kids that I have, such as a 40 pin and 30 pin variant, including one with an integrated LEPO battery

33
00:02:36,590 --> 00:02:38,150
and charging circuit.

34
00:02:38,480 --> 00:02:39,800
And that worked perfectly.

35
00:02:40,250 --> 00:02:47,900
I also tested a modified version of the sketch with an Arduino Nano 33 Iot, and it worked equally well.

36
00:02:48,740 --> 00:02:52,750
As with the Raspberry Pi, the choice of Mac Montrealer is flexible.

37
00:02:52,970 --> 00:02:59,150
The only requirement is that the controller you choose has Wi-Fi or Ethernet communication capability,

38
00:02:59,420 --> 00:03:03,050
and it has an M Quiddity library so that it can work.

39
00:03:03,060 --> 00:03:04,820
Sanctity client.

40
00:03:05,940 --> 00:03:11,370
As with the Raspberry Pi, if you choose to use anything other than the E.S.P 32, you'll have to figure

41
00:03:11,370 --> 00:03:14,840
out how to modify the sketch to work with your choice of MCU.

42
00:03:15,180 --> 00:03:17,700
So I encourage you to go with the ESB 32.

43
00:03:18,780 --> 00:03:24,090
In the photo that you see in this slide, you can see all of the hardware components that are needed

44
00:03:24,090 --> 00:03:32,580
in this project, apart from the Raspberry Pi and the added to this, a motor at DHT 22 sensor, a potential

45
00:03:32,580 --> 00:03:36,350
mirror and a few other things that I'll describe later here.

46
00:03:36,360 --> 00:03:42,570
I want to concentrate on the motor and the potential motor because I don't want to be working on the

47
00:03:42,570 --> 00:03:50,520
project with that terrarium jar or filled with soil and a plan in it and a water reservoir on my workbench.

48
00:03:50,880 --> 00:03:57,750
I've replaced the actual soil humidity sensor with a potential mirror and the actual water pump motor

49
00:03:58,020 --> 00:04:00,480
with a regular Hoby DC motor.

50
00:04:01,290 --> 00:04:07,140
The potential motor is simulating the analog soil humidity sensor so I can develop the software and

51
00:04:07,140 --> 00:04:11,640
test that without having to deal with the actual planned soil and water.

52
00:04:12,390 --> 00:04:17,910
The this motor allows me to test the motor control circuitry and the motor power supply.

53
00:04:18,870 --> 00:04:25,140
Once I'm confident that those individual software and hardware components work, then it can replace

54
00:04:25,140 --> 00:04:31,200
the potential motor and the DC motor with the actual soil humidity sensor and the water pump.

55
00:04:32,800 --> 00:04:37,810
In the photos, in this light, you can see the actual water pump on the left and this soil humidity

56
00:04:37,810 --> 00:04:44,350
sensor on the right side, both very low cost generic components that you can easily find on the Web.

57
00:04:44,680 --> 00:04:47,410
So I suggest that you purchase at least two of each.

58
00:04:48,870 --> 00:04:57,420
I'm using a regular DHT 22 sensor in a special package with extended wires for the power and data pins

59
00:04:57,630 --> 00:04:59,410
like the ones you see in this photo.

60
00:05:00,330 --> 00:05:05,240
The special packaging makes it easy to place the sensor inside the terrarium container.

61
00:05:06,000 --> 00:05:10,260
Apart from this, there's nothing special about this DHT 22.

62
00:05:10,710 --> 00:05:13,890
You can actually use a regular DHT 22.

63
00:05:13,890 --> 00:05:20,480
And so the long, flexible jumper wires to its pins so that you can place it inside your terrarium container

64
00:05:20,490 --> 00:05:23,960
instead of purchasing the modified version in this photo.

65
00:05:25,250 --> 00:05:33,140
To control the pump motor, I've chosen to use a tip 120 122 Darlington transistor, along with a network

66
00:05:33,140 --> 00:05:36,960
of two resistors, one diode and one capacitor.

67
00:05:37,820 --> 00:05:43,040
This configuration allows me to switch the motor on and off with only a small amount of Charente from

68
00:05:43,040 --> 00:05:46,020
the E.S.P 32 instead of a transistor.

69
00:05:46,160 --> 00:05:52,130
You can choose to use a relay which can help with better electrical separation between the motor and

70
00:05:52,130 --> 00:05:53,090
the microcontroller.

71
00:05:54,140 --> 00:05:57,890
In this case, I'll show you how to implement the transistor switch option.

72
00:05:59,440 --> 00:06:04,880
I wanted to implement the ability to measure the input voltage of the ISP 32 and the motor.

73
00:06:05,290 --> 00:06:12,760
This makes it possible to power the terrorism controller from one or two batteries and to generate notifications

74
00:06:12,760 --> 00:06:15,400
when the batteries need to be charged or changed.

75
00:06:16,330 --> 00:06:20,980
The voltage sensing circuits consist of simple voltage dividers.

76
00:06:21,610 --> 00:06:27,910
In this course, I'll show you exactly how to define the resistor values and how to implement the necessary

77
00:06:27,910 --> 00:06:33,190
voltage calculations in the E.S.P 32 to sketch and the code red flow.

78
00:06:34,540 --> 00:06:40,450
If you don't like working with a breadboard, you can implement the hardware on a printed circuit board

79
00:06:41,200 --> 00:06:46,540
at designed a PC B that can accommodate the components you see on the breadboard, along with a 38 PIN

80
00:06:46,540 --> 00:06:48,070
Espiritu deaf kid.

81
00:06:49,020 --> 00:06:55,110
In this course, I'll be working on the breadboard, but in the very end, I'll show you what the implementation

82
00:06:55,110 --> 00:06:55,860
looks like.

83
00:06:56,340 --> 00:06:59,350
Finally, there are a few secondary components I want to mention here.

84
00:07:00,390 --> 00:07:05,340
You need a break, but of course, like the one in the photo, or you can use a couple of many Bridgeport's.

85
00:07:05,820 --> 00:07:13,200
You also need lots of jumper wires and a power indicator so that, you know, when the circuit is powered

86
00:07:13,200 --> 00:07:21,420
on for power, I use the benchtop power supply for the motor and use the power for the E.S.P to hit

87
00:07:22,050 --> 00:07:22,440
the bench.

88
00:07:22,440 --> 00:07:29,400
Power supply was convenient because it also allowed me to test my motor voltage circuit and a different

89
00:07:29,400 --> 00:07:30,630
input voltages.

90
00:07:31,710 --> 00:07:39,090
And finally, a multimeter is always necessary to use in a project like this, I use mine to calibrate

91
00:07:39,090 --> 00:07:45,930
my voltage sensing sub circuits and to take precision readings of their resistor values so that I can

92
00:07:45,930 --> 00:07:49,800
use them in the voltage calculations in the E.S.P theory to sketch.

93
00:07:50,130 --> 00:07:52,410
All this, of course, is explained in the course.
