USB ADC Relay Board V 8.0

The ADC Relay Adapter V 8.0 is an extension board for RaspBerry Pi based on Open Hardware Design. It has two principaln hardware features: control of 4 relays and 4 ADC channels. The board is connected to the Raspberry with an USB Bus, this feature allow the compatibility with other linux boards.
This board contains four switch relay 1 Form C, 2 ADC IN 0-10V and 2 ADC IN 4-20mA. The connection with Raspberry PI is made with a classical USB-UART converter FT232RL (FTDI Chip) compatible with the kernel, the USB connector provides also the power supply.
This choice make the device usefull also in non-linux based board too.
You can control it with a serial connection with /dev/ttyUSB*. I prefer Putty, but if you use the command line, you can work with minicom.
You can develop your own GUI, for example using QT-QML/C++ libraries, so you can realize simple control algorithms (P,PI,PID) with and without autotunig, or more complex cost effective control devices.

ADC Relay Adapter V8.0 Datasheet

USB-ADC V 8.0 Eagle files

Firmware USB ADC Relay

To test if the firmware works well follow these steps:

  1. Open RealTerm ( Official web page )
  2. Open the correct serial port at 9600 baud, no parity, 8 bits, 1 stop bit and no hardware flow control
  3. Send the serial commands as HEX Value

Serial commands example:

Set On Rel1
0x49 0x02 0x02 0x00 0x01 0x48
Set Off Rel1
0x49 0x02 0x02 0x00 0x00 0x49

Set On Rel2
0x49 0x02 0x02 0x01 0x01 0x49
Set Off Rel2
0x49 0x02 0x02 0x01 0x00 0x48

Set On Rel3
0x49 0x02 0x02 0x02 0x01 0x4a
Set Off Rel3
0x49 0x02 0x02 0x02 0x00 0x4b

Set On Rel4
0x49 0x02 0x02 0x03 0x01 0x4b
Set Off Rel4
0x49 0x02 0x02 0x03 0x00 0x4a

ADC State
0x49 0x03 0x00 0x4A

Certification Disclaimer

Simple RS 422 transceiver

The interface RS 422 is a serial communication with differential signals for TX and RX. We have a TX that becomes TX+ and TX-, and a RX that becomes RX+ and RX-. There are two important advantages of a differential serial communication: the first is the high noise immunity, and the other is is the possibility of utilize long wires (up to 1500 m).


RS422 Schematic RS422 Schematic RS422 Transceiver Layout RS422 Transceiver Layout


RS 422 V 1.0 Eagle Cad files



ServoBerry V 1.0 is an extension board for Raspberry Pi derived from the shield Adafruit 16-Channel Servo Driver, and it is an Open Hardware Design. It has two functionalities: a PWM led/motor driver IC and an ADC.

Raspberry Boards Compatibility



The PWM is the PCA9685 an I2C-bus controlled 16-channel LED controller. Each LED output has its own 12-bit resolution (4096 steps) fixed frequency individual PWM controller that operates at a programmable frequency from a typical of 24 Hz to 1526 Hz with a duty cycle that is adjustable from 0% to 100% to allow the LED to be set to a specific brightness value. All outputs are set to the same PWM frequency. The LED output driver is programmed to be either open-drain with a 25 mA current sink capability at 5 V or totem pole with a 25 mA sink, 10 mA source capability at 5 V. The MCP3008 device is successive approximation 10-bit Analog-to-Digital (A/D) converters with on-board sample andhold circuitry. The MCP3008 is programmable to provide four pseudo-differential input pairs or eight single-ended inputs. Communication with the devices is accomplished using a simple serial interface compatible with the SPI protocol. The devices are capable of conversion rates of up to 200 ksps.


You can see a couple of PWM motors connected to ServoBerry board.



It is possible to preorder this board for only 25€.

ServoBerry with CodeSys

It is possible to use servoberry board with codesys application for raspebrry.


  1. SPI enabled
  2. Comment the following line in config.txt:


  1. Install CODESYS Control for Raspberry Pi SL for more details go to:

It is possible to use the free version that work for 2 hours.

  1. Install CODESYS Development System V3.5 SP7 Patch 5 for more details go to:
  2. Open in CODESYS Development System V3.5 the project Servoberry.project.
  3. if the device is in the same network with your programming PC. Select it and run “log in” from the menu “Online”. Then start the application with F5.
  4. Start an internet browser (possibly also on your smartphone) and connect to <Network Address raspberry>:8080/webvisu.htm


Software examples

Download Wheezy raspbian Prerequist:

1. SPI enabled
2. wiringPi installed

Comment the following line:

dtoverlay=mcp2515-can0-overlay, oscillator=16000000,interrupt=22

in the /boot/config.txt file to enable the SPI0.0 dev used to communicate with servo PWM driver.

Download ServoBerry-Test



Schematic PDF

EalgeCAD File

ServoBerry Datasheet


Certification Disclaimer

GPIBerry Pi V 1.1

The GPIB standard was created in the late 1960s for use with automated test equipment, and is still in use for that purpose. More recent standards such as USB, FireWire, and Ethernet take advantage of declining costs of interface electronics to implement more complex standards providing higher bandwidth, so many new measuring instruments can be controlled without GPIB. The USB-GPIB Adapter is important to control old / second hand instruments. Typical instruments of a laboratory for hobbistic electronic.

GPIBerry Pi V 1.1 is an extension board for RaspBerry Pi. It is an Open Hardware Design. It has the functionality of a GPIB-USB adapter. The board is connected to the Raspberry with an USB Bus, this feature allow the compatibility with other linux boards.
GPIBerry PI 1.1 is composed by two blocks: an Arduino Nano V3.0 board and GPIB drivers SN75160BDWG4 and SN75161BDGW4.

GPIBerry V1.1 is not longer supported, it remains in experimental phase.

This project born from this video GPIB with Arduino.

GPIBBerry Layout

GPIB Berry

This project is in experimental phase, and I have made tests only with an old Relay Actuator HP 59306A.

GPIBerry V1.1

Firmware download usb2gpib_modified

How to use the GPIBerry with Raspberry Pi

The communication between Raspberry and Arduino is serial, and then we must install a program to control this kind of interface.

  1. Install minicom sudo apt-get install minicom
  2. sudo chmod a+rw /dev/ttyUSB0
  3. minicom -b 115200-D /dev/ttyUSB0

HP 59306A





Now to send the remote command to the Relay Actuator (GPIB Address 0) type the following string


HP 59306A Remote





To switch on the relay 1 type the following string

W0= A1;

HP 59306A A on





To switch on the relay 3-5 together type the following string

W0= A35;

HP 59306A A 3-5 on





To switch off the relay 5 type the following string

W0= B5;

HP 59306A B 5 off





GPIBerry video