This is a repo of the final project of the embedded system course. (2021 spring)
- We are in the baseball team of NYCU
- Batting is a important part in baseball
- We want to track the path of bat while swinging
- Improve training efficiency
- Help player to adjust batting pose
- Use IMU (GY-801) to track the path
- Plot and visualize the path
- Show the result via Line Notify
- Raspberry Pi: MQTT Broker and client, data processing and visualization, send result via Line
- ESP32-S: MQTT Client, collect raw data from the IMU
- GY-801: IMU
- Battery (18650)
- Python: Used on Raspberry Pi
- Micropython: Used on ESP32-S
- MQTT (Message Queuing Telemetry Transport)
- Line Notify API: Used to send message
- Connect your GY801 to a ESP32, make sure the ESP32 and Raspberry Pi are in the same network.
- Run
main_esp32.py
on ESP32. - Run
mqtt_subscribe.py
on Pi to make sure if MQTT is working. - Run
main_pi.py
on Pi to start measuring!
You may need to adjust the setting in line_notifier.py
to send the message correctly
- Connect GY801 directly to Pi
- Run
main_without_esp32.py
on Pi to start measuring!
Checkout main_without_esp32.py
Checkout imu.py