Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
sj44kS

sj44k

@sj44k
About
Posts
35
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Raspberry GPIO NRF24l01+ make error
    sj44kS sj44k

    YEAH !
    It works !! thanks for pointing me in the right direction !
    Arduino needed the right scketch uploade (I messed so much with it I needed to go back which I just did)

    As a reference for all who are trying to get this to work.

    Use this pinout for the RPI B+
    Radio 1 grijs GND Rpi 25
    Radio 2 paars 3v3 Rpi 17
    Radio 3 blauw CE Rpi 22
    Radio 4 groen CS Rpi 24
    Radio 5 Geel SCK Rpi 23
    Radio 6 oranje MOSI Rpi 19
    Radio 7 Rood MISO Rpi 21

    Arduino Mega
    Radio 1 GND Paars Arduino GND
    Radio 2 3v3 Blauw Arduino 3,3v
    Radio 3 CE Groen Arduino 48
    Radio 4 CS Geel Arduino 49
    Radio 5 SCK Oranje Arduino 52
    Radio 6 MOSI Rood Arduino 51
    Radio 7 MISO Bruin Arduino 50

    I used the Libs mentioned in the post above by Vladut Grecu :
    https://github.com/mysensors/Raspberry

    I used this Temperature sketch :
    http://www.mysensors.org/build/temp

    Before I did got the Temp sketch operational I needed to clear my EEprom :
    http://arduino.cc/en/Tutorial/EEPROMClear

    /*
     * EEPROM Clear
     *
     * Sets all of the bytes of the EEPROM to 0.
     * This example code is in the public domain.
    
     */
    
    #include <EEPROM.h>
    
    void setup()
    {
      // write a 0 to all 512 bytes of the EEPROM
      for (int i = 0; i < 512; i++)
        EEPROM.write(i, 0);
       
      // turn the LED on when we're done
      digitalWrite(13, HIGH);
    }
    
    void loop()
    {
    }
    

    Than we need to edit the sketch a bit due to the fact that the Rpi gateway DOES NOT hand out the Node ID's automaticly, and the Sketch is not Arduino Mega compatible so :

    Set the Node ID manualy add

    gw.begin(NULL,10,false);
    

    Make sure the sketch is compatible with the Arduino MEGA pins (as published abover here)
    Change Line 12 in the sketch :

    MySensor gw;
    

    into

    MySensor gw(48,49)
    

    Than compile and hook everything up and upload the compiled sketch and start the Rpi (SPI enabled) and start
    ./PiGatewaySerial

    Output should show on your Pi when you
    Cat /dev/ttyMySensorsGateway

    Big Thank you to @Vladut-Grecu !

    Controllers

  • [security] Introducing signing support to MySensors
    sj44kS sj44k

    @Anticimex
    Thanks for that info, to me it is clear that depending on the used pin in the software one should connect the ATSHA204A corresponding with the software.
    Picture does show you being correct how simple it really is to embed the ATSHA204A hardware in the total setup.

    Development security
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular