View Single Post
Old 11-15-2023, 09:02 PM   #1
87chevy.com
BMW & ASE Master Certified
 
87chevy.com's Avatar
 
Join Date: Feb 2004
Location: Houston, Texas
Posts: 1,256
custom gauge project using x27.168 stepper motor

Little project I'm playing with. I forget what gauge I started from, oil or temp...
Goal is to get canbus data to drive the gauge, but right now its just analog input / sensor input

I removed the old sending unit, measured center to center, measured the stepper motor, modeled it in cad and 3d printed an adapter. Took 2 tries to get the alignment 100%, pretty impressed with that!





I didn't have any more tiny screws on hand, but a rivet had the right diameter.... alignment on point!

I had some prototype circuit board from a previous project and its hole spacing was perfect for the back of the stepper motor... I cut the circuit board to fit, soldered leads to it and finally to the stepper motor... the leads on the stepper motor are very thin gauge and I think would get damaged if I just soldered wires to the back of them. Being they are designed to be soldered to a circuit board.. lets go that route

I did some searching and found some librarys to control the stepper motor and started basic and then expanded... that turned into lots of coding attempts, many hours later and here I am... kinda close to the end of this part ... still need to figure out a few things but pretty cool none the less (to me at least)...

Video showing function test:
Set to a value using the potentiometer, pressed reset as if you turned key on, or restarted truck... gauge resets and goes to current value. Turn knob to end stops, press reset and gauge returns to current value.

short video using potentiometer to drive gauge

Got the gauge code configurable:
so the gauge needle sweep aligns with tick marks on the face
there's an offset so if operating temp is not exactly at 1/2 on the gauge, it can be adjusted so its more visually appealing while still maintaining the 90º sweep
sensor start range for coolant temp sensor

pretty crazy stuff you can do with an arduino nano , stepper motor driver board, stepper motor and many hours

clint
__________________
1987 Silverado - L83 5.3 w/ 6L80e ,A/C,P/W,P/L,TILT, HID projectors, Wilwood C-10 Pro Spindles w/ 2018 silverado front brakes & C-5 Corvette Rear Disc Brakes
1999 BMW 528i - 5.7 LS1 w/ 4l60e, Ford 8.8 IRS w31 spline posi & FX-r projector retrofit

New project: 2006 BMW x5 6cyl AWD to L83 6l80e 4wd to 2WD / RWD

A poor man buy's it twice

finally got my domain name back, 87chevy.com.... site rework in progress

Last edited by 87chevy.com; 11-15-2023 at 09:47 PM.
87chevy.com is offline   Reply With Quote