Cov txheej txheem:

AccuRep: Push-up Counting Device: 8 Kauj Ruam (nrog Duab)
AccuRep: Push-up Counting Device: 8 Kauj Ruam (nrog Duab)

Video: AccuRep: Push-up Counting Device: 8 Kauj Ruam (nrog Duab)

Video: AccuRep: Push-up Counting Device: 8 Kauj Ruam (nrog Duab)
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Kaum ib hlis
Anonim
AccuRep: Push-up Counting Device
AccuRep: Push-up Counting Device
AccuRep: Push-up Counting Device
AccuRep: Push-up Counting Device
AccuRep: Push-up Counting Device
AccuRep: Push-up Counting Device

Fusion 360 Cov Haujlwm »

Kuv paub ntau tus neeg uas tau pib ua haujlwm cais tawm no. Qhov teeb meem nrog kev tawm dag zog hauv tsev tsis muaj cov cuab yeej siv ua si. Kuv cov kev tawm dag zog feem ntau muaj kev thawb. Txhawm rau thawb kuv tus kheej, Kuv mloog cov nkauj pob zeb thaum kuv ua haujlwm. Qhov teeb meem yog suav suav. Feem ntau, kuv tsis nco qab kuv tus reps nyob nruab nrab, vim yog lub suab paj nruag. Nov yog thaum kuv tau txais lub tswv yim no. Nov yog AccuRep, tus neeg sawv cev sawv cev raug.

Cov cuab yeej yooj yim no tuaj yeem suav koj li kev dhia, dhia hlua, zaum zaum thiab ntau dua. Muaj plaub LEDs. Txhua tus tau teeb kom pom kev tom qab koj ua tiav cov lej tshwj xeeb. Koj tsuas yog yuav tsum muaj tswv yim thiab nrhiav txoj hauv kev los siv qhov no los suav koj cov reps hauv ib qho kev tawm dag zog. Txog kev thawb, khaws qhov no rau hauv pem teb sab xis yog koj lub puab tsaig los thaum koj thawb. Txog kev dhia hlua, taw tes rau hauv pem teb sab xis ua ntej txoj hlua kov hauv av (ua ntej koj ob txhais ceg). Rau squats.. zoo.. koj tau txais.

Vim li cas kuv thiaj hais tias nws yog qhov tseeb? Vim tias koj tuaj yeem kho nws kom haum rau koj qhov rep kom nws thiaj li tsis ploj lossis sau npe tsis raug. Thiab qhov no yog qhov yooj yim heev los ua thiab code. Txhua yam koj xav tau yog microcontroller (zoo li Arduino nano), LEDs thiab IR qhov sib thooj sensor.

Khoom siv

NodeMcu/Arduino nano: Amazon

IR sib thooj sensor: Amazon

LEDs

Poj niam - Poj niam jumper xov hlau (xaiv tau) Amazon

5v fais fab mov/roj teeb rov tau: Amazon

Kauj Ruam 1: Ua Daim Ntawv Thov

Ua daim ntawv kaw
Ua daim ntawv kaw
Ua daim ntawv kaw
Ua daim ntawv kaw
Ua daim ntawv kaw
Ua daim ntawv kaw

Kuv tsim lub thawv rau hauv Autodesk Fusion 360. Nws yog overkill, Kuv tsuas tuaj yeem siv tinkercad txij li nws yog qhov yooj yim tsim. Kuv tau kawm Fusion 360, yog li kuv xav tias qhov no yuav yog kev coj ua. Lub hauv paus yog lub tog raj kheej yooj yim 80mm txoj kab uas hla thiab 20mm siab. Lub qhov plaub fab nyob rau sab yog kom dhau lub zog xa mus rau lub microcontroller. Koj tuaj yeem siv lub roj teeb rov tau los ua kom nws txav tau yooj yim dua. Tab sis kom ua tej yam yooj yim, Kuv yuav siv lub zog sab nraud.

Kauj Ruam 2: Sab Phaj Sab

Sab saum toj phaj
Sab saum toj phaj
Sab saum toj phaj
Sab saum toj phaj

Sab saum toj tsuas yog lub disc nrog plaub 1 hli qhov rau LEDs thiab txiav tawm rau qhov sib thooj sensor. Qhov no kuj tau tsim hauv Fusion 360. Koj tuaj yeem pom cov ntawv 3D.

Kauj Ruam 3: Kev Sib Txuas Hauv Circuit

Kev Sib Txuas Circuit
Kev Sib Txuas Circuit
Kev Sib Txuas Circuit
Kev Sib Txuas Circuit
Kev Sib Txuas Circuit
Kev Sib Txuas Circuit

Thaum Arduino nano yuav yog qhov kev xaiv zoo tshaj plaws vim nws qhov me me, Kuv tsis muaj ib qho yooj yim. Yog li kuv yuav siv Nodemcu dua. Nws tsis muaj teeb meem vim tias txoj cai tseem zoo ib yam hauv ob qho tib si.

Txuas qhov sib thooj sensor's D0 (digital output) tus pin rau gpio pin 5 ntawm koj lub microcontroller. Cov LEDs yuav tsum tau txuas nrog raws li hauv qab no:

LED1 mus rau tus pin 0

LED2 mus rau tus pin 2

LED3 mus rau tus pin 4

LED4 mus rau tus pin 12

Kauj Ruam 4: Kev teeb tsa LED

LED teeb tsa
LED teeb tsa

Nco ntsoov tias LED1 tau teeb rau tom qab koj ua tiav 10 reps. LED2 teeb tom qab 25 reps, LED3 teeb tom qab 50 thiab LED4 ntawm 100. Koj tuaj yeem hloov cov txiaj ntsig no hauv cov cai uas kuv yuav piav qhia hauv theem tom ntej.

Kauj ruam 5: Code thiab Tweaking

Code thiab kev hloov pauv
Code thiab kev hloov pauv
Code thiab kev hloov pauv
Code thiab kev hloov pauv

Cov cai yog yooj yim zoo nkauj. Muaj yog tias muaj xwm txheej rau txhua qhov LED raws li tus naj npawb ntawm cov neeg sawv cev koj yuav tsum ua tiav kom pom lawv. Koj tuaj yeem hloov qhov no raws li koj nyiam.

Ib txoj kab tseem ceeb yog thawj zaug yog thaiv. Koj tuaj yeem pom muaj qhov ncua sijhawm 500ms hauv nws. Qhov no yog qhov ncua sijhawm uas yog raws li ntev npaum li cas koj siv sijhawm nyob hauv txoj haujlwm siab tshaj plaws ntawm txhua tus neeg sawv cev. Piv txwv li, thaum thawb, thaum koj nyob hauv txoj haujlwm qis tshaj, koj yuav tsum muaj lub tswv yim kwv yees ntev npaum li cas koj siv los thawb koj tus kheej rov qab. Hauv lwm lo lus, koj siv sijhawm ntev npaum li cas kov koj lub hauv siab mus rau hauv pem teb. Rau kuv nws nyob ib puag ncig 500 ms uas kuv tau teeb tsa qeeb. Yog tias koj cov reps qeeb dua, koj yuav tsum nce nws mus txog 1s (1000ms).

Koj tsis tas yuav yog qhov tseeb tshaj plaws txog nws. Kuv yuav qhia koj kom saib lub ntsej muag ntawm koj tus kheej thiab ua ob peb qhov kev thawb kom pom. Rau dhia hlua, qhov kev ncua no yuav qis dua. Thaum koj tau ua tiav tweaking cov cai, koj tuaj yeem xa nws mus rau koj lub rooj tsavxwm.

Kauj Ruam 6: Sib dhos cov LEDs

Sib dhos cov LEDs
Sib dhos cov LEDs
Sib dhos cov LEDs
Sib dhos cov LEDs
Sib dhos cov LEDs
Sib dhos cov LEDs

Khaws cov LEDs rau txhua qhov ntawm lub phaj saum toj. Koj tuaj yeem siv super kua nplaum lossis kua nplaum kub. Txhawm rau kom haum txhua yam hauv lub thawv me me, Kuv tso Nodemcu upside down kom ntseeg tau tias lub zog txuas txuas hla lub qhov ua rau nws ntawm phab ntsa.

Kauj Ruam 7: Sib Sau Lwm Cov Khoom Siv Hluav Taws Xob

Sib sau Lwm Cov Khoom Siv Hluav Taws Xob
Sib sau Lwm Cov Khoom Siv Hluav Taws Xob
Sib sau Lwm Cov Khoom Siv Hluav Taws Xob
Sib sau Lwm Cov Khoom Siv Hluav Taws Xob

Tom qab ntawd kuv nyam qhov sib thooj sensor nyob rau sab saum toj ntawm nws nrog ob daim kab xev thiab khoov lub qhov muag teeb qhov muag. Koj tuaj yeem npog qhov taw qhia LEDs ntawm qhov sib thooj sensor nrog cov kab xev dub kom tsis muaj lub teeb pom kev dua li peb 4 LEDs.

Tom qab ntawd kuv daig daim phaj saum toj mus rau hauv paus kom ntseeg tau tias lub qhov muag teeb pom kev zoo dhau los ntawm kev txiav tawm ua rau lawv.

Kauj Ruam 8: Npaj Ua Haujlwm

Npaj Ua Haujlwm-tawm
Npaj Ua Haujlwm-tawm
Npaj Ua Haujlwm-tawm
Npaj Ua Haujlwm-tawm

Yog li tam sim no txhua yam uas tshuav yog kom sov thiab ua haujlwm tawm. Cov cuab yeej no tsis tsuas suav koj cov reps tab sis hauv txoj hauv kev, nws txhawb koj kom ua ntxiv. Thaum koj nce qib, koj tuaj yeem nce qhov kev txiav tawm tus lej suav rau txhua tus LED. Koj tuaj yeem ntxiv lub vijtsam LCD hloov ntawm LEDs, tab sis nws yuav ua rau qee yam nyuaj.

Tswv yim: Yog tias koj siv qhov no los suav koj cov squats, ceev faj tsis txhob zaum ntawm nws thaum koj nkees: p

Pom zoo: