mxbode / esa5000setspeedbutton Goto Github PK
View Code? Open in Web Editor NEWDocGreen ESA 5000 Arduino Button Control Program
DocGreen ESA 5000 Arduino Button Control Program
Does it also work with the Doc Green EWA 6000?
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.