Cov txheej txheem:

PiMVG: 4 Kauj Ruam
PiMVG: 4 Kauj Ruam

Video: PiMVG: 4 Kauj Ruam

Video: PiMVG: 4 Kauj Ruam
Video: Ruam Tsab Ntse Pluag Tsab Muaj Daim 4 2024, Kaum ib hlis
Anonim
PiMVG
PiMVG

Siv Raspberry Pi thiab 7 tus lej tso saib kom tsis txhob hnov qab koj lub npav/Tram/Ubahn/Sbahn hauv Munich dua!

Kauj Ruam 1: Teeb tsa Software ntawm Raspberry Pi

Nco ntsoov tias koj tus raspberry pi muaj kev siv internet txuas thiab tshawb xyuas cov cai thiab cov lus qhia ntawm kuv GitHub:

Kauj ruam 2: Teeb Kho Vajtse

Yog tias koj xav tso saib MVG lub sijhawm, koj yuav tsum muaj qhov tsim nyog 7 ntu tso saib. Muaj 2 txoj hauv kev xaiv nrog cov kab duab sib txawv: 4 Zauv 7 Segment Display lossis 8 Digit 7 Segment Display. Txhua qhov kev xaiv raug them hauv cov kauj ruam tom ntej:

Kauj Ruam 3: Xaiv 1: 8d7s

Image
Image

Tus qauv siv lub tsev qiv ntawv luma_led sej, uas yog lub ntsiab lus rau 8 tus lej xya ntu ntu raws li MAX7219 nti. Rau qhov kev xaiv no koj yuav xav tau:

  • 4x cev
  • MAX7219 8 Tus lej 7 Segment LED Zaub. Koj tuaj yeem ua cascade ntau ntawm lawv yog tias koj xav tau.

Daim duab kab hluav taws xob muaj nyob hauv daim pdf "pimvg-8d7s.pdf"

Hauv kab hais kom ua kab ke, siv kev sib cav [--display_digits 8] los qhia cov ntawv nab nab uas koj xav siv 1 8d7s zaub, 16 rau ob ntawm lawv thiab lwm yam.

Kauj Ruam 4: Xaiv 2: 4d7s Zaub

Image
Image

Qhov kev xaiv no xav tau cov khoom me ntsis ntxiv;

  • 12x cev
  • 8 x 100 Ohm resistors
  • Hom Anode 4 Zauv 7 Segment LED Zaub

Daim duab kab hluav taws xob muaj nyob hauv daim ntawv pdf "pimvg-4d7s.pdf"

Hauv kab hais kom ua kab ke, siv kev sib cav [--display_digits 4] los qhia cov ntawv nab nab uas koj xav siv 4d7s zaub

Pom zoo: