Hey guys and welcome to another arduino-tutorial.
I personally thought a little bit about what you could build using an arduino, and then
I thought building an arduino-smart-fridge would be a really cool project.
And in this Video I am going to show you what I just built.
This mini-fridge consists of four side panels, which are 21 cm long and 14 cm wide, a panel
at the top, a ground and this little small board, that I am going to talk about later.
In two of the four side panels, I cut out a square with a side length of 4cm that my
refrigeration will be placed in.
For cooling it, I am going to use some peltier elements.
When I put a voltage on a peltier element, one side will become really hot and the other
side will become really cold.
So I placed the peltier elements with the cold side facing inside.
To protect the peltier elements from overheating, I mounted a heat sink on the hot side.
I didn't have any heat-resistant glue, so I just used a wire to mount it.
The peltier elements are connected in series, so that each of them gets a voltage of around
6 volts.
The arduino can control them with a relay.
If you look inside this box, you can see that there's a little board in it.
Under this board I mounted a load cell.
When I put something on it, the load cell will be bent downwards a little bit, and the
resistance will be changed.
The load cell is connected to an HX711 module that can convert analog signals into digital
data.
The HX711 module is connected to the arduino, too.
Finally I connected an NTC to the arduino, which can read the temperature.
The box is isolated on the inside by the way.
Many of you will ask how this mini-fridge is supposed to work.
The idea is very simple: In this fridge there's enough space for one can.
The load cell will read the weight of this can and calculate how full the can is.
The level of the can will be displayed on this monitor.
Moreover, the temperature of it will also be displayed there.
If the temperature is too high or too low, the arduino will activate or deactivate the
peltier elements.
And that's already it.
My first idea was to use an LCD for showing the values.
But while I was testing this, the LCD stopped working because of unknown reasons.
My next idea was to use my Smartphone as a serial monitor, so the values would be displayed
there.
But this also didn't work, because my phone is too slow.
Because of that, I need to use this big monitor, for showing temperature and level.
The values will be sent to the pc and the whole thing will be shown on the monitor.
But if you are going to build this by yourself, I would advise to choose an LCD, because it's
much better.
So let's take a look at the program.
At first, the HX711 library and the liquid crystal library will be imported.
I don't need to import the liquid crystal library, because I didn't connect a LCD.
But later I am going to explain why it makes sense.
At next, many variables are defined here, which will be used later in the program.
Moreover the LCD is defined here.
As you know, I didn't connect an LCD, so I changed every command of the LCD into a
commentary.
So if I want to test it with an LCD again, I only need to uncomment the commands.
In the next step, the serial monitor will be started with a baudrate of 9600.
Then the load cell will be calibrated with a special value and will be tared.
Finally the pin, the relay is connected to, will be defined as an output here.
So let's take a look at the loop.
First, the arduino will read the data of the NTC and convert it into Kelvin.
Then it's going to convert it into Celsius, too.
At next, there will be 3.5 added to the weight, that the load cell sends to the arduino.
I mounted the load cell in the right way, but the weight of the things, which I put
on it are negative.
That's the reason, why the weight of an empty can will be added.
At next this value will be divided by -44.5, which is the weight of a full can.
Finally it will be multiplied by one hundred and converted into an integer.
Nextly, the temperature and the level in percent will be printed out in the serial monitor.
Finally the arduino will decide if the temperature is too high or too low, and activate or deactivate
the peltier elements.
And that's the full program.
So I am simply going to test it.
AS you can see here, the level of the can and the temperature is displayed on the monitor.
Because of warmth, the arduino activated the peltier elements.
If you want to build this too, but you think, that it's too boring, you can for instance
include this GSM Module.
So you can be informed, if the level is under 20% for instance.
That's all for this video, if you like this video, it will be really great, if you subscribe
to my channel.
Have fun building this on your own and see you in the next Video.

For more infomation >> How To Make Deep Hole Eels Trap By Using Bamboo - Smart Boy Catch A lot Of Eels - Duration: 10:27.
For more infomation >> Smart City-Coupé smart & pure - Duration: 0:47.
For more infomation >> EQブランドsmart版!Vision EQ フォーツー コンセプト 公開 - Duration: 4:30. 
Không có nhận xét nào:
Đăng nhận xét