Cov txheej txheem:
- Khoom siv
- Kauj ruam 1: Txheej txheem cej luam
- Kauj Ruam 2: Microcontroller
- Kauj Ruam 3: DC-DC Step-down, Buck Converter
- Kauj ruam 4: Relay
- Kauj Ruam 5: Txuas Nws
- Kauj Ruam 6: Siv ESPHome
- Kauj Ruam 7: Ntxiv ESPHome rau Tus Pab Tsev
- Kauj Ruam 8: Ntxiv Koj Cov Ntaus rau ESPHome
- Kauj Ruam 9: ESPHome Firmware
- Kauj ruam 10: Nyem ESPHome Firmware
- Kauj Ruam 11: Teeb Tus Pab Tsev
- Kauj Ruam 12: Tiav Tawm
Video: Hacking IKEA Växer: 12 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Nov yog qhov phiaj xwm lis xaus nrawm los siv IKEA's Växer (+ Krydda) lub teeb cog hauv tsev, suav nrog nws mus rau hauv Tsev Pabcuam siv lub microcontroller thiab ESPHome.
Qhov no xav tias koj twb tau ua tiav thiab ua haujlwm nrog Tsev Pabcuam.
Khoom siv
IKEA Växer kev cog qoob loo
ESP32 Cam
DC-DC Buck Converter
Pheej yig relay module
FTDI USB interface (rau kev tsim lub microcontroller)
Kauj ruam 1: Txheej txheem cej luam
Lub wifi tau qhib lub microcontroller, qhov no yog ESP32Cam (raws li kuv muaj ib tus dag ib ncig), yuav tswj IKEA lub teeb ntawm kev xa tawm.
Nws yuav tau teem sijhawm qhib IKEA lub teeb thaum sawv ntxov thiab tawm thaum tsaus ntuj siv Tsev Pabcuam lub vev xaib.
Kauj Ruam 2: Microcontroller
Kuv siv ESP32Cam. Raws li lub npe qhia ESP32Cam tseem yog Lub Koob Yees Duab, uas txhais tau tias kuv tuaj yeem tswj hwm qhov ntawd ib yam rau qhov muaj txiaj ntsig zoo ntawm lub sijhawm-lapse zaub xas lav loj hlob.
Kauj Ruam 3: DC-DC Step-down, Buck Converter
Kuv yuav ua lub zog thiab lub microcontroller los ntawm lub zog cib uas IKEA muab. Raws li qhov hluav taws xob ntawm lub teeb ci LED yog 24V, Kuv yuav siv DC rau DC hloov pauv kom txo qhov hluav taws xob mus rau 5V rau lub microcontroller.
Koj tuaj yeem xaiv cov pauv hloov pauv no pheej yig heev los ntawm ebay, amazon lossis txhua qhov chaw koj nyiam. Saib xyuas kom kho lub lauj kaub me me rau 5V tso tawm ua ntej koj kib koj cov microcontroller me me.
Kauj ruam 4: Relay
Thaum kawg, qhov hloov pauv tus qauv, kev hloov pauv tau tsim los ua haujlwm nrog qhov hluav taws xob siab thaum cais tawm ntawm qhov ntsuas hluav taws xob qis tswj cov tswv yim.
Toggling tus I/O tus pin ntawm lub microcontroller, txuas nrog lub relay tus input teeb liab tus pin, yuav hloov 24V kab mus rau lub teeb.
Kauj Ruam 5: Txuas Nws
Ua raws daim kab xev. Thaum kawg kuv yuav txuas GND thiab 5V tus pin ntawm lub microcontroller rau qhov tso tawm ntawm tus hloov pauv pob tab sis tsis tas yuav xav tau nyob rau theem no txhawm rau txuas rau 24V lub zog, lossis txuas txuas txuas mus rau lub teeb. Hwj chim nws los ntawm PC lub USB 5V ntawm FTDI cable yuav ua raws li nws tau sim thiab ua haujlwm.
Txuas ib lub xov hlau los ntawm kev xa tus lej tus pin mus rau GPIO 12 ntawm lub microcontroller, qhov no yuav tswj kev xa xov thiab txuas cov lej tau txais thiab xa kab los ntawm microcontroller mus rau FTDI's RX thiab TX kev saib xyuas sib pauv cov kab (microcontroller's TX mus rau RX thiab RX to TXC)
Kauj Ruam 6: Siv ESPHome
Yav dhau los kuv yuav tau npaj lub microcontroller ncaj qha, siv ntau yam wifi thiab MQTT Arduino cov tsev qiv ntawv los sib tham nrog Tus Pabcuam Tsev. Tam sim no, ua tsaug rau ESPHome, nws yooj yim dua los ua ke ESP microcontrollers rau hauv Tsev Pabcuam yam tsis tau dov koj tus lej txhua lub sijhawm.
Kauj Ruam 7: Ntxiv ESPHome rau Tus Pab Tsev
Ntxiv rau ESPHome Chaw Tso Khoom
Raws li kuv siv Hassio nws yooj yim li nyem 'Hass.io' nyob rau sab laug ntawm Tsev Pabcuam lub vev xaib ua ntej-kawg, nyem rau 3 tus lej nyob rau sab saum toj sab xis thiab xaiv 'Repository' thiab ntxiv 'https://github.com /esphome/hassio '.
Nruab ESPHome Ntxiv-on
Ntawm Hassio's 'Ntxiv rau tom khw' nplooj ntawv, txav mus rau ESPHome thiab teeb tsa ESPHome Ntxiv-on. Yooj yim.
Kauj Ruam 8: Ntxiv Koj Cov Ntaus rau ESPHome
Txhawm rau ntxiv ESP32Cam microcontroller rau ESPHome nyem rau ntawm 'ESPHome' Ntxiv-rau thiab nyem 'Qhib Web UI'.
Koj yuav raug nug yog tias koj xav ntxiv cov node - nodes yog dab tsi ESPHome hu cov microcontroller li no - Nyem rau '+'.
Muab koj lub npe rau, Kuv tau hu nws 'vaxer_light', thiab xaiv hom ntaus ntawv, kuv yog 'AI Thinker ESP32-CAM'.
Thaum kawg muab koj li ntaub ntawv pov thawj network wifi thiab nyem 'Xa'.
Kauj Ruam 9: ESPHome Firmware
Koj yuav xav rov pib ESPHome Ntxiv-nyob rau theem no. Nrog me ntsis ntawm txoj hmoo tshiab ntawm 'vaxer_light' yuav tsum tam sim no tshwm sim.
Nyem 'Kho' thiab cov ntaub ntawv vaxer_light YAML yuav tshwm. ESPHome siv YAML cov ntaub ntawv teeb tsa zoo ib yam li ntawm Tus Pab Tsev. Txawm li cas los xij cov YAML cov ntaub ntawv no yuav raug suav ua kom dhau los ua lub khoos phis tawj ntawm lub microcontroller, nyob deb deb los ntawm kev nkag mus tob rau hauv Arduino C code.
YAML cov ntaub ntawv rau kuv lub vaxer lub teeb pom kev zoo li qhov no:
esphome:
lub npe: vaxer_light platform: ESP32 pawg thawj coj: esp32cam wifi: ssid: "xxxxxxxx" password: "xxxxxxxx" # Pab kom hotspot poob rov qab (qhov chaw raug ntes) hauv rooj plaub wifi txuas tsis ua ap: ssid: "Vaxer Light Fallback Hotspot" password: "xxxxxxxx" captive_portal: # Pab kom nkag tau cov logger: # Pab kom Tsev Pabcuam API api: ota: # ESP32Cam AI Thinker version esp32_camera: external_clock: pin: GPIO0 zaus: 20MHz i2c_pins: sda: GPIO26 scl: GPIO27 data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GP36,, GPIO39, GPIO34, GPIO35] vsync_pin: GPIO25 href_pin: GPIO23 pixel_clock_pin: GPIO22 power_down_pin: GPIO32 # Duab teeb tsa lub npe: ESP32Cam daws teeb meem: 640x480 jpeg_quality: 10 # relay ntawm GPIO 12 hloov: - platform: gpio pin: 12 name: "Vaxer
Txuag thiab Kaw YAML cov ntaub ntawv, nyem rau peb lub cim thiab xaiv 'Compile'
Kauj ruam 10: Nyem ESPHome Firmware
Thaum YAML cov ntaub ntawv tau suav sau nyem 'Download Binary'.
Raws li qhov no yog thawj zaug ESPHome tau muab tso rau hauv lub microcontroller no, Kuv yuav tsum tau muab tus lej tso rau hauv pawg thawj coj. Yav tom ntej, thaum lub microcontroller muaj ESPHome firmware rau nws, ESPHome tuaj yeem xa cov cai tshiab hla wifi.
Txhawm rau rub cov binary mus rau lub microcontroller siv ESPHome Flasher cuab yeej.
Rub tawm ESPHome Flasher cov cuab yeej los ntawm:
ESP32Cam nyob deb ntawm qhov kuv nyiam microcontroller, kom nws nkag mus rau hauv lub xeev upload koj yuav tsum xub txuas GPIO 0 rau GND thiab nias lub pob pib dua. Qhov no yuav nyuaj heev nyob ntawm qhov tuab ntawm cov ntiv tes thiab seb koj puas tau ntsaws qhov khoom rau hauv lub khob cij raws li lub pob pib dua yog nyob hauv qab ntawm lub rooj tsavxwm, tsis tuaj yeem nkag mus tau yog tias siv lub khob cij.
Khiav lub esphome-flasher, xaiv koj rub tawm cov ntaub ntawv binary thiab chaw nres nkoj txuas ntawm koj li FTDI adapter.
Nrog GPIO 0 txuas rau GND thiab nias lub pob pib dua, hla koj cov ntiv tes thiab nyem 'Flash ESP'.
Thaum ua tiav, unlink GPIO 0 thiab nias rov pib dua.
Kauj Ruam 11: Teeb Tus Pab Tsev
Muaj lub ntsej muag tshiab ESPHome firmware mus rau ESP32Cam microcontroller, dhia rov qab rau Tsev Pabcuam ntxiv cov cuab yeej tshiab.
Nyem 'Kev teeb tsa', nyob rau hauv qab sab laug thiab tom qab ntawd 'Kev Sib Koom', nyem qhov kos npe ntxiv thiab tshawb rau ESPHome.
Nkag mus rau tus tswv tsev, lub npe ntawm koj qhov, hauv kuv qhov xwm txheej 'vaxer_light.local' thiab nyem 'Xa'.
Koj li ESPHome kev koom ua ke tam sim no yuav tsum tau qhia, nyem nws kom pom cov npe khoom siv thiab tom qab ntawd nyem 'vaxer_light' kom pom cov cuab yeej siv.
Nyem 'Ntxiv txhua lub cuab yeej siv rau kev nyiam'.
Tam sim no nws ncaj ncaj los siv Tus Pabcuam Hauv Tsev lub tshuab kom tau lub teeb qhib thiab tua ntawm lub sijhawm tshwj xeeb ntawm ib hnub.
Lub koob yees duab muaj raws li lub koob yees duab.esp32cam, txhawm rau thaij duab siv Tus Pab Hauv Tsev lub koob yees duab.snapshot kev pabcuam.
Piv txwv li, kev siv lub tshuab yees duab ntawm lub sijhawm tshwj xeeb ntawm ib hnub, thiab tsim kuv cov txuj ci ua yeeb yaj kiab lub sij hawm lapse zaub xas lav, yuav yog:
- ID: '20202907'
alias: 'timelapse lettuce' txhais: - ntawm: '11: 30 'platform: sijhawm ua: - kev pabcuam: camera.snapshot data_template: entity_id: camera.esp32cam filename:'/config/timelapse_lettuce/esp32cam _ {{tam sim no (). xyoo }} _ {{tam sim no (). hnub}} _ {{tam sim no ().month}} _ {{tam sim no ().hour}} {{tam sim no ().minute}}. jpg '
Kauj Ruam 12: Tiav Tawm
Thiab qhov ntawd yog nws. Txhua yam uas yuav tsum tau ua yog xaim nws mus rau lub zog cib thiab pob hloov pauv raws li pom thiab tom qab ntawd ua li cas lo nws ua ke thiab ruaj ntseg - txhuam nws nrog blutak - nws mus rau hauv tsev.
Vam tias koj nyiam kuv Cov Lus Qhia, txhua lo lus nug thov nug. Ntau cov duab ntawm no thiab lwm qhov haujlwm tuaj yeem pom ntawm kuv instagram @limpfish.
Ua tsaug
Pom zoo:
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Hacking TV Tuner los nyeem Lub Ntiaj Teb Cov Duab Los Ntawm Satellites: 7 Kauj Ruam (nrog Duab)
Hacking TV Tuner los nyeem Lub Ntiaj Teb Cov Duab Los Ntawm Satellites: Muaj ntau lub hnub qub saum peb lub taub hau. Koj Puas Paub, uas siv koj lub computer nkaus xwb, TV Tuner thiab yooj yim DIY antena Koj tuaj yeem tau txais cov kis los ntawm lawv? Piv txwv li cov duab lub ntiaj teb tiag. Kuv yuav qhia koj li cas. Koj yuav xav tau:- 2 w
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: 7 Cov Kauj Ruam (nrog Duab)
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: Nyob zoo txhua tus! Cov lus qhia no tau yug los ntawm lub laptop faib ua ib nrab, yuav los ntawm ib tus phooj ywg. Thawj qhov kev sim ntawm txoj haujlwm no yog kuv Lego Digital Photo Frame, txawm li cas los xij, yog ib tus neeg mob siab rau Siri thiab Google Tam sim no, Kuv txiav txim siab coj nws mus rau qhov tshiab