Cov txheej txheem:

IOT123 - ASSIMILATE SENSOR HUB: ICOS10 CROUTON RESET NODE: 6 Kauj Ruam
IOT123 - ASSIMILATE SENSOR HUB: ICOS10 CROUTON RESET NODE: 6 Kauj Ruam

Video: IOT123 - ASSIMILATE SENSOR HUB: ICOS10 CROUTON RESET NODE: 6 Kauj Ruam

Video: IOT123 - ASSIMILATE SENSOR HUB: ICOS10 CROUTON RESET NODE: 6 Kauj Ruam
Video: IOT123 - ASSIMILATE SENSOR HUB: CROUTON INTEGRATION 2024, Kaum ib hlis
Anonim
Image
Image
IOT123 - ASSIMILATE SENSOR HUB: ICOS10 CROUTON RESET NODE
IOT123 - ASSIMILATE SENSOR HUB: ICOS10 CROUTON RESET NODE
IOT123 - ASSIMILATE SENSOR HUB: ICOS10 CROUTON RESET NODE
IOT123 - ASSIMILATE SENSOR HUB: ICOS10 CROUTON RESET NODE

Crouton. https://crouton.mybluemix.net/ Crouton yog lub dashboard uas tso cai rau koj pom thiab tswj koj li IOT cov cuab yeej nrog teeb tsa me me. Qhov tseem ceeb, nws yog daim ntawv yooj yim tshaj plaws los teeb tsa rau ib qho IOT khoos phis tawj uas siv MQTT thiab JSON nkaus xwb.

Qhov kev tsim no xa cov cuab yeej Cov ntaub ntawv xav tau los ntawm Crouton mus rau MQTT tus tswv lag luam, rau bootstrap automatic dashboards. ASSIM_VERSION xav tau 2 rau AssimilateBusSlaves (cov ua yeeb yam thiab cov ntsuas).

Lub HOUSING HEADERS yav dhau los tau hloov kho me ntsis, nrog D0 kev tsheb nqaj hlau hloov txoj kev tsheb ciav hlau D6 uas tsis siv lawm.

Ib tus ntxhais-pawg thawj coj tshiab tau ntxiv uas tso cai rau rov kho kho vajtse, sawv hauv qhov xwm txheej thiab yav tom ntej yuav siv rau qhov hloov pauv qis zog (rau kev tswj lub zog ntawm cov qhev).

Cov kab ntawv ntws saum toj no muab cov lus piav qhia ntawm ASSIMILATE-CROUTON kev koom ua ke.

Yog tias koj tsis tau ua li ntawd, lub plhaub txheej sab nrauv yuav tsum tau muab sib dhos.

NCO TSEG: firmware rau ACTORS/SENSORS xav tau ASSIM_VERSION 2.

Kauj Ruam 1: Cov Ntaub Ntawv thiab Cov Cuab Yeej

ICOS10 (IDC) Plhaub Nqi Khoom Siv

  1. D1M BLOCK Pin Jig (1)
  2. D1M BLOCK puag thiab vaj tsev (1)
  3. Wemos D1 Mini (1)
  4. Wemos D1 Mini Protoboard Shield (1)
  5. 40P Poj Niam Headers (8P, 8P, 9P, 9P)
  6. Txiv neej Header 90º (3P, 3P, 3P, 2P)

  7. 1 "Ob tog ob tog protoboard (2)
  8. 6 Pin Shrouded IDC Txiv Neej Header (1)
  9. Hookup hlau (~ 10)
  10. 0.5 hli Tinned Hlau (~ 4)
  11. 4G x 15mm Khawm taub hau tus kheej tapping screws (2)
  12. 4G x 6mm tus kheej tapping countersunk screws (~ 20)

Kauj Ruam 2: Kev Npaj MCU

Image
Image
Kev Npaj MCU
Kev Npaj MCU
Kev Npaj MCU
Kev Npaj MCU

Hauv qhov kev tsim no peb tab tom siv Wemos D1 Mini. Yog tias koj tau ua yav dhau los D1M WIFI BLOCK, koj tuaj yeem siv qhov ntawd rau cov khoom siv kho vajtse hloov pauv. Yog tias tsis yog, yam tsawg kawg liab qab ua raws seem tom ntej.

Muag lub taub hau PINS ntawm MCU (siv tus lej PIN JIG)

Yog tias koj tsis tuaj yeem luam tus lej PIN JIG tsuas yog ua raws cov lus qhia thiab tsim kho: qhov siab (offset) ntawm tus lej PIN JIG yog 6.5mm.

  1. Luam/tau tus PIN JIG los ntawm nplooj ntawv no.
  2. Pub cov kab taub hau hla hauv qab ntawm lub rooj tsavxwm (TX sab xis-sab laug) thiab rau hauv cov laug cam.
  3. Nias tus pin nqes mus rau qhov tiaj tiaj.
  4. Nias lub rooj tsavxwm nqes mus rau lub jig.
  5. Ua tus kav 4 lub ces kaum pins.
  6. Reheat thiab rov ua haujlwm pawg thawj coj/tus pin yog xav tau (pawg thawj coj lossis tus pin tsis sib dhos lossis cov kav dej).
  7. Solder tus so ntawm tus pin.

UPLOADING LUB FIRMWARE

Cov chaw cia khoom tuaj yeem pom ntawm no (snapshot).

ZIP ntawm lub tsev qiv ntawv tuaj yeem pom ntawm no (snapshot).

Cov lus qhia rau "Ntshuam ZIP Library" ntawm no.

Thaum lub tsev qiv ntawv raug teeb tsa koj tuaj yeem qhib qhov piv txwv "mqtt_crouton_esp8266".

Cov lus qhia rau teeb tsa Arduino rau Wemos D1 Mini ntawm no.

Kev vam khom: ArduinoJson, TimeLib, PubSubClient.

Thaum cov cai tau raug thauj mus rau Arduino IDE:

  1. Hloov kho tus nqi ntawm _wifi_ssid nrog koj li WiFi SSID.
  2. Hloov kho tus nqi ntawm _wifi_password nrog koj tus yuam sij WiFi.
  3. Hloov kho tus nqi ntawm _mqtt_device_name nrog qhov koj nyiam Ntaus Tus Kheej (tsis xav tau koom nrog).
  4. Hloov kho tus nqi ntawm _mqtt_device_description nrog qhov koj nyiam ntaus ntawv piav qhia (hauv Crouton).

Kauj Ruam 3: Kev Npaj Tsev MCU

Kev Npaj Tsev MCU
Kev Npaj Tsev MCU
Kev Npaj Tsev MCU
Kev Npaj Tsev MCU
Kev Npaj Tsev MCU
Kev Npaj Tsev MCU

MCU Vaj Tsev nthuav tawm lub taub hau rau D1 Mini los ntsaws rau hauv thiab lub taub hau rau tus ntxhais-laug cam uas sib txuas lus nrog Lub Qhov (lub ntsuas cua thiab tus ua yeeb yam) Circuit.

Lub HOUSING HEADERS ntawm thawj ICOS10 3V3 MQTT NODE xav tau hloov kho los txhawb nqa kho vajtse rov qab thaum I2C cov lus sib txuas mus tsis sib xws (rov pib dua yog lub tswv yim qub) thiab tawm ntawm kev tsaug zog. D6 tus pin tawg uas tau hloov pauv tsis tau muab rau ib yam dab tsi thaum lub sijhawm tsim thawj, thiab tau raug xaiv los ua "qee qhov lwm tus lej digital tsuas yog nyob rau hauv rooj plaub".

HOUSING HEADERS

Qhov no yog ua raws D1 Mini Protoboard, thiab sib cais:

  1. Pins rau D1M BLOCK/D1 Mini txuas rau.
  2. Kev Ncaj Ncees ncaj qha ntawm 2 kab ntawm kev sib cuag los ntawm D1M BLOCK/D1 Mini. Cov no tsuas yog muaj rau kev yooj yim thaum ua qauv. Nws tau cia siab tias tus ntxhais-laug cam yuav thaiv txhua qhov nkag mus rau cov ntawv no.
  3. 4 Kev tawg ntawm cov pins tshwj xeeb uas siv los ntawm tus ntxhais-laug cam. Kuv txiav txim siab tsuas yog rhuav tshem I2C tus pin tshwj xeeb tab sis kuv twb muaj qhov siv-siv rau lwm tus pin (qis-qis pw tsaug zog hloov), yog li kuv tsoo RST, A0, D0 thiab lwm tus lej digital tsuas yog hauv rooj plaub.

Txhawm rau ntxiv D1M Cov Neeg Tiv Thaiv rau HOUSING HEADER:

  1. Saib tus muag khoom siv Lub SOCKET JIG video.
  2. Pub cov kab taub hau hla hauv qab ntawm lub rooj tsavxwm (TX sab laug-sab laug rau sab saum toj).
  3. Pub jig hla lub taub hau yas thiab qib ob sab.
  4. Tig jig thiab sib dhos dua thiab nias lub taub hau ncaj qha mus rau qhov tiaj tiaj.
  5. Nias lub rooj tsavxwm nqes mus rau lub jig.
  6. Solder 4 lub kaum tus pin uas siv cov laug me me (tsuas yog ua ntu zus ntawm tus pin).
  7. Reheat thiab rov ua haujlwm pawg thawj coj/tus pin yog xav tau (pawg thawj coj lossis tus pin tsis sib dhos lossis cov kav dej).
  8. Solder tus so ntawm tus pin.
  9. Tshem tawm jig.
  10. Txiav pins tawm saum cov laug.

Txhawm rau ntxiv Daughter-board Breakouts:

  1. Txiav 4 tawm 9P Poj niam lub taub hau.
  2. Nyob rau sab saum toj, ntxig 9P Lub Taub Hau raws li qhia, thiab muab tshuaj txhuam tso rau hauv qab.

Txhawm rau ntxiv Direct Breakouts:

  1. Txiav 2 tawm 8P Poj niam lub taub hau.
  2. Nyob rau sab saum toj, ntxig rau 8P Lub Taub Hau raws li qhia, thiab muab tshuaj txhuam tso rau hauv qab.

Txhawm rau txuas lub taub hau, hauv qab nrog TX tus pin taw qhia nce:

  1. Lw thiab solder los ntawm RST tus pin hla 4 tus pin.
  2. Lw thiab solder los ntawm tus pin A0 hla 4 tus pin.
  3. Lw thiab solder los ntawm D1 tus pin hla 4 tus pin.
  4. Lw thiab solder los ntawm D2 tus pin hla 4 tus pin.
  5. Kab thiab kab laug sab los ntawm D0 tus pin nqes 2 kab thiab hla 4 tus pin.
  6. Lw thiab solder los ntawm D7 tus pin hla 4 tus pin.
  7. Lw thiab solder los ntawm GND tus pin hla 4 tus pin.
  8. Kab thiab kab laug sab los ntawm 5V tus pin hla 4 tus pin.
  9. Kab thiab kab laug sab los ntawm 3V3 tus pin nqes 45 ° hla 4 tus pin.

TSEV KAWM NTAWV TSHAJ PLAWS

Lub HOUSING HEADERS tau txuas rau MCU HOUSING thiab qhov no tau txuas rau BASE PLATE.

  1. Nrog rau sab ntev ntawm HOUSING HEADERS taw tes rau lub qhov, ntxig D1M KEV TIV THAIV rau hauv qhov qhib hauv MCU HOUSING thiab thawb dej ntws tawm.
  2. Ntxig MCU mus rau MCU CONTACTS thaum sib txuas kom ntseeg tau tias ua kom raug.
  3. Muab lub taub hau TEEB sab saum toj ntawm cov khoom sib dhos ua ke thiab txuas nrog 2 ntawm 4G x 16mm ntsia hlau.
  4. Muab cov khoom sib dhos ua ke nrog lub qhov taw qhia rau sab luv thiab sau nrog 4G x 6mm ntsia hlau.

Kauj Ruam 4: Tsim RESET Daughter-board

Tsim lub RESET Daughter-board
Tsim lub RESET Daughter-board
Tsim lub RESET Daughter-board
Tsim lub RESET Daughter-board
Tsim lub RESET Daughter-board
Tsim lub RESET Daughter-board
Tsim lub RESET Daughter-board
Tsim lub RESET Daughter-board

Tom qab tus ntxhais-board tau ntxiv rau hauv kev sib dhos ntau dua koj yuav pom ib qho kev hloov pauv yuav tsis tso nrog kev sib dhos ua tiav. D1 WIFI BLOCK yuav tsum tau muab tshem tawm ntawm lub tsev (tsuas yog rub tawm) rau qhov rub tawm, tom qab ntawd hloov (tsuas yog thawb rau hauv).

Nyob rau theem no pawg thawj coj no tsuas yog txuas D0 rau tus pin rov pib dua.

  1. Nyob sab hauv, ntxig 9P 90 ° Txiv Neej Lub Taub Hau (1), thiab muab tshuaj txhuam tso rau sab nraud.
  2. Ntawm sab hauv, taug ib txoj kab daj los ntawm YELLOW1 mus rau YELLOW2 thiab cov laug.

Kauj Ruam 5: Sib Sau Cov Cheeb Tsam Loj

Sib dhos Cov Cheeb Tsam Loj
Sib dhos Cov Cheeb Tsam Loj
Sib dhos Cov Cheeb Tsam Loj
Sib dhos Cov Cheeb Tsam Loj
Sib dhos Cov Cheeb Tsam Loj
Sib dhos Cov Cheeb Tsam Loj
  1. Ua kom ntseeg tau tias SHELL tau tsim thiab sim ua Circuit (cable thiab qhov nyob).
  2. Ntxig 3V3 I2C DAUGHTER-BOARD, nrog 3V3 tus pin ntawm qhov kawg ntawm lub taub hau (saib daim duab).
  3. Ntxig rau RESET DAUGHTER-BOARD, nrog xaim rau sab hauv (saib daim duab).
  4. Muab tus Jumper tso rau ntawm 2P Txiv Neej Lub Npe ntawm 3V3 I2C DAUGHTER-BOARD.
  5. Ntxig lub IDC Socket los ntawm SHELL CABLE rau hauv IDC Header ntawm 3V3 I2C DAUGHTER-BOARD.
  6. Ua tib zoo ntxig DAUGHTER-BOARDS/HOUSING nruab nrab ntawm cov xov tooj hauv SHELL thiab kho lub hauv paus qhov.
  7. Ua kom lub hauv paus ruaj khov rau SHELL nrog 4G x 6mm ntsia hlau.
  8. Txuas ib qho ASSIMILATE SENSORS koj tau ua.

Kauj Ruam 6: Cov Kauj Ruam Tom ntej

Cov kauj ruam tom ntej
Cov kauj ruam tom ntej
Cov kauj ruam tom ntej
Cov kauj ruam tom ntej
Cov kauj ruam tom ntej
Cov kauj ruam tom ntej
  1. Taw koj tus browser ntawm
  2. Xyuas kom tus tswv lag luam yog test.mosquitto.org.
  3. Nyem Txuas.
  4. Nkag mus rau lub cuab yeej lub npe nkag raws li _mqtt_device_name hauv firmware.
  5. Nyem Ntxiv Device.
  6. Nyem Pib-txuas.
  7. Fais fab koj li ICOS10 (5V MicroUSB).
  8. Txheeb xyuas ntawm Crouton dashboard.

Pom zoo: