DIY QuickShifter Full Test on Bike
Quick Shifter Installation Update
Overview of the Quick Shifter Functionality
- The quick shifter has been successfully installed on the motorcycle and is fully operational. A demonstration will follow, along with a walkthrough of the code.
- The installation includes shrink tubing to prevent contact with other components. The gear detection unit is also highlighted during the demo.
Demonstration of Gear Shifting
- During the demo, the motorcycle's RPM and gear status are displayed alongside voltage readings for each gear, showcasing how the system operates in real-time.
- The noise from the motorcycle makes it difficult to hear explanations during the demo; however, visual indicators on both phone and bike panel provide clarity.
Code Walkthrough
Code Structure and Libraries Used
- The code runs on an ATmega328 microcontroller at 20 MHz, utilizing specific libraries for functionality including Bluetooth communication.
- New variables have been added since the last update to track lower and upper shifting parameters crucial for effective gear changes.
Ignition Control Mechanism
- The ignition control involves managing spark plug voltage; when shifting occurs, ignition is temporarily cut to facilitate smoother transitions between gears.
- Power restoration after shifting is gradual to avoid sudden power surges that could lead to loss of control or accidents while riding.
Detailed Parameter Management
Timing and Delay Adjustments
- Parameters such as delay time for shifts (60ms - 70ms depending on gear), power-up percentage adjustments, and smoothness of transitions are critical for performance.
- Variables dictate how quickly power returns post-shift; these can be adjusted based on rider preference or conditions (street vs. racetrack).
Safety Measures in Gear Shifting
- Careful management of timing prevents damage to gears by ensuring they engage fully before applying full throttle again after a shift.
Spark Plug Timing Functions
RPM Calculation Logic
- Functions detect changes in spark plug state (high/low), which helps calculate RPM based on elapsed time between cycles using precise timing mechanisms.
Coil Detection Process
- Two functions manage coil detection: one tracks when coils are grounded during shifts while another calculates dwell time necessary for effective ignition.
Gear Detection System
Voltage-Based Gear Identification
- An analog-to-digital conversion process determines current gear based on voltage levels; thresholds are set for neutral through sixth gear identification.
Data Handling
- Functions handle reading/writing data related to RPM calculations efficiently without risking crashes due to division errors or overflow issues.
Default Settings Configuration
Initial Setup Values
- Default settings include high/low trigger values essential for initial operation; these can be modified later via an application interface connected through Bluetooth.
Shift Function Implementation
Managing Shift Operations
- A function checks if a shift is possible (not in neutral); it sends messages regarding shift status back to connected devices like smartphones during operation.
Future Developments
Upcoming Features
- Plans include creating a driver that allows automatic downshifting by controlling an actuator linked with pressure sensors on the lever mechanism.
Conclusion
The next steps involve refining existing functionalities and enhancing user interaction through mobile applications while ensuring safety measures remain paramount throughout development.
Turn any video into a summary like this
YouTube links, meetings, lectures. With transcripts, search, and chat.