Cov txheej txheem:

Hallway Bell Warning System: 4 Kauj Ruam
Hallway Bell Warning System: 4 Kauj Ruam

Video: Hallway Bell Warning System: 4 Kauj Ruam

Video: Hallway Bell Warning System: 4 Kauj Ruam
Video: How to use sock to get unstuck #shorts 2024, Kaum ib hlis
Anonim
Hallway Bell Warning System
Hallway Bell Warning System
Hallway Bell Warning System
Hallway Bell Warning System

Hauv tsev kawm ntawv muaj lub tswb nrov uas qhia thaum hloov chav kawm yuav tsum tshwm sim. Lawv thawj lub suab nrov kom qhia thaum twg chav kawm yuav tsum xaus, thiab tom qab ntawd lawv tau hu lub suab thib ob los qhia thaum twg chav kawm tom ntej yuav tsum pib. Yog tias tus tub ntxhais kawm tuaj lig, feem ntau lawv yuav tsum tau txais qee yam kev xeem lig. Lub sijhawm hloov pauv, cov tub ntxhais kawm tuaj yeem ua yam uas tsis yog taug kev mus rau lawv lub sijhawm tom ntej, xws li mus rau hauv chav dej lossis tham nrog phooj ywg, thiab qhov ntawd yuav ua rau lawv tuaj lig yog tias lawv poob sijhawm.

Kuv lub cuab yeej sim qhia tib neeg los ntawm kev ua lub moos uas qhia lub sijhawm tab sis tseem siv LEDs los qhia lub sijhawm tshuav.

Khoom siv

  1. RGB LEDs (4)
  2. Adafruit 1.2 "Xya Segment Display w/Backpack
  3. Arduino Micro Cov
  4. Sijhawm Tiag
  5. Jumper Hlau
  6. Resistor
  7. PCB pawg thawj coj saib
  8. Npib Roj Teeb
  9. Micro USB Cable
  10. 3D Tshuab Luam Ntawv - Qib 3
  11. Filament
  12. Soldering Hlau nrog Solder
  13. Kub nplaum thiab Kub Nplaum Rab Phom
  14. Arduino IDE Cov

Kauj Ruam 1: Tsim Xya Ntu

Tsim Xya Caum
Tsim Xya Caum

Ua raws phau ntawv qhia no los ntawm Adafruit txhawm rau txhawm rau Xya Ntu

learn.adafruit.com/adafruit-led-backpack/1…

Tom qab ua qhov ntawd khoov lub taub hau pins 90 degrees rau nruab nrab.

Kauj Ruam 2: 3D Luam Case

3D Luam Case
3D Luam Case

Nov yog rooj plaub ua qauv 3D rau tag nrho lub cuab yeej.

Yog tias koj muaj Ender 3 lossis Ender 3 pro, tom qab ntawd muab lub. Gcode rau ntawm daim npav SD me me thiab sau cov ntawv luam tawm.

Yog tias koj muaj lwm lub tshuab luam ntawv 3D, siv Cura hloov nws mus rau gcode rau koj lub tshuab luam ntawv 3D.

Yog tias koj xav tau hloov kho, siv.ipt cov ntaub ntawv txhawm rau hloov kho rooj plaub hauv Inventor yog tias koj xav tau.

Kauj Ruam 3: Txuas Tus Ntaus

Hlau Device
Hlau Device
Hlau Device
Hlau Device
Hlau Device
Hlau Device

Cov kauj ruam ua ntej:

  1. Muab Xya Caum rau hauv rooj plaub.
  2. Kub nplaum tag nrho RGB LEDs rau hauv rooj plaub.

RGB LED - yuav tsum yog ib qho anode

  • Pin 9 = Liab
  • Pin 10 = Ntsuab
  • Pin 11 = Xiav
  • Nco ntsoov siv lub resistor

    Tsuas yog xav tau ib qho yog tias koj muab tso rau ntawm GND ceg ntawm LED (ceg ntev tshaj plaws)

  • Tag nrho plaub LEDS yuav tsum yog nyob ua ke.

Pins rau Serial ntawm Arduino Micro

  • TSA - 2
  • TSO - 3

Xya Ntu thiab Lub Sijhawm Tiag (RTC)

  • Ob leeg muaj 1 SDA thiab 1 SCL, txuas nrog ua ke
  • Ob leeg muaj 1 GND Pin
  • Xya ntu muaj 2 5V thiab RTC muaj 1 5V

Luag txhua yam ua ke ntawm PCB Board zoo li hauv daim duab.

Kauj ruam 4: Upload Code

Upload Code
Upload Code

Nco ntsoov tias koj muaj Arduino IDE Installed.

Nco ntsoov tias koj tau teeb tsa Cov Tsev Qiv Ntawv no:

  • RTC -
  • Xya Ntu - cov lus qhia los ntawm Adafruit

Yuav Ua Li Cas Nruab Cov Tsev Qiv Ntawv ntawm Arduino

1) Teem Sijhawm Tswb (Daim duab 1)

Hloov cov feeb thiab teev tus nqi kom haum rau koj lub sijhawm

2) Teem Sijhawm Tam Sim No. (Duab 2)

  • Hloov qhov tseem ceeb hauv daim duab thib ob rau lub sijhawm tam sim no thiab hnub tim
  • Rub tawm Txoj Cai

3) Rov xa cov Code nrog kev hloov kho.

Pom zoo: