Cov txheej txheem:

Nyhav Sensor Coaster: 8 Kauj Ruam (nrog Duab)
Nyhav Sensor Coaster: 8 Kauj Ruam (nrog Duab)

Video: Nyhav Sensor Coaster: 8 Kauj Ruam (nrog Duab)

Video: Nyhav Sensor Coaster: 8 Kauj Ruam (nrog Duab)
Video: [SW] КиЗка ломает голову в Cradle. Начало 2024, Hlis ntuj nqeg
Anonim
Qhov hnyav Sensor Coaster
Qhov hnyav Sensor Coaster

Cov Lus Qhia no yuav tso cai rau koj los tsim lub khob dej qab zib nrog lub ntsuas qhov hnyav hauv nws. Lub ntsuas yuav txiav txim siab cov kua hauv lub khob tso rau ntawm lub coaster thiab xa cov ntaub ntawv no los ntawm WiFi mus rau lub vev xaib. Ib qho ntxiv, lub coaster muaj teeb tsa teeb tsa LED uas yuav hloov xim nyob ntawm seb cov kua ntau npaum li cas.

Qhov kev txwv tam sim no hauv kev tsim qauv no yog tias nws kwv yees qhov hnyav ntawm iav thiab cov kua ua tas li. Kev hloov kho ntxiv yuav tsum tau ua txhawm rau daws cov kev txwv no.

Cov chaw cia khoom nrog txhua cov cai thiab cov ntaub ntawv xav tau los ua kom tiav tuaj yeem nrhiav tau ntawm:

github.com/JoseReyesRIT/HCIN-WeightSensing…

Nco tseg: Cov Lus Qhia no tau tsim los ua haujlwm rau chav kawm. Cov txiaj ntsig yuav txawv.

Khoom siv

  • Particle Photon microcontroller (Particle Maker Kit)
  • 3D-luam plhaub
  • Cov qhob cij
  • 5kg Load cell + HX711 ADC Converter
  • Particle PWRSHLD Photon Power Shield
  • Adafruit 24 RGB LED Neopixel Nplhaib
  • YDL 3.7V 250mAh 502030 Lipo roj teeb Rechargeable Lithium Polymer ion Roj Teeb Pob nrog JST Txuas

Kauj Ruam 1: Xyuas kom tseeb tias Particle Photon tau teeb tsa kom raug

Ua ntej pib sib sau ua kom pom qhov hnyav coaster, koj yuav tsum paub tseeb tias Particle Photon microcontroller tau teeb tsa kom raug thiab ua haujlwm hauv Particle lub vev xaib, suav nrog kev tsim tus as khauj uas tso cai rau koj:

  • Thov Particle Photon raws li koj tus kheej.
  • Sau cov cai siv Web IDE hauv lub vev xaib
  • Nyem qhov chaws rau hauv koj lub cuab yeej.

Cov lus qhia tshwj xeeb ntawm yuav teeb tsa li cas kom zoo thiab ua kom koj cov Particle Photon ua haujlwm tau dhau qhov uas tau qhia no.

Kauj ruam 2: Tsim Circuit Court

Tsim Circuit Court
Tsim Circuit Court

Tsim lub Circuit Court hauv koj daim ntawv qhia zaub mov. Qhov no yuav tso cai rau koj kom ntseeg tau tias txhua lub Cheebtsam ntawm cov coaster tau ua haujlwm raws li tau npaj tseg ua ntej yuav cog lus rau lawv. Siv cov duab kos duab saum toj no raws li kev siv, ua raws cov lus qhia no:

  1. Sib sau ua ke Photon thiab Photon Shield Shield ua ke nrog Photon's USB qhov taw tes taw qhia nyob rau hauv kev coj rov qab ntawm LiPo roj teeb qhov, thiab tso lawv rau ntawm lub khob cij.
  2. Txuas lub 3.7v LiPo roj teeb rau Lub Hwj Huam Shield. Lub roj teeb tuaj yeem raug them los ntawm USB chaw nres nkoj ntawm lub zog thaiv. Lub Photon yuav ua haujlwm thaum them nyiaj.
  3. Txuas lub RGB LED Neopixel Nplhaib rau Photon raws li hauv qab no: (LED → Photon pins)

    • Cov ntaub ntawv tawm tswv yim: D2
    • VDD → VIN
    • GND thiab GND
  4. Txuas lub Load Cell thiab HX711 ADC Converter mus rau Photon raws li hauv qab no: (ADC Converter → Photon pins)

    • DT → UA 1
    • NCO → A0
    • VCC → 3V3
    • GND thiab GND

Kauj Ruam 3: Xeem Txoj Cai

Image
Image

Nkag mus rau Web IDE hauv Particle lub vev xaib thiab tsim cov app tshiab. Luam cov cai hauv no mus rau daim ntawv thov tseem ceeb tshiab app. Nyem qhov chaws rau hauv koj li Photon Particle.

Tom qab cov cai tau flashed, RGB LED Nplhaib yuav tsum qhib. Thaum siab tau thov rau Load Cell, LED yuav tsum hloov xim sib xws.

Kauj Ruam 4: Luam Ntawv 3D

3D Luam Ntawv
3D Luam Ntawv
3D Luam Ntawv
3D Luam Ntawv

Siv cov qauv nyob ntawm no, luam tawm lub plhaub sab nrauv uas yuav nyob hauv koj lub tsev thiab ua haujlwm coaster.

Kauj Ruam 5: Laser Txiav Yas Npog

Laser Txiav Yas Npog
Laser Txiav Yas Npog

Laser txiav lub voj voog nrog txoj kab uas hla ntawm 97mm siv cov khoom ib nrab pob tshab. Qhov no yuav yog lub npog rau coaster. Nws ua haujlwm ob lub hom phiaj: nws tiv thaiv cov ntaub ntawv los ntawm cov kua tsim los ntawm iav los ntawm kev sib xyaw ua ke thiab nws pab txo qhov ci ntawm RGB LED teeb

Kauj Ruam 6: Solder Circuit thiab Sib Sau Ua Ke

Solder Circuit thiab Sib Sau Ua Ke
Solder Circuit thiab Sib Sau Ua Ke
Solder Circuit thiab Sib Sau Ua Ke
Solder Circuit thiab Sib Sau Ua Ke
Solder Circuit thiab Sib Sau Ua Ke
Solder Circuit thiab Sib Sau Ua Ke

Ua raws li cov lus qhia hauv qab no thiab siv cov duab saum toj no raws li siv, muab cov kab hluav taws xob tso ua ke thiab muab tso rau sab hauv daim ntawv luam tawm 3D.

  1. Txiav lub taub hau nyob sab nraum qab ntawm Lub Hwj Chim Hwj Huam (Cheeb Tsam 1).
  2. Solder RGB LED Neopixel Ring raws li hauv qab no:

    • VDD → 2
    • NCO → 3
    • Cov ntaub ntawv tawm tswv yim → 4
  3. Solder HX711 ADC raws li hauv qab no:

    • NCO → 5
    • NCV → 6
    • TSI → 7
    • NCO → 8
  4. Sib sau ua ke ntawm Circuit hauv 3D luam tawm rooj raws li pom hauv cov duab saum toj no. Koj tuaj yeem siv rab phom nplaum los tuav lub roj teeb thiab lub Circuit Court.
  5. Sib dhos lub hau sab saum toj thiab txuas.

Kauj Ruam 7: Host Lub Vev Xaib

Siv cov cai cov ntaub ntawv nyob hauv no, tuav lub vev xaib uas yuav tso cai rau koj taug qab cov xwm txheej tam sim no ntawm lub coaster Lub vev xaib pom cov dej ntau hauv cov iav uas zaum ntawm lub coaster. Nyob ntawm qib cov kua hauv lub khob, qhov pom kev simulates lub orb tau ntim thiab hloov xim raws li hauv qab no:

  • Liab: Lub iav yuav luag tas.
  • Daj: Lub iav yog kwv yees li ib nrab ntawm tag nrho.
  • Ntsuab: Lub iav yuav luag tag nrho.

Kauj ruam 8: Ua tiav

Koj lub coaster tau npaj los siv.

Pom zoo: