logo yophunzitsa

maphunziro a Smart Pinball

malangizo Smart Pinball-chinthu

Smart Pinball yolembedwa ndi Pblomme

Kuyambira ndili mwana, nthawi zonse ndimakonda kusewera ndi makina a pinball. Tinali ndi mwana wamng'ono pamene ndinali wamng'ono ndipo ndinakhala maola ambiri ndikusewera ndi chinthu chimenecho. Choncho aphunzitsi anga atatipatsa ntchito imeneyi yoti tizipanga 'chinthu cholodzedwa' n'kumatipatsa malangizo oti tisangalatse, nthawi yomweyo ndinaganiza za makina a pinila.
Chifukwa chake, m'maphunzirowa ndikuyenda nanu paulendo womwe ndidatenga kuti ndipange makina anga odabwitsa a pinball! Zothandizira:

Zigawo:
  1. Raspberry Pi (€ 39,99) x1
  2. Raspberry T-cobbler (€ 3,95) x1
  3. magetsi a usb-c 3,3V (€ 9,99) x1
  4. Mbale yamatabwa (€ 9,45) x1
  5. LDR (€ 3,93) x1
  6. Limbikitsani kutsutsa (€ 7,95) x1
  7. Sensa ya infrared (€ 2,09) x1
  8. Ndodo zamatabwa (€ 6,87) x1
  9. Bokosi lamagulu a rabara achikuda (€ 2,39) x1
  10. Chithunzi cha LCD (€ 8,86) x1
  11. Mwala wakuda (€ 0,20) x1
  12. Zomata za Neon (€ 9,99) x1
  13. Zingwe (€ 6,99) x1
  14. Servo Motor (€ 2,10) x1

Makina a Smart Pinball ndi makina a pinball a DIY omwe amatha kumangidwa pogwiritsa ntchito Raspberry Pi ndi zida zosiyanasiyana. Makina a pinball ali ndi masensa, injini ya servo, chophimba cha LCD, ndi database yosungirako.a. Izi ndi zida ndi zida zofunika kupanga makina a Smart Pinball:

Zothandizira
  • Raspberry Pi (39.99) x1
  • Rasipiberi T-cobbler (3.95) x1
  • Mphamvu ya USB-C 3.3V (9.99) x1
  • Mbale yamatabwa (9.45) x1
  • LDR (3.93) x1
  • Mphamvu yolimbana ndi mphamvu (7.95) x1
  • Sensa ya infrared (2.09) x1
  • Ndodo zamatabwa (6.87) x1
  • Bokosi lamagulu a rabala achikuda (2.39) x1
  • Chithunzi cha LCD (8.86) x1
  • Mwala wakuda (0.20) x1
  • Zomata za Neon (9.99) x1
  • Zingwe (6.99) x1
  • Servo Motor (2.10) x1
Zida
  • Mfuti ya glue
  • Jigsaw
  • Kubowola
  • Wood glue

Malangizo Ogwiritsa Ntchito

  1. Kugwirizana Zonse: Tsatirani malangizo omwe ali mu PDF files kulumikiza masensa onse, servo motor, ndi LCD-screen pogwiritsa ntchito zingwe. Onetsetsani kuti zigawo zonse zikugwirizana bwino ndi motetezeka.
  2. Kupanga Database: Ikani MariaDB pa Raspberry Pi yanu ndikulumikiza MySQL Workbench kwa iyo. Kenako, yesani SQL file amaperekedwa kuti apange database yosungiramo data yonse yamasewera. Dongosololi lili ndi matebulo awiri ofunikira, imodzi ya osewera ndi ina ya data ya sensor.
  3. Kupanga masensa ndi tsamba: Tsatirani malangizo omwe aperekedwa mu PDF kuti mukhazikitse masensa ndi malo a makina a pinball.
  4. Kupanga Masewera Athupi: Bokosi: Tsatirani malangizo operekedwa mu PDF kuti mupange bokosi lamatabwa la makina a pinball.
  5. Kusakaniza Zonse: Phatikizani zigawo zonse za makina a pinball monga mwa malangizo operekedwa mu PDF.

Gawo 1: Gwirizanitsani Chilichonse
Mu pdf's pansipa mutha kupeza zomwe ndi momwe mungalumikizire masensa onse, injini ya servo, ndi chophimba cha LCD. Zina mwazigawo zimayikidwa pa bolodi la mkate pa pdf, koma muyenera kulumikiza chilichonse ndi zingwe. Chofunika ndi chiyani kuti pambuyo pake muyike zonse m'bokosi?

Tsitsani: https://www.instructables.com/ORIG/FHF/1MQM/L4IGPP2Z/FHF1MQML4IGPP2Z.pdf

Tsitsani: https://www.instructables.com/ORIG/FFH/ZZ83/L4IGPP38/FFHZZ83L4IGPP38.pdf

Gawo 2: Kukhazikitsa Database
Pantchitoyi, mukufunika nkhokwe kuti musunge zonse zomwe mungalandire kuchokera kumasewera. Pachifukwa ichi, ndinapanga database mu MySQL workbench. Onetsetsani kuti mwayika MariaDB pa rasipiberi-pi yanu ndikulumikiza benchi ya MySQL ku pi yanu. Kumeneko mukhoza kuthamanga sqlle mungapeze pansi apa kuti mupeze database. matebulo ofunikira mu database ndi a anthu omwe akusewera ndi sensa data yosungidwa patebulo 'spel'. Izi zimapulumutsa pamene masewerawa ayamba ndi kutha, kuchuluka kwa nthawi yomwe mumagunda hotzone ndi nthawi yomwe mudasewera. Zonsezi zimagwiritsidwa ntchito kupeza bolodi lamasewera 10 omwe adaseweredwa.malangizo Smart Pinball-mkuyu-2

Khwerero 3: Kukhazikitsa Zomverera ndi Tsamba
Mu Laibulale ya Github mutha kupeza ma code onse omwe mukufuna kuti masensa ndi magalimoto azigwira ntchito. Mukhozanso kupanga ma code onse kuti mupange webntchito tsamba ndi kucheza ndi masewera.

Zambiri za code:
Masewerawa amayamba pomwe mpira ukuzungulira pafupi ndi ldr, kotero kumakhala mdima. The ldr adazindikira izi ndikuyamba masewerawo. Mutha kusintha kukula kwa ldr kuti ikhale yowunikira bwino. Ndinayiyika pa 950, chifukwa izo zinagwira ntchito bwino pamene ndinazimanga, koma zingakhale zosiyana kwa inu. Mumapeza mfundo pamphindi iliyonse yomwe mumasunga mpirawo 'wamoyo'. Mukagunda sensor yokakamiza, aka, malo otentha, mumapeza mfundo zowonjezera ndipo servomotor imasiya kutembenuka pang'ono. Mukaluza, mpirawo umayenda pafupi ndi IR-sensor ndipo ndi momwe masewerawa amadziwira mukataya.

Khwerero 4: Kupanga Masewera Ofunika Kwambiri: Bokosi
Gawo loyamba lopanga masewerawa, ndikupanga bokosi lokha. Ndidatengera kapangidwe kanga kakanema aka. Ndidangogwiritsa ntchito nkhuni m'malo mwa makatoni ndikupanga matherowo kukhala okwera pang'ono, kotero sichinathe LCD-screen. Ndinali ndi mwayi, chifukwa ndinali ndi mnzanga wokhala ndi makina odulira matabwa, koma ndizotheka kudula mawonekedwewo pogwiritsa ntchito jigsaw.
Yambani ndi kudula mbali, kumbuyo, kutsogolo ndi mbale yaikulu. Musanalumikizane chilichonse, pangani dzenje kumbuyo kwa chophimba cha LCD. Tsopano gwirizanitsani chirichonse ndi misomali kapena matabwa guluu. Onetsetsani kuti muli ndi m'mphepete mwa centimita imodzi m'mbali. Pambuyo pake, ndiye kuti ndibowola mabowo! Mufunika mabowo angapo owoneka ngati makona atatu kuti muyikemo timitengo ndi mabowo a mota ndi masensa. Pa ndodozo, ikani mphira 3 iliyonse, kuti mpirawo udumphe kapena kudumpha. Onetsetsani kuti muli ndi mabowo akuluakulu kumapeto kwa bokosi kuti muyikemo zingwe zamagetsi ndi zingwe zina. Gawo lomaliza komanso lovuta kwambiri kupanga, ndi njira yopangira ma ipper. Mwachidziwitso, sizovuta. Ndodo zomwe mumasindikiza zimatembenuza chipika ndipo gulu la rabala limakankhira chipikacho kumbuyo. Pa chipika chimenecho pali ndodo yokhala ndi chapamwamba kumapeto kwake. Onetsetsani kuti timitengo kumbalizo tamatira bwino pa midadada, kuti zisagwe o.malangizo Smart Pinball-mkuyu-3 malangizo Smart Pinball-mkuyu-4

Khwerero 5: Kuphatikiza Zonse
Bokosi likatha, tikhoza kuyamba kugwirizanitsa zonse. Mutha kulumikiza rasipiberi-pi pakati ndi zomangira zazing'ono. Ingoonetsetsani kuti musawaike mozama kwambiri, apo ayi adzatuluka m'mbale pamwamba. Mutha kungochotsa zotchingira zotchingira za mkate ndikuziyika m'bokosi. Ikani ldr kumbali yakumanzere kwa bokosilo, mutangotha ​​njira yoyambira. Mutha kuyika sensor yokakamiza kulikonse komwe mungafune. Ndinayiyika kutsogolo kwa makona atatu. Mutha kupanga dzenje lina kutsogolo kuti mulowetse sensor ya IR. Iyenera kukhala m'mbali kuti muwone mpira. Bowo lomwe mudapanga pazenera la lcd liyenera kukhala lokwanira bwino kuti mungokankhira mkati. Kwa injini, mutha kumamatira kandodo kakang'ono, pogwiritsa ntchito mfuti ya glue. Ikani ndodo m’dzenje limene munaipangiramo ndi kumata kamtengo kakang’ono ku kamtengoko. Zonse zikachitika, mutha kuyikapo pamwamba pomatira zomata zabwino!malangizo Smart Pinball-mkuyu-5 malangizo Smart Pinball-mkuyu-6 malangizo Smart Pinball-mkuyu-7

Zolemba / Zothandizira

maphunziro a Smart Pinball [pdf] Malangizo
Smart Pinball

Maumboni

Siyani ndemanga

Imelo yanu sisindikizidwa. Minda yofunikira yalembedwa *