Cov txheej txheem:

Universal Timer - Sprinkler Controller: 5 Kauj Ruam
Universal Timer - Sprinkler Controller: 5 Kauj Ruam

Video: Universal Timer - Sprinkler Controller: 5 Kauj Ruam

Video: Universal Timer - Sprinkler Controller: 5 Kauj Ruam
Video: Irrigation System (Arduino-controlled sprinkler system) 2024, Hlis ntuj nqeg
Anonim
Universal Timer - Sprinkler Controller
Universal Timer - Sprinkler Controller
Universal Timer - Sprinkler maub los
Universal Timer - Sprinkler maub los
Universal Timer - Sprinkler maub los
Universal Timer - Sprinkler maub los

Uni-timer yog Arduino khoos phis tawj raws lub ntiaj teb timer-chav nrog 4 qhov xa tawm, uas tuaj yeem ua haujlwm kom hloov pauv thiab tawm ntawm tus kheej lossis hauv pab pawg ntawm 24 lub sijhawm sib txawv. Lub hom phiaj ntawm txoj haujlwm no yog txhawm rau tsim lub sijhawm cheep programmable ultra, uas yuav tswj hwm cov kais dej, tab sis tau tshwm sim los muaj txiaj ntsig rau lwm cov ntawv thov uas suav nrog lub sijhawm. Qhov teev sijhawm tsawg tshaj plaws yog 1 feeb.

Lub Circuit Court yog tsim los ntawm ob peb cheep modules. Lub sijhawm tuaj yeem teeb tsa ntawm Bluetooth nrog daim ntawv thov Android kuj tau sau los ntawm koj li tiag.

Kauj ruam 1: Kev npaj. Cov Cuab Yeej thiab Khoom Siv

Kev npaj. Cov Cuab Yeej thiab Cov Khoom Siv
Kev npaj. Cov Cuab Yeej thiab Cov Khoom Siv
Kev npaj. Cov Cuab Yeej thiab Khoom Siv
Kev npaj. Cov Cuab Yeej thiab Khoom Siv
Kev npaj. Cov Cuab Yeej thiab Khoom Siv
Kev npaj. Cov Cuab Yeej thiab Khoom Siv

Cov Cuab Yeej:

  1. Cov hlau hlau
  2. Cable txiav
  3. USBasp AVR programmer + software (lossis lwm tus programmer)
  4. Programmer 10 tus pin rau 6 tus pin hloov pauv
  5. Khoos phis tawj
  6. FTDI 232 module (4 jumper cable + breadboard) + Arduino serial monitor lossis Putty software
  7. Xov tooj hauv

Khoom siv:

  1. Cov hlau xaim
  2. Rov ua dua qee lub computer qub IDE cable
  3. Test Circuit board 2cm x 1cm (tsis tseem ceeb)
  4. 1K resistor 3 daim
  5. CR2032 roj teeb

Kauj ruam 2: Kev npaj. Electronics

Kev npaj. Electronics
Kev npaj. Electronics
Kev npaj. Electronics
Kev npaj. Electronics
Kev npaj. Electronics
Kev npaj. Electronics

Cov Qauv:

  1. Arduino Uno lossis qee qhov clone (microcontroller module, lub hlwb ntawm Circuit Court) - ebay
  2. Me RTC (me me lub sijhawm teev sijhawm teev sijhawm) - ebay
  3. HC -05 Bluetooth module (Bluetooth serial module) - ebay
  4. 4 relay shield rau Arduino Uno (zoo li hauv daim duab saum toj no) - ebay
  5. DC 9V fais fab mov (nyob ntawm koj lub tebchaws) - ebay

Kauj Ruam 3: Kev npaj ntawm Bluetooth Module

Kev npaj ntawm Bluetooth Module
Kev npaj ntawm Bluetooth Module
Kev npaj ntawm Bluetooth Module
Kev npaj ntawm Bluetooth Module
Kev npaj ntawm Bluetooth Module
Kev npaj ntawm Bluetooth Module

Ua ntej peb sib sau ua ke ntawm lub xov tooj cua Bluetooth module yuav tsum tau npaj los sib txuas lus nrog Android ntaus ntawv thiab Arduino Uno. Qhov no tuaj yeem ua tiav los ntawm kev sib txuas lus txuas nrog tus qauv, thiab ob peb AT cov lus txib.

Txhawm rau xa AT cov lus txib rau Bluetooth module koj yuav tsum txuas nws nrog FTDI 232 tus qauv zoo li hauv Circuit Court saum toj no. (FTDI232 yog qhov txuas mus rau USB hloov pauv, zoo li qhov chaw nres nkoj virtual hauv lub computer)

Rau qhov no siv cov qhob cij-board thiab ob peb xaim. Ntawm qee qhov qauv Bluetooth, khawm B1 tau muab tso rau ntawm lub Circuit Court los ntawm lub hoobkas.

Npaj Bluetooth module:

  1. Nias lub pob B1 thiab ua kom nws nias, txuas USB cable ntawm FTDI232 rau lub khoos phis tawj, tso lub pob B1. (tam sim no Bluetooth module nkag mus rau AT hom) Pib Arduino software.
  2. Xaiv qhov chaw sib txuas lus kom raug rau FTDI232 thiab pib Serial monitor ntawm Arduino software.
  3. Teeb baud-tus nqi rau 38400.
  4. Teeb nws kom xa: rov qab nqa tsheb thauj khoom thiab kab noj
  5. Ntaus AT nias nkag mus, yog tias Circuit Court teb OK peb tau ua lag luam.:) Yog tsis yog, pib ntawm taw tes 1.
  6. Tom ntej no peb teeb lub npe ntawm Bluetooth ntaus ntawv, uas yuav tshwm nyob rau hauv Bluetooth cov npe khoom ntawm lub xov tooj Android. Ntaus AT+NAME = UNITIMER nias sau. Nws yuav tsum yog UNITIMER vim tias hauv app yuav tshawb nrhiav lub npe no.
  7. Teeb tus lej tus lej ntawm Uni-timer: Ntaus AT+PIN = 1234 lossis ib tus lej 4 tus lej thiab nias nkag mus. (yuav yog qhov tseem ceeb ntawm kev sib txuas ntawm lub cuab yeej hauv Android, yog li cim tus lej)
  8. Baud-tus nqi tau teeb tsa rau 9600 los ntawm lub Hoobkas tab sis koj tuaj yeem teeb tsa nws los ntawm kev ntaus AT+UART = 9600, 0, 0.
  9. Ntaus AT+RESET nias nkag mus tawm ntawm AT hom thiab peb tau ua tiav.

Lwm cov lus txib AT tuaj yeem pom ntawm no.

Txuas lub Bluetooth module ntawm lub khob cij.

Kauj Ruam 4: Sib sau thiab Hlawv Txoj Haujlwm

Sib sau ua ke thiab hlawv qhov program
Sib sau ua ke thiab hlawv qhov program

Sib dhos Circuit Court:

Siv daim duab saum toj no. Txiav 8 kab ntev txog 8 cm ntev thiab muab lawv tso rau ntawm Arduino board, zoo li qhia hauv daim duab. Siv lub rooj tsav xwm ntsuas ntsuas ntxiv 3x1K resistors rau RX tus pin ntawm HC-05 Bluetooth module. Qhov ntawd yog txoj hauv kev pheej yig tshaj los txuas 3V RX tus pin rau 5V TX tso tawm. (TTL qib sib piv, tsis muaj cov hluav taws xob tiv thaiv hluav taws xob yuav hlawv) Arduino RX tuaj yeem mloog 3V TTL qib ntawm qhov nrawm no.

Qhov seem 4 qhov kawg ntawm cov xov hlau mus rau TinyRTC module. (peb lub moos)

Plug 4 daim thaiv thaiv qhov txuas thiab koj tau ua tiav nrog lub Circuit Court. Txuas lub roj teeb CR2032 hauv lub qhov (socket) ntawm TinyRTC module. Lub roj teeb yog ua kom lub moos khiav txawm tias tsis muaj lub hwj chim txuas nrog.

Hlawv qhov kev zov me nyuam:

Hmoov tsis zoo kuv yuav tsum tau tshem ntawm Arduino bootloader kom tsis txhob muaj qhov chaw, vim tias daim duab pib ua tsis ruaj tsis khov, tab sis tsis muaj bootloader ua haujlwm raws li qhov xav tau. Yog li koj tuaj yeem tsis tsuas yog xa nws mus rau pawg thawj coj, yuav tsum tau hlawv nrog AVR programmer (USBasp). Cov duab kos tuaj yeem tsav 8 qhov xa tawm tab sis qhov no yog qhov yooj yim dua.

Kuv yuav tsis mus qhia ntau dhau ntawm no, yuav ua li cas hlawv cov program, tau sau thoob plaws hauv is taws nem.

Kuv cov lus qhia: Tsis txhob hloov AVR-s FUSES.

Txuas USBasp (lossis hom tsim nyog) programmer rau Arduino pawg thawj coj thiab siv koj li software rub tawm cov ntaub ntawv hex hauv qab no. Koj yuav tsum siv tus lej 10-6 tus pin lossis qee cov xov txuas los txuas rau lub khoos phis tawj pins ntawm Uno board. Disconnect USBasp. (thaum hlawv qhov program, Arduino board tau siv los ntawm tus programmer, yog tias tsis siv 9V lub zog hloov kho)

Txuas lub 9V adapter, yog tias txhua yam ua tau zoo ntawm LED ntawm Arduino pawg thawj coj yuav pib nyem nrawm, thiab LED ntawm Bluetooth module yuav nyem me ntsis qeeb.

Tam sim no lub Circuit Court npaj tau txais qhov teeb tsa. Kev teeb tsa tau khaws cia rau hauv kev suav nrog eeprom ntawm ATmega 328 nti ntawm Uno board.

Kauj ruam 5: Rub tawm, Rub tawm teeb tsa los ntawm Android App

Rub tawm, Rub tawm Kev teeb tsa los ntawm Android App
Rub tawm, Rub tawm Kev teeb tsa los ntawm Android App
Rub tawm, Rub tawm Kev teeb tsa los ntawm Android App
Rub tawm, Rub tawm Kev teeb tsa los ntawm Android App

Rub tawm thiab teeb tsa Uni-timer.apk ntawm koj lub xov tooj Android. Koj yuav tsum siv USB cable txhawm rau ua tiav qhov no thiab pab kom tsis paub qhov chaw los ntawm teeb tsa lub cuab yeej Android. Nov yog li cas thiab vim li cas.

Kuv tseem ua haujlwm ntawm kev sib sau pom kom muaj lub app tso rau hauv khw ua si. Google them qee cov nyiaj rau qhov ntawd. Tsis tas li kuv yuav ua daim ntawv thov rau Apple cov cuab yeej, yog tias tshwm sim los rau tib neeg nyiam.

Teeb:

  1. Ua ntej tshaj plaws koj yuav tsum rub tawm lub app thiab teeb tsa nws ntawm koj lub cuab yeej Android.
  2. Plug rau hauv lub hwj chim adapter, tam sim no lub Circuit Court yog nyob rau.
  3. Pib Bluetooth ntawm lub cuab yeej Android thiab tshawb nrhiav cov cuab yeej tshiab.
  4. Pair UNITIMER lub cuab yeej, dab yuav nug txog 4 tus lej tus lej lej. (qhov ntawd yog tus lej koj tau nkag rau tus pin Bluetooth.)
  5. Pib lub app. Coj mus rhaub Download teeb khawm. Lub app nyob rau lub sijhawm luv yuav ua kev sib txuas rau Uni-timer thiab nthuav qhia koj lub qhov rai ceeb toom nrog "Teeb tau rub tawm". Yog tias qhov no tsis ua haujlwm yuav ua rau muaj kev sib txuas tsis raug, lossis thov kev tso cai rau Bluetooth.
  6. Yog tias txhua yam mus tau zoo coj mus rhaub OK ntawm lub qhov rai ceeb toom, hauv ob peb lub sijhawm app yuav nthuav tawm daim ntawv teeb tsa nrog cov ntaub ntawv rub tawm. (thawj zaug yuav tsis muaj dab tsi)
  7. Hloov kho cov phiaj xwm koj xav siv, hauv qhov seem tshem tawm cov cim kos los ntawm hnub. (Tsis txhob sib tshooj cov haujlwm nyob rau tib hnub. Qhov uas tau tham txog ntawm no.)
  8. Coj mus rhaub teeb tsa teeb tsa, koj tau txais lub qhov rai ceeb toom, yog txhua yam mus tau zoo ces koj tau txais lub qhov rai ceeb toom nrog "Teeb tsa tau muab tso rau", yog tias tsis yog, koj tau txais kev ceeb toom nrog tus lej ntawm qhov ua haujlwm tsis raug. (kho qhov program thiab rov ua cov txheej txheem)
  9. Yog tias qhov program tau rub tawm coj mus rhaub khawm Qhib kom kaw lub app. Koj ua tiav.

Nrog lub app koj tuaj yeem hloov kho teeb tsa txhua lub sijhawm.

Tam sim no koj yuav tsum tau tos rau kev xa xov mus qhib rau lub sijhawm teev tseg. Qhov tso tawm ntawm qhov txuas yog ntsuab ntsaws.

Tseem ceeb !!! Ceev faj tsis pub dhau AC120V 3A lossis AC240V 1, 5A (DC24 3A) hloov pauv tam sim no

Phau Ntawv Qhia Txog Cov Neeg Siv Qhia Tau Paub Ntxiv nyob ntawm no.

Thov txim rau kuv cov lus Askiv tsis zoo.

Pom zoo: