RS232 COM through RJ12 port

Hello everyone.

I'm trying to only read data from a MPPT solar regulator with arduino.

The device has a "rs232" port, but the connector is a RJ12, with 6 pins. The specifications of the device states: "Communication: RS232". I upload an image of the pin distribution. image

How can I adapt this signal to a Arduino?

The device has also a RS485 port, would this be easier to use?

@guitobenito, your topic has been moved to a more suitable location on the forum as you're not interfacing with a PC :wink:

RS232 uses different signal levels and they are inverted. You will need a converter, e.g. based on MAX232. Search for Arduino TTL to RS232 or for Arduino RS232. You will need the sigal pins 1, 2 and 3 of your image.

For RS485, you will also need a converter; search for Arduino TTL to RS485 or Arduino RS485.

Both should be equally easy from a hardware pespective; RS485 will be a little more complex from a software perspective.

Note: just picked two boards from the SparkFun website; there are others.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.