Haynes Forums  

Go Back   Haynes Forums > Haynes Roadster Forums > Electrics
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #21  
Old 27th June 2014, 08:22 PM
CTWV50's Avatar
CTWV50 CTWV50 is offline
Senior Member
 
Join Date: Aug 2010
Posts: 1,297
Default

Quote:
Originally Posted by alga View Post
Lukasz, here's the schematic:



You can use Arduino Uno or whatever to test, but then to embed something smaller like Nano or Pro Mini is more convenient.

If you look at the source, https://github.com/alga/shiftlight/b...shiftlight.ino , you'll see that the pin numbers of the input and outputs, as well as RPMs for each led and for the blinking warning are spelled out in the constant definitions.

In order to set the switchover RPMs on a button press you'll need to add a button that grounds one of the free input pins, set the mode for that pin to INPUT_PULLUP, and in the loop check if the pin is LOW, and if it is, fill in the thresholds array with the new values based on current RPM. You'll need to delete the const specifier from the variable definition in order to be able to modify the array. Piece of cake.
We've just started a new lad in work to help out part time with smart phone part replacement and diagnosis along with customer service but he's also doing a combined electronics and technology course at JMU. I might ask him for a bit help putting something like this together. Another little project to keep me busy.

Last edited by CTWV50 : 3rd July 2014 at 11:02 AM.
Reply With Quote
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.