Home | Community | Message Board

MRCA Tyroler Gluckspilze
This site includes paid links. Please support our sponsors.


Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Shop: Mushroom-Hut Grow Bags   North Spore Bulk Substrate   PhytoExtractum Maeng Da Thai Kratom Leaf Powder   Kraken Kratom Red Vein Kratom   Original Sensible Seeds Bulk Cannabis Seeds   Left Coast Kratom Buy Kratom Extract

Jump to first unread post Pages: 1 | 2 | 3 | Next >  [ show all ]
Some of these posts are very old and might contain outdated information. You may wish to search for newer posts instead.
Invisiblevatman
I'm Vatman


Registered: 04/17/14
Posts: 1,642
Micro processor.. mushroom automation. * 4
    #24821304 - 12/02/17 01:24 PM (6 years, 1 month ago)

I am willing to code and build projects for people. I would also build them for the cost of compents, shipping and a little extra for odds and ends I have to spend on.

Feel free to ask me questions on the build or possible projects.

I am thinking of doing a martha fruiting chamber controller next if there is interest. This would allow you to turn on a humidifier based off a set humidity setting. Turn on a fan for X time every Y time. This I could work on so you can adjust it via a push button interface or via the code.


I am also open to ideas from the public.




Purpose of this project.
Provide a cheap and simple pasteurizer with decent monitoring for the pasteurization community.
This will be built around the premises of saving money but also being a powerful tool.

This build functions
Turns off a relay when reaching a temperature point and turns it back on when bellow. It uses two temp probes. Once the substrate reaches 155F a 1 hour timer is started. Once 1 hour timer is finished the program stops operating the relay until restarted.

It also provides a done indicator and an indicator that during your process 170F was reached or exceeded.

This is to provide a hassle free pasteurization without the worry of pasteurizing for too long or under pasteurizing.

Note this is currently a draft. Yet to be tested. As right now is a proof of concept. Further refining is needed.
How to find sensor address
------


Source code for the automatic pasteurizer. With two LEDs for indication. Automatic shut off after 1 hour. If 170F or higher is reached a fault led turns on for the rest of the cycle. Temp ranges can be edited within the program.



Placeholder schematic until project is finished


Less formal but better for those who are visual. Would require basic understanding of a breadboard


Parts list
  • Solid state Relay or optical isolated mechanical relay.
  • Micro processor: I use anarduino mega but anarduino nano can be used.
  • DS18B20 Temperature Sensor Waterproof (accurate up to .5C higher and lower temps can reduce accuracy)Max operating temp is 257F
  • 4.7k Resistor... 4700 ohms
  • two 220 ohms resistors these are for your leds.
  • 2 leds... One led color should be fault the other indicates completion
  • A passive heat sink for the solid state relay depending on your system but recommended.


Additional options such as buzzer and display will be codded in later.
Will keep two separate codes from the basic without display and one with a display and buzzer.



Solder the wires or use a terminal lug before connecting to the relay. I just above used too much solder. Could have been a little less.

The red led will turn if at any point temperature of your heater controller reads 170 or greater. This will not clear until the program restarts.

The blue LED turns on indicating the process is done. During this state the Relay will be in an off state not allowing any additional heating. Can only be cleared by restarting the program.
Both LEDs can be illuminated. The red is just indicate a possible overtemp during your process. 


Finished the prototype. Moved the system from the ardiuno shield to a protoboard.  I decreased temp vules varrifed it functions correctly.  Tomorrow I'll pasteurize some soil..... I don't currently grow or have any spawn so will just be final example of the project.

Update







Notes from test run

I noticed that the semiconductor relay got hot during operation. If your duty cycle is high I would recommend a heat sink. This would no be concern if you in place used a mechanical relay. Other than that the system worked perfectly.


A 9v battery was more than enough to run the system with a lcd display.




To Do list
*Finish demo of the automatic pasteurizer.
      -Add an LCD display if there is interest.

*Crate a grow room controller
        -This will interface with the web to upload humidity, temp values

        -Provide the ability to turn on an off a fogging unit or units based on humidity.
     
        -Adjust the duty cycle of a fan

        -LCD display with menu options to change when things turn on and off.




Edited by vatman (12/13/17 05:41 PM)


Extras: Filter Print Post Top
InvisiblebodhisattaMDiscordReddit
Smurf real estate agent
 User Gallery
Folding@home Statistics
Registered: 04/30/13
Posts: 61,889
Loc: Milky way
Trusted Cultivator
Re: Micro controllers [Re: vatman]
    #24821331 - 12/02/17 01:35 PM (6 years, 1 month ago)

Might want to cross post this in gourmet and medicinal mushrooms too.


Extras: Filter Print Post Top
Invisiblevatman
I'm Vatman


Registered: 04/17/14
Posts: 1,642
Re: Micro controllers [Re: bodhisatta]
    #24821379 - 12/02/17 01:53 PM (6 years, 1 month ago)

I am going to be building a proto type soon. This is very simple. I could do more complex things if people had some ideas.


Like I could have sensors monitor your tubs that give an audio signal if it is too dry.

I could integrate things to a web page. (Wouldn't do this until after my final semester. My Final semester is a little crazy.)

Can controll foggers, air flow etc etc etc etc.

There are a lot of options.


A decent c02 sensor would cost around 60-70 just for the sensor. Cheap 1 would be 2-5 but not very accurate and pickups other gases. Could have it turn on.

Like my current project

Monitors soil moisture and turns on a pump when it is too dry,

Monitors temp, RH

Co2

water temp

sounds an alarm if the co2 gets too high

turns on a fan when the humidity is high or when C02 is high

I could add a pH monitor for the water. Would run 80 bucks though for a decent one.

Has a digital monitor for the water level.


Edited by vatman (12/02/17 02:32 PM)


Extras: Filter Print Post Top
Offlinetiedma
Fat Kid
Male

Registered: 08/16/17
Posts: 119
Last seen: 4 years, 5 months
Re: Micro controllers [Re: vatman]
    #24821578 - 12/02/17 03:14 PM (6 years, 1 month ago)

you planing to open source your code
Also if you add a click encoder and a 2x16 screen you could make the values settable
i would like to see where this goes may be able to draw up an .stl box for it
It would be nice for an all in one fruiting chamber control (temp, humd, fresh air, ect)


--------------------


Extras: Filter Print Post Top
Offlinetiedma
Fat Kid
Male

Registered: 08/16/17
Posts: 119
Last seen: 4 years, 5 months
Re: Micro controllers [Re: tiedma]
    #24821593 - 12/02/17 03:22 PM (6 years, 1 month ago)

also the
AM2301 DHT21
is a nice temp humid sensor that only uses one data pin +power


--------------------


Extras: Filter Print Post Top
Invisiblevatman
I'm Vatman


Registered: 04/17/14
Posts: 1,642
Re: Micro controllers [Re: tiedma]
    #24821689 - 12/02/17 04:00 PM (6 years, 1 month ago)

Yeah I'll post the source and parts list.


One issue I do see is a humidity sensor tends to fail above 95 rh.

For control of high powered things like a heating Matt or a fan a relay would need to be wired in. I'll pm you a draft.

I won't have internet till the 12th.


Extras: Filter Print Post Top
Offlinecatnip40
xฬ็
Male User Gallery


Registered: 03/09/12
Posts: 703
Last seen: 7 days, 15 hours
Re: Micro controllers [Re: vatman]
    #24823234 - 12/03/17 08:58 AM (6 years, 1 month ago)

:takingnotes::popcorn:


Extras: Filter Print Post Top
Invisiblemary fairchild
Pantheist


Registered: 12/06/14
Posts: 777
Trusted Cultivator
Re: Micro controllers [Re: vatman]
    #24823304 - 12/03/17 09:26 AM (6 years, 1 month ago)

Quote:

vatman said:
I have been really been getting into micro controllers. Just finished a college class on them.

My final project was a grow room controller. Ranging from temp to humidity. Over 1000 lines of code.

So I was thinking my not make one for pasteurization.
Would be able to control 4,800W of power.

Would require someone to do a little wiring.

I could make them for about 25-30.

I could code in a timer for once 160 is reached a timer is engaged and would auto stop after 60 mins.

The relay would be a solid state relay only able of controlling A.C power up to 40 Amps.


Could have the relay shut off 160F internal turn on at 150 and keep that cycle.

If I use two temp probes just for a few bucks more I could have the one probe control the temperature outside of your substrate bag keeping it at pasteurization temps and not start the timer until an internal temp is reached.

So if you are using a pressure cooker on an electric plate to pasteurize you would have the internals of the pressure cooker at 160F and the timer could start once the center of the bag reaches 150F. The Pressure cooker could be maintained at 155-160F

One down side this would be all powered by a USB Mini-B that alone is about 5 bucks but otherwise it is able to do everything stated above and I could do more.



Wouldn't you have to somehow factor in the hysteresis? I PC between 140 and 160F. I have to turn off the electric stove when the temperature of what I'm pasteurizing reaches 120F otherwise temp will overshoot the range. Also the overshoot varies with how much water is in the pressure cooker.


Extras: Filter Print Post Top
Invisiblevatman
I'm Vatman


Registered: 04/17/14
Posts: 1,642
Re: Micro controllers [Re: mary fairchild]
    #24823553 - 12/03/17 11:58 AM (6 years, 1 month ago)

I plan on having hysteresis.  That is why I was thinking of a second probe to just monitor the external temp of the substrate instead of the substrate itself.  3 probes are 9 bucks.

Otherwise the hysteresis cycle would be by the temp of the substrate. 

There will be over shot. Depending on your system. 

I use to use a wallpaper steamer for my strsw. I had the temp for the 55 gallon box controlled to 160F to 145F. This was a good enough of a hysteresis. I didn't monitor the substrate temp would do this for 1.5 hours and let it cool. Came out fine every time.

Yes there will be process lag depending on  a lot of variables. Over shooting and undershooting.  You don't really need that much water.  Typically a steam pasteurization uses little. Unless it is a submerged pasteurization. Ranges might want to be higher etc. So to keep the dynamic response low use steam. You would get a higher dynamic response with more water. 

I'm not a fan of baths for a lot of reasons but not getting into that here.

Also semi conductor relays do better with short duty cycles. They have almost an indefinite use. Only issue is thermal load but that shouldn't be an issue as long as you keep it under 40 amps.


Edited by vatman (12/03/17 12:21 PM)


Extras: Filter Print Post Top
Invisiblemary fairchild
Pantheist


Registered: 12/06/14
Posts: 777
Trusted Cultivator
Re: Micro controllers [Re: vatman]
    #24823642 - 12/03/17 12:43 PM (6 years, 1 month ago)

Best wishes for your build!


Extras: Filter Print Post Top
Invisiblevatman
I'm Vatman


Registered: 04/17/14
Posts: 1,642
Re: Micro controllers [Re: mary fairchild]
    #24827430 - 12/05/17 09:16 AM (6 years, 1 month ago)

Updated with a draft. I should have time this weekend to test this out.

the temp sensors are addressed individually. Every sensor has its own addressing.

The relay will allow power at 155 or when bellow.
Will shut off at or above 162.


This draft does not have a buzzer indicator but will auto shut off after second probe has reached 150 for 1 hour.

The program will still run but relay will no longer be active. To start another batch restart the microprocessor or remove and reapply power.

Once I free up my I2C LCD from another project I will have it display readouts of the two temps on a LCD display.

Text after "//" are my notes to help you understand what is going on. Also text between "/*" "*/" are also notes


Edited by vatman (12/05/17 09:21 AM)


Extras: Filter Print Post Top
OfflineNikoyo
FUN GUY
I'm a teapot

Registered: 01/29/17
Posts: 288
Last seen: 5 days, 23 hours
Re: Micro controllers [Re: vatman] * 1
    #24827472 - 12/05/17 09:42 AM (6 years, 1 month ago)

:takingnotes:

Very interesting concept, would be really neat to see a working prototype. If you havent looked into it or heard about them I would suggest taking a look into micro plc's, you would be easily able to write code to control all the functions your looking to do, they work great for PID control.


--------------------
Gettin back to work


Extras: Filter Print Post Top
Offlinehamloaf
Loaf of Fam.
Male User Gallery

Registered: 12/23/09
Posts: 20,192
Loc: Oklahoma. Flag
Last seen: 1 year, 8 months
Trusted Cultivator
Re: Micro controllers [Re: Nikoyo]
    #24827477 - 12/05/17 09:44 AM (6 years, 1 month ago)

I like this too.  Thanks for putting in the work, vatman.  :mushroom2:


--------------------

   
How I Get Stuff done. - My Reference Guide. - My Grows.


Extras: Filter Print Post Top
InvisiblebodhisattaMDiscordReddit
Smurf real estate agent
 User Gallery
Folding@home Statistics
Registered: 04/30/13
Posts: 61,889
Loc: Milky way
Trusted Cultivator
Re: Micro controllers [Re: Nikoyo]
    #24827479 - 12/05/17 09:45 AM (6 years, 1 month ago)

PLCs are expensive


Extras: Filter Print Post Top
Invisiblevatman
I'm Vatman


Registered: 04/17/14
Posts: 1,642
Re: Micro controllers [Re: bodhisatta]
    #24827495 - 12/05/17 09:51 AM (6 years, 1 month ago)

This can be ran off an Adriano nano. The controller itself costs 3-5 USD.

Price tag for this

Controller 3-5USD
temp probes sold in packs of 3 for 8.95USD
Solid state relay:about 10 USD.
Everything is dirt cheap if slow boated from china.


Everything else is optional in regards to display, buzzer, leds etc. I have everything built besides the relay that I didn't have on hand.

I can release a few versions like with LCD display etc. I enjoy coding so those that want a something custom I can look into it.


Extras: Filter Print Post Top
Offlinehamloaf
Loaf of Fam.
Male User Gallery

Registered: 12/23/09
Posts: 20,192
Loc: Oklahoma. Flag
Last seen: 1 year, 8 months
Trusted Cultivator
Re: Micro controllers [Re: tiedma]
    #24827502 - 12/05/17 09:53 AM (6 years, 1 month ago)

Quote:

tiedma said:
also the
AM2301 DHT21
is a nice temp humid sensor that only uses one data pin +power



Your signature is beautiful, brother!


--------------------

   
How I Get Stuff done. - My Reference Guide. - My Grows.


Extras: Filter Print Post Top
OfflineNikoyo
FUN GUY
I'm a teapot

Registered: 01/29/17
Posts: 288
Last seen: 5 days, 23 hours
Re: Micro controllers [Re: hamloaf]
    #24827510 - 12/05/17 09:58 AM (6 years, 1 month ago)

Quote:

bodhisatta said:
PLCs are expensive



Very true, there are a few models that have become relatively cheap compared to the usual industrial machines. I've used them quite a bit so im a bit jaded towards their ease of use lol. None the less I look forward to seeing what you come up with!


--------------------
Gettin back to work


Extras: Filter Print Post Top
Invisiblevatman
I'm Vatman


Registered: 04/17/14
Posts: 1,642
Re: Micro controllers [Re: bodhisatta]
    #24827539 - 12/05/17 10:15 AM (6 years, 1 month ago)

a PLC wouldn't be able to address and read the temp sensor.

PLCs are simple to program but powerful tools in industry.

As technology advances, education requirements of technicians incress I can see PLCs being phased out and replaced with micro controllers or micro processors. You can build a PLC with a micro processor/controller for a fraction of the price but everything would be in C, c++ or python.


Micro controller is a raspberry pi
Micro processor is a Arduino

Pi is a more powerful tool but also more complex. Anything you can do on a arduino you can do on a Pi. These are mostly just used for prototyping projects you hardly see these in industry.


Edited by vatman (12/05/17 10:26 AM)


Extras: Filter Print Post Top
OfflinePsilicon
Really Nice Guy

Registered: 08/26/12
Posts: 7,057
Last seen: 3 years, 1 month
Re: Micro controllers [Re: vatman]
    #24827675 - 12/05/17 11:13 AM (6 years, 1 month ago)

Cool stuff.  Maybe consider having a cfg file so people can change the settings without having to code and compile?  I'm a computer guy too so it's no big deal for me, but some others may want the flexibility without having to learn C++ and I can't blame them.

:grin:


--------------------
Agar - what, why and how?  Everything a beginner needs to know.
Oat Prep Tek
Bored?  Please take one of my experiments off my hands.


Extras: Filter Print Post Top
Invisiblevatman
I'm Vatman


Registered: 04/17/14
Posts: 1,642
Re: Micro controllers [Re: Psilicon]
    #24827945 - 12/05/17 01:37 PM (6 years, 1 month ago)

Not a pi so it would work a little differently than a simple config file.

Also some things to consider if I added this ability at a later date. Every time power is removed or the program is restarted those values are lost. 


I was reviewing this a little yesterday and I've been debating between a push bottom system or an encoder.  Haven't looked much past that.


Extras: Filter Print Post Top
Jump to top Pages: 1 | 2 | 3 | Next >  [ show all ]

Shop: Mushroom-Hut Grow Bags   North Spore Bulk Substrate   PhytoExtractum Maeng Da Thai Kratom Leaf Powder   Kraken Kratom Red Vein Kratom   Original Sensible Seeds Bulk Cannabis Seeds   Left Coast Kratom Buy Kratom Extract


Similar ThreadsPosterViewsRepliesLast post
* Computer Control / Automation splifner180 996 13 12/06/06 06:07 PM
by DrEllisDTripper
* Computerized Monitoring dastats 907 7 02/15/04 04:06 PM
by dastats
* Finalization of Temperature and Humidity Controller (RFC...) mrlucretius 959 0 01/22/06 11:44 PM
by mrlucretius
* is there interest in a temperature / humidity controller? mrlucretius 8,587 19 02/25/10 04:09 PM
by Stillmatic9142
* whats a good thermometer, and humidity sensor. brandmo 1,818 7 12/23/05 04:30 PM
by HippieChick
* Cool wireless temp - humidity sensors lovepalace 624 1 12/18/05 01:07 PM
by Cray
* Computer based Green House Monitor?? blakedbeans 1,298 16 02/09/07 07:52 PM
by agar
* Help! Where does the digi therm sensor go in the incubator? Wayward_Son 1,036 4 09/16/06 11:54 AM
by Wayward_Son

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: Shroomism, george castanza, RogerRabbit, veggie, mushboy, fahtster, LogicaL Chaos, 13shrooms, Stipe-n Cap, Pastywhyte, bodhisatta, Tormato, Land Trout, A.k.a
3,103 topic views. 37 members, 194 guests and 37 web crawlers are browsing this forum.
[ Show Images Only | Sort by Score | Print Topic ]
Search this thread:

Copyright 1997-2024 Mind Media. Some rights reserved.

Generated in 0.026 seconds spending 0.006 seconds on 13 queries.