Cov txheej txheem:

Cayenne ntawm Raspberry IoT Light Room: 4 Cov Kauj Ruam
Cayenne ntawm Raspberry IoT Light Room: 4 Cov Kauj Ruam

Video: Cayenne ntawm Raspberry IoT Light Room: 4 Cov Kauj Ruam

Video: Cayenne ntawm Raspberry IoT Light Room: 4 Cov Kauj Ruam
Video: Easy Homebridge Tutorial - Управляйте своим Arduino с помощью Apple Homekit и Siri! 2024, Kaum ib hlis
Anonim
Image
Image
Cayenne Drag thiab Drop IoT Project Builder
Cayenne Drag thiab Drop IoT Project Builder

Lub antefact yog chav tshiab tsis muaj teeb pom kev zoo, lub tsev loj loj nrog rau khaub ncaws, thiab lub siab xav ua IoT ntaus ntawv uas kuv tuaj yeem siv sab nraum kuv lub tsev. Rau IoT "tsw" Kuv siv Cayenne.

Hauv chav no kuv xav ua lub teeb zais tom qab ntawm lub txee dai khaub ncaws. Kuv xav siv qhov kev xav ntawm lub teeb sab saud saum lub qab nthab. Kuv tau teeb tsa 5 mt ntawm 5050 RGB coj sawb sab saud ntawm lub khaub ncaws, thiab kuv tau txuas nrog Raspberry Pi (koj puas xav tau ib qho) nrog Cayenne rau Adafruit pca9685, uas koj tuaj yeem yuav ntawm no, thiab tom qab rau kuv lub rooj sib tham yooj yim transistor.

Adafruit pca 9685 yog daim thaiv zoo uas los ntawm kev txuas i2c muab 16 pwm chaw nres nkoj. YOG! Nws zoo heev!

Nrog lub rooj tsavxwm no koj tuaj yeem siv lub cav servo, thiab tseem koj tuaj yeem siv lub teeb pom kev tsis zoo. Tab sis yog tias koj xav siv cov coj coj ntev, koj kuj yuav tsum siv 12V DC lub zog siv. Tab sis txhua qhov system zoo li Raspberry, pca9685 thiab lwm yam, ua haujlwm los ntawm 5V DC zog. Vim li no kuv tau ua lub rooj sib tham transistor yooj yim rau siv 12 Volt fais fab mov nrog txhua qhov khoom siv.

Kauj Ruam 1: Cayenne Drag thiab Drop IoT Project Builder

Cayenne Drag thiab Drop IoT Project Builder
Cayenne Drag thiab Drop IoT Project Builder
Cayenne Drag thiab Drop IoT Project Builder
Cayenne Drag thiab Drop IoT Project Builder

Cayenne yog tus khub zoo rau IoT project. Cayenne txhawb nqa ntau lub platform, thiab koj tuaj yeem siv lub dashboard los ua koj txoj haujlwm. Koj tuaj yeem taws teeb coj, lossis hloov qhov ntsuas kub ntawm koj lub tsev los ntawm kev siv koj lub smartphone.

Cayenne yog qhov yooj yim thiab pub dawb! Sim TAM SIM NO Cayenne. Siv nws rau koj qhov project. Kev teeb tsa yog tsis siv neeg thiab yooj yim heev. Saib cov ntaub ntawv ntawm Cayenne.

  1. Coj koj tus Raspberry Pi thiab nruab rau nws Raspbian distro. (Koj puas xav tau Raspberry Pi?)
  2. Txuas koj Raspberry rau koj lub network hauv zej zog thiab hauv is taws nem
  3. Mus rau Cayenne thiab Sau Npe.
  4. Siv koj lub smartphone iOS lossis Android, nruab Cayenne app thiab nrhiav koj li Raspberry Pi
  5. Nruab Cayenne dab ntawm koj Raspberry Pi

Yog tias koj tsis pom koj li Raspberry Pi, ntaus hauv koj lub Raspberry Pi davhlau ya nyob twg:

wget

sudo bash rpi_pa6vva5ic6.sh -v

Kauj Ruam 2: Nruab Adafruit Pca9685

Nruab Adafruit Pca9685
Nruab Adafruit Pca9685
Nruab Adafruit Pca9685
Nruab Adafruit Pca9685
Nruab Adafruit Pca9685
Nruab Adafruit Pca9685

Tom qab rov pib dua koj li Raspberry, koj tuaj yeem pom koj lub cuab yeej online. Tshaj li koj tuaj yeem ntxiv tus widget tshiab. Tus widget yog pca 9685.

  1. Xaiv qhov txuas ntxiv, thiab xaiv PWM. Koj tuaj yeem pom daim duab.
  2. Tam sim no koj tuaj yeem xaiv lub npe thiab lub cuab yeej.
  3. Koj yuav tsum xaiv tus qhev. Tam sim no sim ntxiv pca 9685 ntaus ntawv.

Yog hais tias lub installation tsis ua haujlwm. Sim ntxiv los ntawm tus kheej i2c teeb tsa. Ua raws li phau ntawv qhia no ntxiv i2c ntawm koj li Raspberry Pi.

Tom qab qhov no koj tuaj yeem pom tus qhev chaw nyob uas koj yuav tsum ntxiv rau Cayenne nplooj ntawv teeb tsa. Sim sau ntawm lub davhlau ya nyob twg ntawm Raspberry Pi:

sudo apt-tau hloov tshiab

sudo apt-tau nruab i2c-cuab yeej

sudo i2cdetect -y 1

Tam sim no koj tuaj yeem pom qhov chaw nyob. Qhov chaw nyob yog 40. Tam sim no sim ntxiv pca 9685 ntaus ntawv rau koj li Cayenne Dashboard.

Kauj Ruam 3: Txuas Cov Khoos Phis Tawj

Txuas Cov Khoom Kho Vajtse
Txuas Cov Khoom Kho Vajtse
Txuas Cov Khoom Kho Vajtse
Txuas Cov Khoom Kho Vajtse
Txuas Cov Khoom Kho Vajtse
Txuas Cov Khoom Kho Vajtse
Txuas Cov Khoom Kho Vajtse
Txuas Cov Khoom Kho Vajtse

Tam sim no yog lub sijhawm kho vajtse!

Sim txuas cov khoom. Kuv tau siv Fritzing, tab sis Fritzing tseem tsis tau muaj Adafruit pca Cheebtsam. Vim li no, Kuv tau siv daim ntawv ceeb toom.

Txuas cov khoom. Koj yuav tsum ua ob qhov kev tswj hwm rau 12 Volts txuas.

Yog tias koj txuas lub cable tsis raug koj tuaj yeem hlawv tag nrho. Raspberry Pi thiab Adafruit pca9685. 12 VCC + (anode) tsuas yog txuas rau RGB coj sawb. Koj yuav tsum txuas lub - (cathode) ntawm 12V roj teeb rau koj lub tshuab hluav taws xob tiv thaiv lossis koj lub bradboard. Cov hlua coj tau txuas nrog 12V roj teeb (+), thiab peb lub cathode Liab, Ntsuab, thiab Xiav, txuas nrog peb lub transistors.

Koj puas xav tau transistors thiab breadboard?

Pom zoo: