Cov txheej txheem:

Txuas Txuas: 5 Kauj Ruam (nrog Duab)
Txuas Txuas: 5 Kauj Ruam (nrog Duab)

Video: Txuas Txuas: 5 Kauj Ruam (nrog Duab)

Video: Txuas Txuas: 5 Kauj Ruam (nrog Duab)
Video: Nco Ntsoov Kuv Mog - Qab Zib [ Nkauj Tawm Tshiab 7/6/2023 ] Official MV 2024, Kaum ib hlis
Anonim
Txuas Charger
Txuas Charger
Txuas Charger
Txuas Charger
Txuas Charger
Txuas Charger

Qee lub hlis dhau los Kuv tau yuav lub scooter hluav taws xob rau kuv txhua hnub tsav tsheb mus ua haujlwm. Nws hu ua HP_BEXXTER (tsuas yog google nws kom paub ntau ntxiv:-))

Tam sim no kuv xav paub muaj pes tsawg lub zog kuv xav tau rau cov tsav ntawd. Tsis tas li kuv xav sau cov ntaub ntawv ntau ntxiv txog kuv kev siv lub scooter tab sis tam sim no kuv pib nrog lub charger.

Kev ua haujlwm yooj yim heev: Sau cov ntaub ntawv lub zog los ntawm lub charger los ntawm ESP8266 thiab thawb nws mus rau InfluxDB server. Txog kev pom kev Kuv siv grafana.

Kauj Ruam 1: Ntsuas Hluav Taws Xob + ESP8266

Ntsuas Hluav Taws Xob + ESP8266
Ntsuas Hluav Taws Xob + ESP8266
Ntsuas Hluav Taws Xob + ESP8266
Ntsuas Hluav Taws Xob + ESP8266
Ntsuas Hluav Taws Xob + ESP8266
Ntsuas Hluav Taws Xob + ESP8266

Cas kuv yuav tsum tau txais lub zog siv hluav taws xob. Thawj lub tswv yim yog los tsim PCB los ntsuas qhov txiaj ntsig ncaj qha. Tab sis thaum kuv tab tom tshawb nrhiav kuv tau pom lub ntsuas hluav taws xob nrog S0 interface rau 15 €.

Tam sim no nws yooj yim heev kom tau txais kev noj haus. Txhua 1/1000 kWh Kuv tau saib ntawm lub interface.

Tag nrho cov khoom siv tom qab ntawd tau teeb tsa ntawm lub phaj ntoo.

Txhawm rau lub zog ESP8266 Kuv tau nyiag lub qub usb charger… Nws tsis yog txoj hauv kev koj yuav tsum ua nws.

Kauj Ruam 2: Thawj Xeem thiab ESP8266 Schematics

Thawj Xeem thiab ESP8266 Schematics
Thawj Xeem thiab ESP8266 Schematics
Thawj Xeem thiab ESP8266 Schematics
Thawj Xeem thiab ESP8266 Schematics
Thawj Xeem thiab ESP8266 Schematics
Thawj Xeem thiab ESP8266 Schematics
Thawj Xeem thiab ESP8266 Schematics
Thawj Xeem thiab ESP8266 Schematics

Tom qab kev txhim kho los ntawm feem ntau ntawm cov cuab yeej kuv tau pib txhim kho cov txuj ci … Nws yog ONE resistor.

Tab sis kuv tau siv daim ntawv qhia zaub mov rau qhov ntawd …

Tus tiv thaiv xav tau los rub qhov hluav taws xob mus rau hauv av yog tias S0 interface nyob qis.

Txoj Cai kuj tseem yooj yim heev Kuv siv std. arduino workbench rau cov haujlwm yooj yim zoo li no. Txoj cai rub tawm tau ntawm no thiab raws li ob qho kev cuam tshuam cuam tshuam tus neeg tuav haujlwm.

Kauj Ruam 3: Ua kom HW…

Hardening HWJ…
Hardening HWJ…
Hardening HWJ…
Hardening HWJ…
Hardening HWJ…
Hardening HWJ…

… Kuv tsuas xav tau daim phiaj rau lwm txoj haujlwm:-)

Kauj Ruam 4: Teeb tsa InfluxDB thiab Grafana

Teeb InfluxDB thiab Grafana
Teeb InfluxDB thiab Grafana
Teeb InfluxDB thiab Grafana
Teeb InfluxDB thiab Grafana

Kuv tau teeb tsa influxDb thiab grafana ntawm tus qub raspberry pi koj tuaj yeem ua qhov ntawd ntawm txhua lub khoos phis tawj. Kuv tsis sau kom tiav yuav ua li cas rau kev teeb tsa tsuas yog cov lus qhia rau kev khiav cov khoom ntawm rpi1.

koj tuaj yeem rub tawm.deb nruab thiab khiav grafana: wget https://dl.bintray.com/fg2it/deb-rpi-1b/main/g/gr…sudo dpkg -i grafana_4.2.0_armhf.deb sudo/bin/ systemctl daemon-reload sudo /bin /systemctl pab grafana-server sudo /bin /systemctl pib grafana-server

InfluxDB tau teeb tsa rau UDP thiab cov ntaub ntawv khaws cia ntawm USB flash drive. Cov ntaub ntawv teeb tsa tau khaws cia ntawm no: /etc/influxdb/influxdb.conf

[meta]# Qhov twg metadata/raft database khaws cia dir = "/automnt/usb-stick/influxdb/meta"

[cov ntaub ntawv] # Cov npe uas TSM lub cav khaws cia khaws cov ntaub ntawv TSM. dir = "/automnt/usb-stick/influxdb/data"

Txhawm rau teeb tsa cov chaw khaws ntaub ntawv thiab lwm yam khoom koj yuav tsum tau muab rau admin saib:

[admin] # Txiav txim siab seb qhov kev pabcuam admin tau qhib. enabled = muaj tseeb# Lub neej qub khi chaw nyob siv los ntawm cov kev pabcuam admin. khi-chaw nyob = ": 8083"

Tam sim no koj tuaj yeem nkag mus rau koj DB los ntawm koj tus browser thiab tsim cov ntaub ntawv, koj yuav pom cov piv txwv txaus hauv lub vev xaib li cas. https:// IP nkag DB: 8083/

Tom qab ntawd koj tseem tuaj yeem teeb tsa grafana. Tsis tas li ntawm no koj yuav pom cov piv txwv online. https:// IP nkag DB: 3000

Rau qhov pom kev koj tuaj yeem pom hauv kev tshuaj ntsuam qhov kuv tau ua.

Txhawm rau sim qhov kev sib txuas koj tuaj yeem siv koj lub tshuab linux:

ncha "powertick tus nqi = 1">/dev/udp // 8089

Kauj Ruam 5: Cov Kauj Ruam Tom ntej

Kuv xav sau cov ntaub ntawv los ntawm kuv Scooter:

- GPS Txoj Haujlwm- Kub Lub Cev Muaj Zog- Kub ntawm Roj Teeb- Kub ntawm ib puag ncig- Kev siv hluav taws xob ntawm chav tsav- Accelerometer

Yog leej twg xav tau qee yam piav qhia ntxaws ntxiv, thov hu rau kuv … Kuv tseem yuav ntxiv cov ntaub ntawv tshiab hauv phau ntawv qhia no.

Pom zoo: