issue105:arduino
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue105:arduino [2016/01/31 15:02] – créée andre_domenech | issue105:arduino [2016/02/06 18:53] (Version actuelle) – auntiee | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | I recently took up homebrewing and wondered how I could incorporate the Arduino. I think I can. I thought I’d use this article to show my thought process and planning before I even pick up an Arduino, or think about writing code. | + | **I recently took up homebrewing and wondered how I could incorporate the Arduino. I think I can. I thought I’d use this article to show my thought process and planning before I even pick up an Arduino, or think about writing code. |
The Basic Idea | The Basic Idea | ||
Ligne 5: | Ligne 5: | ||
Ideally, I need to keep my fermentation vessel between 18-25°C. The spare room that I’m using is sitting at about 16°C, so I need to find a way to control the heat around the vessel. I can’t put anything in the vessel as this may introduce contamination, | Ideally, I need to keep my fermentation vessel between 18-25°C. The spare room that I’m using is sitting at about 16°C, so I need to find a way to control the heat around the vessel. I can’t put anything in the vessel as this may introduce contamination, | ||
- | OK, so I know what I roughly want. Let me look at the pros and cons of the various things. | + | OK, so I know what I roughly want. Let me look at the pros and cons of the various things.** |
- | Vessel Heating | + | Récemment, j'ai récupéré un appareil de brasserie maison et je me suis demandé comment je pouvais y associer l' |
+ | |||
+ | L' | ||
+ | |||
+ | Idéalement, | ||
+ | |||
+ | Bon ! Je sais en gros ce que je veux. Laissez-moi étudier les avantages et les inconvénients des différents points. | ||
+ | |||
+ | **Vessel Heating | ||
This is the one thing I really need, so this is the priority. Initially I was looking to modify something that’s readily available like a heated car seat, or a pet blanket. Mainly those as they’re low power (around 12V), but after more reading I’d be as well sticking with what I have just now, a reptile heat mat that I can wrap around the vessel. I just need to find a way to control the heat mat. | This is the one thing I really need, so this is the priority. Initially I was looking to modify something that’s readily available like a heated car seat, or a pet blanket. Mainly those as they’re low power (around 12V), but after more reading I’d be as well sticking with what I have just now, a reptile heat mat that I can wrap around the vessel. I just need to find a way to control the heat mat. | ||
Ligne 13: | Ligne 21: | ||
Temperature Reading | Temperature Reading | ||
- | Like I mentioned earlier, I can’t put anything in the vessel so I’m going to have to make do with a reading from the outside. I know I can accomplish this with the DHT temperature/ | + | Like I mentioned earlier, I can’t put anything in the vessel so I’m going to have to make do with a reading from the outside. I know I can accomplish this with the DHT temperature/ |
- | Temperature Control | + | Chauffage de la cuve |
+ | |||
+ | C'est la seule chose dont j'ai vraiment besoin, c'est donc une priorité. Au départ, je pensais modifier quelque chose d' | ||
+ | |||
+ | Lecture de la température | ||
+ | |||
+ | Comme indiqué précédemment, | ||
+ | |||
+ | **Temperature Control | ||
Now that I have those two nailed, I can try to figure out a way of controlling the heat mat. After a lot of research I think a relay switch is the best option. With this I can use the Arduino’s 5V to trigger the switch to an on/off position. I’ve not used switches much, but the gist behind them is to put the live wire from the heat mat through the switch, which will break the circuit, then, when required, energise the switch with 5V to complete the circuit and the heat mat will come on. | Now that I have those two nailed, I can try to figure out a way of controlling the heat mat. After a lot of research I think a relay switch is the best option. With this I can use the Arduino’s 5V to trigger the switch to an on/off position. I’ve not used switches much, but the gist behind them is to put the live wire from the heat mat through the switch, which will break the circuit, then, when required, energise the switch with 5V to complete the circuit and the heat mat will come on. | ||
Ligne 26: | Ligne 42: | ||
turn off heatmat | turn off heatmat | ||
- | My thinking for the 19 and 22 is that the final temperature should be around 20°C to 21°C, but either way anything from 19-25°C is fine. | + | My thinking for the 19 and 22 is that the final temperature should be around 20°C to 21°C, but either way anything from 19-25°C is fine.** |
- | Another reason for the not-so-strict heating in my pseudo-code is that the heat mat will take about 20-30 seconds to reach full heat. I’m not worried about this as it is never hotter than about 32°C, it will take a while to heat the liquid inside, and, conversely, it’ll take quite a while for the liquid to cool down. Hence, while the heat mat may be on for a little while it should need switching on/off only every few hours, at least, so it’s not like I’d be switching it on and off every few minutes. Well, that’s the theory. We’ll see how that pans out in the practical phase. | + | Régulation de température |
- | Logging | + | Maintenant que j'ai traité ces deux éléments importants, je peux essayer de trouver une façon de contrôler la température du tapis. Après beaucoup de recherches, je pense qu'un relais est la meilleure option. Avec lui, je peux utiliser le 5 V de l' |
+ | |||
+ | Pour piloter le tapis chauffant, j' | ||
+ | |||
+ | si température < 19 | ||
+ | | ||
+ | autrement si température > 22 | ||
+ | | ||
+ | |||
+ | Mon idée à propos de 19 et 22, c'est que la température finale soit autour de 20-21 °C, mais n' | ||
+ | |||
+ | **Another reason for the not-so-strict heating in my pseudo-code is that the heat mat will take about 20-30 seconds to reach full heat. I’m not worried about this as it is never hotter than about 32°C, it will take a while to heat the liquid inside, and, conversely, it’ll take quite a while for the liquid to cool down. Hence, while the heat mat may be on for a little while it should need switching on/off only every few hours, at least, so it’s not like I’d be switching it on and off every few minutes. Well, that’s the theory. We’ll see how that pans out in the practical phase.** | ||
+ | |||
+ | Une autre raison pour le chauffage pas-vraiment-précis dans mon pseudo-code est que le tapis chauffant demande environ 20 à 30 secondes pour atteindre la pleine température. Je ne suis pas inquiet à ce sujet, car il n'est jamais plus chaud que 32 °C, il faudra un bon moment pour que le liquide chauffe à l' | ||
+ | |||
+ | **Logging | ||
I still have a spare ESP WiFi module, so I can probably do like I did with my plant monitoring project where I send the data to ThingSpeak. I’ll probably note the temperature and humidity over day and time. Of course, day and time may mean I need to use a real-time clock module. Unless ThingSpeak tags on the day/time. Not sure. Can’t remember if they do. | I still have a spare ESP WiFi module, so I can probably do like I did with my plant monitoring project where I send the data to ThingSpeak. I’ll probably note the temperature and humidity over day and time. Of course, day and time may mean I need to use a real-time clock module. Unless ThingSpeak tags on the day/time. Not sure. Can’t remember if they do. | ||
Ligne 36: | Ligne 67: | ||
I could also log the brightness of the room using an LDR, but the light level has no bearing on the brew, so scratch that. | I could also log the brightness of the room using an LDR, but the light level has no bearing on the brew, so scratch that. | ||
- | I’d like to have an alert system where I can get an SMS/email should the temperature go haywire. This is a possibility using ThingSpeak and Twilio, but is not something I’ve tinkered with before and will leave this to the end as it’s not critical. | + | I’d like to have an alert system where I can get an SMS/email should the temperature go haywire. This is a possibility using ThingSpeak and Twilio, but is not something I’ve tinkered with before and will leave this to the end as it’s not critical.** |
- | Lighting | + | Enregistrement |
- | Lighting is not critical, and will be manually controlled, so I’m not too worried about this. This will be a strip of 12V LED lighting with a transformer and a switch. No need for the Arduino to control the lighting. One major consideration for the lighting though is that it must be removable as the vessel has to be bleached sterile after use. I’ll probably just attach the light strip(s) to the vessel with some tape or blu-tac. | + | J'ai toujours un module WiFi ESP de rab ; aussi, je peux probablement faire comme pour mon projet de supervision de plante où j' |
- | Additions | + | Je peux aussi enregistrer la luminosité de la pièce grâce à une photo-résistance, |
+ | |||
+ | J' | ||
+ | |||
+ | **Lighting | ||
+ | |||
+ | Lighting is not critical, and will be manually controlled, so I’m not too worried about this. This will be a strip of 12V LED lighting with a transformer and a switch. No need for the Arduino to control the lighting. One major consideration for the lighting though is that it must be removable as the vessel has to be bleached sterile after use. I’ll probably just attach the light strip(s) to the vessel with some tape or blu-tac.** | ||
+ | |||
+ | Éclairage | ||
+ | |||
+ | L' | ||
+ | |||
+ | **Additions | ||
I have a spare IP camera that doesn’t seem to move up/down or left/right properly, so I might use it to view the fermenting vessel by putting it near the top rim to see in. My only query here is that if the camera switches to night vision mode, will the IR lights reflect off the vessel and bleach the image making it useless? Not sure, but that’s something to test. | I have a spare IP camera that doesn’t seem to move up/down or left/right properly, so I might use it to view the fermenting vessel by putting it near the top rim to see in. My only query here is that if the camera switches to night vision mode, will the IR lights reflect off the vessel and bleach the image making it useless? Not sure, but that’s something to test. | ||
Ligne 48: | Ligne 91: | ||
A further addition could be an LCD screen. If I put the screen near the top of the vessel, and within range of the camera view, I could monitor the temperature remotely. | A further addition could be an LCD screen. If I put the screen near the top of the vessel, and within range of the camera view, I could monitor the temperature remotely. | ||
- | As a quick visual-at-a-glance aid, I may add some LEDs to show if the temperature is within a certain range. Maybe between 20-22 could be a green LED with 25+ being red. Maybe 19 or less is a yellow LED. | + | As a quick visual-at-a-glance aid, I may add some LEDs to show if the temperature is within a certain range. Maybe between 20-22 could be a green LED with 25+ being red. Maybe 19 or less is a yellow LED.** |
- | Conclusion | + | Additions |
+ | |||
+ | J'ai une caméra IP inutilisée qui ne semble pas bien bouger en haut/bas et droite/ | ||
+ | |||
+ | Un complément pourrait être un écran LCD. Si je mets l' | ||
+ | |||
+ | Comme aide pour un contrôle visuel rapide, je peux ajouter quelques LED pour montrer si la température est dans une certaine plage. Peut-être qu' | ||
+ | |||
+ | **Conclusion | ||
The basic idea of controlling the temperature of the liquid with a heat mat is definitely possible. Same with the logging. Shouldn’t be a problem. | The basic idea of controlling the temperature of the liquid with a heat mat is definitely possible. Same with the logging. Shouldn’t be a problem. | ||
Ligne 58: | Ligne 109: | ||
I’ll more than likely include the LCD screen as it’s a nice visual guide to the reading from the DHT and I can compare that against the thermometer that’s stuck to the side of the vessel. | I’ll more than likely include the LCD screen as it’s a nice visual guide to the reading from the DHT and I can compare that against the thermometer that’s stuck to the side of the vessel. | ||
- | NEXT MONTH: The project begins with the LCD screen, DHT and WiFi modules. | + | NEXT MONTH: The project begins with the LCD screen, DHT and WiFi modules.** |
+ | |||
+ | Conclusion | ||
+ | |||
+ | L' | ||
+ | |||
+ | L' | ||
+ | |||
+ | Il est plus que probable que j' | ||
+ | |||
+ | LE MOIS PROCHAIN : le projet commence avec l' |
issue105/arduino.1454248950.txt.gz · Dernière modification : 2016/01/31 15:02 de andre_domenech