Ohmic sensing, what's best to use ?

More
6 years 5 months ago #169098 by jay1st
Replied by jay1st on topic Ohmic sensing, what's best to use ?
Interrupts in arduino are very usefull and keep things tidy and speedy when set up correctly

Ahh ok that's why on some "services" in the HAL files it starts with Servothred
The following user(s) said Thank You: rodw

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

More
6 years 5 months ago - 6 years 5 months ago #169105 by rodw
Replied by rodw on topic Ohmic sensing, what's best to use ?
So just have a look at the source of some of the components here
github.com/LinuxCNC/linuxcnc/tree/master/src/hal/components

So all you need to do is to type "halcompile --install mycomp.comp" to compile and install.
If you have not compiled LCNC from source, I think you need to use sudo but I've never ever run linuxcnc other than compiled from source...
Last edit: 6 years 5 months ago by rodw.
The following user(s) said Thank You: jay1st

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

More
6 years 5 months ago #169106 by tommylight
Replied by tommylight on topic Ohmic sensing, what's best to use ?

phillc54 wrote: I haven't done any interrupt stuff on an Arduino. In an earlier life if I needed that sort of thing I used 8748h/9h written in assembly code.

Arduino Uno and Nano can do up to 10 or 20 KHz when not using interrupts, but can do nearly 1MHz when using them.
ESP32 can do much more, on two cores at once.
A few days back i built an RPM counter with ESP32, oled, own battery and charger, so i just had to slap an infrared sensor from an old photocopier and do some coding using interrupts and internal timers. It is bloody fast as in my moment of wisdom i removed all delays.

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

Moderators: snowgoer540
Time to create page: 0.285 seconds
Powered by Kunena Forum