I'm wondering if someone can be of some help. I've read about the topic in a few forum listings, but still a little unclear. I have a digital pwm pulse signal being sent from the sensor to the arduino, but i need to convert that signal into and analog signal and be sent to a plc to catch the pulses as well. Anyone have any experience in a change over for this method. Using the arduino Mega 2560
Use a DAC .. May be a module or some kind of micro controllers.
Ex: MCP4725 module
Your topic has been moved. Please do not post in "Uncategorized"; see the sticky topics in Uncategorized - Arduino Forum.
Please provide a datasheet of the sensor.
Please describe in a little more detail what you want to achieve. Is the purpose of the Mega only to convert from PWM to analogue? If so, why use a Mega; it does not have an analogue output.
You can convert PWM to DC with a low pass filter.
The default PW frequency is about 500Hz so the filter should probably be 50Hz or lower. (The lower the frequency the better filtering you will get and the slower it will respond to changes.)
With a passive RC filter the resistor should be 1/10th the resistance (or impedance) or less of whatever it's connected to but not lower than 125 Ohms because if the resistance is too low you'll draw excess current.
How that? On what should the analog signal level depend?
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.