Best way to get a couple of analog values into HAL?

More
1 year 9 months ago #320025 by slowpoke
I want to add a couple of physical pots to control Jog and feed speeds.

I'm using a 7i96s, and I don't believe that particular card has analog input capability.

I'm sure there are many ways to accomplish this. On my mill I used Arduino Connector and it works well, so that's an option, however fair bit of carry on for just a couple of analog inputs.

Thinking out loud... I could read the pot values with a dime store 8 pin uC and do a voltage to frequency conversion, and then apply those variable frequency signals to two digital inputs on the 7i96s if there an easy way (in HAL) to then measure that frequency and apply the result to:

halui.axis.jog-speed

and

halui.feed-override.scale

Or, perhaps there are other better ways, any suggestions?

 

Please Log in to join the conversation.

More
1 year 9 months ago #320028 by tommylight

Thinking out loud... I could read the pot values with a dime store 8 pin uC and do a voltage to frequency conversion,....
 
LM331 Is cheap and easy to find, amazingly i can find it here, although i can not find M3 screws!
www.ti.com/lit/ds/symlink/lm331.pdf?ts=1...Fwww.google.com%252F

Please Log in to join the conversation.

More
1 year 9 months ago #320037 by Cant do this anymore bye all
M3 screws follow the socks.

On a serious note I'm going to delve into the abyss that is BSPI, and see if I can do something to read a SPI ADC. Hopefully something that one can get readily from Aliexpress. Though that kind of shenanigans with require at least 4 pins.

Please Log in to join the conversation.

More
1 year 9 months ago #320043 by rodw
there is always the THCAD2. You might be able to use a MUX2 to swap the inputs

Please Log in to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum