Marco3231st / Temp-controlled-smoker

This is a project met to control a cold smoker's temperature
0 stars 0 forks source link

Select Hardware #1

Open Marco3231st opened 1 year ago

Marco3231st commented 1 year ago

This issue is met to select the right hardware for the project

Marco3231st commented 1 year ago

Heater

https://www.amazon.ca/-/fr/dallumage-rechange-grilles-granul%C3%A9s-Traeger/dp/B07RFGJG24/ref=d_pd_sbs_sccl_2_1/132-0763007-6726563?pd_rd_w=baPy4&content-id=amzn1.sym.c1849561-aea0-48eb-b576-ba648ed69471&pf_rd_p=c1849561-aea0-48eb-b576-ba648ed69471&pf_rd_r=KGK1NWQZW475QPJR4MTD&pd_rd_wg=IIulz&pd_rd_r=9be6ad04-fece-4810-baa8-b9d62cc051c9&pd_rd_i=B07PKG1B9D&th=1 image

Marco3231st commented 1 year ago

Arduino Control

Arduino Mega 2560 REV3 [A000067] https://www.amazon.ca/-/fr/gp/product/B0046AMGW0/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1 image

Marco3231st commented 1 year ago

Relay for power control

Solid-State Relay (SSR):

https://www.amazon.ca/5-220VDC-Petrochemical-Equipment-Machinery-Packaging/dp/B07VQKCZ2G/ref=asc_df_B07VQKCZ2G/?tag=googleshopc0c-20&linkCode=df0&hvadid=335336153175&hvpos=&hvnetw=g&hvrand=10051032643084813297&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9000514&hvtargid=pla-884591660305&psc=1

https://www.amazon.ca/Solid-Module-SSR-75DA-3-32VDC-24-380VAC/dp/B086BKXHD6/ref=asc_df_B086BKXHD6/?tag=googleshopc0c-20&linkCode=df0&hvadid=459613329013&hvpos=&hvnetw=g&hvrand=10051032643084813297&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9000514&hvtargid=pla-1533181957402&psc=1

Marco3231st commented 1 year ago

Power supply

https://www.amazon.ca/Henxlco-110V-Universal-Regulated-Transformer/dp/B010CVJAYS/ref=asc_df_B010CVIW7E/?tag=googleshopc0c-20&linkCode=df0&hvadid=560417861262&hvpos=&hvnetw=g&hvrand=1875715702764938515&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9000514&hvtargid=pla-350239112393&th=1

Marco3231st commented 1 year ago

Thermistors

if I use the KY-013 ANALOG TEMPERATURE SENSOR, I could use this code, it would give me the temp in celsius from -55 to 125

int ThermistorPin = A0; int Vo; float R1 = 10000; // value of R1 on board float logR2, R2, T; float c1 = 0.001129148, c2 = 0.000234125, c3 = 0.0000000876741; //steinhart-hart coeficients for thermistor void setup() { Serial.begin(9600); } void loop() { Vo = analogRead(ThermistorPin); R2 = R1 (1023.0 / (float)Vo - 1.0); //calculate resistance on thermistor logR2 = log(R2); T = (1.0 / (c1 + c2logR2 + c3logR2logR2logR2)); // temperature in Kelvin T = T - 273.15; //convert Kelvin to Celcius // T = (T 9.0)/ 5.0 + 32.0; //convert Celcius to Farenheit Serial.print("Temperature: "); Serial.print(T); Serial.println(" C"); delay(500); }

The expression for calculating R2 is wrong (at least with my module). It should be like this:

R2 = R1*Vo/(1023-Vo); https://arduinomodules.info/ky-013-analog-temperature-sensor-module/

Marco3231st commented 1 year ago

Thermistors

https://www.circuitbasics.com/arduino-thermistor-temperature-sensor-tutorial/

int ThermistorPin = 0; int Vo; float R1 = 10000; float logR2, R2, T; float c1 = 1.009249522e-03, c2 = 2.378405444e-04, c3 = 2.019202697e-07;

void setup() { Serial.begin(9600); }

void loop() {

Vo = analogRead(ThermistorPin); R2 = R1 (1023.0 / (float)Vo - 1.0); logR2 = log(R2); T = (1.0 / (c1 + c2logR2 + c3logR2logR2logR2)); T = T - 273.15; T = (T 9.0)/ 5.0 + 32.0;

Serial.print("Temperature: "); Serial.print(T); Serial.println(" F");

delay(500); } To display the temperature in degrees Celsius, just comment out line 18 by inserting two forward slashes (“//”) at the beginning of the line.

To output the temperature readings to a 16X2 LCD, follow our tutorial, How to Set Up an LCD Display on an Arduino, then upload this code to the board:

include

int ThermistorPin = 0; int Vo; float R1 = 10000; float logR2, R2, T; float c1 = 1.009249522e-03, c2 = 2.378405444e-04, c3 = 2.019202697e-07;

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() { Serial.begin(9600); }

void loop() {

Vo = analogRead(ThermistorPin); R2 = R1 (1023.0 / (float)Vo - 1.0); logR2 = log(R2); T = (1.0 / (c1 + c2logR2 + c3logR2logR2logR2)); T = T - 273.15; T = (T 9.0)/ 5.0 + 32.0;

lcd.print("Temp = "); lcd.print(T);
lcd.print(" F");

delay(500);
lcd.clear(); }

Marco3231st commented 1 year ago

image le SSR est peu être pas nécessaire si je décide de donner 120W pendant 3h... à voir combien de deg ça donne