Cov txheej txheem:

Lub Sij Hawm Digital Nrog Tsis Siv Neeg Hloov ntawm LED Zaub: 4 Cov Kauj Ruam
Lub Sij Hawm Digital Nrog Tsis Siv Neeg Hloov ntawm LED Zaub: 4 Cov Kauj Ruam

Video: Lub Sij Hawm Digital Nrog Tsis Siv Neeg Hloov ntawm LED Zaub: 4 Cov Kauj Ruam

Video: Lub Sij Hawm Digital Nrog Tsis Siv Neeg Hloov ntawm LED Zaub: 4 Cov Kauj Ruam
Video: Muaj tsis ntshai tuag 7/1/2018 2024, Kaum ib hlis
Anonim
Image
Image
Lub Sij Hawm Digital Nrog Tsis Siv Neeg Hloov ntawm LED Zaub
Lub Sij Hawm Digital Nrog Tsis Siv Neeg Hloov ntawm LED Zaub

Txoj haujlwm no yog hais txog lub moos digital nrog kev sib hloov tsis zoo ntawm 7-Seg LED zaub.

Lub moos no tuaj yeem hloov pauv hauv txhua txoj haujlwm khaws cov lej kom nyeem tau zoo txawm tias yuav ntxeev los yog hauv daim iav duab !!

Nws tau tswj hwm los ntawm Arduino thiab tsav los ntawm kev ntsuas nrawm kom paub qhov tseeb ntawm txoj haujlwm hauv 3D kev tswj hwm.

Ntxiv rau qhov muaj qhov tshwj xeeb los qhia qhov kub ib puag ncig hauv tsev hauv Celsius lossis hauv Fahrenheit degrees.

Kev sib sau ua ke yog yooj yim heev thiab kuv vam tias koj yuav muaj kev lom zem siv nws !!

Nyob zoo, LAGSILVA

Kauj Ruam 1: Cov Khoom Npe

Cov Khoom Siv
Cov Khoom Siv
Cov Khoom Siv
Cov Khoom Siv
Cov Khoom Siv
Cov Khoom Siv
Cov Khoom Siv
Cov Khoom Siv
  1. Arduino Uno R3
  2. MPU-6050 kev tawm tsam
  3. Multi Funtion Shield rau Arduino
  4. Poj niam jumper xov hlau

MPU-6050 kev tawm tsam:

Kev tshem tawm MPU-6050 muaj nyob hauv peb-axis accelerometer thiab gyroscope ntxiv rau qhov ntsuas kub nrog qhov tshwj xeeb hauv qab no:

  • Tus Qauv Zauv: MPU-6050
  • Kev tawm tswv yim Voltage: 3-5V
  • ADC: 16 ntsis
  • I/O: tus qauv I2C
  • Gyroscope full-scale range: ± 250, 500, 1000, 2000 °/s
  • Accelerometer puv-teev ntau: ± 2, ± 4, ± 8, ± 16g
  • Qhov ntsuas kub ntau: -40 txog +85 ºC

Multi Function Shield (MFD):

MFD tuaj yeem ua kom yooj yim dua thiab ua kom sai dua qhov kev tsim qauv.

Cov yam ntxwv tseem ceeb:

  • 4 tus lej 7-ntu LED zaub module tau tsav los ntawm ob lub npe 74HC595's
  • 4 x nto mount LED's hauv kev teeb tsa sib luag
  • 10K kho qhov tseeb potentiometer
  • 3 x ywj siab thawb nyees khawm
  • Piezo buzzer
  • DS18B20 kub sensor interface
  • LM35 kub sensor interface
  • Infrared receiver interface
  • Serial interface header kom yooj yim txuas mus rau cov qauv siv xws li Bluetooth, wireless interface, lub suab module, lub suab lees paub lub suab, thiab lwm yam.

Kauj ruam 2: Sib dhos

Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke

Lub rooj sib txoos yog yooj yim heev thiab tsis xav tau ib qho schematics:

  1. Ntxig Multi Shield rau hauv Arduino.
  2. Ceev MPU-6050 kev sib cais ntawm Arduino pawg thawj coj siv cov ntsia hlau me me.

Tsuas yog 04 lub xov hlau jumper yuav txuas nrog:

  • Hlau liab: Vcc (+5V)
  • Cov xov dub: Gnd
  • Cov xaim ntsuab: SCL ntawm MPU-6050 tawm mus rau chaw nres nkoj #6 hauv Multi Shield.
  • Cov xaim daj: SDA ntawm MPU-6050 tawm mus rau chaw nres nkoj #5 hauv Multi Shield.

Kauj ruam 3: Teeb

Teeb
Teeb

Muaj 3 khawm los teeb tsa lub moos:

  1. Khawm sab laug: Nias kom kho cov teev. Nias sai kom teeb tsa ib qib zuj zus. Nias tas li txhawm rau nce cov sijhawm sai.
  2. Qhov chaw khawm: Teev feeb. Nias tas li txhawm rau nce cov sijhawm sai.
  3. Txoj cai khawm: nias nrawm kom txav mus rau hom kub.

Nco tseg: Hauv Hom Kub Kub tuaj yeem hloov pauv qhov xwm txheej mus rau Fahrenheit lossis Celsius nias lub khawm Laub.

Kauj ruam 4: Code

Code
Code
Code
Code
Code
Code
Code
Code

Lub luag haujlwm tseem ceeb ntawm txoj cai yog:

  • Kev nyeem ntawv ntawm lub kaum sab xis accelerometers.
  • Muab xam los ntawm kev hloov pauv rau 7-seg LED zaub (saib duab).

Nrog rau cov ces kaum tuaj yeem txheeb xyuas qhov chaw sib nrug ntawm lub moos thiab txiav txim siab seb yuav tso tawm li cas niaj hnub:

  1. Pem Hauv Ntej Saib - Sijhawm Sawv Daws
  2. Pem Hauv Ntej Saib - Moos Upside Down
  3. Daim iav Saib - Mloog Sawv ntsug
  4. Daim iav Saib - Clock Upside Down

Pom zoo: