โปรเจกต์ ระบบ Bike trainer logger
ดึงข้อมูลจาก speed และ cadence sensor ใน bike trainer แสดง info บน LCD screen และ log ใน SD Card
ดึงข้อมูลจาก speed และ cadence sensor ใน bike trainer แสดง info บน LCD screen และ log ใน SD Card
This is a home bike trainer monitor. It shows training data in an LCD display and also prints it in the serial plotter. It will also save a log file in a micro SD card.
Data are retrieved from a speed sensor and a cadence sensor (they are both magnetic switches).
The speed sensor triggers an interrupt. Pulses from these sensors are processed to be converted in number of pedals, and turns. Then the cadence, speed, distance, and average values are calculated and displayed.
The project has now been updated to allow use of Arduino (tested with Nano and Mega) and also ESP8266 (tested with Wemos D1 mini). In attached file Trainer5.zip you can find the latest revision with tasks split in several tabs for easier follow up.
Using Wemos controller allows connecting to a web server to retrieve current time. This current time is stored in the log files.
Response has proven to be more stable using ESP8266 (maybe due to the fastest clock?). Arduino Nano shows some temporary errors in the LCD display. I am guessing these errors might come from interference of the interrupts during the process of LCD refresh. Using the Wemos D1 mini has been more stable, and no errors have been found so far.
สนับสนุนเพื่อรับ Source Code หรือแอปพลิเคชันสำหรับโปรเจกต์นี้