Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Velo17
    3. Best
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by Velo17

    • RE: 💬 Building a Raspberry Pi Gateway

      I think I might have found the root of the problem. The ./configure detects my Rpi2 as such (rpi2) but in the RPi.cpp in line 26 there is the pin to GPIO translation array and it is lacking translations for the high pin numbers - which is obviously wrong as on the RPi2 you have the extended GPIO connector with 40 pins...

      const static int pin_to_gpio_rev1[41] = {-1, -1, -1, 0, -1, 1, -1, 4, 14, -1, 15, 17, 18, 21, -1, 22, 23, -1, 24, 10, -1, 9, 25, 11, 8, -1, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 };
      const static int pin_to_gpio_rev2[41] = {-1, -1, -1, 2, -1, 3, -1, 4, 14, -1, 15, 17, 18, 27, -1, 22, 23, -1, 24, 10, -1, 9, 25, 11, 8, -1, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 };
      const static int pin_to_gpio_rev3[41] = {-1, -1, -1, 2, -1, 3, -1, 4, 14, -1, 15, 17, 18, 27, -1, 22, 23, -1, 24, 10, -1, 9, 25, 11, 8, -1, 7, -1, -1, 5, -1, 6, 12, 13, -1, 19, 16, 26, 20, -1, 21 };
      

      I copied the rev3 array to the rev2 array and compiled this and it seems to work in my case!

      posted in Announcements
      Velo17
      Velo17
    • RE: Adding MySensors to existing arduino project? Minimal code needed?

      Hello 172pilot.

      I am in the same boat. I created a watering system based on 2 Arduinos, one is outside and one inside, the latter acting as monitoring screen that regulary receives values from the outside station. I want to change to MySensors in order to have more possibilities.

      I now use a Raspberry Pi that acts as MySensors gateway with a NRFL01 module and also as controller running Domoticz.

      To get started I programmed another Arduino with some basic sensor code so that I have some test data to send to my gateway and after this worked I now start to adapt my outside station code to report it's data to my gateway.

      Over here I only need to include

      #define MY_RADIO_NRF24
      #include <MySensors.h>  
      

      to my working code and then define the sensor node id etc. as you can see from the various examples.

      So I would suggest to first start with a test sensor node so that you can check that the basic data transfer is actually working fine.

      In your scenario you would probably try to run the gateway code on an Arduino and connect it to your controller by a WiFi connection and see if this happens correctly, but this is different from my project.

      posted in Development
      Velo17
      Velo17
    • RE: 💬 Building a Raspberry Pi Gateway

      @mfalkvidd I make / make install a couple of times and maybe did a git pull inbetween as well - now everything is back to normal again. Thank you for giving me some dbug tips for the next issue 🙂

      My strace output looks similiar.

      My configure line is

      ./configure --my-rf24-channel=124 --my-rf24-irq-pin=29 --my-rf24-ce-pin=31 --my-rf24-cs-pin=36 --spi-driver=SPIDEV --spi-spidev-device=/dev/spidev1.0 --my-debug=disable
      
      posted in Announcements
      Velo17
      Velo17