Creating a general purpose input and checking it
-
This post is deleted! -
@Herve_Smith
Yeah i'm aware of that. But i'm not deploying it as a filament sensor yet, now to start off i want to check that it functions correctly and logg how it works. Hence why i want to configure it as a GPIO switch first. -
This post is deleted! -
@Herve_Smith
Oh your one of those, bye.....
EDIT 17/8:
Found the issue, the issue was that I had managed to use a 304SS washer to actuate the sensor, and a steel screw to hold down the sensor.
Swaped for a steel washer for actuation and a 304ss screw to fasten the sensor, now it's working
-
This post is deleted! -
-
-
Yes I am having the same problem
-
I have been trying to create an input on io6 using
M 9 50 J 1 C " i o 6 . i n in the config.g file
Then tried to check the status from the console with;
M950 J1
But always get - P i n i o 6 . i n , a c t i v e , t r u eI tried changing the state of the input by tying the pin to GND and 3.3V but the message never changes. Also tried to check the status of the input using
M409 K"inputs" but the output is not clear which input I should be looking at on the list.Any help would be appreciated,
Thanks Mark
-
@machinemark you don't use 3.3v and ground. if you did that you have a chance of shorting the board. Any switch on the input should be connected with the io6.in pin and gnd
-
To be clear, I am tying the input to GND, running the commands to try and 'see' the state of the input. Then removing the input from the GND and connecting it to 3.3V and running commands again to check if there has been a change of state. ie GND and 3V3 shall never meet for it may release that precious smoke!
-
I must be missing something??? No matter what I do, I have never seen a change of state from the duets point of view.
A Duet3 6XD board.
I am changing the input ( i o 1 . i n ) (IO6 Plug between the SBC plug and USBC plug) by switching between GND and 3.3 Volt (even tried 5 volt out of desperation)
Created the input in the config.g file;
M 9 5 0 J 0 C " i o 6 . i n "
Save the file and restartThen run M409 - Waste of time
Then run M950 J0 - Always responds with Pin io6 . in, active true - This never changes despite the electrical change at the input.
Then created a macro to try and give a message that reflects the state of the input
if sensors.gpIn[0].value != 0
M117 "Output should be on"
else
M117 "Output should be off"But...........................
I also tried with the optoisolated inputs and variations on the pin naming.
I have checked the voltage at the input and that it is the correct input with the documentation several times.
I am ready to throw this thing across the room, how hard can it be to check the state of an input ????
Please tell me I am an idiot and what I have missed.
And why am I having to put spaces between (i o . 6) to post, They are NOT links.
-
@machinemark I think you should start a new thread for your issue instead of piggy backing on an old solved thread.