On 10/9/2016 12:09 PM, Sag ich Dir nich wrote:
Hi,

so i want to implement manual overrides for spindle and feed from 0-150%. First
i searched in the web for an example and i found some posts about looking a the
file "ReadTemp.py", so i looked at it and found a rather long list of
Temp/Resistance and Alpha values (first of all what is the Alpha value for?).
The resistance values are single Ohm right? If so, 0% must be 0 or 100.000 for a
100kohm Pot right?

The big lists of values are tables for converting the resistance value into a temperature. A thermistor is a non-linear resistor with it's resistance value highly dependent on the temperature. The tables make for more accurate conversion rather than just using a single point and the beta value.

You can ignore everything having to do with converting resistance values into temperature.

ADC value to Temperature conversation may be removed as i need %.

So all i see is a very long list of values (in my case 150 lines or even more
for 0-150%) and i am thinking, isnt it possible to make it like floating values
(if floating means what i think it means) so it calculates the % value itself?

as input pins i want to use the Thermistor inputs

You will need the code that reads an ADC value. You should look a bit at the code that converts the ADC value into a resistance. You may be able to reuse this code, or you may need to change it depending on how you hook up your variable resistor. Once you know the resistance, you will need to convert it to a speed value and output it as a value on a HAL pin.

--
Charles Steinkuehler
[email protected]

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to