Giter VIP home page Giter VIP logo

esa5000setspeedbutton's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

pattiwilli

esa5000setspeedbutton's Issues

EWA 6000

Does it also work with the Doc Green EWA 6000?

Number of Button Presses as defined by presses variable

This is a great sketch, simple and elegant. I am using an ATTiny45 programmed through an Arduino Nano.

The number of presses defined in the variable "presses" is not the number of presses required to trigger speed unlock.
The reason for this is the for loop inside checkCode(int presses). The for loop references i<(presses+1). This results in the user needing to press the button 2 times more than that recorded in the presses variable (the first press occurs before the for loop starts), for both unlock speed and revert speed.

This can be fixed by instead referencing i<(presses-1) in the for loop.

I know I could commit changes and issue a pull request but I haven't checked out the repo and this is a single character fix.

Once the code has been changed the user needs to press 5 times to unlock and 3 times to revert the speed setting as per the variables in the sketch.
The README file also can be updated as currently it references 6 clicks and 3 clicks which is incorrect (it took me ages to find out it was 7 very fast clicks and 5 clicks to revert). Once the fix is in place it will be 5 clicks and 3 clicks and you actually have more time to complete the clicks as the whole operation must be completed in MILLISPERPRESS*presses. It was a challenge to get 7 clicks in under 1.4 seconds - much easier to get 5 clicks in 1.4 seconds.

Pullup for Button needed

My scooter generated high frequencies while driving on the Button pin so that the Arduino recognized this as a button press. I was able to solve the problem with a 10k ohm resistor (pullup) against 5V.

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.