UniPi User Manual REV 1.0 MYSH UniPi Contents Overview.................................................................................................................................................. 2 Description .............................................................................................................................................. 2 GPIO port map ..................................................................................................................................... 3 Power Requirements ........................................................................................................................... 4 Connecting Raspberry Pi to UniPi........................................................................................................ 4 Connecting peripherals ........................................................................................................................... 4 Relays................................................................................................................................................... 4 Digital Inputs ....................................................................................................................................... 4 Power supply ................................................................................................................................... 4 Jumper settings ............................................................................................................................... 5 Analog Inputs....................................................................................................................................... 5 Analog Output ..................................................................................................................................... 5 1Wire sensors ...................................................................................................................................... 6 UART .................................................................................................................................................... 6 I2C ports ............................................................................................................................................... 7 Technical parameters .............................................................................................................................. 7 Onboard I2C ICs.................................................................................................................................... 7 Relays................................................................................................................................................... 7 Digital Inputs ....................................................................................................................................... 7 Power Requirements ........................................................................................................................... 8 Dimensions .......................................................................................................................................... 8 Revision History ....................................................................................................................................... 8 WWW. UNIPI . TECHNOLOGY 1 REV 1.0 UniPi Overview UniPi is an add-on expansion board for the Raspberry Pi. It features many components such as digital galvanically isolated inputs with LED signalization, 0-10V analog inputs, 0-10V analog output, changeover relays, single channel 1wire master controller and a real-time clock module. UniPi is ready-to-use with the Raspberry Pi’s P5 header which can provide second I2C bus and two additional GPIOs. To be able to use this feature, modification of the Raspberry Pi is necessary. See our web pages for detailed documentation. There are many freely available libraries for C/Python that are compatible with the UniPi board: Webiopi – the perfect Swiss-knife to make connected things for Python WiringPi – GPIO library for the Raspberry Pi with support of most of UniPi’s peripherals, available for both C and Python Adafruit – the best knowledge base for Raspberry Pi peripherals There are also many tutorials for the UniPi available on our web pages www.unipi.technology UniPi is also mounting-hole compatible with the BeagleBone Black, but it is not officially supported for now. Please note the UniPi is only compatible with Raspberry Pi model B rev 2. Connecting model B rev. 1 is also possible provided checking the Raspberry Pi official documentation. Description Major building blocks of UniPi: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 12(+2)x galvanically isolated digital inputs 8x changeover relays via MCP23008 chip 2x 0-10V analog inputs via MCP3422 1x 0-10V analog output via PWM on GPIO 18 Real Time Clock Module with battery backup 12V power supply – Only for use with digital inputs of UniPi Inputs configuration jumpers 1Wire RJ45 connector and 1Wire channel master DS2482 External I2C_0 RJ11 connector UART RJ11 connector P1 header connector P5 header connector Power connector (standard 2.1mm) and RPi power jumper obrazek desky s popisem a cislama WWW. UNIPI . TECHNOLOGY 2 REV 1.0 UniPi GPIO port map Table 1 - P1 header map UniPi AO I01 I02 I03 I04 I05 I06 I07 I08 I09 I10 I11 I12 I2C1_SCL I2C1_SDA UART RX UART TX RPi GPIO GPIO18 GPIO04 GPIO17 GPIO27 GPIO23 GPIO22 GPIO24 GPIO11 GPIO07 GPIO08 GPIO09 GPIO25 GPIO10 GPIO02 GPIO03 GPIO15 GPIO14 Function PWM Digital Input Digital Input Digital Input Digital Input Digital Input Digital Input Digital Input Digital Input Digital Input Digital Input Digital Input Digital Input I2C1_SCL I2C1_SDA UART0_RXD UART0_TXD Description Analog Output 0-10V Digital Input Digital Input Digital Input Digital Input Digital Input Digital Input Digital Input Digital Input Digital Input Digital Input Digital Input Digital Input Internal I2C_1, RJ11 connector UART RJ11 connector Table 2- P5 header map UniPi I13 I14 I2C0_SCL I2C0_SDA RPi GPIO GPIO31 GPIO30 GPIO29 GPIO28 Function Digital Input Digital Input I2C0_SCL I2C0_SDA Description Digital Input Digital Input External I2C_1 Table 3 - MCP23008 pin map Relay 8 7 6 5 4 3 2 1 MCP23008 GP0 GP1 GP2 GP3 GP4 GP5 GP6 GP7 WWW. UNIPI . TECHNOLOGY 3 REV 1.0 UniPi Power Requirements There are two options of powering the UniPi board and Raspberry Pi: Single power source (RPi and UniPi are powered from the same power source) o jumper JP1 mounted o 5V DC 2.5A through the UniPi power connector o Raspberry Pi power connector not used Dual power source (separated power sources for UniPi and Raspberry pi) o jumper JP1 dismounted o 5V DC 1A through the Raspberry Pi’s mini USB o 5V DC 1.5A through the UniPi power connector oprazki Connecting Raspberry Pi to UniPi Before first use, plug in the CR2032 battery to the battery holder. Powering the board without battery may cause damaging the Real Time Module or other components on the UniPi. Connecting UniPi to Raspberry Pi is pretty simple. 1. 2. 3. 4. 5. 6. Make sure you have properly configured the power jumper – see powering requirements Click in the two plastic spacers to the mounting holes of the UniPi Using the provided 26pin cable connect the cable to the P5 header on the board Click in the Raspberry Pi Connect the other end of the 26pin cable to the RPi (make sure it is not twisted) Plug in the power supply For detailed tutorial describing assembling the P5 header visit our web page www.unipi.technology. Connecting peripherals Relays Maximum relay switching power is limited to 250V AC/5A or 24V DC/5A, voltages over this limit must be switched using external relay or contactor. Relays are controller by the MCP23008 (address 0x20), see map of MCP’s GPIO to relays in Chyba! Nenalezen zdroj odkazů.. Each relay has a green LED indicating its state. There are three contacts for each relay named CO (change-over or C=connected), NO (normally opened), NC (normally closed). By default contacts CO and NC are connected (NO is not connected), by switching the relay on CO gets connected to NO (NC is disconnected). The default state of the relay can be seen in picture XX. Oprazki relatek podobne jak ma papouch? Digital Inputs These inputs can be triggered by 5-20V DC voltage with minimum pulse length of 5ms. For easy visual reading their states all inputs are equipped with red LED. Power supply All inputs are primarily meant to be driven by the internal 12V power supply with 200mA overload protection. Its voltage is by default wired out via the orange connector marked as 12V and also via WWW. UNIPI . TECHNOLOGY 4 REV 1.0 UniPi green P2 connector (see picture XXX). Please note that using the internal power supply for the inputs the connected peripherals are galvanically connected to the UniPi. Jumper settings In case of use external power source, inputs must be configured be by the JP2 - JP5 jumpers. This configuration must be done before powering to the UniPi. Using the external power supply and proper jumper configuration provides galvanic isolation for its inputs. Jumper description: JP2 o o o JP3 o o o When switched to the side of the JP3 label inputs I01 and I02 act as input for signal from the connected peripheral device via the external power source. The ground of power supply for this inputs must be connected to P02. Please note that to set I01 and I02 for ext. power supply make sure to switch JP2 first and then JP3, after that you can safely connect the peripheral device. JP4 o o Switching this jumper to the side of the JP2 label causes changing the P02 (green connector) to act as an input for ground from the external power source. Otherwise P02 is connected to the 12V output. This step must be done at first when changing jumper settings. Please note that after this step, the GND of UniPi is connected to P02! Make sure to proceed with JP3 settings after this step. When switched to the side of the JP4 label inputs I03 and I04 act as input for signal from the connected peripherals via the external power source. The ground of power supply for this inputs must be connected to P01. JP5 o o o When switched to the side of the JP5 label inputs I05 and I14 act as input for signal from the connected peripherals via the external power source. The ground of power supply for this inputs must be connected to P01. Please note that I13 and I14 are wired out via the P5 header of Raspberry Pi. See our online documentation www.unipi.technology for assembly tutorials. Picture XXX describes input configurations. Analog Inputs UniPi features two analog 0-10V input channels marked as AI1 and AI2. Each channel has its own + and – (e.g. AI1+ and AI1-). The + connector expects positive voltage from the connected device and – expects the negative pole (the GND). See picture XXX for detailed description. Analog Output Analog output is driven by the GPIO 18 PWM signal and is designed to run at 100Hz. The GPIO port is galvanically isolated from the rest of the output. This output is able to control 0-10V analog output. The maximum current driven from this output is 20mA. This output is meant to control 3rd party devices that can adjust its power according to the 0-10V. External voltage must be connected to the AOV connector with maximum voltage of 35V DC. Make sure to adjust output voltage using the blue trimmer (labeled as R49) before connecting devices to avoid causing damage. WWW. UNIPI . TECHNOLOGY 5 REV 1.0 UniPi 1Wire sensors UniPi features single channel 1Wire master controller (DS2482-100, address 0x18). The 1Wire bus is wired out via the RJ45 connector (see Table 4 for detailed description). The data line is ESD protected and the 5V power current is limited to 200mA. RJ11 pin 1 2 3 4 5 6 7 8 Function 5V DATA GND Table 4 - 1Wire RJ45 connector UART The UART interface of Raspberry Pi is wired out via the RJ11 connector labeled UART. See Table 5 UART RJ11 connector. This port does not have any protection, so make sure to be careful when connecting devices. RJ11 pin 1 2 3 4 5 6 Function 5V RX TX GND - Table 5 - UART RJ11 connector WWW. UNIPI . TECHNOLOGY 6 REV 1.0 UniPi I2C ports Raspberry Pi has two I2C interfaces. The I2C _1 is wired out via the main P1 connector and does not need any special modification. All the onboard ICs are connected to this bus. The second I2C bus, I2C_0, is wired out via the P5 connector which needs to be soldered from the bottom of the Raspberry Pi. Please check our online tutorial for further information. The I2C _1 is by default also wired out via the onboard RJ11 connector and features ESD protection. RJ11 pin 1 2 3 4 5 6 Function 5V I2C clock (SCL) I2C data (SDA) GND - 2 Table 6 - I C RJ11 connector Technical parameters Onboard I2C ICs All onboard I2C chips are connected to the main bus. Table 7 - I2C chip addresses Chip type MCP23008 DS2482-100 MCP79410 MCP3422 24AA00 Address 0x20 0x18 0x6F, 0x57 0x68 0x50 Usage Relays 1Wire master Real Time Clock ADC EEPROM Relays 8x Omron G5LA-1-E: 250V AC/5A or 24V DC/5A Digital Inputs 14x 5-20V DC, min 5msec pulse Analog Output Maximum input voltage: 35V Maximum output current: 20mA WWW. UNIPI . TECHNOLOGY 7 REV 1.0 UniPi Power Requirements The main UniPi power connector is standard 2.1mm 5V 2.5A DC in single power supply mode (JP1 connected) When JP1 disconnected o 5V 1.5A DC for UniPi o 5V 1A DC for Raspberry Pi Dimensions Pavol! Revision History Revision Release date Author 1.0 1. 7. 2014 Tomas Hora WWW. UNIPI . TECHNOLOGY 8 REV 1.0
© Copyright 2024