Andino X1 Pico is a base board that allows the raspberry pi to be used in an industrial environment on a DIN Rail. This configuration also includes an extension providing dual channel RS232.
The setup documentation section can be found at the bottom!
The Andino X1 Pico is a microcontroller board for the Raspberry Pi in a DIN-rail housing for installation in a control cabinet. It is used to adapt digital inputs and outputs for a voltage of 24 V. The X1 Pico has its own microcontroller for precise signal preprocessing and adaptation of signal generators and actuators. It also contains a Raspberry Pi. The inputs and outputs as well as the power supply of the Pi are optimally protected. Communication between the microcontroller and the Pi takes place via the UART interface.
For an introduction on the Andino X1 Pico board, see Andino X1 Pico
With this extension adding two relays and one digital input to the Andino X1 Pico, the system has a total of three inputs and 4 relays. The Inputs are galvanically isolated up to 5kV. For full documentation and connectivity of the extension, please refer to the setup section below. This extension adds two relay outputs and one digital input to the Andino. The extension is connected to the extension pin header. The extension board can be seen below:

This Plugin for the Andino X1 Pico, provides a single channel, fully Isolated RS485 extension for the Raspberry Pi or the Arduino Controller. This PlugIn can be jumpered as a two wire, half duplex or as a four wire full duplex interface. This Board based on the SPI Uart from NXP SC16IS752. The SPI Channel can be jumpered to the Raspberry Pi or the Arduino Controller. With the Arduino Controller time critical protocols can be implemented or a general pre processing of the data can be performed. For setup tutorials and full documentation refer to the setup section below
This Plugin for the Andino X1, provides a single channel, fully Isolated RS485 extension for the Raspberry Pi or the Arduino Controller. This PlugIn can be jumpered as a two wire, half duplex or as a four wire full duplex interface. This Board based on the SPI Uart from NXP SC16IS752. The SPI Channel can be jumpered to the Raspberry Pi or the Arduino Controller. With the Arduino Controller time critical protocols can be implemented or a general pre processing of the data can be performed.
In Half Duplex Mode the transmitter can be switched on by the application with the RTS signal or automatically by the Hardware (Auto Transmitter on).
The lines are connected to the A-D connectors. The E connector provides a 100 Ohm ground.

The connector screw terminal as found on the Andino X1:


First, download the sc16is752 overlay dts-file and the makedts script:
wget https://github.com/andino-systems/Andino/raw/master/Andino-Common/Extensions/RS232/Raspberry/sc16is752-spi0.dts
wget https://github.com/andino-systems/Andino/raw/master/Andino-Common/Extensions/RS232/Raspberry/makedts.sh
Make the script executable and run it
chmod +x makedts.sh
./makedts
Alternatively, sc16is752 can also be installed from the dtbo file:
wget https://github.com/andino-systems/Andino/raw/master/Andino-Common/Extensions/RS232/Raspberry/sc16is752-spi0.dtbo
sudo cp ./sc16is752-spi0.dtbo /boot/overlays/
To start sc16is752 on bootup, append this to the /boot/config.txt file. Run
sudo nano /boot/config.txt
And add the following lines to the end of the file:
dtoverlay=spi0-2cs,cs0_pin=8,cs1_pin=12,cs0_spidev=off,cs_1_spidev=off
dtoverlay=sc16is752-spi0,int_pin=7,xtal=11059200
Save the file and quit, then reboot. After that two new Devices are available: /dev/ttySC0 and /dev/ttySC1
To test device functionality, first install minicom:
sudo apt-get install minicom
For the initial setup, run
sudo minicom --setup
Enter Serial port setup
+-----[configuration]------+
| Filenames and paths |
| File transfer protocols |
| Serial port setup |
| Modem and dialing |
| Screen and keyboard |
| Save setup as dfl |
| Save setup as.. |
| Exit |
| Exit from Minicom |
+--------------------------+
Here the modem connection can be set up. Set the serial device to either /dev/ttySC0 or /dev/ttySC1, depending on which device you want to test.
+-----------------------------------+
| A -Serial Device : /dev/ttySC0 |
| B - Lockfile Location : /var/lock |
| C - Callin Program : |
| D - Callout Program : |
| E -Bps/Par/Bits : 115200 8N1 |
| F - Hardware Flow Control : No |
| G - Software Flow Control : No |
| |
|Change which setting? |
+-----------------------------------+
After completing the configuration, press the Esc key to return to the main setup menu and exit. The configured device should now show up normally in minicom.
All downloads can be found on our GitHub repository. This includes:
Forum SC16IS752 (SC16IS7XX driver) Device Tree problem
Device Tree, Overlays and Parameters
List of Overlays