Giter Site home page Giter Site logo

charliebruce / ebike_wireless_remote Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opensourceebike/ebike_wireless_remote

0.0 1.0 0.0 51.2 MB

ANT+ remote button

Makefile 0.12% C 95.31% C++ 2.93% Assembly 1.60% CSS 0.03% HTML 0.01% Batchfile 0.01% Shell 0.01%

ebike_wireless_remote's Introduction

EBike Handlebar Remote Controller

This project implements a wireless remote button for EBikes and/or GPS units like the Garmin Edge. You can buy on the market a similar product to this remote - see the Garmin EBike Remote for about 80€. This wireless remote button implements two ANT+ profiles:

  1. the ANT+ CTRL profile allowing it to control the page view on compatible bike computers - see the user manual of your device to see if it supports this profile. The remote will pair with any device that supports this profile.
  2. The ANT+ LEV (Light Electric Vehicle) profile allowing the remote to control various features of the eBike including changing the assist level. The remote will work with any eBike that support the ANT+ LEV profile. Of course, the upcoming TSDZ2 wireless eBike controller will support this profile. see: wireless EBike TSDZ2.

For questions, please post on this forum message.

See controlling a Garmin 1030 bike computer for assist levels and page control using a simulated ANT+ LEV Ebike in this video:

video

See changing the ANT+ LEV Device Number (to connect to only one specific eBike) using the Nordic nRF Connect app in this video:

video

nRFConnect is available on the play store here: (https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp&hl=en_CA&gl=US)

Current state

2020.11.13: The remote is using the inexpensive VLCD5 handle bar remote keypad for control.

  • The firmware works well as an Edge Remote to change page views on the bike computer (tested on Garmin Edge devices).

  • The firmware works well as a LEV remote control to change assist levels on an e-bike.

  • The remote will go into ultra low power mode if it fails to connect to a device within ~30 seconds, or if no buttons are pressed for 1 hour. The system wakes up from ultra low power when the user presses any button.

  • Firmware can be updated wirelessly using Bluetooth on a smatphone or PC

  • OPERATION:

    • Short Press the [MENU] button to switch pages.
    • Short press the [PLUS] button to increase the motor assist level
    • Short press the [MINUS] button to decrease the motor assist level
    • Long Press the [MENU] button for 20 seconds to enter DFU mode. A video showing a DFU process can be seen here:

video

  • Long press the [PLUS] button to enter bluetooth mode to allow the ANT Device number to be set for the ebike you would like to control. (Device number '0' will pair with any ebike device number)

  • Long press the [Minus] button to exit bluetooth mode to save power. (Bluetooth will automatically turn off after:

    • 5 minutes if you left bluetooth running
    • after you enter a new ANT+ LEV Device Numberv
  • What is left to be done:

    • Evaluate sending the brake sensors signal wireless
    • Planned feature: Long press the [POWER] button to turn off the TSDZ2 motor
    • Other ANT+ LEV button assignments (ie: Lights on/off Turn signals, etc)
    • no battery voltage measurement on the hardware, firmware and so it is not reported to master / Edge
    • Design a suitable spacer for 3D printing that can reuse the VLCD5 keypad and handlebar connector (basically, the top and bottom portions of the keypad) Inital design attempts are located in the 3d_design folder. Please contribute if you can!

Components you will need:

Schematic

schematic

Explanation:

  • The CRC2032 button cell powers up the wireless board. Connect the cell positive to the pin 10 / VIN and the negative to the pin 8 / GND.
  • VLCD5 handle bar remote keypad has 4 buttons and 5 wires (1 wire for each button and 1 common wire to all buttons). Connect the wires directly to the wireless board.
  • For flashing the firmware, that you will need to do only one time, solder the 4 wires to the STLinkV2 (I use a cheap 1€ STLinkV2 clone that I bought on EBay).

Firmware

Flash the firmware with any tool that works for you. The firmware HEX file to flash is this one: ebike_wireless_remote_with_sd-v.0.5.hex

ebike_wireless_remote's People

Contributors

casainho avatar charliebruce avatar rananna avatar stancecoke avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.