Analog Divider (coef)

It's all about the code!
Post Reply
NickZ
Posts: 56
Joined: Sun Sep 01, 2019 9:44 pm

Analog Divider (coef)

Post 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 9938 times
960
contributor
contributor
Posts: 336
Joined: Mon Dec 10, 2018 1:22 am
Location: Norway

Re: Analog Divider (coef)

Post 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
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Analog Divider (coef)

Post 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
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
960
contributor
contributor
Posts: 336
Joined: Mon Dec 10, 2018 1:22 am
Location: Norway

Re: Analog Divider (coef)

Post 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
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Analog Divider (coef)

Post 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
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
960
contributor
contributor
Posts: 336
Joined: Mon Dec 10, 2018 1:22 am
Location: Norway

Re: Analog Divider (coef)

Post 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 :-)
NickZ
Posts: 56
Joined: Sun Sep 01, 2019 9:44 pm

Re: Analog Divider (coef)

Post 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?
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Analog Divider (coef)

Post 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.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Post Reply