LeisureCAN

The open source CAN-Bus network for leisure vehicles

User Tools

Site Tools


make_your_own

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
make_your_own [2021/01/20 12:55]
christian [Making a LeisureCAN Gauge]
make_your_own [2021/01/20 20:56] (current)
christian [Making a LeisureCAN Gauge]
Line 38: Line 38:
 {{ ::img_20210119_135651937.jpg?400|}} {{ ::img_20210119_135651937.jpg?400|}}
 Gauges are very easy to make. Just take any existing gauge, strip out the interior, and fit a stepper motor, e.g. a MG90S, or whatever fits in there. Take the three wires of the stepper motor and hook them up to a gauge output of a unit, configure it, and you're ready to roll!{{:img_20210119_142704553.jpg?400 |}} Gauges are very easy to make. Just take any existing gauge, strip out the interior, and fit a stepper motor, e.g. a MG90S, or whatever fits in there. Take the three wires of the stepper motor and hook them up to a gauge output of a unit, configure it, and you're ready to roll!{{:img_20210119_142704553.jpg?400 |}}
-For the unit configuration, configure one of the PWM ports as a measuring gauge output, and configure the "outputs" storage for the correcponding port with a minimum and maximum value that the gauge shows, and the angle the needle goes through from minimum to maximum. That's it!+For the unit configuration, configure one of the PWM ports as a measuring gauge output, and configure the "servoOutputs" storage for the correcponding port with a minimum and maximum value that the gauge shows, and the angle the needle goes through from minimum to maximum. That's it!
  
 Keep in mind that the angle position "0" is the clockwise maximum, and the maximum angle is the anticlockwise maximum (or the clockwise minimum). So the needle of the stepper motor is fixed to the axle of the stepper motor in maximum position, which is angle 0. Keep in mind that the angle position "0" is the clockwise maximum, and the maximum angle is the anticlockwise maximum (or the clockwise minimum). So the needle of the stepper motor is fixed to the axle of the stepper motor in maximum position, which is angle 0.
make_your_own.txt ยท Last modified: 2021/01/20 20:56 by christian