Simplest way to add analog channel?
- thadhughes
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
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.
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
- Away
- Moderator
Less
More
- Posts: 19580
- Thank you received: 6586
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.
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.
- thadhughes
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
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.
- billykid
- Offline
- Platinum Member
Less
More
- Posts: 507
- Thank you received: 79
29 Dec 2024 16:44 #317619
by billykid
Replied by billykid on topic Simplest way to add analog channel?
I also bought lm331 to convert current from a dc spindle... I made a small circuit, but I haven't tried it for almost a year because my brother had serious health problems. I'll try in a few days, maybe we can help each other.
regards
Mauro
regards
Mauro
Please Log in or Create an account to join the conversation.
Time to create page: 0.108 seconds