查看“Exercise Recorder”的源代码
←
Exercise Recorder
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{Language| Excercise Recorder}} {| style="width: 800px;" |- | ==Objective== DIY an electronic device to remind movement time and count all kinds of exercises. [[File:exercise recorder.jpg|600px|center|xyz]] ==Schematic== Microduino-motion can detect motion change. The buzzer will make sound along with movement counting. Timing each exercise by RTC module, it can record four times of exercise. The current date and time will be displayed on OLED, which can be adjusted via Bluetooth on your phone. ==Equipment== {|class="wikitable" |- |Module||Number||Function |- |[[Microduino-CoreUSB]]||1||Core board |- |[[Microduino-Sensorhub]]||1||Sensor pin board |- |[[Microduino-Motion]]||1||Altitude detection modules |- |[[Microduino-BT]]||1||Bluetooth module |- |[[Microduino-OLED]]||1||Display module |- |[[Microduino-RTC]]||1||Clock module |- | [[Microduino-BM]]||1||Battery management |- | [[Microduino-Duo-V]]||1||Extensive board |- | [[Microduino-Buzzer]]||1||Buzzer |} *Other Equipment : **One battery **Lego ==Hardware Buildup== *Setup 1:Connect CoreUSB to PC, open example program, select the right board and download program. [https://github.com/Microduino/Microduino_Tutorials/blob/master/MCookie_Tutorial/sport_10dof/sport_10dof.ino sport_motion] *Setup2:Stack all modules. Connect OLED and Sensorhub to Duo-V. [[File: Exercise_record_setup_1.jpg|600px|center|thumb]] *Setup3:Connect two Buzzer modules to D6 pin of Sensorhub. [[file:Microduino-sensorhub_rule.JPG|thumb|800px|center]] [[file: Exercise_record_6.JPG|thumb|800px|center]] *Setup4:Connect battery to BM. [[file: music_boxz _bm.JPG|thumb|800px|center]] ==Software Debugging== *Function Description **“bluetooth()” Receive Bluetooth data on the phone for time adjustment. **“time_long()” Calculate exercise time. **“large_time()” Exercise time is sorted by exercise regimen. **“lagre()”Exercise regimen is sorted from large to small. **“draw()” OLED displays function values. **“setRtcTime” Clock setting function. *Bluetooth serial port usage <source lang="cpp"> #include <SoftwareSerial.h> SoftwareSerial mySerial(4, 5); // RX, TX //#define my_Serial mySerial #define my_Serial Serial1 </source> *Movement counting <source lang="cpp"> if (gy > 80 && ax > -50) sport_en = true; else if (gy < -80 && ax < -50) sport_en = false; if (sport_change != sport_en) { if (sport_en) { num += 1; tone(buzzer_pin, 300); Serial.println(num); } else noTone(buzzer_pin); sport_change = sport_en; } </source> ==Result== You can count the sit-ups, dumbbell and other exercises. ==Video== |}
该页面使用的模板:
模板:Language
(
查看源代码
)
模板:Nmbox
(
查看源代码
)
返回至
Exercise Recorder
。
导航菜单
个人工具
创建账户
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
Welcome
首页
创客大赛
大赛详情
3D打印
安装月球车
图形化编程
操控月球车
升级月球车
编程工具下载
软件下载
Arduino
Processing
Mixly
Scratch
模块套件
Microduino 102
mCookie 102
mCookie 202
mCookie 302
IBC
其他
应用套件
四轴飞行器
平衡车
小车CUBE
音乐播放器
刷卡音乐播放器
wifi气象站
彩虹音乐触摸灯
分贝检测仪
迎门汇报
LED点阵时钟
LED点阵屏幕
硬件
mCookie
Sensor
Microduino
MicroWrt
MicroNux
MicroRobot-Core
MicroRobot-CoreESP
ideaBoard
ideaBox
MicroMV
MicroAI
帮助
常见问题
帮助
工具
链入页面
相关更改
特殊页面
页面信息