====== Connecting the EMO-R8 to Unipi 1.1 ====== This guide follows the [[creating-new-project-on-unipi11-hidden|]]. It describes how to connect **EMO-R8** expansion modules to Unipi 1.1 in Mervis and thus **expand it by up to 56 relay** outputs. The addressing the module, further information, and a link to the e-shop can be found [[en:hw:03-unipi11:extension|at this link]]. ;;# Unipi 1.1 ;;# What you will need: - [[https://www.unipi.technology/unipi-1-1-complete-set-p123|Unipi 1.1 expansion board with Raspberry Pi]] - [[https://www.unipi.technology/8-relay-addon-emo-r8-p34|Expansion module EMO-R8]] - [[https://www.unipi.technology/2gb-industrial-microsd-card-slc-p232|MicroSD card]] for RPi - [[https://www.unipi.technology/power-supply-for-din-rail-5v-dc-2-4a-p65|2x 5 V⎓ / 2 A power source]] {{ :files:img_breakline_2.png?nolink |}} For the purposes of this manual, it is NECESSARY: - [[creating-new-project-on-unipi11-hidden|Complete the first project with Unipi 1.1]] - Connect the EMO-R8 module to the Unipi 1.1 using an RJ11 cable - Connect power supply - wait at least one minute before the OS in the PLC starts ===== Connection ===== In the package of the EMO-R8 module, you will find an RJ11 connecting cable using which you can easily connect the module to Unipi 1.1. In addition to this connection, a 5 V⎓ / 0.6 A power supply must also be supplied to the module. {{ :en:sw:01-mervis:connection_emo-r8.png?nolink |}} ===== Procedure ===== To add an EMO-R8 device, first open your solution with the assigned Unipi 1.1, including inputs and outputs. ---- In the left panel of the solution, right-click on the I²C channel. In the context menu, select **Add Library Device**. {{ :en:sw:01-mervis:01_emo-r8.png?direct |}} ---- The **Add Library Device** dialog box opens, listing the various devices. In this dialog, expand the Unipi folder (v1.1) and continue with the I²C subfolder, select EMO-R8 here. Then click on the arrow icon {{:files:dialog_arrow_right.png?nolink|}} to add the device definition to the list of selected devices. Then just confirm by clicking **OK**. {{ :en:sw:01-mervis:02_emo-r8.png?direct |}} ---- Device definition is added, but the device (module) address still needs to be set. Highlight the device definition and in the right column **Properties** set the address for the parameter **Device address** according to [[en:hw:03-unipi11:extension#addressing|physical address setting on the module]]. {{ :en:sw:01-mervis:03_emo-r8.png?direct |}} ---- Now [[en:sw:01-mervis:autogen-hidden|set autogen]] for the selected relay outputs, or the entire module and **Deploy solution**. {{ :en:sw:01-mervis:04_emo-r8.png?direct |}} ---- The inputs are now added to the project and can be controlled manually in the Mervis IDE, or automatically by a program.