Cov txheej txheem:

PCB Handheld Nrog Arduino (Nrog Kev Xaiv Mus Wireless!): 3 Cov Kauj Ruam
PCB Handheld Nrog Arduino (Nrog Kev Xaiv Mus Wireless!): 3 Cov Kauj Ruam

Video: PCB Handheld Nrog Arduino (Nrog Kev Xaiv Mus Wireless!): 3 Cov Kauj Ruam

Video: PCB Handheld Nrog Arduino (Nrog Kev Xaiv Mus Wireless!): 3 Cov Kauj Ruam
Video: Торий: энергетическое решение - THORIUM REMIX 2011 2024, Kaum ib hlis
Anonim
PCB Handheld Nrog Arduino (Nrog Kev Xaiv Mus Wireless!)
PCB Handheld Nrog Arduino (Nrog Kev Xaiv Mus Wireless!)
PCB Handheld Nrog Arduino (Nrog Kev Xaiv Mus Wireless!)
PCB Handheld Nrog Arduino (Nrog Kev Xaiv Mus Wireless!)

Hloov kho 28.1.2019Kuv tam sim no tab tom ua haujlwm txuas ntxiv ntawm cov khoom siv no. Koj tuaj yeem ua raws txoj haujlwm ntawm kuv tus YouTube channel lossis Twitter.

Ceeb toom! Kuv pom qhov yuam kev hauv PCB txheej txheem. Cov laug thiab cov nyees khawm tau txuas nrog analog nkaus xwb. Kuv tsau qhov ntawd los ntawm kev ntxiv ob qhov rub tawm-resistors rau ob lub tswv yim. Qhov ntawd tsis yog cov tshuaj zoo tshaj tab sis nws ua haujlwm.

Kuv tsim PCB rau tus tuav tes uas ua raws ATmega328P-AU microcontroller (tib yam li hauv Arduino Nano), SSD1306 OLED zaub thiab qee cov nyees khawm. Kuv kuj tau ntxiv qhov kev xaiv ntxiv NRF24L01+ xov tooj cua qauv rau kev ua si ntau tus. Koj kuj tseem tuaj yeem siv lub tes tuav no ua tus tswj hwm wireless. Kuv tau ua cov tswj hwm wireless ua ntej thiab txawm tias muaj ib qho Lus Qhia txog lawv. Txhua yam koj xav tau yuav yog Arduino Leonardo lossis Pro Micro.

Tus tuav tes yog qhov qhib kiag. Txhua qhov ntawm cov cai tau siv dawb nrog rau PCB tsim. Kuv kuj tau pib coding qhib qhov pobzeb-based game game rau lub console. Tam sim no txhua yam ua haujlwm tshwj tsis yog lub tshuab physics muaj qee qhov teeb meem nrog nrawm nrawm. Qhov ntawd tsuas yog vim tias lub tshuab physics tau ua haujlwm los ntawm tus ncej ntawm qhov nrawm tib yam li cov duab kos. Lub tshuab lub cev yuav tsum muaj lub npe hu ua microstepping (txav ib lub pixel thaum lub sijhawm tshuaj xyuas yog tias muaj kev sib tsoo), tab sis kuv tseem yuav tsum tau ua haujlwm rau nws.

Raws li koj tuaj yeem pom los ntawm daim duab, Kuv tseem tsis tau txais cov khoom SMD. Tam sim no kuv tab tom tsim txoj cai nrog tus qauv.

Kuv tsis xav tau tus kws tshaj lij PCB. Kuv puas tseem tuaj yeem tsim qhov no?

Tau kawg. Kuv tau ua tiav cov lus qhia yuav ua li cas los tsim lub console no rau prototyping PCB nrog dotted tooj liab. Koj tuaj yeem pom qhov haujlwm ntawm no:

Kauj Ruam 1: Tau Txais Txhua Qhov

Tau Txais Txhua Qhov
Tau Txais Txhua Qhov

Ua ntej tshaj koj xav tau txhua feem. Koj tuaj yeem xaj PCB los ntawm JLCPCB lossis qee qhov chaw uas siv cov ntaub ntawv Gerber. Gerber cov ntaub ntawv tau siv los piav qhia PCB rau cov chaw tsim khoom. Lawv tsuas yog. ZIP cov ntaub ntawv uas muaj txhua yam qhia meej ntawm PCB tsim.

Nov yog qhov txuas rau PCBs:

Nov yog cov npe ntawm cov khoom koj yuav tau yuav txhawm rau ua kom nws ua haujlwm:

  • ATmega328P (TQFP-32)
  • 8 pcs 6 x 6 x 6 mm cov nyees khawm
  • 16 MHz siv lead ua oscillator
  • 2 pcs ntawm 22 pF 0603 qhov loj me capacitor
  • SSD1306 zaub nrog SPI-interface. (128 x 64, xim dub)
  • Ob 0603 10 kΩ resistors

Nov yog cov npe ntawm cov khoom siv xaiv tau:

  • NRF24L01+
  • AMSD1117-3.3 (3, 3 V tus tswj rau NRF24L01+)
  • 1206 680 nF capacitor (NRF24L01+ xav tau qhov ruaj khov ua haujlwm kom raug.)
  • 2 pcs 1206 coj (yog tias koj xav nyem qee lub teeb)
  • 2 pcs ntawm 0603 resistors rau lub leds

Kauj Ruam 2: Sib sau ua Pawg

Qhov no yuav nyuaj piav qhia txij li kuv tseem tsis tau tsim ib qho PCBs ເທື່ອ. Kuv tsis muaj qhov qhia meej tias cov khoom mus qhov twg, tab sis kuv vam tias lawv yuav tuaj sai sai.

Raws li feem ntau nrog cov laug, siv qee yam fume extractor thiab ntxuav koj txhais tes tom qab kov cov dej ntws los yog cov laug. Thiab ceev faj nrog cov hlau phom. Nws yuav ua rau mob hnyav yog tias koj kov nws thaum nws nyob ib puag ncig 350 degrees Celsius. Txawm li cas los xij yog tias koj tau raug mob los ntawm cov hlau txuas, siv dej txias kom txias qhov chaw hlawv

Yog tias koj tsis tau siv cov khoom seem SMD, Kuv pom zoo kom saib qee qhov kev qhia los ntawm YouTube. Txoj cai yooj yim yog siv cov laug txuas rau ib lub ncoo, muab lub nti tso rau hauv thiab muab tus pas txhuam hniav. Tom qab ntawd tsuas yog ua rau sab nraud thiab yog tias muaj ntau tus pin ua rau lawv. Koj kuj tseem tuaj yeem siv cov dej ntws los pab nrog cov txheej txheem soldering.

Koj kuj tseem yuav xav tau cov khoom siv hluav taws xob txhawm rau txhawm rau txhawm rau txhawm rau lub microcontroller. Tsuas yog ntws cov pins nrog cov kab laug sab thiab siv cov laug txuas kom tau txais qhov tshaj tawm.

Nco ntsoov tias koj tau siv cov khoom seem kom raug. Feem ntau microcontrollers muaj tus lej los qhia thawj tus pin. Feem ntau PCBs kuj tseem muaj qhov taw qhia rau kev coj ua.

Rau SMD qhov koj feem ntau xav tau muab cov khoom me me ua ntej. Yog tias koj muab lub taub hau tso ua ntej, tej zaum koj yuav tsoo lawv nrog cov hlau txuas thiab tso qee cov pa phem. Kuv tuaj yeem pom zoo cov ntu no los ntawm kev paub. Koj tsis tas yuav ua raws cov npe no, tab sis nws tau ua nrog kev nkag siab:

  1. Capacitors
  2. LEDs thiab resistors rau lub leds (yeem) [ua ntej koj yuav tsum tau muab cov tshuaj tiv thaiv pov tseg)
  3. Tus tswj hwm thiab tswj hwm microcontroller (Nco ntsoov tias koj tso MCU txoj hauv kev! Lub teev yuav tsum tau ntsib ib yam nkaus li tus cim [dot dawb] ntawm PCB.)
  4. Crystal
  5. Nyees khawm
  6. Headers (Lub taub hau ntawm NRF24L01+ tsuas yog qhov uas koj tus ntiv tes yuav so, yog li kuv pom zoo siv qee cov xov hlau kom tso cai qee qhov hloov pauv rau nws.)
  7. Qee cov xov hlau rau roj teeb. Lub hwj chim tseem ceeb yog cim nrog VCC thiab GND. VCC yuav tsum nyob ib puag ncig 3, 6-6 volts. Qhov hluav taws xob ntawd ncaj qha mus rau lub microcontroller, yog li nco ntsoov tias koj tsis tso qhov hluav taws xob ntau dhau los ntawm nws.

Kauj ruam 3: Software

Image
Image

Kuv tau ua ob peb qhov kev ua si rau lub platform zoo li no ntau xyoo. Koj tuaj yeem pom cov lej qub-game ntau ntawm no (Nws yog lub npe hu ua mushroom_mcp_continued_v10_converted):

github.com/Teneppa/handheld_open_source

Lub tshuab qhib qhov chaw tuaj yeem nrhiav tau ntawm no (Kuv siv Visual Studio los cim nws yog li muaj ntau cov ntaub ntawv weird):

Pom zoo: