Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. lefrank01
    L
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    lefrank01

    @lefrank01

    Currently owner of a startup business axed into Led driven housegreen.

    1
    Reputation
    7
    Posts
    606
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Location quebec, canada Age 35

    lefrank01 Follow

    Best posts made by lefrank01

    • RE: unipi 1.1 + pi3 and 1Wire DS18B20 bus problem

      with this, look online the string of the array. from 1 to 20 DS18B20 correctly wired you will have the address.

      Once that done, you need to insert the address manually of each DS18B20 into codesys DS18B20. If you use more than 1 DS18B20, you have to click on the DS18B20 already existing, ADD new device and add another DS18B20.

      posted in CODESYS
      L
      lefrank01

    Latest posts made by lefrank01

    • RE: unipi 1.1 + pi3 and 1Wire DS18B20 bus problem

      with this, look online the string of the array. from 1 to 20 DS18B20 correctly wired you will have the address.

      Once that done, you need to insert the address manually of each DS18B20 into codesys DS18B20. If you use more than 1 DS18B20, you have to click on the DS18B20 already existing, ADD new device and add another DS18B20.

      posted in CODESYS
      L
      lefrank01
    • RE: unipi 1.1 + pi3 and 1Wire DS18B20 bus problem

      IF NOT x THEN
      x := TRUE;
      //scan function
      FOR ui:=1 TO MIN(Onewire_master.uiScannedDevices, 20) DO
      astrID[ui] := Onewire_master.pasScannedDevices^[ui-1].StringRepresentation;
      END_FOR
      END_If

      Run this code into a seperate POU (ST language)

      x=bool
      astrID=array
      ui=UINT

      posted in CODESYS
      L
      lefrank01
    • RE: unipi 1.1 + pi3 and 1Wire DS18B20 bus problem

      I got this problem few time ago. The sample project gived by Codesys isn't perfect but with this program you can get the address.

      -First thing I see is to disable 1-Wire. Because Codesys will try to ping 1-wire Bus from the raspberry pi board and not the 1-wire Bus from UNIPI board. Because the UNIPI BUS is over I2C.

      The best thing to do is to run the installation script. But for this, you need to log into the root session.

      Put the script into USB KEY.
      log into the root session
      click right on the script, property.
      permission - and bring it executable from anyone.
      then double click on the script.
      Run from terminal.
      There the script gonna get you the correct configuration. Make sure internet work because if my memory is good it have to download something.

      I did this on a clean install of pixel. And after that everything was fine.

      posted in CODESYS
      L
      lefrank01
    • UNIPI V1.1 analog output problem

      Hi,

      We are currently working on an project with the usage of UNIPI V1.1. We are using codesys for programming because of the well-known language. We are almost at the last step of the beta setup and we are having issue with the Analog Out ( mostly PWM). If everything work fine, we will need order many UNIPI product.

      We are using external power source, correct wired.
      We are using Meanwell 12v Power supply and we set jumper correctly and al work fine.

      The only one problem is the AO.

      AOV +12v
      AOG to common
      On AO there is already 10v even without value on the AO into codesys.

      Is there something we missed? Raspbian config to enable pwm or anything. We need answer please.

      If everything work, we will need analog out/PWM out expension card.

      posted in CODESYS
      L
      lefrank01
    • RE: Help about UNIPI v1.1 on codesys

      Problem fixed after clean install of most recent raspbian version

      posted in CODESYS
      L
      lefrank01
    • PWM setup issue used with codesys

      Hi, I need help about enabling the PWM from Raspbian. I'm up to date and using Pixel such as Raspbian version. On Codesys I'm using Analog input and digital input, + 2x 1-wire device. Everything work effectively but we are currently needing the PWM output to control Led driver.

      Everything is wired correctly according to tutorials. Into unipi the value is a real is I think that's mean 0-10 value.

      So is many question come with this issue. Is there something to write into /boot/config.txt to enable the pwm over GPIO 18?

      Should we set all power jumper to external?

      posted in UniPi 1 - HW Q&A
      L
      lefrank01
    • Help about UNIPI v1.1 on codesys

      Hi,

      before talk about my problem, I would says talk I've read all documentation from UNIPI and from CODESYS. I've passed more than 30hours before make just I was not missing something.

      I've bought UNIPI v1.1 earlier and using it on my Raspberry pi 3. I've installed Codesys and the plug-in.
      My raspbian is up to date.

      I ran the script given from codesys package to install the UNIPI on raspbian.

      2 things are not working. First the digital input doesnt work. When I connect +12v to any input. The led turn on but no state change into Codesys. Codesys is telling me that the BUS is not currently running. very strange.

      The relay over I2c are working properly so I figure that the I2c port is OK.

      Other thing that is not working is the DS18B20. I was having 1-wire sensor on my arduino. I took them and using my breadboard and a lan cable connected it using the correct pin-out provided by you. I'm 100% sure that the DS18B20 are working and can use my arduino for the address but I'm not supposed to work that way. So I tried many things but not succesfully. I can't figure why unipi doesn't give a Test Project sample that is 100% working on codesys to check what is wrong.

      At the moment, my program is running, Onewire_master is running but not DS18B20 because of ''No driver found''![alt text]0_1489266970935_no driver.jpg

      posted in CODESYS
      L
      lefrank01