This repository has been archived by the owner on Feb 28, 2024. It is now read-only.
Analog output malfunction on AO2 #95
Labels
conclusion: off topic
Off topic for this repository
conclusion: resolved
Issue was resolved
type: imperfection
Perceived defect in any part of project
It seems like AO2 pin is not correctly configured for PWM. There must be an issue in the AnalogOutClass section of the Arduino_MachineControl lib:
https://github.com/arduino-libraries/Arduino_MachineControl/blob/master/src/Arduino_MachineControl.h#:~:text=class%20AnalogOutClass%20%7B
The issue was discovered as follows: Even when AO2 is set to output 0V it always outputs 10V. I managed to replicate this result using the 'Analog_Out' sketch from Arduino_MachineControl library and configuring the Ao" as follows:
inside setup(): analog_out.period_ms(2, 4);
in loop(): analog_out.write(2, 0);
The text was updated successfully, but these errors were encountered: