PWM INPUT PIN
-
Hi everyone, I need to connect some overtravel sensors to an external Arduino board in order to send the signal to a single pin as there are no more ports available on the 6HC board and I don't want to buy another expansion board. The idea is to send a signal from the Arduino to the 6HC board in order to activate the emergency when the overtravel sensors are activated.
I wanted to understand if it is possible to manage the signal with different frequencies in order to display a warning message with the axis in error based on the frequency sent by Arduino.
I do the same thing on output using the PWM port of the 6HC board but I couldn't find any help in the documentation.
The only thing that comes to mind is to create an additional Z probe in order to collect the signal, then with a macro I generate the warning based on the value of the signal. Do you think this is possible? -
@Marco-Bona the firmware doesn't have a facility to read and decode a PWM signal.
Are you really using all the pins on the 6HC, including the four temperature daughterboard CS pins, all the IO_IN and IO_OUT pins and the fan tacho pins?
-
@dc42 No, I'm just using all the IO_IN pin and the CS pins are occupied by the accelerometer.
-
@Marco-Bona so wy can you not connect the overtravel sensors to IO_1,2,3 on the 6HC?
-
@T3P3Tony because they are occupied by the limit switch sensors.
I would like to add additional overtravel sensors but I only have one input available and I wouldn't want to buy an expansion card just to manage a couple more inputs.
Having said this, I send a single signal from Arduino in order to activate the emergency without using PWMs to identify the error. That's how it should work. -
@Marco-Bona you can use IO_OUT pins as digital inputs too, just be careful because they don't have over-voltage protection.
The accelerometer only uses 2 of the 4 CS pins on the daughterboard connector. You can use the remaining 2 as inputs; but again they don't have any over-voltage protection.
The tacho inputs on three of the OUT ports can also be used as inputs, and they do have protection.
-
@dc42 thanks, I hadn't thought of this option.