Simplest way to add analog channel?

More
28 Nov 2024 04:27 #315433 by thadhughes
Simplest way to add analog channel? was created by thadhughes
Hi all,

Does anyone have a really slick and easy way to add an analog signal to their LinuxCNC setup? I want to control override speed with a potentiometer.

I have a Mesa 5i24 card, on one of the 50-pin ports I put a custom board of my own. I thought I could slap a TLC0820A Flash ADC on it and use the WEIGHTED_SUM module to get an analog value. Well, I didn't really read the TLC0820A datasheet well enough. It doesn't put out constant values, as I found out when I started doing bench testing.

I don't really wanna buy another Mesa card. The PC box is getting pretty stuffed and I don't feel like shelling out $100 for this. I'm sure the collective wisdom has a good idea.

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
28 Nov 2024 04:38 #315434 by tommylight
Replied by tommylight on topic Simplest way to add analog channel?
Why not an encoder? No idea if the cheap arduino ones work, i never bothered to test.
LM331 should do just fine as it is a voltage to frequency converter, so the voltage from the input of 0-10V is converted into 0-10KHz of frequency.
Set the encoder for Mesa in hal to encoder mode 1 and ... well that should be it.

Please Log in or Create an account to join the conversation.

More
24 Dec 2024 13:56 #317278 by thadhughes
Replied by thadhughes on topic Simplest way to add analog channel?
That makes a lot of sense. I ordered the LM331's and will report if that works.

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum