SMS-saib qhov hnyav ntawm peb lub beehives rau $30

SMS-saib qhov hnyav ntawm peb lub beehives rau $30

Tsis yog, qhov no tsis yog kev lag luam, qhov no yog tus nqi ntawm cov khoom siv uas koj tuaj yeem sib sau ua ke tom qab nyeem tsab xov xwm.

Me ntsis keeb kwm yav dhau:

Qee lub sij hawm dhau los kuv tau txiav txim siab kom tau muv, thiab lawv tau tshwm sim ... rau tag nrho lub caij, tab sis tsis tawm lub tsev pheeb suab thaum lub caij ntuj no.
Thiab qhov no txawm tias qhov tseeb tias nws zoo li ua txhua yam kom raug - lub caij nplooj zeeg ntxiv noj, rwb thaiv tsev ua ntej huab cua txias.
Lub Hive yog ib tug classic ntoo "Dadan" system nrog 10 thav duab ua los ntawm 40 mm boards.
Tab sis lub caij ntuj no, vim qhov kub thiab txias, txawm tias cov beekeepers tau poob ntau dua li niaj zaus.

Qhov no yog li cas lub tswv yim ntawm ib qho system rau kev saib xyuas cov xwm txheej ntawm lub Hive tuaj txog.
Tom qab tshaj tawm ob peb tsab xov xwm ntawm Habr thiab kev sib txuas lus ntawm lub rooj sib tham beekeepers, kuv txiav txim siab mus los ntawm yooj yim mus rau complex.
Qhov hnyav tsuas yog qhov tsis txaus ntseeg, tab sis raws li txoj cai, cov tshuab uas twb muaj lawm saib xyuas tsuas yog ib qho "siv" Hive.
Yog hais tias muaj ib yam dab tsi mus tsis ncaj ncees lawm nrog nws (piv txwv li, kev tawm mus ntawm ib tug swarm, muv kab mob), ces cov ntsuas yuav tsis cuam tshuam.

Yog li ntawd, nws tau txiav txim siab los saib xyuas qhov kev hloov pauv ntawm qhov hnyav ntawm peb qhov khaus ib zaug siv ib lub microcontroller, thiab ntxiv lwm yam "khoom zoo" tom qab.
Qhov tshwm sim yog kev tswj hwm tus kheej nrog lub sijhawm ua haujlwm ntawm ib hlis ntawm ib qho nqi ntawm 18650 roj teeb thiab xa cov txheeb cais ib hnub.
Kuv sim ua kom yooj yim rau kev tsim kom ntau li ntau tau kom nws tuaj yeem rov ua dua txawm tias tsis muaj daim duab, tsuas yog los ntawm cov duab.

Lub logic ntawm kev ua haujlwm yog raws li hauv qab no: thaum thawj zaug pib / rov pib dua, kev nyeem cov sensors ntsia hauv qab khaus yog khaws cia hauv EEPROM.
Tom qab ntawd, txhua txhua hnub, tom qab hnub poob, lub kaw lus "sawv", nyeem cov ntawv nyeem thiab xa SMS nrog kev hloov pauv ntawm qhov hnyav rau hnub thiab txij li lub sijhawm nws tau qhib.
Tsis tas li ntawd, tus nqi roj teeb hluav taws xob tau xa mus, thiab thaum nws poob mus rau 3.5V, ceeb toom tau tshaj tawm txog qhov yuav tsum tau them, vim tias qis dua 3.4V qhov kev sib txuas lus module tsis qhib, thiab qhov hnyav nyeem ntawv twb "ntev mus".

“Koj puas nco qab tias txhua yam pib li cas. Txhua yam yog thawj zaug thiab dua. "
SMS-saib qhov hnyav ntawm peb lub beehives rau $30
Yog, qhov no yog raws nraim cov txheej txheem kho vajtse uas yog Ameslikas, txawm hais tias tsuas yog strain gauges thiab xov hlau muaj sia nyob mus rau qhov kawg version, tab sis thawj yam ua ntej.
Qhov tseeb, koj tsis xav tau cable coil, nws tsuas yog tig los ua tus nqi tib yam li 30m ncaj ib qho.

Yog hais tias koj tsis ntshai dismantling 3 SMD LEDs thiab ib nrab ib puas ntsiab lus ntawm cov pa (tso zis) soldering, ces mus!

Yog li, peb yuav xav tau cov khoom siv / khoom siv hauv qab no:

  1. Arduino Pro Mini 3V
    Koj yuav tsum tau them sai sai rau cov linear converter microcircuit - nws yuav tsum yog raws nraim 3.3V - ntawm lub nti cim KB 33 / LB 33 / DE A10 - kuv Suav tau txais ib yam dab tsi tsis ncaj ncees lawm, thiab tag nrho cov batch
    Cov laug cam hauv lub khw tau muab 5-volt regulators thiab 16MHz crystals.
  2. USB-Ttl ntawm CH340 nti - koj tuaj yeem siv 5-volt ib qho, tab sis tom qab ntawd thaum flashing lub microcontroller, Arduino yuav tsum tau txiav tawm ntawm GSM module kom tsis txhob hlawv tom kawg.
    Boards raws li PL2303 nti tsis ua haujlwm hauv Windows 10.
  3. GSM kev sib txuas lus module Goouu Tech IOT GA-6-B lossis AI-THINKER A-6 Mini.
    Vim li cas koj thiaj nres? Neoway M590 - tus tsim qauv uas yuav tsum tau sib cais ua las voos nrog tambourines, GSM SIM800L - tsis nyiam qhov tsis yog tus qauv 2.8V qib ntawm kev xav, uas yuav tsum muaj kev sib koom tes txawm tias peb-volt Arduino.
    Tsis tas li ntawd, kev daws teeb meem los ntawm AiThinker muaj kev siv hluav taws xob tsawg (Kuv tsis pom qhov tam sim no siab dua 100mA thaum xa SMS).
  4. GSM GPRS 3DBI kav hlau txais xov (hauv daim duab saum toj no - lub phuam qhwv caj dab nrog "tail", thaum 9 teev tsaus ntuj)
  5. Pib pob ntawm tus neeg teb xov tooj nrog kev pab them nqi zoo ntawm qhov chaw ntawm koj apiary.
    Yog lawm, lub pob yuav tsum xub qhib rau hauv lub xov tooj tsis tu ncua, NYEM QHOV CHAW PIN thaum nkag, thiab sau koj tus lej nyiaj.
    Tam sim no muaj ntau txoj kev xaiv nrog cov npe hauv cov style ntawm "Sensor", "IoT" - lawv muaj tus nqi qis dua me ntsis.
  6. dupont hlau 20cm poj niam-poj niam - 3 pcs. (kom txuas Arduino rau USB-TTL)
  7. 3 pcs ib. HX711 - ADC rau nplai
  8. 6 load hlwb rau qhov hnyav txog li 50kg
  9. 15 meters ntawm 4-core xov tooj cable - rau kev sib txuas qhov hnyav modules rau ARDUINO.
  10. Photoresistor GL5528 (qhov no yog qhov tseem ceeb, nrog rau qhov tsaus ntuj ntawm 1 MΩ thiab lub teeb tsis kam ntawm 10-20 kΩ) thiab ob qhov zoo tib yam 20 kΩ resistors
  11. Ib daim ntawm ob sab "tuab" daim kab xev 18x18mm - rau txuas lub Arduino rau kev sib txuas lus module.
  12. Lub 18650 roj teeb tuav thiab, qhov tseeb, lub roj teeb nws tus kheej yog ~ 2600mAh.
  13. Ib me ntsis quav ciab los yog paraffin (tswj tswm ciab-ntsuab aroma teeb) - rau kev tiv thaiv ya raws HX711
  14. Ib daim ntawm ntoo beam 25x50x300mm rau lub hauv paus ntawm cov strain gauges.
  15. Lub kaum os tus kheej tapping screws nrog 4,2x19 mm xovxwm ntxhua khaub ncaws rau txuas cov sensors rau hauv paus.

Lub roj teeb tuaj yeem raug coj los ntawm kev tshem tawm ntawm lub laptops - nws yog ob peb zaug pheej yig dua li qhov tshiab, thiab lub peev xwm yuav ntau dua li ntawm Suav UltraFire - Kuv tau txais 1500 piv rau 450 (qhov no yog 6800 rau hluav taws 😉

Tsis tas li ntawd, koj yuav xav tau tes khov kho, EPSN-25 soldering hlau, rosin thiab POS-60 solder.

SMS-saib qhov hnyav ntawm peb lub beehives rau $30

Txawm hais tias 5 xyoo dhau los kuv tau siv lub tshuab hluav taws xob Soviet nrog lub taub tooj liab (cov chaw nres tsheb tsis ua haujlwm rau kuv - Kuv tau coj nws mus rau kev sim tsav thiab ua tiav lub voj voog nrog EPSN).
Tab sis tom qab nws tsis ua hauj lwm thiab ob peb Suav monstrous fakes, lub tom kawg yog hu ua Sparta - ib yam li hnyav li nws lub npe, nres.
ntawm ib yam khoom nrog lub ntsuas sov.

Yog li cia peb mus!

SMS-saib qhov hnyav ntawm peb lub beehives rau $30

Yuav pib nrog, peb unsolder ob LEDs los ntawm GSM module (qhov chaw uas lawv nyob yog voj voog nyob rau hauv ib tug txiv kab ntxwv oval)
Peb ntxig rau SIM daim npav nrog cov ntaub ntawv tiv tauj rau lub rooj tsav xwm luam tawm, lub kaum sab xis ntawm daim duab yog qhia los ntawm tus xub.

SMS-saib qhov hnyav ntawm peb lub beehives rau $30

Tom qab ntawd peb ua cov txheej txheem zoo sib xws nrog LED ntawm Arduino board (oval mus rau sab laug ntawm lub square nti),
Solder lub zuag rau plaub tus neeg (1),
Peb coj ob 20k resistors, twist cov coj ntawm ib sab, solder lub twist rau hauv lub qhov ntawm tus pin A5, cov leads ntxiv yog RAW thiab GND ntawm arduino (2),
Peb luv ob txhais ceg ntawm photoresistor rau 10 hli thiab solder nws mus rau GND thiab D2 pins ntawm lub rooj tsavxwm (3).

Tam sim no nws yog lub sij hawm rau xiav hluav taws xob daim kab xev ntawm ob-sided daim kab xev - peb nplaum nws mus rau lub SIM card tuav ntawm kev sib txuas lus module, thiab nyob rau sab saum toj - lub Arduino - liab (nyiaj) khawm ntsib peb thiab nyob rau saum toj ntawm daim npav SIM.

Peb solder lub hwj huam mov: ntxiv los ntawm kev sib txuas lus module capacitor (4) rau RAW arduino tus pin.
Qhov tseeb yog tias kev sib txuas lus module nws tus kheej yuav tsum tau 3.4-4.2V rau nws lub hwj chim mov, thiab nws cov PWR kev sib cuag yog txuas nrog ib kauj ruam-down converter, yog li ntawd yuav tsum tau ua los ntawm li-ion, voltage yuav tsum tau muab bypassing ib feem ntawm lub Circuit Court.

Hauv Arduino, ntawm qhov tsis sib xws, peb muab lub zog los ntawm kev hloov pauv hloov pauv - ntawm kev siv qis tam sim no, qhov poob tawm qhov hluav taws xob poob yog 0.1V.
Tab sis los ntawm kev muab lub zog ruaj khov rau HX711 modules, peb tau tshem ntawm qhov yuav tsum tau hloov kho lawv mus rau qhov qis dua (thiab tib lub sijhawm los ntawm kev nce suab nrov vim qhov kev ua haujlwm no).

Tom ntej no peb solder jumpers (5) ntawm pins PWR-A1, URX-D4 thiab UTX-D5, hauv av GND-G (6) thiab thaum kawg fais fab los ntawm 18650 roj teeb tuav (7), txuas lub kav hlau txais xov (8).
Tam sim no peb siv USB-TTL converter thiab txuas RXD-TXD thiab TXD-RXD, GND-GND tiv tauj nrog Dupont xov hlau rau ARDUINO (comb 1):

SMS-saib qhov hnyav ntawm peb lub beehives rau $30

Daim duab saum toj no qhia txog thawj version (ntawm peb) ntawm lub kaw lus, uas tau siv rau kev debugging.

Tab sis tam sim no peb yuav so ntawm cov hlau soldering ib pliag thiab txav mus rau qhov software.
Kuv yuav piav qhia txog kev ua ntu zus rau Windows:
Ua ntej, koj yuav tsum download tau thiab nruab / unpack qhov kev pab cuam Arduino IDE Cov - qhov tam sim no version yog 1.8.9, tab sis kuv siv 1.6.4

Rau qhov yooj yim, peb nthuav tawm cov ntawv khaws cia rau hauv daim nplaub tshev C: arduino - "your_version_number", hauv peb yuav muaj cov folders / dist, tsav tsheb, piv txwv, kho vajtse, java, lib, tsev qiv ntawv, siv, cov cuab yeej, nrog rau cov ntaub ntawv arduino executable. (ntawm lwm tus).

Tam sim no peb xav tau lub tsev qiv ntawv los ua haujlwm nrog ADC HX711 - khawm ntsuab "clone lossis rub tawm" - rub tawm ZIP.
Cov ntsiab lus (folder HX711-master) tau muab tso rau hauv phau ntawv C: arduino-“your_version_number” tsev qiv ntawv

Thiab tau kawg tus tsav tsheb rau USB-TTL los ntawm tib github - los ntawm unpacked archive, lub installation tsuas yog launched nrog cov ntaub ntawv SETUP.

Ok, cia peb pib thiab teeb tsa qhov program C: arduino-“your_version_number”arduino

SMS-saib qhov hnyav ntawm peb lub beehives rau $30

Mus rau "Cov Cuab Yeej" - xaiv "Arduino Pro lossis Pro Mini" lub rooj tsavxwm, Atmega 328 3.3V 8 MHz processor, chaw nres nkoj - tus lej uas tsis yog lub kaw lus COM1 (nws tshwm tom qab txhim kho CH340 tsav tsheb nrog USB-TTL adapter. txuas)

Ok, luam cov duab kos hauv qab no (kev pab cuam) thiab muab tso rau hauv Arduino IDE qhov rai

char phone_no[]="+123456789012"; // Your phone number that receive SMS with counry code 
#include <avr/sleep.h>  // ARDUINO sleep mode library
#include <SoftwareSerial.h> // Sofrware serial library
#include "HX711.h" // HX711 lib. https://github.com/bogde/HX711
#include <EEPROM.h> // EEPROM lib.
HX711 scale0(10, 14);
HX711 scale1(11, 14);
HX711 scale2(12, 14);
#define SENSORCNT 3
HX711 *scale[SENSORCNT];

SoftwareSerial mySerial(5, 4); // Set I/O-port TXD, RXD of GSM-shield  
byte pin2sleep=15; //  Set powerON/OFF pin

float delta00; // delta weight from start
float delta10;
float delta20;
float delta01; // delta weight from yesterday
float delta11;
float delta21;

float raw00; //raw data from sensors on first start
float raw10;
float raw20;
float raw01; //raw data from sensors on yesterday
float raw11;
float raw21;
float raw02; //actual raw data from sensors
float raw12;
float raw22;

word calibrate0=20880; //calibration factor for each sensor
word calibrate1=20880;
word calibrate2=20880;

word daynum=0; //numbers of day after start

int notsunset=0;

boolean setZero=false;

float readVcc() { // Read battery voltage function
  long result1000;
  float rvcc;  
  result1000 = analogRead(A5);
  rvcc=result1000;
  rvcc=6.6*rvcc/1023;
  return rvcc;
}

void setup() { // Setup part run once, at start

  pinMode(13, OUTPUT);  // Led pin init
  pinMode(2, INPUT_PULLUP); // Set pullup voltage
  Serial.begin(9600);
  mySerial.begin(115200); // Open Software Serial port to work with GSM-shield
  pinMode(pin2sleep, OUTPUT);// Itit ON/OFF pin for GSM
  digitalWrite(pin2sleep, LOW); // Turn ON modem
  delay(16000); // Wait for its boot 

scale[0] = &scale0; //init scale
scale[1] = &scale1;
scale[2] = &scale2;

scale0.set_scale();
scale1.set_scale();
scale2.set_scale();

delay(200);

setZero=digitalRead(2);

if (EEPROM.read(500)==EEPROM.read(501) || setZero) // first boot/reset with hiding photoresistor
//if (setZero)
{
raw00=scale0.get_units(16); //read data from scales
raw10=scale1.get_units(16);
raw20=scale2.get_units(16);
EEPROM.put(500, raw00); //write data to eeprom
EEPROM.put(504, raw10);
EEPROM.put(508, raw20);
for (int i = 0; i <= 24; i++) { //blinking LED13 on reset/first boot
    digitalWrite(13, HIGH);
    delay(500);
    digitalWrite(13, LOW);
    delay(500);
  }
}
else {
EEPROM.get(500, raw00); // read data from eeprom after battery change
EEPROM.get(504, raw10);
EEPROM.get(508, raw20);
digitalWrite(13, HIGH); // turn on LED 13 on 12sec. 
    delay(12000);
digitalWrite(13, LOW);
}

delay(200); // Test SMS at initial boot

//
  mySerial.println("AT+CMGF=1");    //  Send SMS part
  delay(2000);
  mySerial.print("AT+CMGS="");
  mySerial.print(phone_no); 
  mySerial.write(0x22);
  mySerial.write(0x0D);  // hex equivalent of Carraige return    
  mySerial.write(0x0A);  // hex equivalent of newline
  delay(2000);
  mySerial.println("INITIAL BOOT OK");
  mySerial.print("V Bat= ");
  mySerial.println(readVcc());
 if (readVcc()<3.5) {mySerial.print("!!! CHARGE BATTERY !!!");}
  delay(500);
  mySerial.println (char(26));//the ASCII code of the ctrl+z is 26
  delay(3000);

//  

raw02=raw00;
raw12=raw10;
raw22=raw20;

//scale0.power_down(); //power down all scales 
//scale1.power_down();
//scale2.power_down();

}

void loop() {

  attachInterrupt(0, NULL , RISING); // Interrupt on high lewel
  set_sleep_mode(SLEEP_MODE_PWR_DOWN); //Set ARDUINO sleep mode
  digitalWrite(pin2sleep, HIGH); // Turn OFF GSM-shield
  delay(2200);
  digitalWrite(pin2sleep, LOW); // Turn OFF GSM-shield
  delay(2200);
  digitalWrite(pin2sleep, HIGH);
  digitalWrite(13, LOW);
  scale0.power_down(); //power down all scales 
  scale1.power_down();
  scale2.power_down();
  delay(90000);
  sleep_mode(); // Go to sleep
  detachInterrupt(digitalPinToInterrupt(0)); // turn off external interrupt

  notsunset=0;
 for (int i=0; i <= 250; i++){
      if ( !digitalRead(2) ){ notsunset++; } //is a really sunset now? you shure?
      delay(360);
   }
  if ( notsunset==0 )
  { 
  digitalWrite(13, HIGH);
  digitalWrite(pin2sleep, LOW); // Turn-ON GSM-shield
  scale0.power_up(); //power up all scales 
  scale1.power_up();
  scale2.power_up();
  raw01=raw02;
  raw11=raw12;
  raw21=raw22;
  raw02=scale0.get_units(16); //read data from scales
  raw12=scale1.get_units(16);
  raw22=scale2.get_units(16);

  daynum++; 
  delta00=(raw02-raw00)/calibrate0; // calculate weight changes 
  delta01=(raw02-raw01)/calibrate0;
  delta10=(raw12-raw10)/calibrate1;
  delta11=(raw12-raw11)/calibrate1; 
  delta20=(raw22-raw20)/calibrate2;
  delta21=(raw22-raw21)/calibrate2;

  delay(16000);
  mySerial.println("AT+CMGF=1");    //  Send SMS part
  delay(2000);
  mySerial.print("AT+CMGS="");
  mySerial.print(phone_no); 
  mySerial.write(0x22);
  mySerial.write(0x0D);  // hex equivalent of Carraige return    
  mySerial.write(0x0A);  // hex equivalent of newline
  delay(2000);
  mySerial.print("Turn ");
  mySerial.println(daynum);
  mySerial.print("Hive1  ");
  mySerial.print(delta01);
  mySerial.print("   ");
  mySerial.println(delta00);
  mySerial.print("Hive2  ");
  mySerial.print(delta11);
  mySerial.print("   ");
  mySerial.println(delta10);
  mySerial.print("Hive3 ");
  mySerial.print(delta21);
  mySerial.print("   ");
  mySerial.println(delta20);

  mySerial.print("V Bat= ");
  mySerial.println(readVcc());
  if (readVcc()<3.5) {mySerial.print("!!! CHARGE BATTERY !!!");}
  delay(500);
  mySerial.println (char(26));//the ASCII code of the ctrl+z is 26
  delay(3000);

  }

}

Hauv thawj kab, hauv quotes, char phone_no[]=”+123456789012″; - es tsis yog 123456789012, muab koj tus lej xov tooj nrog lub teb chaws chaws uas yuav xa SMS.

Tam sim no peb nias lub pob kos (saum tus lej ib hauv lub screenshot saum toj no) - yog hauv qab (hauv qab tus lej peb ntawm lub vijtsam) "Compilation tiav" - ces peb tuaj yeem nyem lub microcontroller.

Yog li, USB-TTL txuas nrog ARDUINO thiab lub khoos phis tawj, muab lub roj teeb them rau hauv lub thawv (feem ntau LED ntawm Arduino tshiab pib ntsais ib zaug ib pliag).

Tam sim no rau lub firmware - peb tab tom kawm los nias lub pob liab (nyiaj) ntawm lub microcontroller - qhov no yuav tsum tau ua kom nruj me ntsis ntawm lub sijhawm !!!
Noj? Nias lub pob "Load" (saum toj no ob hauv lub screenshot), thiab ua tib zoo saib cov kab hauv qab ntawm lub interface (hauv qab peb hauv lub screenshot).
Sai li qhov "sib sau ua ke" inscription hloov mus rau "downloading", nias lub pob liab (rov pib dua) - yog tias txhua yam zoo, lub teeb ntawm USB-TTL adapter yuav ci ntsa iab zoo siab, thiab hauv qab ntawm lub interface lub inscription "Uploaded. ”

Tam sim no, thaum peb tab tom tos qhov kev xeem SMS tuaj txog ntawm lub xov tooj, kuv yuav qhia koj seb qhov kev zov me nyuam ua haujlwm li cas:

SMS-saib qhov hnyav ntawm peb lub beehives rau $30

Daim duab qhia qhov thib ob version ntawm qhov kev debugging sawv ntsug.

Thaum qhib thawj zaug, lub kaw lus tshawb xyuas bytes tus lej 500 thiab 501 ntawm EEPROM; yog tias lawv sib npaug, ces cov ntaub ntawv calibration tsis kaw, thiab cov algorithm mus rau ntu teeb tsa.
Tib yam tshwm sim yog tias, thaum qhib, lub photoresistor yog ntxoov ntxoo (los ntawm tus cwj mem cap) - hom rov pib dua yog qhib.

Lub load hlwb yuav tsum tau muab ntsia rau hauv qhov khaus khaus, vim peb tsuas kho qhov pib xoom theem thiab tom qab ntawd ntsuas qhov kev hloov hauv qhov hnyav (tam sim no tus lej yuav cia li los, vim peb tsis tau txuas dab tsi).
Nyob rau tib lub sijhawm, LED teeb tsa ntawm tus pin 13 yuav pib ntsais ntawm Arduino.
Yog tias qhov rov pib dua tsis tshwm sim, LED teeb teeb rau 12 vib nas this.
Tom qab ntawd, ib qho kev sim SMS xa nrog cov lus "INITIAL BOOT OK" thiab lub roj teeb voltage.
Cov kev sib txuas lus module kaw, thiab tom qab 3 feeb Arduino boards muab HX711 ADC boards rau hauv kev pw tsaug zog thiab tsaug zog nws tus kheej.
Qhov kev ncua no tau ua kom tsis txhob tuaj yeem cuam tshuam los ntawm kev ua haujlwm GSM module (tom qab hloov tawm, nws "taum" rau qee lub sijhawm).

Tom ntej no, peb muaj cov duab sensor cuam tshuam ntawm tus pin thib ob (cov haujlwm ntxiv yog qhib).
Nyob rau hauv cov ntaub ntawv no, tom qab lub triggering, lub xeev ntawm lub photoresistor raug tshuaj xyuas rau lwm 3 feeb - kom tshem tawm cov rov ua dua / cuav triggering.
Qhov zoo tshaj plaws yog tias tsis muaj kev hloov kho lub kaw lus tau qhib 10 feeb tom qab hnub poob hnub poob hauv huab cua huab cua thiab 20 hauv huab cua ntshiab.
Yog lawm, kom lub kaw lus tsis rov pib dua txhua zaus nws qhib, tsawg kawg yog thawj HX711 module (pins DT-D10, SCK-A0) yuav tsum tau txuas nrog

Tom qab ntawd cov kev nyeem ntawv ntawm cov ntsuas ntsuas raug coj mus, qhov kev hloov pauv ntawm qhov hnyav los ntawm kev ua haujlwm dhau los yog xam (thawj tus lej hauv kab tom qab Hive) thiab los ntawm thawj qhov kev ua haujlwm, lub roj teeb voltage raug kuaj xyuas thiab cov ntaub ntawv no raug xa mus ua SMS:

SMS-saib qhov hnyav ntawm peb lub beehives rau $30

Los ntawm txoj kev, koj puas tau txais SMS? Nrog koj zoo siab! Peb nyob ib nrab ntawm qhov ntawd! Lub roj teeb tuaj yeem raug tshem tawm ntawm tus tuav tam sim no; peb yuav tsis xav tau lub computer lawm.

Los ntawm txoj kev, lub luag haujlwm tswj chaw ua haujlwm tau dhau los ua kom sib haum xeeb tias nws tuaj yeem muab tso rau hauv lub thawv mayonnaise; hauv kuv rooj plaub, lub thawv translucent ntsuas 30x60x100mm (los ntawm daim npav lag luam) haum zoo kawg nkaus.

Yog lawm, lub kaw lus pw tsaug zog siv ~ 2.3mA - 90% vim yog kev sib txuas lus module - nws tsis tua kiag li, tab sis mus rau hauv hom standby.

SMS-saib qhov hnyav ntawm peb lub beehives rau $30

Cia peb pib ua cov sensors; ua ntej, cia peb kov ntawm qhov teeb tsa ntawm cov sensors:

SMS-saib qhov hnyav ntawm peb lub beehives rau $30

Qhov no yog ib txoj kev npaj ntawm Hive - sab saum toj saib.

Classically, 4 sensors raug ntsia rau hauv cov ces kaum (1,2,3,4)

Peb yuav ntsuas qhov txawv. Los yog theej, txawm nyob rau hauv peb txoj kev. Vim hais tias cov txiv neej los ntawm BroodMinder ua nws txawv:

SMS-saib qhov hnyav ntawm peb lub beehives rau $30

Hauv qhov tsim no, cov sensors tau teeb tsa ntawm txoj haujlwm 1 thiab 2, cov ntsiab lus 3,4 thiab XNUMX so ntawm lub nqaj.
Tom qab ntawd cov sensors suav tsuas yog ib nrab ntawm qhov hnyav.
Yog lawm, txoj kev no tsis tshua muaj tseeb, tab sis nws tseem nyuaj rau xav txog tias cov muv yuav tsim tag nrho cov thav ntawv nrog "tus nplaig" ntawm honeycombs raws ib phab ntsa ntawm lub Hive.

Yog li, kuv xav kom cov sensors coj los ua ke rau taw tes 5 - tom qab ntawd tsis tas yuav tsum tau tiv thaiv lub kaw lus, thiab thaum siv lub teeb khaus, nws yog ib qho tsim nyog yuav tsum ua nrog ib lub sensor.

SMS-saib qhov hnyav ntawm peb lub beehives rau $30

Feem ntau, peb tau sim ob hom modules ntawm HX711, ob hom sensors, thiab ob qho kev xaiv rau kev txuas rau lawv - nrog rau tag nrho Wheatstone choj (2 sensors) thiab nrog ib nrab, thaum qhov thib ob yog ntxiv nrog 1k resistors nrog ib tug kam rau ua 0.1%.
Tab sis txoj kev tom kawg yog undesirable thiab tsis pom zoo txawm los ntawm sensor manufacturers, yog li kuv yuav piav qhia tsuas yog thawj.

Yog li, rau ib lub Hive peb yuav nruab ob lub ntsuas ntsuas thiab ib qho HX711 module, daim duab kab hluav taws xob yog raws li hauv qab no:

SMS-saib qhov hnyav ntawm peb lub beehives rau $30

Muaj 5 meters ntawm 4-xaim xov tooj cable los ntawm ADC board mus rau Arduino - peb nco ntsoov li cas muv tsis nyiam GSM li nyob rau hauv lub Hive.

Feem ntau, peb tawm 8cm "tails" ntawm lub sensors, strip lub twisted khub thiab solder txhua yam raws li hauv daim duab saum toj no.

Ua ntej koj pib ua tus kws ntoo, tso cov quav ciab / paraffin rau hauv lub thawv tsim nyog kom yaj hauv dej da dej.

Tam sim no peb muab peb cov ntoo thiab faib ua peb ntu ntawm 100mm txhua

Tom ntej no, peb kos ib lub voj voog ntev 25 hli dav, 7-8 hli sib sib zog nqus, tshem tawm qhov dhau los siv lub hacksaw thiab chisel - U-shaped profile yuav tsum tshwm sim.

Puas yog lub wax warmed? - peb poob peb ADC boards nyob ntawd - qhov no yuav tiv thaiv lawv los ntawm ya raws / pos huab:

SMS-saib qhov hnyav ntawm peb lub beehives rau $30

Peb muab nws tag nrho rau ntawm lub hauv paus ntoo (nws yuav tsum tau kho nrog tshuaj tua kab mob kom tsis txhob rotting):

SMS-saib qhov hnyav ntawm peb lub beehives rau $30

Thiab thaum kawg, peb kho cov sensors nrog tus kheej tapping screws:

SMS-saib qhov hnyav ntawm peb lub beehives rau $30

Kuj tseem muaj kev xaiv nrog xiav hluav taws xob daim kab xev, tab sis vim tib neeg kuv tsis qhia nws 😉

Los ntawm sab Arduino peb ua cov hauv qab no:

Peb strip peb cov xov tooj cables, twist cov xim ntawm cov xov hlau ua ke, thiab tin lawv.

Tom qab ntawd, solder rau lub rooj sib tham hu raws li hauv daim duab:

SMS-saib qhov hnyav ntawm peb lub beehives rau $30

Ntawd yog nws, tam sim no rau qhov kev kuaj zaum kawg, peb muab cov sensors nyob rau hauv cov haujlwm ntawm lub voj voog, ib daim plywood rau saum, rov pib dua tus maub los (peb muab lub roj teeb nrog lub hau mem rau ntawm lub photodiode).

Tib lub sijhawm, LED ntawm Arduino yuav tsum ntsais thiab kev sim SMS yuav tsum tuaj txog.

Tom ntej no, tshem lub hau ntawm lub photocell thiab mus sau dej rau hauv 1.5 liter lub raj mis yas.
Peb muab lub raj mis tso rau ntawm lub plywood thiab yog tias ob peb feeb dhau los txij li thaum nws tau qhib lawm, peb muab lub hau rov qab rau ntawm photoresistor (simulating lub hnub poob).

Tom qab peb feeb, LED ntawm Arduino yuav teeb, thiab koj yuav tsum tau txais SMS nrog qhov hnyav txog li 1 kg hauv txhua txoj haujlwm.

Nrog koj zoo siab! Lub kaw lus tau ua tiav tiav!

Yog tias peb tam sim no yuam kom lub kaw lus rov ua haujlwm dua, ces thawj qhov hnyav kem yuav muaj xoom.

Yog lawm, nyob rau hauv cov xwm txheej tiag tiag nws yog advisable kom taw qhia tus photoresistor vertically upward.

Tam sim no kuv yuav muab ib tug luv luv user manual:

  1. Txhim kho cov ntsuas ntsuas nyob rau hauv qab phab ntsa ntawm qhov khaus khaus (tso ib kab / board ~ 30mm tuab nyob rau hauv pem hauv ntej sawv daws yuav)
  2. Ntxig lub photoresistor thiab nruab lub roj teeb - lub LED yuav tsum ntsais thiab koj yuav tsum tau txais ib tug SMS xeem nrog cov ntawv nyeem "INITIAL BOOT OK"
  3. Muab qhov chaw nruab nrab ntawm qhov siab tshaj plaws ntawm qhov khaus khaus thiab kom cov xov hlau tsis cuam tshuam thaum ua haujlwm nrog muv.
    Txhua hmo, tom qab hnub poob, koj yuav tau txais SMS nrog koj qhov hnyav hloov rau hnub thiab txij li lub sijhawm pib.
    Thaum lub roj teeb voltage nce mus txog 3.5V, SMS yuav xaus nrog kab "!!! CHARGE roj teeb !!!"
    Lub sijhawm ua haujlwm ntawm ib lub roj teeb 2600mAh yog kwv yees li ib hlis.
    Yog tias lub roj teeb hloov pauv, txhua hnub hloov pauv ntawm qhov hnyav ntawm qhov khaus khaus tsis nco qab.

Yuav ua li cas yog tom ntej no?

  1. Xav paub yuav ua li cas muab tag nrho cov no tso rau hauv ib qhov project rau github
  2. Pib 3 tsev neeg muv nyob rau hauv qhov khaus ntawm Palivoda system (los yog horned ones nyob rau hauv cov neeg)
  3. Ntxiv "buns" - ntsuas cov av noo, qhov kub thiab txias, thiab qhov tseem ceeb tshaj - txheeb xyuas cov buzzing ntawm muv.

Qhov ntawd yog tag nrho rau tam sim no, ua tsaug rau koj li, hluav taws xob beekeeper Andrey

Tau qhov twg los: www.hab.com

Ntxiv ib saib