Subcategories

  • No description available

    52 Topics
    188 Posts
    A
    I made the connection according to the instructions https://kb.unipi.technology/en:hw:03-unipi11:description-of-io:01-description-of-di#di13-14 and changed the EVOK config(uncomment 13/14 and substitute correct pin number). file, but inputs 13/14 still do not appear in the web interface (RPI restarted, browser cache cleared).
  • Unipi 1.1 Real Time Clock (RTC)

    5
    0 Votes
    5 Posts
    2k Views
    W
    I installed the image on the SD card with a program named "ApplePiBaker" and now it works!
  • Unipi 1.1 Node-RED OS doesn't start

    3
    1
    0 Votes
    3 Posts
    1k Views
    W
    Hello @Martin-Kudláček, I installed the image on the SD card with a program named "ApplePiBaker" and now it works! 😃 I don't know why it would work when I did the same proces with Balena Etcher. I also tried to install the image on the SD card with Disk Utility on my Mac but this also didn't work.
  • More relay outputs possible

    2
    0 Votes
    2 Posts
    857 Views
    Z
    Hi https://www.youtube.com/watch?v=ouRjLepp2SM https://www.unipi.technology/8-relay-addon-emo-r8-p34?categoryId=14
  • Unable to connect to the controller or activate the licence.

    3
    0 Votes
    3 Posts
    958 Views
    Z
    Hi Tomas. Yes, after reinstalling OS on industrial SD card everything its ok. I think the problems became becouse of the wrong settings in Mervis DB and Proxy, also probobly i was saving the project in proxy profile, im not sure. After reinstalling OS i didnt use Proxy or DB and it was ok, few days before i try to connect the controller to db and proxy and problem apear again, lucky i was able to disable them and after cold reboot everything its working fine. I think my settings its wrong, what its correct URL for DB and Proxy server, on Mervis KB site they are the same for diffrent version of Mervis. I got mervis 2.3.0 installed. Also i have some questions: How to in HMI editor create momentary pushbutton? Can i set the delay timer time from HMI and how, i try various options but didnt work. How to create and use fupla blocks, i manage to create one (i think) , it is in solution properties but cant use it, i try to drag and drop but not working. How to do this? Can modbus client and modbus server can be use at the same time? Also i have finger print sensor https://www.ebay.co.uk/itm/USB-Fingerprint-Reader-Scanner-Biometric-Door-Access-Control-Attendance-System/283645765047?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m1438.l2649 Any chance to connect it to the controller using UART or USB? Regards.
  • power supply

    1
    0 Votes
    1 Posts
    606 Views
    No one has replied
  • How to connect Unipi 1.1 to DS18B20 Sensor

    2
    0 Votes
    2 Posts
    2k Views
    M
    Hello @witenite, I suppose you are running our official Node-RED Image. In this case, there is the underlying software Evok that makes the PLC I/Os (including 1-Wire) available to the Node-RED IDE via Unipi nodes. To avoid 1-Wire bus access conflicts, the appropriate kernel module (named ds2482), managing also sysfs access through /sys/bus/w1/devices, is disabled by default. Basically, you have two options (that cannot be combined mutually): Use Evok and Unipi node(s) to read data from sensors in Node-RED - then follow this tutorial. This is the default state. Disable 1-Wire support in Evok (comment the OWBUS section in /etc/evok.conf), enable the module loading( add/uncomment "dtoverlay=ds2482" in /boot/config.txt), and use some other nodes (e.g. the one meant in your post) to access the 1-Wire bus.
  • Relay CMD

    2
    0 Votes
    2 Posts
    765 Views
    T
    Relays on Unipi 1 are ware wired via I2C gpio expansion so you will needsomething a bit more complicated. There are many options: linux like https://github.com/Peekayy/mcp230xx Python using already made library like https://github.com/adafruit/Adafruit_CircuitPython_MCP230xx C/C++ or anything else the same way just like Python ...
  • Measure 2 Temperature and 2 Humidity

    2
    0 Votes
    2 Posts
    942 Views
    Martin KudláčekM
    Hello @FabioIT, the SPI is not used by the Unipi 1.1 and it is not exposed as any port. You can access the SPI on the pin header of the Raspberry Pi, but it would require to create some "hat" that goes between the Rpi and the Unipi 1.1 ribbon connector. Martin
  • Work Mervis with Unipi 1.0

    6
    1
    0 Votes
    6 Posts
    2k Views
    T
    @tomas_hora Hi Tomas, Thank a lot for your tutorial, it work fine. Now I will go to the next step to make a project for home automation Managemet of loads in the house. For this project I will use a hybrid power main and fotovoltaic infrastructure. Now I'm in state to define this project. Tase
  • RTC update in Unipi 1.1

    2
    0 Votes
    2 Posts
    1k Views
    Martin KudláčekM
    Hello @fabioit, the time and date is managed by the timesyncd service. To set the timezone and disable the NTP use the timedatectl: [image: 0_1588855330568_8cf1e8f7-93a8-4e59-86cf-e14e58e35a71-image.png] Best regards, Martin
  • This topic is deleted!

    Locked
    1
    0 Votes
    1 Posts
    15 Views
    No one has replied
  • UniPi 1.1 Lite - is UART available?

    1
    0 Votes
    1 Posts
    868 Views
    No one has replied
  • xG1W-2 gateway

    2
    0 Votes
    2 Posts
    1k Views
    T
    @viljar-kaarde Fixed in the update of the app.
  • UniPi 1.1 communicates with external Rpi

    2
    0 Votes
    2 Posts
    1k Views
    Martin KudláčekM
    Hi @ckb, if you use Mervis on UniPi 1.1, then you have practically no other option other than to use ModbusTCP. On the RaspberryPi you can create a Python script utilizing the pymodbus library and program the logic in a way the DIs and ROs are mapped to the coils and AO/AI are mapped to registers. Best regards, Martin
  • UniPi 1.1 Raspberry Pi 4 support

    9
    0 Votes
    9 Posts
    3k Views
    D
    Hi @Martin-Kudláček, thank you for your input. The problem were the internal pull-ups, set to low. Usually the python library, I'm using, does this job, but there seems to be a problem with the Raspberry Pi 4. Nevertheless I was able, to get everything up and running again, by setting needed GPIO pull-ups to high via /boot/config.txt. It's not the best solution, because it should be fixed software-wise. But it's the proof, that the problem is not related to hardware. Thank you so much for helping me, figure this out. Dirk
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • 12V Expensive mistake

    3
    0 Votes
    3 Posts
    2k Views
    J
    @martin-kudláček OK! Thank you!
  • Ethernet ports UDP TC

    3
    0 Votes
    3 Posts
    2k Views
    F
    Hello Martin, Thank you very much. I think there is also an UDP port to find PLC (UDP Broadcast). Whitch one is it? Best regards François
  • Extension module

    5
    0 Votes
    5 Posts
    3k Views
    T
    @Martin-Kudláček Thank you
  • Interfase trouble with the raspberry pi 3 (Analog output)

    3
    0 Votes
    3 Posts
    2k Views
    J
    I use the wiringPi library so to run this code you should install wiringPi #include <stdio.h> #include <unistd.h> #include <stdint.h> #include "wiringPi.h" void gpioSetupCostum() { printf("gpioSetup has started\n"); wiringPiSetupGpio (); usleep(1000); printf("wiringPiSetupGpio was a succes\n"); pinMode(18, PWM_OUTPUT); usleep(1000); printf("pinMode was a succes\n"); pwmSetMode(PWM_MODE_MS); usleep(1000); printf("pwmSetMode was a succes\n"); pwmSetRange(1024); usleep(1000); printf("pwmSetRange was a succes\n"); pwmSetClock(47); usleep(1000); printf("pwmSetClock was a succes\n"); } void gpioClose() { pwmSetMode(PWM_MODE_BAL); usleep(1000); pinMode(18, INPUT); usleep(1000); } int main() { int GPIOCounter, SampleCounter; double PWM[11]={0, 1 , 2 , 3, 4, 5, 6, 7, 8, 9, 10}; const int len = 11; int AmountOfSamples = 200; printf("Start setup\n"); gpioSetupCostum(); printf("Finish setup\n"); printf("Start reading input ports\n"); for(SampleCounter =1; SampleCounter <= AmountOfSamples; SampleCounter++){ printf("Sample = %d\n", SampleCounter); for(GPIOCounter = 0; GPIOCounter < len; GPIOCounter++){ printf("PWM input = %.1f\n", PWM[GPIOCounter]); pwmWrite(18, (int)((PWM[GPIOCounter] * 1024)/10)); usleep(1000000); } } gpioClose(); }