Commit Graph

4 Commits

Author SHA1 Message Date
Surya Balaji
8435f37f84 Refactor servo control into modular architecture with documentation
Code Structure:
- servo.h/c: Low-level servo control (init, PWM, position)
- gestures.h/c: High-level finger movements and hand gestures
- main.c: Clean application entry point

New Features:
- servo_degrees_to_duty(): Convert angle (0-180) to duty cycle
- servo_set_finger_degrees(): Set finger position using degrees
- finger_t enum for type-safe finger identification

Documentation:
- Added Doxygen-style comments (@file, @brief, @param, etc.)
- Professional header blocks for all modules
- Inline comments explaining hardware configuration

API Functions:
- Individual finger control: flex_thumb(), unflex_index(), etc.
- Composite gestures: gesture_make_fist(), gesture_open_hand()
- Demo sequences: demo_individual_fingers(), demo_close_open()
2026-01-18 11:38:09 -06:00
Surya Balaji
7af06f115a Restructure repo: add Python EMG scripts and move ESP32 code to EMG_Arm/
- Add emg_gui.py, learning_data_collection.py, learning_emg_filtering.py
- Add collected EMG data and trained models
- Move ESP32/PlatformIO code into EMG_Arm/ subdirectory
- Add servo control functions for robotic hand (flex/unflex fingers)
- Update .gitignore for Python and PlatformIO
- Exclude large asset files from repo (>100MB)
2026-01-17 23:39:40 -06:00
bcfcd8f8c6 Servo trial 2026-01-14 22:41:37 -06:00
95ace3cd02 first commit 2026-01-14 20:38:59 -06:00