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 !