Cov txheej txheem:

DIY nrug nrug Nrog OLED Zaub: 4 Kauj Ruam
DIY nrug nrug Nrog OLED Zaub: 4 Kauj Ruam

Video: DIY nrug nrug Nrog OLED Zaub: 4 Kauj Ruam

Video: DIY nrug nrug Nrog OLED Zaub: 4 Kauj Ruam
Video: Мне стыдно 4. Шоу постыдных историй. В гостях Аскар Ильясов, Мадина Байболова и Джамбул Кульдеев 2024, Kaum ib hlis
Anonim
DIY nrug nrug nrog OLED zaub
DIY nrug nrug nrog OLED zaub
DIY nrug nrug nrog OLED zaub
DIY nrug nrug nrog OLED zaub
DIY nrug nrug nrog OLED zaub
DIY nrug nrug nrog OLED zaub
DIY nrug nrug nrog OLED zaub
DIY nrug nrug nrog OLED zaub

Hauv qhov kev qhia no peb yuav tsim lub ntsuas nrug deb deb uas yuav tso cov txiaj ntsig ntawm OLED zaub. Txog qhov haujlwm no koj tuaj yeem xaiv siv ardiuno lossis ESP8266 module thiab kuv yuav muab cov cai rau ob qho tib si. Yog tias koj siv ESP8266 thawj zaug thov txheeb xyuas kuv cov lus qhia txog cov qauv no. Tus txheej txheem ntawm txoj haujlwm no yog HC-SR04 qhov ntsuas qhov deb yuav xa nws nyeem mus rau lub microcontroller (arduino lossis ESP8266) thiab tom qab ntawd lub microcontroller yuav tso tus nqi no rau cov zaub. Yog li cia pib.

Khoom siv

Rau qhov kev qhia no koj yuav xav tau cov hauv qab no:

  • microcontroller (arduino lossis ESP8266)
  • daim ntawv qhia zaub mov
  • jumper cov xov hlau
  • HC-SR04 nrug deb sensor
  • OLED zaub 0.96 nti

Kauj Ruam 1: Kev Txuas Hluav Taws Xob

Kev Txuas Hluav Taws Xob
Kev Txuas Hluav Taws Xob
Kev Txuas Hluav Taws Xob
Kev Txuas Hluav Taws Xob
Kev Txuas Hluav Taws Xob
Kev Txuas Hluav Taws Xob
Kev Txuas Hluav Taws Xob
Kev Txuas Hluav Taws Xob

Ua raws cov txheej txheem thiab cov lus rau qhov txuas ntawm arduino lossis ESP8266.

PINArduinoESP8266VCC (nrug deb sensor) 5V5VTRIG13D6ECHO12D5 GND (nrug deb sensor) GNDGNDVDD (OLED zaub) 3.3V3.3VGND (OLED zaub) GNDGNDSCKA5D1SDAA4D2

Kauj Ruam 2: Nruab Adafruit OLED Library

Nruab Adafruit OLED Library
Nruab Adafruit OLED Library

Ua raws cov theem hauv qab no txhawm rau teeb tsa lub tsev qiv ntawv OLED:

  1. Qhib Arduino IDE thiab mus rau Sketch> suav nrog Tsev Kawm Ntawv> Tswj Tsev Qiv
  2. Tam sim no lub tsev saib xyuas lub tsev qiv ntawv qhib, tshawb "SSD1306"
  3. Xaiv qhov uas muaj lub npe "Adafruit SSD1306 los ntawm Adafruit"
  4. Nyem nruab
  5. Tam sim no lub tsev qiv ntawv yuav tsum tau teeb tsa thiab tam sim no koj tuaj yeem nkag mus rau lub cajmeem

Kauj ruam 3: Programming

Programming
Programming

Nov yog qhov txuas rau ob qho ntawm arduino IDE cov ntaub ntawv rau ESP8266 thiab arduino. Txoj cai muaj cov lus piav qhia txog kev ua haujlwm ntawm txhua kab.

Kauj ruam 4: Koj Ua tiav

Koj Tiav lawm!
Koj Tiav lawm!
Koj Tiav lawm!
Koj Tiav lawm!

Tam sim no koj yuav tsum pom qhov deb pom ntawm OLED zaub. Ua tsaug rau kev nyeem ntawv thiab thov txheeb xyuas kuv lwm yam kev qhia.

Pom zoo: