• Witaj na Forum Arduino Polska! Zapraszamy do rejestracji!
  • Znajdziesz tutaj wiele informacji na temat hardware / software.
Witaj! Logowanie Rejestracja


Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Sterowanie suszarnia do drewna
#1
Witam serdecznie 
Jestem nowy na forum . Chcialbym przedewszystkim opowiedziec ze nie mam doswiadczenia procz wykonania kilku prostych projektow z tutoriali z Programowaniem

Awiec tak jako modul kontrolujacy dla mojego projektu chcialbym uzyc arduino . 

Mam silnik 3 fazowy 380v  ktory arduino mialoby kontrolowac ( wlaczyc i wylaczyc ) 
Oraz ogrzewanie "Junkers " 
i maly silnik otwierajacy i zamykajacy przepustnice ( silnik krokowy) 

chce to wsyzstko zapiac pod arduino ktore  kontrolowalo by wilgotnosc oraz temperature w srodku w komorze . 

oto film taki na szybko jak wyglada komora. 



pierwsze moje pytanie .

w jaki sposob moge kontrolowac , czy wogole jest to mozliwe silnikiem 3 fazowym po przez arduino . ma ktos doswiadczenia?

pozdraiwam
 
Odpowiedź
#2
Pierwszy problem . 

Znalazlem gotowy szkic ktory chcialem na wlasne potrzeby przerobic . ale niestety nie dziala

oto kod

Kod:
/* DHT 11 temperature/humidity sensor, 16-character 2-line LCD screen with message relating to weather conditions,
processed by Uno R3 microcontroller.
Watch related video on my YouTube channel, and post comment. Thanks!
http://youtube.com/user/p1nesap
Sensor out to pin 2. SCL to A5, SDA to A4.
1st i2c_scan, put address # in LiquidCrystal_I2C below.
*/
#include <Wire.h>  // communicate with sensors
// Get the LCD I2C Library and move other LCD libraries
// https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads

#include <LiquidCrystal_I2C.h>

#include "dht.h"

#define DHTPIN 2     // digital pin 2

#define DHTTYPE DHT11   // DHT 11

DHT dht(DHTPIN, DHTTYPE);

LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);  // Set the LCD I2C address
void setup() {
 Serial.begin(9600);
 // set up the LCD's number of columns and rows:
 lcd.begin(16,2);
 dht.begin();
}

void loop() {
 
 int h = dht.readHumidity();
 int t = dht.readTemperature();
 
 //convert t to Fahrenheit
 int f = (t * 9.0)/ 5.0 + 32.0;

   // set cursor to (0,0):
 lcd.setCursor(0, 0);

   // ADDING TEXT
 lcd.print("P1nesap IoT");
 lcd.setCursor(0,1);
 lcd.print("Weather Monitor");
 delay(5000);
 lcd.clear();
 
 //END TEXT
 

  lcd.print("Temp: ");
    lcd.print(f);
    lcd.print("F  ");
    lcd.print(t);
    lcd.print("C");
   
 // set cursor to (16,1):
 lcd.setCursor(0,1);
 lcd.print("Humidity: ");
 lcd.print(h);
 lcd.print("%");
   delay(5000);
   //ADDING
   lcd.clear();
   
 lcd.setCursor(0,0);
 if ((f) >= 85 && (h) >= 51)  {
   lcd.print("Hot and humid...");
   lcd.setCursor(0,1);
   lcd.print("Drink water.");
 }
 else if ((f) <= 85 && (f) >= 64 && (h) <= 51) {
   lcd.print("Perfect!");
   lcd.setCursor(0,1);
   lcd.print("Warm and dry.");
 }
 
 else if ((f) <= 85 && (f) >= 64 && (h) >= 51) {
   lcd.print("Warm and moist,");
   lcd.setCursor(0,1);
   lcd.print("Sounds yummy.");
 }
 else if ((f) >= 50 && (f) <= 64  && (h) >= 51) {
   lcd.print("Cool and damp...");
   lcd.setCursor(0,1);
   lcd.print("Raincoat?");
 }
 
 else if ((f) >= 50 && (f) <= 64 && (h) <= 51) {
   lcd.print("Cool and dry.");
   lcd.setCursor(0,1);
   lcd.print("Wear a sweater.");
 }
 else if ((f) >= 33 && (f) <= 50 && (h) <= 51) {
   lcd.print("Cool and dry,");
   lcd.setCursor(0,1);
   lcd.print("On the brisk side.");
 }
 else if ((f) >= 33 && (f) <= 50 && (h) >= 51) {
   lcd.print("Raw weather...");
   lcd.setCursor(0,1);
   lcd.print("Read a book.");
 }
 
 else if ((f) >= 17 && (f) <= 33 && (h) <= 51) {
   lcd.print("Ah, winter cold");
   lcd.setCursor(0,1);
   lcd.print("Dress in layers.");
 }
 else if ((f) < 17 ) {
   lcd.print("OK, now it's");
   lcd.setCursor(0,1);
   lcd.print("REALLY cold!");
 }

 else {
   lcd.print("Alert: alien");
   lcd.setCursor(0,1);
   lcd.print("atmosphere!");
 }
 delay(5000);
 lcd.clear();
}

w zalaczniku screen


Załączone pliki Miniatury
   
 
Odpowiedź
#3
Być może problem jest w bibliotece. Tutaj jest artykuł na ten temat. Sprawdź kod, który jest tam zamieszczony. Twój projekt nie wydaje się być zbyt trudny. Jeśli poradzisz sobie z odczytem wilgotności/temperatury, to reszta jest już prosta.
 
Odpowiedź
  


Skocz do:


Przeglądający: 2 gości