|
Some of these posts are very old and might contain outdated information. You may wish to search for newer posts instead.
|
the_lucky_duck
Neither lucky nor a duck
Registered: 05/05/17
Posts: 202
Loc: Illinois
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.
|
vatman
I'm Vatman
Registered: 04/17/14
Posts: 1,642
|
|
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.
|
bodhisatta
Smurf real estate agent
Registered: 04/30/13
Posts: 61,891
Loc: Milky way
|
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
|
vatman
I'm Vatman
Registered: 04/17/14
Posts: 1,642
|
|
True, I have fallen asleep while working. I like being able to apply and forget.
This could be used for Martha control or greenhouse.
|
bodhisatta
Smurf real estate agent
Registered: 04/30/13
Posts: 61,891
Loc: Milky way
|
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
but most people use something like that.
|
vatman
I'm Vatman
Registered: 04/17/14
Posts: 1,642
|
|
Things are cheaper if you do it yourself and more versatile.
But if you have the money why not
|
bodhisatta
Smurf real estate agent
Registered: 04/30/13
Posts: 61,891
Loc: Milky way
|
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
|
vatman
I'm Vatman
Registered: 04/17/14
Posts: 1,642
|
|
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)
|
Solipsis
m̶a̶d̶ disappointed scientist
Registered: 12/28/09
Posts: 3,398
Loc: the Neitherlands
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)..
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
|
LotKid
Never.Trust.A.Prankster
Registered: 01/07/17
Posts: 8,169
Loc: Shakedown St.
|
Re: Micro controllers [Re: Solipsis]
#24829342 - 12/06/17 06:53 AM (6 years, 3 months ago) |
|
|
|
vatman
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.
|
Fungus Mountain
Poke-N-Squirt
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) |
|
|
-------------------- “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
|
Asura
Cyantist
Registered: 08/01/11
Posts: 5,047
Loc: Texas
Last seen: 3 hours, 39 minutes
|
|
.
|
thunderfarm
Registered: 02/19/17
Posts: 397
Loc: Oklahoma, USA
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.
--------------------
|
Chwyn
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.
/*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)
|
vatman
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)
|
Chwyn
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.
|
vatman
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.
|
Asura
Cyantist
Registered: 08/01/11
Posts: 5,047
Loc: Texas
Last seen: 3 hours, 39 minutes
|
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.
|
vatman
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.
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
|
|