background image

Optionally, to be able to use the

 

/sys/

 

files not as super user, create a new group "ionopi" 

and set it as the module owner group by adding an udev rule:

sudo groupadd ionopi 

sudo cp 99-ionopi.rules /etc/udev/rules.d/ 

and add your user to the group, e.g., for user "pi":

sudo usermod -a -G ionopi pi 

Reboot:

sudo reboot 

You will find all the available devices under the directory

 

/sys/class/ionopi/.

Iono Pi utility

The Iono Pi utility is a simple command-line script to control Iono Pi.

Run the following commands to download and install the Iono Pi utility:

sudo apt install git

 

git clone --depth 1 https://github.com/sfera-labs/iono-pi-c-lib.git

 

cd iono-pi-c-lib 

sudo chmod +x build 

sudo ./build 

For additional details, refer to https://github.com/sfera-labs/iono-pi-c-lib 

You can run the Iono Pi utility without arguments to print its options:

iono

 

usage: iono <command> 

Commands: 

   -v              Print the version number of the ionoPi library 

   led on          Turn on the green LED 

   led off         Turn off the green LED 

   o<n> open       Open relay output o<n> (<n>=1..4) 

   o<n> close      Close relay output o<n> (<n>=1..4) 

   oc<n> open      Open open collector oc<n> (<n>=1..3) 

   oc<n> close     Close open collector oc<n> (<n>=1..3) 

   di<n>           Print the state ("high" or "low") of digital input di<n> (<n>=1..6) 

   di<n> -f        Print the state of digital input di<n> now and on every change 

   ai<n>           Print the voltage value (V) read from analog input ai<n> (<n>=1..4) 

   ai<n> -r        Print the raw value read from the A/D converter's channel 

 

 

 

    corresponding to analog input ai<n> (<n>=1..4) 

   1wire bus       Print the list of device IDs found on the 1-Wire bus 

   1wire bus <id>  Print the temperature value (°C) read from 1-Wire device <id> 

   1wire ttl<n>    Print temperature (°C) and humidity (%) values read from the 

                   MaxDetect 1-Wire sensor on TTL<n> (<n>=1..4) 

   wiegand <n>     Wait for data to be available on Wiegand interface <n> (<n>=1|2) 

                   and print number of bits and value read 

   wiegand <n> -f  Continuously print number of bits and value read from Wiegand 

                   interface <n> whenever data is available 

25

Iono Pi User Guide

Содержание IPBB20R

Страница 1: ...ono Pi board IPMB20R Iono Pi with Raspberry Pi 3 Model B IPMB20RP Iono Pi with Raspberry Pi 3 Model B IPMB20R41 Iono Pi with Raspberry Pi 4 Model B 1GB IPMB20R42 Iono Pi with Raspberry Pi 4 Model B 2G...

Страница 2: ...ts 16 AIx Analog inputs 16 Ox Relays 17 L1 On board application LED 17 TTL1 1 Wire input output 17 TTLx DIx TTL input output or generic digital inputs 18 OCx DIx Open collector outputs or generic digi...

Страница 3: ...ions 31 Dimensions 33 Disposal 34 Installation and use restrictions 34 Standards and regulations 34 Safety instructions 34 Set up 34 Conformity Information 35 EU 35 USA 35 CANADA 36 RCM AUSTRALIA NEW...

Страница 4: ...s neither designed nor intended for use in critical military or aerospace applications or environments and for automotive applications or environment Customer acknowledges and agrees that any such use...

Страница 5: ...product Hazard levels This manual contains information you must observe to ensure your personal safety and prevent damage to property Safety information in this manual are highlighted by the safety s...

Страница 6: ...stalled and operated properly Follow all applicable electrical safety standards guidelines specifications and regulations for installation wiring and operations of this product The Raspberry Pi board...

Страница 7: ...ttery must be replaced only with an identical battery See the Replacing the RTC backup battery section for instructions Do not throw lithium batteries into fire do not solder on the cell body do not r...

Страница 8: ...me and building automation as well as access control hotel room control solutions environmental monitoring and many others Software development is pure Raspberry Pi with the constantly growing list of...

Страница 9: ...s and open collector outputs 1 Wire and Wiegand support real time clock with replaceable CR1025 Lithium Manganese Dioxide back up battery embedded Microchip ATECC608A secure element chip 2 on board LE...

Страница 10: ...ION EXAMPLE Device identification The device can be identified with the information provided in the rating and identification plate permanently attached to the side of the case EXAMPLE RATING AND IDEN...

Страница 11: ...no need to open the case unless you have to change the position of the jumpers that select the voltage level of the TTL DI inputs see below or to replace the internal battery The Micro SD card not pro...

Страница 12: ...on to external devices including USB cables Use a non conductive pin or small tool to help extract the battery from its holder Insert the new battery with a gentle push You don t need tools to insert...

Страница 13: ...supply and low power input output connections The maximum conductor cross section is 1 5 mm2 16 AWG or 0 5 mm2 when using ferrules highly recommended Recommended stripping length is 5 mm Screw thread...

Страница 14: ...ximum conductor cross section is 2 5 mm2 12 AWG Recommended stripping length is 7 mm Screw thread is M3 Never exceed 0 6 Nm torque when tightening the screws THE IONO PI CIRCUIT BOARD 13 Iono Pi User...

Страница 15: ...L1 GPIO4 in out 1 Wire Wiegand or generic TTL I O TTL2 GPIO26 in out 1 Wire Wiegand or generic TTL I O TTL3 GPIO20 in out 1 Wire Wiegand or generic TTL I O TTL4 GPIO21 in out 1 Wire Wiegand or generic...

Страница 16: ...and open collector outputs it could provide up to 3 5A at 5V to the Raspberry Pi Because Iono Pi has a 2 2A resettable fuse polyfuse on the power supply line the maximum current that its regulator can...

Страница 17: ...nput impedance is approximately 200kOhm For convenience a separate analog ground connection A GND is avaliable on the terminal block next to AI1 A GND should be used to connect the ground reference of...

Страница 18: ...Note that depending on the Raspberry Pi operating system s configuration the GPIO line may be in a high state by default on startup causing the LED to turn on before your application takes control of...

Страница 19: ...ATA1 line of a Wiegand interface in combination with TTL1 or any other generic TTL I O function TTL3 DI2 configured as TTL I O can be used as the DATA0 line of a second Wiegand interface or any other...

Страница 20: ...I3 INPUT MODE SELECTION JUMPERS POSITION To use the TTLx DIx lines as generic inputs the corresponding jumper see table below should be set across the two pins closer to the terminal block Set the jum...

Страница 21: ...ositive voltage up to the VS power supply voltage When used to detect the status of dry contacts it is recommended to use VSOUT as the voltage reference The DI4 DI6 front end circuits have 2 2kOhm pul...

Страница 22: ...ve restore AES 128 encrypt decrypt Galois field multiply for GCM Networking key management support Turnkey PRF HKDF calculation for TLS 1 2 1 3 Ephemeral key generation and key agreement in SRAM Small...

Страница 23: ...Interfacing Options or Advanced Options on older Raspbian versions I2C and select Yes to enable the I2C interface To install the i2c tools package sudo apt get update sudo apt get install i2c tools W...

Страница 24: ...should see 6f in the address list This is the address of the RTC If the RTC address is detected double check your software installation for issues at the Linux modules level Run the lsmod command to l...

Страница 25: ...Bluetooth HCI UART driver sudo systemctl disable hciuart To disable the WiFi one convenient solution on Raspbian distributions is to blacklist the WiFi driver Edit etc modprobe d raspi blacklist conf...

Страница 26: ...Print the version number of the ionoPi library led on Turn on the green LED led off Turn off the green LED o n open Open relay output o n n 1 4 o n close Close relay output o n n 1 4 oc n open Open op...

Страница 27: ...e connected to an analog to digital converter chip using the SPI protocol Analog inputs notes The AI1 and AI2 analog inputs on the terminal block and the AI3 and AI4 pins on the on board analog inputs...

Страница 28: ...significant amount of time The following charts show the thermal behaviour of Iono Pi in different conditions in a typical installation with the device under test installed in a standard not ventilate...

Страница 29: ...35C AMBIENT TEMPERATURE LOW CPU LOAD 35C AMBIENT TEMPERATURE HIGH CPU LOAD 28 Iono Pi User Guide...

Страница 30: ...45C AMBIENT TEMPERATURE LOW CPU LOAD 45C AMBIENT TEMPERATURE HIGH CPU LOAD 29 Iono Pi User Guide...

Страница 31: ...Block diagram IONO PI BLOCK DIAGRAM 30 Iono Pi User Guide...

Страница 32: ...d 500mA All relays ON add 50mA Actual current consumption may vary based on working conditions Raspberry platform compatibility Pi 4 Model B Pi 3 Model B Pi 3 Model B Pi 2 Model B tested with Pi 4 Mod...

Страница 33: ...with backup lithium battery Only use CR1025 Lithium Manganese Dioxide Li MnO2 batteries Expected battery life without main power supply 2 years 15 pin terminal block characteristics Maximum conductor...

Страница 34: ...Dimensions DIMENSIONS mm 33 Iono Pi User Guide...

Страница 35: ...body to gain access to the Iono Pi circuit board Always remove the battery before disposing of this product Installation and use restrictions Standards and regulations The design and the setting up o...

Страница 36: ...ential installation This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instructions may cause harmful interference to radio commu...

Страница 37: ...USA Raspberry Pi 3 Model B FCC IDENTIFIER 2ABCB RPI32 Raspberry Pi 3 Model B FCC IDENTIFIER 2ABCB RPI3BP Raspberry Pi 4 Model B FCC IDENTIFIER 2ABCB RPI4B The antenna s used for this transmitter must...

Страница 38: ...doit pas produire de brouillage et 2 l utilisateur de l appareil doit accepter tout brouillage radio lectrique subi m me si le brouillage est susceptible d en compromettre le fonctionnement 37 Iono P...

Отзывы: