Quite new to electronics, so please be gentle!
I need to read a 12V pwm signal in my project. How do I convert it to a 5V pwm for me to read it using the pulseIn(...) function.
I found this: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1232444802, but in fact I do not understand what to do with the resistor, transistor. (how to connect them) Wouldn't a normal voltage divider circuit suffer?
Could any of you guys point me in the right direction?
Thanks in advance.