Cov txheej txheem:

Armadillo Tsev Automation: 5 Kauj Ruam
Armadillo Tsev Automation: 5 Kauj Ruam

Video: Armadillo Tsev Automation: 5 Kauj Ruam

Video: Armadillo Tsev Automation: 5 Kauj Ruam
Video: Я никогда не ел такой вкусной курицы в соусе!!! Рецепт за 10 минут! 2024, Kaum ib hlis
Anonim
Image
Image

Lub Tsev Automation txoj haujlwm tswj hwm thiab ua haujlwm ntau yam tshuab hluav taws xob hauv ib lub tsev xws li teeb, khoom siv thiab qhov hluav taws xob. Txoj haujlwm no siv 4D Systems 'Armadillo-43T.

Txoj haujlwm cia tus neeg siv teeb tsa hom rau hauv phau ntawv lossis tsis siv neeg. Hauv phau ntawv hom, tus neeg siv tuaj yeem qhib lossis tua qee qhov hluav taws xob lossis khoom siv. Thaum nyob hauv tsheb, tus neeg siv tsuas tuaj yeem teev sijhawm ntau npaum li cas kom txog thaum nws xav qhib lossis kaw tag nrho cov cuab yeej txuas nrog. Hauv hom no, tus neeg siv tsis tuaj yeem hloov pauv cov cuab yeej ntawm tus kheej tab sis nws tuaj yeem rov qab mus rau phau ntawv txhua lub sijhawm. Tus neeg siv tau muab ob hom rau qhov tsis siv neeg, TXHUA DEVICES ON thiab ALL DEVICES OFF. Txhawm rau cuam tshuam cov kev xa tawm uas tig rau thiab tua cov cuab yeej, Armadillo siv nws lub peev xwm GPIO. Thaum nyob rau hauv phau ntawv hom thiab pom lub pob kom raug nias, tus armadillo yuav hloov pauv tus lej GPIO. Thaum tsis siv neeg, armadillo yuav yooj yim tig txhua tus pin rau LOW lossis HIGH nyob ntawm qhov teeb tsa ntawm lub sijhawm. Armadillo yog peb cov kev daws teeb meem rau cov zaub thiab cov qauv xav tau. Armadillo tau ua haujlwm ntawm BCM2835 SOC ua ke nrog ARM1176JZF-S CPU Processor nrog VideoCore IV GPU hauv ib pob. Armadillo tau tsim los siv Armadillian Operating System, uas feem ntau yog ua raws Raspbian/Debian OS thiab ua kom zoo rau BCM2835 SOC. Nws tau ntim nrog 13 GPIO uas muaj 2 Tib I2C Raws, 5 Ib Leeg SPI Raws thiab 2 UART Raws. 2 PWM cov channel kuj tseem muaj uas yog sib koom nrog lub tshuab ua haujlwm nrog lub tshuab hais lus me me. Nws kuj tseem muaj USB chaw nres nkoj uas tuaj yeem siv rau cov khoom siv sab nraud xws li Keyboards, USB Hubs, Wi-Fi dongles thiab Bluetooth modules.

Kauj Ruam 1: Nws Ua Haujlwm Li Cas?

Tsim
Tsim

Kauj ruam 2: Tsim

Tsim
Tsim

Cheebtsam

  1. ARMADILLO 43 TSI
  2. 6-8 channel relay
  3. hloov qhov hluav taws xob txuas ntxiv
  4. 3 teeb/teeb
  5. qee yam khoom siv
  6. USD Card

Software

sej-tk module

Cov kauj ruam

  1. Hloov kho qhov hluav taws xob txuas ntxiv raws li pom hauv thawj daim duab saum toj no. Ntxiv xaim txuas ntxiv los ntawm kev qhib qhov kev sib txuas xaus. Cov xov hlau no yuav txuas nrog cov qauv xa tawm. Schematic daim duab ntawm kev hloov kho qhov hluav taws xob txuas ntxiv.
  2. Txuas cov khoom siv raws li qhia hauv daim duab thib ob saum toj no.
  3. Armadillo rau Relay Module txuas:

Pin 1 (GPIO37) rau In1

Pin 2 (GPIO38) rau In2

Pin 3 (GPIO39) rau In3

Pin 4 (GPIO35) rau In4

Pin 5 (GPIO36) rau In5

Pin 6 (GPIO45) rau In6

Pin 9 (GND) to GND

Pin 10 (+5V) txog +5V

Txuas qhov hloov kho qhov hluav taws xob txuas txuas txuas txuas mus rau qhov txuas txuas raws li qhia hauv daim duab thib ob saum toj no.

Kauj Ruam 3: Txoj Haujlwm

• Qhib Armadillo-43T Datasheet thiab ua raws cov lus qhia yuav ua li cas rau nruab Armadillian duab thiab lwm yam software tsim nyog.

• Nruab Python-tk module

sudo apt-tau nruab python-tk

• Nruab, txuas xov tooj Pi mus rau qhov txuas no rau cov lus qhia:

https://wiringpi.com

• Tom qab teeb tsa wiringPi, rub tawm thiab teeb tsa wiringARM

wget

• Rub tawm thiab unzip cov ntaub ntawv HomeAutomation.zip

• Tom qab cov kauj ruam no, khiav HomeAutomation.py

Pom zoo: