Haynes Forums

Haynes Forums (http://www.haynes.co.uk/forums/index.php)
-   Electrics (http://www.haynes.co.uk/forums/forumdisplay.php?f=7)
-   -   Shift Light (http://www.haynes.co.uk/forums/showthread.php?t=13346)

CTWV50 27th June 2014 07:22 PM

Quote:

Originally Posted by alga (Post 97571)
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. :D Another little project to keep me busy.

CTWV50 19th July 2014 11:48 AM

Alga, I have a limited knowledge of electronics, but I've bought a mini pro. It has a 12v raw connection for power which cuts out some of the electronics. I have resistors but need to purchase the diode what wattage 4.7v diode should I use? 1w or 0.5w? Thanks Chris

alga 19th July 2014 09:45 PM

12 V raw, yes, but a charged battery gives around 13 V, and the alternator gives some 14 V, plus there can be some noise spikes even higher. I'd rather not risk burning the chip, so I added a stabilizer circuit. As for the diode, I used the smallest one, it's 0.5 W I believe. With the 1K resistor on the input and assuming 12V signal, the current through the Zener will be 12 mA maximum.

CTWV50 19th July 2014 10:02 PM

Quote:

Originally Posted by alga (Post 97945)
12 V raw, yes, but a charged battery gives around 13 V, and the alternator gives some 14 V, plus there can be some noise spikes even higher. I'd rather not risk burning the chip, so I added a stabilizer circuit.

Ah yes, I forgot about that.:rolleyes: My friend at work pointed that out too.

Quote:

Originally Posted by alga (Post 97945)
As for the diode, I used the smallest one, it's 0.5 W I believe. With the 1K resistor on the input and assuming 12V signal, the current through the Zener will be 12 mA maximum.

Thanks for that info.

flyerncle 21st July 2014 10:12 AM

Out of interest,what is the output from coil to shift light.
Ie pulse or just varying voltage.


All times are GMT +1. The time now is 06:47 AM.

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