Cov txheej txheem:

2 Player Pong PCB: 3 Kauj Ruam
2 Player Pong PCB: 3 Kauj Ruam

Video: 2 Player Pong PCB: 3 Kauj Ruam

Video: 2 Player Pong PCB: 3 Kauj Ruam
Video: IM-PONG-SIBBLE - with 2 players - ARDUINO Game - by Andrei Daradici - with code 2024, Hlis ntuj nqeg
Anonim
2 Player Pong PCB
2 Player Pong PCB

Hauv phau ntawv qhia no koj tuaj yeem tsim lub portable 2 player pong game. Qhov kev tsim no tau tsim nyob ib puag ncig cov cai tshaj tawm ntawm GitHub los ntawm Onur Avun. Kuv nyiam tsim txoj haujlwm no, Kuv vam tias koj txaus siab tsim nws.

Kauj Ruam 1: Tau Cov Khoom

Tau Cov Khoom
Tau Cov Khoom

Nov yog PCB txoj haujlwm, yog li nws xav tau cov cuab yeej siv yooj yim. Kuv pom zoo kom siv cov hlau tsis muaj hmoov txhuas thiab PCB

PCB Gerber cov ntaub ntawv yog hauv qab no, lossis koj tuaj yeem nkag mus rau qhov haujlwm ntawm EasyEDA

JLCPCB muaj tus nqi zoo rau lead dawb PCBs ntawm qhov loj me no

Siv kev hloov pauv ib txwm zoo li VX7805-500 yuav siv roj teeb tsawg dua tab sis tus nqi ntau dua li LM7805 tus tswj hwm txoj kab. Txhua tus muaj qhov xav tau sib txawv capacitor.

Koj tuaj yeem siv lub zog xa hluav taws xob mus txog 30V, tab sis koj yuav tsum paub tseeb tias lub tshuab hluav taws xob nruab nrab ntawm lub tog raj kheej thiab 5V tus tswj hwm tau ntsuas ntawm qhov siab dua li qhov muab khoom. Tsis tas li, yog tias siv LM7805, tseem txheeb xyuas qhov xav tau heatsink, qhov siab dua txhais tau tias yog cua sov ntau dua. Txoj haujlwm no nrog LM7805 zoo li ua haujlwm zoo ntawm 9V yam tsis muaj cua sov.

1 ATMEGA328P-PU

1 AVR Programmer shield thiab Arduino siv nrog nws.

5K Potentiometer

1 Nokia 5100 LCD Module

1 28 pin socket

Kauj Ruam 2: Txoj Haujlwm ATMEGA328

Qhov program ATMEGA328
Qhov program ATMEGA328

Program lub nti ua ntej soldering. Kuv siv lub qhov (socket), yog li kuv tuaj yeem tshem tawm cov nti. Yuav tsum tau program Arduino rau AVR Programming Shield

Upload "Arduino as ISP sketch" [File] -> [Piv txwv] -> [Arduino as ISP].

Txuas nrog AVR Programming Shield rau Arduino

Socket ATMEGA328 nti ntawm AVR Programming Shield

Xaiv tus Programmer, [Cuab Yeej] -> [Programmer] -> [Arduino li ISP] Teem program bootloader, [Cuab Yeej] -> [Burn Bootloader]

Qhib 2Player Pong Sketch hauv Arduino software

Upload pong sketch, [File] -> [Upload siv programmer]

Kauj ruam 3: Tsim

Tsim
Tsim

Cov khoom siv sib txuam ua ke lo lo ntxhuav npo ntawm PCB. Yog tias koj xav siv qhov pheej yig dua LM7805 tus tswj hluav taws xob, siv nws hauv SMPS hneev taw thiab hloov 10uf capacitor nrog 1uf thiab 22uf nrog 100nf capacitor. Tantalum capacitors mus ib sab ntawm LM117T 3.3V tus tswj hwm, tsis txhob hnov qab muab tso ntev dua rau hauv + qhov. Solder screen, resistor thiab ceramic capacitors ua ntej, tom qab ntawd cov khoom siab dua. Clip hauv qab coj thiab xyuas kom tsis muaj cov ntsiab lus ntse nyob hauv qab. Siv cov nyiaj zoo lossis tuab dua rau ntawm lub thoob thiab lub zog loj rau lub zog.

Pom zoo: