Page 1 of 1

Analog Divider (coef)

Posted: Sun Mar 01, 2020 10:05 am
by NickZ
Can someone explain what this setting is/does in Tuner Studio?
Please.
Analog Divider (coef)
Screen Shot 2020-03-01 at 9.01.49 pm.png
Screen Shot 2020-03-01 at 9.01.49 pm.png (58.22 KiB) Viewed 10616 times

Re: Analog Divider (coef)

Posted: Sun Mar 01, 2020 12:43 pm
by 960
Good question!


This is the voltage-divider for the analog inputs.

Ideally this should be in the board-configuration, and be removed/hidden for users

Re: Analog Divider (coef)

Posted: Sun Mar 01, 2020 1:13 pm
by AndreyB
stm32 has 3v ADC. most or all rusEfi boards have opamp input circuitry with a divider, often ratio is 2 or 1.67

Re: Analog Divider (coef)

Posted: Sun Mar 01, 2020 1:52 pm
by 960
Questions like this are really useful to see which things that makes confusion.


We can remove/hide these settings in TS, and set it in the board-configuration.

A user dont really need to change these settings

Re: Analog Divider (coef)

Posted: Sun Mar 01, 2020 2:22 pm
by AndreyB
960 wrote:
Sun Mar 01, 2020 1:52 pm
Questions like this are really useful to see which things that makes confusion.

We can remove/hide these settings in TS, and set it in the board-configuration.

A user dont really need to change these settings
We have the mechanism to hide such settings from TS project, I've just done so for microRusEfi

https://github.com/rusefi/rusefi/commit/c553877d3d375a068a3e62ba58685dc51f142ecd

Re: Analog Divider (coef)

Posted: Sun Mar 01, 2020 2:25 pm
by 960
AndreyB wrote:
Sun Mar 01, 2020 2:22 pm
We have the mechanism to hide such settings from TS project, I've just done so for microRusEfi

https://github.com/rusefi/rusefi/commit/c553877d3d375a068a3e62ba58685dc51f142ecd

Great :-)

Re: Analog Divider (coef)

Posted: Mon Mar 02, 2020 3:14 am
by NickZ
so how to use it? i have used it to adjust for my voltage divider. if for example i have 5 volts divided down to 2.5 what would my setting be for a full scale 0-3v on the MCU.
what is the value the Analog Divider representing?

Re: Analog Divider (coef)

Posted: Mon Mar 02, 2020 3:31 am
by AndreyB
Just modified the description, new bubble description reads:

Code: Select all

Ratio/coefficient of input voltage dividers on your PCB. For example, use '2' if your board divides 5v into 2.5v. Use '1.66' if your board divides 5v into 3v.