Stepper Setup
RGB LED's Setup
File Manager

Logo2 

Stepper Gauge Config.


Predefined Configurations


Pin Definitions

Quick help... ?

X Logo2
Pins on Gauge Stepper.
The pin assignment for the Stepper motor is for direct drive of the small "Gauge steppers" used in instrument clusters in mordern cars. The ESP32 can not drive any larger steppers without amplifying the output power of the pinns. Check the datasheet for your stepper to get the coils connected correctly. If the stepper moves the wrong way you can swap two of the pinns to reverse the stepper rotation.

For the D1-mini ESP8266 module from Are-Inc. the pin settings are:
Coil:
A1: 13 (D7)
A2: 14 (D5)
B1: 12 (D6)
B2: 4  (D2)


Initial Homing.
Here you add the number of stepps the stepper needs to take to be certain that it has reach the most left position (against the mechanical stop).

Enable Sweep.
When "checked" the gauge make a run from the lowest value to the max value and back to the lowest value again when powered up, then stopping at the low value. (Mimic the "cool" gauges from Autogauge...) It will use the values that is stored in the "Speed points" further down in the setup page.

Sweep Speed.
This is the steppers maximum step speed during homing. Default number is around 800-2000

Sweep Acceleration.
This is setting the acceleration of the needle when homing. Default number is around 3-500.

Max Steps.
This is the maximum steps the stepper should be allowed to take from its "Zero" position. (Many of the gauge steppers has 600 steps from end to end)

Trim Value Speed Plus.
If the stepper reach "Zero" when homing and the needle is to far "down" below "Zero" you can trim this position by adding number of steps to rise the needle to the 0 position on the gauge face. (You can use the "Manual control" at the end of this page to test how many steps you need to add.)

Stepper Max Speed.
This is the steppers maximum step speed. If the stepper is set to quick you might get problem when doing the "Home" sequence. You want the stepper as slow as possible but still handle the full acceleration of the car. Default number is around 800-1000

Stepper Acceleration.
This is setting the acceleration of the needle. You can test different settings to get a smooth move of the needle. If you stepper is weak and struggle to move the needle without missing steps, you can try lower this value. Default number is around 3-500.

Input Filter %.
This is a simple input filter to even the signal in to the gauge. It uses a percentage of the old value and mix in a percentage of the new incoming value.

Filter blend %: Controls the overall stability of the gauge. A higher value (e.g., 80-100%) makes the gauge less responsive but smoother, while a lower value (e.g., 50-70%) makes it more responsive to changes in the input value. Adjust this to find the balance between smoothness and responsiveness that works for your needs.

Filter Smoothness %: Modifies the filter’s responsiveness based on the size of the input value. Use this to fine-tune the filter's behavior: Higher values (e.g., 1.5) make the gauge more responsive to small changes in the input. Lower values (e.g., 1.0) keep the gauge smoother and less sensitive to fluctuations.

Speed Points (comma-separated).
This is part of a lookup table, converting steps to input data. There is a "interpolation" between the numbers you add here but, the more number you add the smoother and precise the needle will be on the dail.
The numbers are added with comma separation and are matched to the input data.
Ex.
# Speed points (comma-separated, in one line)
0,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100
# Step points (comma-separated, one line)
0,4,8,12,17,21,26,30,35,39,44,48,52,57,61,65,70,74,78,83

Where Speed points are the value of the incoming data. And for each value here you add a matching "Step" number in the textbox for "Step points". The incoming data values in between your added data will be interpolated by the code to make for a smooth needle movement.



Manual Stepper Control.


Button "Home Stepper".
Clicking this button put the stepper motor in the "Zero" position @ 0 degrees. From here the stepper can move the full "315 degrees" for a standard gauge stepper. or whatever amount of freedom the stepper you use can do.

Stepper Position.
Using the slider moves the stepper "live" so that you can controll the needle on the dail manually and on the left side of the slider you find the number of steps it took to reach that position.
Use the number to fill the "Step Points" box for steps and add the accompanying number on your gauge dail in the "Speed Points" box.

Remember to add comma (,) between each number as in the example above.

Use the slider for quick and corse adjustment and then pick "Step by Step" using the (+) and (-) buttons on each side of the slider.


X

Stepper Settings





Speed and Step Points



Manual Stepper Control




0 Steps

Click here to download the config file for external editing. The manual will give you directions on what values are related to what setting. An easy way to store different setups and quickly upload them to your gauge.

Download config.txt

Quick help... ?

X Logo2
File list.
This is a list of the files saved on the "Gauge Server". Files that are accepted for this gauge are:
.png
.html
.txt

The maximum size of the storage is about 3MB. Each file on the server should be kept to a minimum size for a fast and problem free interface.


File list functions:
The list show the file name, extension, size (in bytes) and file recognition,
followed by a "Download" and "Delete" button.

The "Download" button starts the download of the selected file.

The "Delete" button will delete the selected file without any warning.
There is no security added in the code, so make sure you have full backup
of your files at all times...

Upload File:
When you alter the "index.html" with your own "Preset" data or your own Logo.png
you can upload the file to the server via this interface.


The filemanager will always be accesable on the server.
Incase you alter your "index.html"
and there are problem with it, you can always reach the filemanager via

192.168.4.1/filemanager.html

This gives you the possibility to correct your index.html and upload the corrected file.