Home | Community | Message Board

Sporeworks
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: Myyco.com Golden Teacher Liquid Culture For Sale   Original Sensible Seeds Bulk Cannabis Seeds   Left Coast Kratom Buy Kratom Extract   PhytoExtractum Buy Bali Kratom Powder   MagicBag.co Certified Organic All-In-One Grow Bags   North Spore Bulk Substrate

Jump to first unread post Pages: < Back | 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.
Offlinethe_lucky_duck
Neither lucky nor a duck
 User Gallery


Registered: 05/05/17
Posts: 202
Loc: Illinois Flag
Last seen: 1 year, 2 months
Re: Micro controllers [Re: vatman]
    #24828044 - 12/05/17 02:10 PM (6 years, 3 months ago)

Monitoring this thread.

There are definitely enough software engineers on this site (including myself) that if you open sourced this and gave details on the hardware that you are using/planning to use that you could get quite a bit of help.


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

Extras: Filter Print Post Top
Invisiblevatman
I'm Vatman


Registered: 04/17/14
Posts: 1,642
Re: Micro controllers [Re: the_lucky_duck]
    #24828274 - 12/05/17 03:53 PM (6 years, 3 months ago)

:shrug2: I am surprised that no one has all ready done this.

Updated with a parts list.

All the program is doing is sending a high or a low logic to the solid state relay based off the temperature reading.

Extras: Filter Print Post Top
InvisiblebodhisattaMDiscordReddit
Smurf real estate agent
 User Gallery
Folding@home Statistics
Registered: 04/30/13
Posts: 61,891
Loc: Milky way
Trusted Cultivator
Re: Micro controllers [Re: vatman]
    #24828282 - 12/05/17 03:56 PM (6 years, 3 months ago)

because once you do pasteurization one time and get it right on your setup you can just repeat that procedure pretty damn easily. some people like gadgeteering though

Extras: Filter Print Post Top
Invisiblevatman
I'm Vatman


Registered: 04/17/14
Posts: 1,642
Re: Micro controllers [Re: bodhisatta]
    #24828304 - 12/05/17 04:07 PM (6 years, 3 months ago)

True, I have fallen asleep while working. I like being able to apply and forget. 

This could be used for Martha control or greenhouse.

Extras: Filter Print Post Top
InvisiblebodhisattaMDiscordReddit
Smurf real estate agent
 User Gallery
Folding@home Statistics
Registered: 04/30/13
Posts: 61,891
Loc: Milky way
Trusted Cultivator
Re: Micro controllers [Re: vatman]
    #24828307 - 12/05/17 04:09 PM (6 years, 3 months ago)

yea considering how expensive something like this is.

https://www.amazon.in/Humidity-Controller-Pre-Wired-110V-240V-Improved/dp/B005DK2T2Y
:lol:

but most people use something like that.

Extras: Filter Print Post Top
Invisiblevatman
I'm Vatman


Registered: 04/17/14
Posts: 1,642
Re: Micro controllers [Re: bodhisatta]
    #24828325 - 12/05/17 04:24 PM (6 years, 3 months ago)

Things are cheaper if you do it yourself and more versatile. 

But if you have the money why not :shrug:

Extras: Filter Print Post Top
InvisiblebodhisattaMDiscordReddit
Smurf real estate agent
 User Gallery
Folding@home Statistics
Registered: 04/30/13
Posts: 61,891
Loc: Milky way
Trusted Cultivator
Re: Micro controllers [Re: vatman]
    #24828331 - 12/05/17 04:26 PM (6 years, 3 months ago)

that price was fake but regardless most people buy something that they don't have to make. you're in a unique situation that you know how to program these things, so if you can make your own for cheaper :thumbup:

Extras: Filter Print Post Top
Invisiblevatman
I'm Vatman


Registered: 04/17/14
Posts: 1,642
Re: Micro controllers [Re: bodhisatta]
    #24828373 - 12/05/17 04:50 PM (6 years, 3 months ago)

Yeah willing to give people the tools to do it themselves.  I'd build it for others for parts and shipping. Kinda made this thread so i can get requests on projects to work on my coding. 

The my choice of relay is expensive for a relay.  A 10 amps relay goes for about 1.80 USD

Edited by vatman (12/05/17 04:57 PM)

Extras: Filter Print Post Top
OfflineSolipsis
m̶a̶d̶ disappointed scientist
Male User Gallery


Registered: 12/28/09
Posts: 3,398
Loc: the Neitherlands Flag
Last seen: 7 months, 16 days
Re: Micro controllers [Re: vatman]
    #24829270 - 12/06/17 05:31 AM (6 years, 3 months ago)

Nice idea man, and good code (i PMed you some ideas before reading the rest of this thread).. :smile:

It would be pretty easy to adjust the code if you know what value (of the thermostat part) needs to change. The hysteresis is interesting but it would get confusing to adjust this for various volumes of substrate.
I would just test this with an average volume and add some code for the hysteresis that more or less works with it. Not sure if this would be overcomplicated, but you could write code that counts the iterations of passing temperature thresholds and changes some variable added/subtracted from the threshold: the first time you would need to shut off the heat a little early (how much earlier is expressed by that variable), but as the temp levels out this can gradually be reduced to zero over a few steps (because the heat has spreaded better by then) so that the thermostat can dial in to the actual temp.
Of course you'd have to combine this with a smart choice of temperature thresholds to account for the small hysteresis that you will always have.

If you guys know of a humidity sensor that can tolerate very high humidity, let me know..

I'm sensor-monitoring this thread

Extras: Filter Print Post Top
InvisibleLotKid
Never.Trust.A.Prankster
Male User Gallery

Registered: 01/07/17
Posts: 8,169
Loc: Shakedown St.
Trusted Cultivator
Re: Micro controllers [Re: Solipsis]
    #24829342 - 12/06/17 06:53 AM (6 years, 3 months ago)

:gd_icon:


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

:mushroom2: LotKid's PE Tips        :shpongle:    LotKid's Chocolates :mushroom2:
:dancingbear: :dancingbear:

Extras: Filter Print Post Top
Invisiblevatman
I'm Vatman


Registered: 04/17/14
Posts: 1,642
Re: Micro controllers [Re: LotKid]
    #24830522 - 12/06/17 06:46 PM (6 years, 3 months ago)

Cleaned the first post.

Got the relay today and realized I ordered  an A.C. relay by mistake.  Getting a dc one on Friday. 

Draft posted has some errors. Just a logic and outputs.  Have a fully functional code I'll update tomorrow. 

Added a done light
Added a if temp reaches or exceeds 170f indicator light

Will show a functional prototype this weekend.

Extras: Filter Print Post Top
InvisibleFungus Mountain
Poke-N-Squirt
 User Gallery


Registered: 10/16/14
Posts: 1,188
Loc: Front row @ the Freakshow
Re: Micro controllers [Re: vatman]
    #24830550 - 12/06/17 07:00 PM (6 years, 3 months ago)

:popcorn:


--------------------
“Until they became conscious they will never rebel, and until after they have rebelled they cannot become conscious.”
George Orwell, 1984

"If you can't explain it simply, you don't understand it well enough."
Albert Einstein

Extras: Filter Print Post Top
OfflineAsuraS
Cyantist


Registered: 08/01/11
Posts: 5,047
Loc: Texas
Last seen: 3 hours, 39 minutes
Trusted Cultivator
Re: Micro controllers [Re: Fungus Mountain]
    #24830570 - 12/06/17 07:10 PM (6 years, 3 months ago)

.

Extras: Filter Print Post Top
Offlinethunderfarm
Male User Gallery

Registered: 02/19/17
Posts: 397
Loc: Oklahoma, USA Flag
Last seen: 10 months, 8 days
Re: Micro controllers [Re: Asura]
    #24831430 - 12/07/17 07:57 AM (6 years, 3 months ago)

vatman, software I found that is really nice and free is Fritzing, http://fritzing.org/home/ ; It is easy to use and is good for designing and laying out circuits. 

Fritzing is an open-source hardware initiative that makes electronics accessible as a creative material for anyone. We offer a software tool, a community website and services in the spirit of Processing and Arduino, fostering a creative ecosystem that allows users to document their prototypes, share them with others, teach electronics in a classroom, and layout and manufacture professional pcbs.

I thought you would find this useful.


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

Extras: Filter Print Post Top
OfflineChwyn
Bacteria Rancher


Registered: 08/21/16
Posts: 1,238
Last seen: 1 year, 15 days
Re: Micro controllers [Re: Asura]
    #24831482 - 12/07/17 08:33 AM (6 years, 3 months ago)

I just wrote this to maybe give you some ideas. I dont have my arduino with me so it may take some editing.
Im glad to still see you around vat. I would like to help you with some of your projects as Im working on a couple automation related things myself. :cool:

/*here is something using different sensors but could easily be modified
*heres a library for your sensor with examples
*https://github.com/milesburton/Arduino-Temperature-Control-Library
*
*/

#include <SHT1x.h>

//I like to use #define but the arduino examples use constant ints, either one works
#define DataPin 2 //sensor 1 data pin
#define ClockPin 3 //clock pin

#define relay1 6 //relay
#define doneLed 5

float temp; // I had this in loop() originally but I think its better if it goes here.
int loops = 80;
#define loopTime 45000  //time millisecond between sensor scans

/*3600 sec * 1000ms = 3,600,000 ms / 45000ms = 80 loops
*45000ms / 1000ms = 45 sec -> 3600/45 = 80 loops
*/

SHT1x sht1x(DataPin,ClockPin);

void setup() {
  pinMode(relay1,OUTPUT);
  pinMode(doneLed,OUTPUT);
  Serial.begin(9600);
}

void loop() {
  temp = sht1x.readTemperatureF();
 
  if(loops > 1){
    Serial.print("Temp: ");
    Serial.print(temp,DEC);
    Serial.print("F\n");

    if(temp<155){
      digitalWrite(relay1,LOW);
    }
    else if(temp>170){
      //do stuff, you could set it up to notify you if you wanted to get fancy
    }
    else if(temp>162){
      digitalWrite(relay1,HIGH);
    }
    delay(loopTime);
    --loops;
  }

//turns everything off and turns on DoneLED when loops are finished
  else{
    digitalWrite(relay1,HIGH);
    digitalWrite(doneLed,LOW);
    delay(loopTime);
  }

}


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

Edited by Chwyn (12/07/17 08:37 AM)

Extras: Filter Print Post Top
Invisiblevatman
I'm Vatman


Registered: 04/17/14
Posts: 1,642
Re: Micro controllers [Re: Chwyn]
    #24831830 - 12/07/17 11:59 AM (6 years, 3 months ago)

Quote:

thunderfarm said:
vatman, software I found that is really nice and free is Fritzing, http://fritzing.org/home/ ; It is easy to use and is good for designing and laying out circuits. 

Fritzing is an open-source hardware initiative that makes electronics accessible as a creative material for anyone. We offer a software tool, a community website and services in the spirit of Processing and Arduino, fostering a creative ecosystem that allows users to document their prototypes, share them with others, teach electronics in a classroom, and layout and manufacture professional pcbs.

I thought you would find this useful.





All ready have one schamtic on the main page with fritzing.

@chwyn

I want 1 temp probe to monitor and control the heating space such as water or steam. The second probe controls the timer when to auto shutoff. Ill take a look at your code when I have more time. I just updated mine. So it is functional now. Also your library will work with my sensor.  I'm doing most of this without internet.  My service won't be back till the 12th.

https://github.com/practicalarduino/SHT1x
Your library SHT1x is for SHT10, SHT11, SHT15 and SHT7x series. I am not sure if there are any water proof models. They are nice 2 wire systems. These would do better in a greenhouse or grow room.

But yes I get your point. My code could be a little cleaner.

Edited by vatman (12/07/17 04:13 PM)

Extras: Filter Print Post Top
OfflineChwyn
Bacteria Rancher


Registered: 08/21/16
Posts: 1,238
Last seen: 1 year, 15 days
Re: Micro controllers [Re: vatman]
    #24832516 - 12/07/17 05:16 PM (6 years, 3 months ago)

Damn props to you figure in this stuff out without internet haha. I was using the sht probe to control humidity. I don't understand what you mean by having a probe control a timer to auto shutoff? Also I found a library you could use if you're looking for one. Its at the top of my previous post.

Are you using a drum style steamer? I didn't take into account the time it takes to heat up. You could program it to keep the timer paused untill it reaches 160 for the first time and then start the timer.:ooo:


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

Extras: Filter Print Post Top
Invisiblevatman
I'm Vatman


Registered: 04/17/14
Posts: 1,642
Re: Micro controllers [Re: Chwyn]
    #24832571 - 12/07/17 05:36 PM (6 years, 3 months ago)

I don't have an a strong enough understanding of millis() I need do some research on it. That is why I used the timing library for now. I also still have not field tested this yet as I am awaiting my relay.

I typically use steam for my pasteurization.

The idea is to keep one probe near the heat source and the other near the center of your material.

probe 1 controls the heating. Keeps temps in an given range. If it senses an overtemp condition the fauilt light is illuminated.
probe 2 controls the timer. Once center sub temp is high enough timer starts.

I need to do some youtubing on millis() I have reached my month's data on my phone though.

Extras: Filter Print Post Top
OfflineAsuraS
Cyantist


Registered: 08/01/11
Posts: 5,047
Loc: Texas
Last seen: 3 hours, 39 minutes
Trusted Cultivator
Re: Micro controllers [Re: vatman]
    #24832803 - 12/07/17 07:56 PM (6 years, 3 months ago)

Jesus fuck, what are my options with a Pi and C#? My C skills are rusty as fuck. I think this could be a thing.

Extras: Filter Print Post Top
Invisiblevatman
I'm Vatman


Registered: 04/17/14
Posts: 1,642
Re: Micro controllers [Re: Asura]
    #24833037 - 12/07/17 09:35 PM (6 years, 3 months ago)

You can use the same sensors I'm using. I've haven't gotten to the pi.

I haven't gotten to pi yet. Maybe someone could write it for the pi.  Ardiuno uno 8 bucks this i could help you with. :shrug:

https://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing/software
Lesson for the sensor I'm using for the pi

Waterproof sensor 3 for 9 bucks or 5 for 12.
Gikfun DS18B20 Temperature Sensor Waterproof For Arduino (Pack of 3pcs) EK1083x3 https://www.amazon.com/dp/B00Q9YBIJI/ref=cm_sw_r_cp_apa_fyHkAb7TMM4KN

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

Shop: Myyco.com Golden Teacher Liquid Culture For Sale   Original Sensible Seeds Bulk Cannabis Seeds   Left Coast Kratom Buy Kratom Extract   PhytoExtractum Buy Bali Kratom Powder   MagicBag.co Certified Organic All-In-One Grow Bags   North Spore Bulk Substrate


Similar ThreadsPosterViewsRepliesLast post
* Computer Control / Automation splifner180 997 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 961 0 01/22/06 11:44 PM
by mrlucretius
* is there interest in a temperature / humidity controller? mrlucretius 8,604 19 02/25/10 04:09 PM
by Stillmatic9142
* whats a good thermometer, and humidity sensor. brandmo 1,859 7 12/23/05 04:30 PM
by HippieChick
* Cool wireless temp - humidity sensors lovepalace 625 1 12/18/05 01:07 PM
by Cray
* Computer based Green House Monitor?? blakedbeans 1,299 16 02/09/07 07:52 PM
by agar
* Help! Where does the digi therm sensor go in the incubator? Wayward_Son 1,040 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,136 topic views. 34 members, 140 guests and 82 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.033 seconds spending 0.012 seconds on 15 queries.