Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Code Thawj/Khoos Phib Tawj Thib Ob
- Kauj ruam 2: Kho vajtse thiab thaiv
- Kauj Ruam 3: 3D Luam Vaj Tsev
Video: Wifi Enabled OLED ESP32 Tsheb Gauges: 3 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Kev qhia ua ntej…
Kuv tsim lub tsheb ntsuas ntsuas raws li kev rov ua dua thiab tawm dua yam nyiam ua. Saib https://www.instructables.com/id/Remote-Car-Monit… thiab https://www.instructables.com/id/Remote-Car-Monit… rau ob qho piv txwv tsis ntev los no. Kuv tshwj xeeb tshaj yog cov uas sib xyaw nrog cov khoom qub ntawm lub tsheb. Yog li, vim li cas qhov no thiaj txawv thiab qhov uas txhawb kuv kom tsim nws. Cov lus teb yog ob yam:
1) ESP32 - Kuv xav sim tus menyuam tshiab ntawm lub block nti, tshwj xeeb tshaj yog txij li arduino -based toolchain rau nws yog qhov paub tab txaus. Ib qho kev ntxim nyiam uas ESP32 ua tau yog IOT nrog nws ua tau hauv wifi thiab muaj peev xwm bluetooth. Lub zej zog tau sau ntau lub tsev qiv ntawv los ua qhov no yooj yim me ntsis (webservers, AP's, wifi cov neeg siv khoom, mDNS, thiab lwm yam, thiab lwm yam).
2) Cov ntxaij vab tshaus OLED pheej yig - Rov qab rau xyoo 2007 Kuv tau ntsuas ntsuas siv TFT uas zaum ntawm qhov chaw ntawm lub moos ntawm GD (2004-2007) WRX. TFT tuaj hauv ntau yam tsw. Qee qhov ua haujlwm zoo dua thaum hmo ntuj, qee qhov ua haujlwm zoo dua hauv nruab hnub, thiab lwm yam. Tab sis tsis muaj ib tus ntawm lawv ua haujlwm nyob rau txhua qhov xwm txheej. Kuv tsis paub qhov ua yuam kev ntawm kuv txoj hauv kev kom txog thaum ib qho ntawm cov ntsuas uas kuv siv tsis muaj txiaj ntsig thaum lub rooj sab laj cov tswv cuab hnub tshav ntuj. Nkag mus rau OLED, uas yog qhov txaus rau kev siv tsheb. Lawv tsis ci heev thaum hmo ntuj thiab (qhov tseem ceeb dua) pom nyob rau feem ntau cov hnub ci.
Nov yog ob qho rau ib qho kev qhia raws li kuv tau sau txhua yam rau ob lub tsheb ntsuas ntsuas, roj siab thiab siab turbo. Ob leeg yog qhov tseem ceeb tib yam: daim ntawv me me ntsuas qhov ntsuas nrog qhov ua piv txwv zoo-saib OLED zaub nrog cov lej sib txawv thiab qhov siab tshaj plaws tso tawm. Ob qho tseem ua haujlwm zoo li wifi AP's thiab webservers. Thaum ib tus txuas rau lawv ntawm lub khoos phis tawj lossis lub xov tooj ntawm tes ib qho txav EKG cov qauv kab ntawv tuaj yeem pom (qhov no yog qee qhov tshiab).
Khoom siv
HELTEC ESP32 module-tau txais qhov sib txawv wifi
Roj Siab qhov tshwj xeeb:
Roj Siab ntsuas - Kuv siv lub tshuab 5222 Roj siab ntsuas qhov ntsuas qhov sib txuas - qhov no txawv ntawm lub tsheb thiab qhov chaw nruab. Thov sab laj cov kev pabcuam phau ntawv qhia zaub mov, rooj sib tham, tshuab me me, thiab lwm yam thiab ua qhov no kom raug yog li tsis muaj roj txau
Txhawb kev ntsuas qhov tshwj xeeb:
- Huab cua ntsuas lub ntsuas cua (tsuas yog koj xav ua kom ntsuas qhov ntsuas) -
- Cua hose
- T fittings
Cov tsev qiv ntawv kuv siv uas yog qhov tseem ceeb:
Smoothiecharts - https://smoothiecharts.org/ Zoo heev thiab hnyav nyob hloov kho kab kos. Customizable heev thiab tsis cia siab rau kev hais txog lub tsev qiv ntawv js lwm qhov hauv internet. Qhov no tso cai rau "hauv zos-IOT" hom teeb tsa thiab tag nrho lub tsev qiv ntawv haum rau hauv ib txoj hlua rau lub vev xaib server cov lus hauv kab lus!
ESPAsyncWebServer -https://github.com/me-no-dev/ESPAsyncWebServer- ua li nws hais ntawm lub npov thiab ua tau zoo
ThingPulse OLED cov tsev qiv ntawv duab (qee zaum hu rau lub tsev qiv ntawv squix) - https://github.com/ThingPulse/esp8266-oled-ssd130… - muaj txiaj ntsig zoo thiab ncaj qha rau ESP chips. Tso cai rau kuv ua qee qhov kev ua haujlwm tub nkeeg thiab tseem tau txais cov lus pom zoo.
Cov cuab yeej/misc:
soldering hlau - siv los ua ntev cable khiav rau lub ntsuas cua, teeb tsa lub taub hau ntawm lub rooj tsavxwm, ntsws ntsws qhwv, thiab lwm yam.
ntswj ntsia hlau/qhov (socket)/lwm yam cuab yeej siv hauv tsheb - tsim nyog los teeb tsa lub ntsuas cua ntawm lub tsheb
daim kab xev ob tog - txhawm rau ntsuas cov ntsuas hauv tsev thiab teeb tsa vaj tsev nyob hauv tsheb (cov kua nplaum kub thiab lwm yam yuav ua haujlwm tau, tab sis kuv nyiam 3M ob sab sab nrauv sab nrauv daim kab xev. Nws tuav tau zoo thiab tuaj yeem rub tawm yam tsis muaj kev puas tsuaj.)
txiab - rau daim kab xev thiab txiav tubing thiab zip txuas
zip kev sib txuas - rau tuav yam khoom ua ke, muab cov xov hlau nyob hauv qab qhov khiav ceev thiab hauv lub cav ntim khoom, tuav cov cim nyob hauv qhov chaw, thiab lwm yam.
Kauj Ruam 1: Code Thawj/Khoos Phib Tawj Thib Ob
Txoj cai tuaj yeem rub tawm ntawm no:
Roj Siab -
Boost Siab -
Boost Siab nrog lub ntsej muag hloov pauv qhov ntsuas qhov sib xws -
Cov duab nraaj: Lub tsev qiv ntawv ThingPulse zoo heev uas koj tuaj yeem kos xbms sab xis ntawm ib leeg thiab tau txais txiaj ntsig zoo!
Cov duab ntsuas tau los ntawm qhov qhib qhov chaw tso duab duab (https://thenounproject.com/). Tus kws kos duab Iconic, CY (https://thenounproject.com/icon/490005/).
Kuv siv gimp los tsim 20 qhov sib txawv nrog rab koob taw rau txhua tus zuam cim. Lub ntsej muag luag ntxhi Icons yog los ntawm NOVITA ASTRI, ID thiab nyob ntawm no:
Tom qab ntawd kuv hloov tag nrho cov no mus rau hauv uint8_t arrays siv cov txheej txheem no (hint: yog tias cov xim tau hloov pauv thaum koj tso saib lawv, tsuas yog hloov cov xim ntawm qhov qub): https://blog.squix.org/2015/05/esp8266- nodemcu-ho… nyeem ntxiv
Cov lej ua yeeb yaj kiab nyob yog qhov yooj yim zoo nkauj:
- Tau nyeem los ntawm sensor
- Nplai nyeem ntawv (Kuv ua nws 1 txog 1 rau qhov muaj txiaj ntsig zoo ntxiv thiab tsuas yog txav lub koob thaum nws nyob hauv kev txhawb zog tsis yog thaum nws nyob hauv lub tshuab nqus tsev)
- Kos xbm thiab tom qab ntawd sau tus lej cim rau txhua yam ntxiv.
- yaug thiab rov ua dua
Sensor tus lej: Kuv tab tom siv tus lej cim uas kuv tau siv rau ob lub ntsuas rau ob peb lwm txoj haujlwm. Kuv tau ntxiv qee qhov nruab nrab kom nyob deb ntawm cov cim dhia. Qhov no suav nrog kev nyeem txhua "nyeem" ua qhov nruab nrab ntawm 5 nyeem.
Boost code (sensor muab tus nqi sib piv ntawm 0-5 volts uas ADC hloov mus rau hauv cov kauj ruam ntawm 0-1024):
int getBoost () {ntab rboost = ((analogRead (36) + analogRead (36) + analogRead (36) + analogRead (36) + analogRead (36))/5); // ntab ResultPSI = (rboost*(. 00488)/(. 022) +20) /6.89 - atmo; // tawm ntawm /6.89 rau kpa ntab ResultPSI = (((rboost /4095) + 0.04) /0.004) * 0.145 - atmo; // los ntawm 0.145 rau calc psi // 4096 qhov tseem ceeb ntawm esp32 /*rBoost = rBoost + 1; yog (rBoost> = 20) {rBoost = 0; }*/ xa rov qab (ResultPSI); }
Roj siab cov cai (lub ntsuas nws txawv nws qhov ua haujlwm raws li lub siab nws nkag siab yog li yuav tsum tau faib qhov hluav taws xob los hloov qhov no mus rau qhov hluav taws xob los ntawm 0-5v saib: https://electronics.stackexchange.com/questions/3…https:/ /www.instructables.com/id/Remote-Car-Monito… (mus rau hauv qab) kom paub ntau ntxiv):
int getOilPSI () {ntab psival = ((analogRead (36) + analogRead (36) + analogRead (36) + analogRead (36) + analogRead (36))/5); psival = -0.0601*psival + 177.04 - 14.5; rov qab psival; }
Web Server thiab AP ua haujlwm: AP ua haujlwm tau yooj yim yooj yim - tam sim thiab AP cov khoom nrog ESSID koj xav tshaj tawm thiab tus password thiab koj zoo mus.
const char *ssid = "boost_gauge_ap"; const char *password = "password";
WiFi.softAP (ssid, password);
Nws tseem muaj DHCP server yog li koj tsis tas yuav txhawj txog qhov ntawd. Los ntawm lub neej ntawd nws tus IP yog 192.168.1.4 (tsis muaj lub tswv yim vim li cas, qhov ntawd tsuas yog qhov xaiv). Lub vev xaib me ntsis yog qhov ua kom me ntsis thiab xav tau kev tshawb fawb me ntsis. Yeej koj xav tau async webserver yog li nws tuaj yeem tau txais cov ntaub ntawv hloov tshiab nyob. Luckily muaj lub tsev qiv ntawv rau qhov ntawd. Kuv tsis yog javascript tus tsim tawm, yog li kuv tinkered nrog ib pawg ntawm daim phiaj thiab teeb duab cov tsev qiv ntawv kom txog thaum kuv dawm ntawm kab ntawv smoothie. Feem ntau lwm cov tsev qiv ntawv teev tseg tau sau xws li lawv tau txais txiaj ntsig txhua yam ntawm cov cai los ntawm lwm lub tsev qiv ntawv los ntawm thoob plaws lub vev xaib uas tau thauj khoom zoo thaum nplooj ntawv raug xa tawm. Kuv xav kom qhov no ua haujlwm ywj pheej ntawm internet yog li qhov no yog qhov pom loj. Qhov thib ob nws yuav tsum tau me me txaus uas nws haum rau ntawm arduino thiab raws li koj tuaj yeem pom hauv cov cai nws haum rau hauv ib qho char array.
Kev tshaj tawm cov vev xaib: #suav nrog AsyncTCP.h #suav nrog ESPAsyncWebServer.h… AsyncWebServer server (80); // instantiate nws thiab xaiv chaw nres nkoj (80 yog tus qauv rau http)… server.on ("/", HTTP_GET, (AsyncWebServerRequest *thov) {thov-> xa (200, "ntawv/html", "… // lub vev xaib + lub tsev qiv ntawv smoothiecharts hauv qhov loj char array}); server.on ("/val", HTTP_GET, (AsyncWebServerRequest *thov) {// thawj nplooj ntawv tau hu rau nplooj ntawv me me no uas tsuas yog rov thov tus nqi thov -> xa (200, "ntawv nyeem/html", Sboost);}); server.begin ();
Kauj ruam 2: Kho vajtse thiab thaiv
Daim duab hauv chav ua yeeb yaj kiab yog ob lub cim uas kuv siv. Cov xim kub loj yog ib qho Autometer 2242 roj siab sensor. Lub cev thiab xov ntawm qhov ntsuas no yog hauv av thiab lub davhlau ya nyob twg yog nyeem hauv kev ua haujlwm.
Autometer yuav muab koj txoj kab nkhaus ntawm kev tiv taus siab lossis tiv taus kub rau ib qho ntawm lawv cov ntsuas. Kuv tau hloov qhov no mus rau qhov hluav taws xob siv qhov faib hluav taws xob (saib daim duab kab thaiv).
MPX4250AP huab cua ntsuas lub ntsuas cua muaj peb tus pin nyob thiab ntau tus pin tsis siv. Lawv yog V hauv, hauv av, thiab cov zis sensor. Nws tso tawm 0-5v nyeem ntawv uas tuaj yeem nyeem tau los ntawm microcontroller (lossis hauv qhov xwm txheej ntawm mcu 0-3 volts. Daim ntawv tshwj xeeb rau nws tuaj yeem pom ntawm no: https://www.mouser.com/datasheet/2/302/MPX4250A-11 …
Muaj ntau qhov teeb meem hauv kev txo qis los ntawm 5v txog 3v kev xav. Hauv kuv qhov xwm txheej kuv siv qhov faib hluav taws xob rau qhov yooj yim thiab kuv muaj qhov ib puag ncig ntawm kuv lub rooj ua haujlwm. Koj yuav qhia me ntsis ntawm qhov yuam kev rau hauv kev nyeem raws qhov ua tau yuam kev ntawm cov khoom siv ntxiv (ob lub resistors). Qhov no tuaj yeem ua rau koj nyeem 10% tawm hauv qee kis. Kuv tuaj yeem nyob nrog qhov no. Yog tias koj ua tsis tau koj tuaj yeem xav siv opamp thiab resistors lossis tus lej hloov pauv qib (muaj los ntawm ntau tus neeg muag khoom siv hluav taws xob. Sparkfun muaj ib qho ntawm no: https://www.sparkfun.com/products/12009 Kuv yuav hloov mus rau nws li Kuv tau txais kev nyeem siab qee zaum ntawm qhov ntsuas no (qhov tseeb kuv tau qhia cov khoom no ntawm kuv daim duab kab hluav taws xob).
Kuv tau siv ESP32's ntawm USB. Qhov no suav nrog txuas lub charger ncaj qha zoo li qhov no: https://www.amazon.com/gp/product/B00U2DGKOK/ref=p… mus rau lub tsheb thiab tom qab ntawd siv lub USB hub cais nws tawm. Koj tuaj yeem pom tias kuv tau siv lub kaum sab xis usb cable kom ntseeg tau tias txhua yam ua haujlwm hauv thaj chaw me me (https://www.amazon.com/gp/product/B00ENZDFQ4/ref=p…).
Lwm cov duab qhia txog qhov chaw kuv txiav qhov lossis khiav xaim. Txhua lub tsheb yuav txawv. Siv ceev faj, riam thiab txiab yog ntse, hluav taws xob tuaj yeem txaus ntshai yog li thov tshem lub roj teeb ua ntej txuas cov khoom.
Kauj Ruam 3: 3D Luam Vaj Tsev
Kuv tau siv ntau lub tsev 3D luam tawm rau qhov no.
- Ib qho dav dav 2 screen puag ncig ntsuas. Koj tuaj yeem pom qhov no ntawm daim duab no ntawm thawj nplooj ntawv. Kuv muab nws nyob ib sab ntawm kuv lub moos ntawm kuv qhov nrawm. https://www.thingiverse.com/thing: 35653542
- Ib qho ntsuas ntsuas ib puag ncig-style uas haum rau hauv cheeb tsam moos ntawm subaru impreza (wrx, sti, thiab lwm yam) txij li xyoo 2008 txog 2014.
- Ib daim ntawv ntsuas ob qhov uas haum rau kab ntawm lub kauj thiab lwm qhov sib npaug me ntsis:
Koj zoo siab tau luam thiab hloov cov no kom haum rau koj cov kev xav tau. Tsis muaj leej twg yog qhov zoo tshaj plaws thiab lawv txhua tus yuav xav tau kho me ntsis.
Qee cov ntawv:
- Kuv ua tiav kuv cov plastidip; nws yog txoj kev nyiam ntawm cov tub nkeeg.
- Sanding plastics ua cov khoom me me uas tsis zoo rau koj, siv daim npog ntsej muag uas tsim nyog.
- Kuv siv PETG rau kuv lub tsev. ABS tseem zoo. PLA yuav warp hauv tshav kub ntawm lub dashboard.
Qhov khoom plig thib ob hauv IoT Challenge
Pom zoo:
Xaiv Cov Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau Arduino Automated Shade Screen Project: 12 Cov Kauj Ruam (nrog Duab)
Xaiv Cov Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau Arduino Automated Shade Screen Project: Hauv Cov Lus Qhia no, Kuv yuav hla cov kauj ruam uas kuv tau xaiv los xaiv Lub Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau qhov ua piv txwv Automated Shade Screen project. Cov ntxaij vab tshaus ntxoov ntxoo yog qhov nrov thiab pheej yig Coolaroo tes cranked qauv, thiab kuv xav hloov
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
FinduCar: Lub Ntsej Muag Tsheb Ntsuas Qhia Cov Neeg rau Qhov Chaw Lub Tsheb Nres Tsheb: 11 Cov Kauj Ruam (nrog Duab)
FinduCar: Ntse Lub Ntsiab Tseem Ceeb Qhia Tib Neeg rau Qhov Chaw Tsheb Nres Tsheb: Txhawm rau daws cov teeb meem saum toj no, txoj haujlwm no tawm tswv yim txhawm rau txhim kho tus yuam sij tsheb ntse uas tuaj yeem coj tib neeg mus rau qhov chaw lawv nres tsheb. Thiab kuv txoj kev npaj koom nrog GPS rau hauv lub tsheb tseem ceeb. Tsis tas yuav siv lub smartphone app los taug qab
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
Yuav Ua Li Cas Tsheb Tsheb RC Los Ntawm Cov Duab Duab thiab Ntawv Ntawv: 9 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas RC Tsheb Log Los Ntawm Cardboard thiab Kraft Paper: RC log yog qhov tseem ceeb rau txhua lub tsheb RC. Muaj ntau ntau pawg thiab hom RC log thiab tau txais txoj kev xaiv lub log yog ib qho tseem ceeb tshaj plaws thaum cuam tshuam nrog cov tsheb no. Thaum kuv pib DIYing RC tsheb, ib qho ntawm cov maj