Hey all, I need a second brain to double check my work. I want to easily check to see if a ramps board is set to PWM for the heatbed. Some are set to high/low, others are set to PWM to control the temperature. The problem is, you have to look inside the firmware of the arduino mega to figure it out. What I'd like to do is use the pulsein control to fashion myself something that reads 2 pins, and reports if it's pwm or if its just high/low.
So, essentially, just write something that handles pulse in and if it detects pwm, glow red, otherwise glow green for high/low.
My only question is, how would I handle high voltage. For instance, my board has a 15V connection pin. How would I test that without using a voltage regulator and potentially burning out my arduino?
Thanks for the guidance.