Thread: Triac PC Linuxcnc
Threaded View
-
19-06-2022 #9
Without data sheet (I've googled for 5 minutes and given up to watch the F1 qualifying instead) - and without knowing the sensor supply voltage range, but assuming it's good for 12-24V, I'd suggest buying an opto-isolator (maybe mounted on a board)... or 3 (however many sensors you have) and, with suitable current limiting resistor for the supply voltage, wire the input in series with the sensor. From the little I've gleaned of the internet these. devices have an activated current of <1mA and a de-activated current of what you say - 200mA? Provided the 1mA is insufficient to transfer through the opto-isolator then it's an easy solution.
You question use of an Arduino... yes, you could, but it's a sledgehammer solution, plus you have to think about your power-up behaviour before IO is configured. For the Arduino the obvious solution is to use an analogue input to measure the voltage across the sensor with a current-limiting resistor in series with the supply voltage to the sensor. You would have a simple threshold (with hysteresis?) measuring software to drive the digital output,
Beyond that, you could use a comparator circuit - op-amp, preset-pot and, again, series resistor on the sensor, monitor the voltage across the sensor (nee the voltage drop across the series-limiting resistor).
Loads of different ways, just need to think about what suits your experience and equipment.
My 'can't-be-arsed-making-this-into-a-project' solution would start with a cheap opto-isolator board, checking that the board has mounting holes. (so many small boards omit these!),
More complex solutions (and the real high-integrity solutions) would likely have multiple comparators and logic to detect nominal current levels, fail-open and fail-short faults. Easy to do but heading into 'project' mode.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Mach3/Linuxcnc
By jolyonjenkins in forum Machine Control SoftwareReplies: 3Last Post: 02-08-2020, 11:01 PM -
New to LinuxCNC - Trying to add a PPort card and get LinuxCNC to start
By TnW in forum LinuxCNC (EMC)Replies: 12Last Post: 24-04-2020, 11:01 AM -
What do I need to run LinuxCNC???
By gatesy in forum LinuxCNC (EMC)Replies: 22Last Post: 02-12-2015, 07:42 PM -
Mach3 vs LinuxCNC/EMC What do you use and why?
By Lee Roberts in forum Machine Control SoftwareReplies: 46Last Post: 26-11-2013, 01:02 AM -
How many LinuxCNC/EMC users do we have?
By birchy in forum LinuxCNC (EMC)Replies: 16Last Post: 30-12-2012, 08:08 PM
Bookmarks