This is very cool. I like!
Printable View
This is very cool. I like!
Well I've done it. I've created software that simulates real life movement of the pointer needle based of a variable input. Its crude software, and leaves out many functions that will later be incorporated. However this proof-of-concept confirms that it can certainly be done.
In the video, it starts off at a random position, rotates completely counter-clockwise, has a 1 second pause, then jumps about 10º clockwise just to back off a little from the internal stop. After another 2 second delay, it reads the position of the potentiometer and moves the needle to that position. Subsequent moving of the POT then moves the needle in the corresponding direction. You'll notice a bit of jitter in the movement, best I can tell this is due to noise from the POT itself, its a pretty weak unit. The in-car sensors will provide much more fluid movement. Also, the motor is currently moving in 2º increments, while the final design will have it moving in 1/3º increments, so it will appear completely fluid.
http://www.youtube.com/watch?v=zJrdOb3aZkc
Very cool. Now your getting pretty good writing code.8)
Nicely done! :thumbup2: Great to see the steady progress you are making.
To stop the erratic fluctiations of the needle due to false readings of the pot you can always add a running average function to the input (or output). Say for example you take 10 readings a second, take the average of the last 10 readings using a circular buffer. The processor should have to problem doing that. No only does this dampen any off readings, it also provides for a smooth tweaning of the needle without any complex logic. For even smoother results you can use a larger buffer.
Thats been the plan for the fuel sender from the start (30-60 second average). Other gauges need quicker response time. Right now its about a 20-40ms delay between single readings. The lag with that is barely noticeable, I can only see it because I know its there. While experimenting, a 200ms smoothed it out nicely but there was a noticeable delay in the readings. Perhaps having 4 readings 5-10ms apart would provide good results.
Further logic will incorporate acceleration into the needle. So it if only needs to move a few degrees or so, it will do it mildly. If it need to move a full swing right away, it will accelerate to the stepper's full speed (which is still I think about twice as fast as seen here).
What kind of servo's are you using? I remember the servos from my RC car back in the days, those servo's made quite the bit of noise, probably because of the gears involved.
Wouldn't like anything like 8 of those noisemakers in my binnacle.
They are X25.168 stepper motors. They are designed specifically for automotive instrument clusters. When driven with a proper pulsetrain, they are not noisy at all.
It is a Lavet style stepper motor with two coils. Turns nominally in 1/3º (on the pointer shaft) partial steps. A full step is 3 partials, and the complete pulse cycle (2 steps) is 6 partial steps, which equates to 2º on the pointer (hens why right now its moving in 2º increments). Unit has internal stops, with a total of 315º available on the pointer shaft.
:worship:
So my 7-segment LED samples came in today. These units have 7.6mm (.30") high characters. This slightly exceeds the actual vertical opening of the stock odometer cutout. Unfortunately the width of the units lined up together more than slightly exceed the odometer opening, by 8mm. These units are some of the narrowest I can find. Most of the 7mm and 5mm 7-segment displays I've found actually are slightly wider. Unfortunately, nothing beneficial is gained from 2 or 3-digit units either. I have found one manufacturer of a 5mm unit which is only 6.9mm in width. This would put the total width at 41.4mm, still exceeding the stock 36mm but slightly better than the 44mm I have now. Another concern about the small size of these are the ability to solder them. The super small units are all surface-mount devices with incredibly small contacts. Designed for "reflow" soldering on a manufacturing line. Not hand soldering in someone's workshop. While browsing many of the manufacturer's websites, a lot of them advertised "ask us about custom units, at affordable prices". So I'll throw a few feelers out there for a single 6-digit unit which perhaps can be made a little more compact than individual units. We'll see. Once I have the vector graphics completed for the speedometer I may also play around with slightly enlarging the scale to make the units I currently have fit with an OEM look. If this looks OK, I'll enlarge every gauge, print out some quickie samples, and lay them over my spare cluster. So I have several options to pursue here.
Here are the photos of the 7-Segment lineup...
Attachment 7640Attachment 7641Attachment 7642
I'm just geeking out over the progress you're making! I follow this thread with keen anticipation and find it most educational too! I'm most certainly interested in purchasing the final product!
Would this one do the trick?
http://www.kingbrightusa.com/images/...41SGWA-F01.pdf
It seems one of the more difficult things people have faced when trying to make replica speedometers, is an inability to match the typeface of the originals. I myself do not know the actual typeface. I've done automated font searches using high resolution images of the typeface, and have come close, but they are licensed fonts which would be at least $30 for a personal copy, but legally would require much more if used in a sold product. So the next best thing, make new ones from scratch. Using a digital micrometer and high resolution "eyeballing", I've taken measurements of the dimensions, including width, height, and curve radii.
Here is the first (and easiest) character, the Zero, and its measurements...
Attachment 7690Attachment 7691
The original file is in a vector format with infinitely small border lines. So it can be scaled perfectly when used in different manners in the whole cluster.
awesome. i love how thorough you are being with this! i cant wait to get one... the only prerequisite is i need a D first. :lol:
actually, when you start selling them, ill probably get one even if i dont have a D just to be sure i get one... :wink:
Are you gonna have different speedo gauge set up, 85mph, 140mph or 160mph, or even a 95mph for BTTF??
Jim, how's the fontifying going? Might the font eventually be available for download? I have a few projects I can think of where it would come in quite handy..... ;)
Well I'm not making a whole "font" per se, just the perfectly scaled vectors for every character used in the cluster. I have completed several other numbers but when I did the 8 everything looked way off, despite using the measured dimensions. It appears the 8 uses different radii on its curves. I've taken some higher resolution scans and am currently reevaluating all of the demensions I've done so far. The vectors could be made available per request.
Does anyone have a before and after picture of the whole interior after this lighting conversion is done???
I do have about half the vector characters completed. I will post about them once they are all done. Stepper motor programming is taking a break while I do this. Once all the complete vector graphs are done, I will have a full set printed in the backlighting decal material I already have samples from. These will become the base for my prototype viewable at DCS.
After all that is done, I will purchase spare oil and temp sensors and maybe a Saab fuel sender to start writing the programs for those gauges.
Are we having fun yet?
How r things going?? :biggrin:
Slow and steady wins the race. Nah, its just slow because I refuse to pay anyone else to do what I can mostly do myself. Things are going fine, no new problems, but nothing new to report. Still working on the graphics.
Also pondering getting a vendor booth at DCS to display the prototype. However these will NOT be for sale at DCS, still probably a year out on that.
Cool!!
I don't if it were asked, I'm sure it was, what illuminating colors will you offer?
Also when is DCS?
Available colors will be green, blue, or red.
DCS is June 14-17 in Orlando, FL.
Cool!! I will get in blue!! :D
Make sure it is a nice blue, not that dark blue like some cars have. It actually bothers my eyes.
I'm down for blue, will match my head unit and blue LEDs in my AC control panel.
Blue!!
I'll try to make sure the sample at DCS can do all the colors then.
Volkswagen Blue by any chance?
Stian B.
Norway
VIN # 06759
Another new component arrived today. This is an AC generator speed sensor. At approximately 1000rpm it produces about 3vac. The plan is for it to directly replace the angle drive in the adapter nut. The size of the threaded area appears perfect to machine off the threads and machine in a grove for the circlip. While I dont have a spare angle drive sitting around anymore to do exact measurements, I'm pretty sure its nearly dead on. If anyone has a non-functional angle drive they'd be willing to mail me, I can provide a discount for a completed dash when available.
New speed sensor...
http://dmctalk.org/attachment.php?at...8&d=1331003206
Angle drive...
http://dmctalk.org/attachment.php?at...9&d=1331003208
I have a new AD in reserve. I can do precision measurements for you if that would work.