Using a RPi4B to be the go between a RockBLOCK Switch and an LED sign

This is my first project. I have purchased a LED sign that uses a C-Power10 control card and has 485 signal line (A, B, GND). I also have a RockBLOCK Switch/Sense which I wish to control this sign in a remote location where I can only get a satellite signal. I also have a Raspberry Pi 4 Model B.

I’m making sure I get all the items I need. Gemini (AI) is suggesting I use a Bidirectional Logic Level Shifter for the RockBLOCK connection to the Raspberry Pi. The critical point here is the voltage mismatch (5V vs 3.3V) for the serial data lines.

It is also suggesting a DC-DC Buck Converter but I was going to just insert into the 5V converter in the sign. Any help would be appreciated.

2 Likes

Hi Rob,

Welcome to the forum!!

Sweet project :smiley:

Could you please send through some links to all of the hardware you have?

Keen to take a look at these ones!
Liam

C-Power10SN Parameter Setting Instruction Manual、.pdf (1.8 MB)

Hey @Rob284232,

You may need a logic level shifter, just confirm that the RockBLOCK is ouputting on 5V as AI can guess voltage outputs without actually checking. If you do need a shifter, than something like this would be suitable
Bi-Directional Logic Level Converter.

If your LED sign provides a stable 5V supply with at least 3A current capacity, you may be able to power the Raspberry Pi directly from it. However, Pi 4s can draw significant current, and voltage dips during communication with the RockBLOCK could cause crashes or data corruption. If you have a 12V power source available, this buck converter is a suitable option

Since the sign uses RS-485 for communication, you’ll likely need an RS-485 interface for the Raspberry Pi. A suitable option is the RS485 CAN HAT for Raspberry Pi or can look at USB to RS485 converter cables

Hopefully these suggestions assist in getting your project up and running :slight_smile:


Here are the components and general layout. I need help with the wiring up of this.

I got a reply from RB directly and here is their response:
The RockBLOCK Switch is an entirely different product from the RockBLOCK 9603 and 9602, with different connections and intelligence so we don’t want to merge those together otherwise it’ll get more confusing than it already can be! It sounds like what you’ll need is:

RBSwitch ↔ RS232-to-TTL level shifter or RS232 HAT/USB adapter ↔ RaspberryPi ↔ RS485 transceiver ↔ LED sign.

The RockBLOCK Switch that you have is native RS232, so you’ll definitely need to connect RS232 to the Raspberry Pi for that to then connect to RS485 on the sign.The intelligence within the RockBLOCK Switch will sort out the voltage shifts and everything, so all you need to know is that it uses RS232 and you’ll need the RS232-to-TTL level or shifter or the HAT.
So I was thinking:
RS232 to Serial Converter | Buy in Australia | CE04442 | Core Electronics
connected to the wires of the RBSwitch; then
USB/Serial Converter - FT232RL | Buy in Australia | ADA18 | Adafruit | Core Electronics
to connect the RBSwitch to the RPi4B; then
Industrial USB to RS485 Converter | Buy in Australia | WS-17286 | Waveshare | Core Electronics
to connect the RPi (via usb) to the LED

Does this sound like I’m on the right track?

I did see this item:
Multi USB/RS232/RS485/TTL Converter | Buy in Australia | TEL0070 | DFRobot | Core Electronics
but couldn’t find much about it or if it was even useful for this task??

The USB/Serial converter is only needed if you want to control the sign using the USB port on the Pi. The Pi supports a UART interface, so it is possible (and simpler) to just do RBSwitch ↔ RS232-to-TTL level shifter ↔ RaspberryPi. The code will be the same.

Thanks Jeff but the RBSwitch doesn’t have a port, just 8 wires from its 3m cable, so that’s why I was thinking using the serial converter. Could you point me in the direction you were suggesting as I couldn’t find what you were suggesting, unless you were suggesting something like this:
USB to TTL Serial UART RS232 Adaptor (PL2303TA) | Buy in Australia | 018-USB-PL2303HX | Core Electronics

1 Like

The suggestion that you obtained was
RBSwitch ↔ RS232-to-TTL level shifter or RS232 HAT/USB adapter ↔ RaspberryPi ↔ RS485 transceiver ↔ LED sign.

Notice the ‘or’.

Your choice of the RS232 to Serial Converter and the USB/Serial Converter implied that you were doing both
RBSwitch ↔ RS232-to-TTL level shifter ↔ RaspberryPi
and
RBSwitch ↔ RS232 HAT/USB adapter ↔ RaspberryPi

My comment was that you don’t need the hat (the USB/Serial converter) because the Pi understands TTL UART just as well as it understands USB, so RBSwitch ↔ RS232-to-TTL level shifter ↔ RaspberryPi is the simpler option. The RS232 to Serial Converter you have listed above will do that job.

I am assuming that, as that was one of the options provided to you, the RBSwitch supports that connection. The actual wiring of the switch to a serial port of the serial/TTL converter is something that the supplier should be able to assist with (as it is their suggestion). The connection of the TTL side of the RS232-to-TTL converter to the Pi is something that we can help you with.

1 Like

Thanks again Jeff, I think it have the RBSwitch to the RPi sorted, and now need the RPi to the LED sign connection sorted. The sign uses RS485 and if you look at the picture, you’ll see the control cards 485 connection points. Is this the sort of thing I need or do you have something else?

Industrial USB to RS485 Converter | Buy in Australia | WS-17286 | Waveshare | Core Electronics

The USB adapter would work. You will find a number of other options at:

RS485 - Breakouts & Modules Australia

1 Like

Cheers Jeff, I’m placing my order with the USB 485 converter and one of the cheaper modules to play around with.

1 Like