@martinhjelmare don't know difference. Just have node using nrf24 and any configuration that will work would be ok for me.
Huczas
@Huczas
Best posts made by Huczas
Latest posts made by Huczas
-
RE: How to build raspberry gw 2.0.0
-
RE: How to build raspberry gw 2.0.0
./configure --my-gateway=serial --my-serial-port=/dev/ttyAMA0 --my-serial-baudrate=115200 --my-transport=nrf24 --my-rf24-irq-pin=15
Wiring was ok, and was working fine witch gw1.4 so - there is all ok, soldered well.
Yesterday I connected gw2.1.1 on arduino uno - blue usb wire - it is working now, nodes are visible in my system, data is comming. If there well be no luck i will live in that way. It's just another thing behinde my speaker.
-
RE: How to build raspberry gw 2.0.0
@mfalkvidd another thing, after changing version of gateway from 1.4 to 2.1.1:
-
RE: How to build raspberry gw 2.0.0
@mfalkvidd libraries in Arduino IDE updatet to 2.1.1 sketch uploaded - no errors.
in RPi3, latest version of gateway installed and when all is up I get this:pi@raspberrypi:~/MySensors $ sudo ./bin/mysgw -d mysgw: Starting gateway... mysgw: Protocol version - 2.1.1 mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.1 mysgw: TSM:INIT mysgw: TSF:WUR:MS=0 mysgw: !TSM:INIT:TSP FAIL mysgw: TSM:FAIL:CNT=1 mysgw: TSM:FAIL:PDT mysgw: TSM:FAIL:RE-INIT mysgw: TSM:INIT mysgw: !TSM:INIT:TSP FAIL mysgw: TSM:FAIL:CNT=2 mysgw: TSM:FAIL:PDT mysgw: TSM:FAIL:RE-INIT mysgw: TSM:INIT mysgw: !TSM:INIT:TSP FAIL mysgw: TSM:FAIL:CNT=3 mysgw: TSM:FAIL:PDT ^Cmysgw: Received SIGINT
Do you have any guess on it? For me it looks like nothing is transmitting from node.
My node code: http://pastebin.com/LCjF5Cm1 maybe something is wrong with that code. -
How to build raspberry gw 2.0.0
Hi, just want to create using https://www.mysensors.org/build/raspberry - gateway on raspberry pi in version 2.0.0. I've done git clone then git checkout 2.0.0 - but there isn't .configure file and I don't know how to make it to work for me.
Can anyone help me?
Second way is to leave gw in newest version(2.1.1) and upgrade code in my node but I don't know how becouse my node is for version 2.0gw. I can post that code if anyone know how to upgrade it. -
RE: Solar Powered Soil Moisture Sensor
@flopp is your code should work with new version of gateway 2.1.1?
Just maked using this tutorial my gateway https://www.mysensors.org/build/raspberry and I'm getting nothing in debug...pi@raspberrypi:~/MySensors $ sudo ./bin/mysgw -d mysgw: Starting gateway... mysgw: Protocol version - 2.1.1 mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.1 mysgw: TSM:INIT mysgw: TSF:WUR:MS=0 mysgw: !TSM:INIT:TSP FAIL mysgw: TSM:FAIL:CNT=1 mysgw: TSM:FAIL:PDT mysgw: TSM:FAIL:RE-INIT
In node I used your newest code for gw2.0 - is this because version mismatch or something different in my setup?
Could you update your code to work with new version? -
RE: Irrigation Controller (up to 16 valves with Shift Registers)
@petewill as I sad before - pull up 1k resistor and wire it to Arduino pin 6 - I mean
pull up - connect to power,
so should be 1k resistor connected with power source(that make sence with pull up) and also with pin 6. Like below:
-
RE: Irrigation Controller (up to 16 valves with Shift Registers)
@petewill
Yes, I've tested this and it's working well!
Link to the hackerspace - HackerSpace Warsaw, they are on irc - where I talk with them, #hackerspace-pl at freenode servers. -
RE: Irrigation Controller (up to 16 valves with Shift Registers)
ok, I just get back from Hackerspace. Some people fix this issue:
SN74HC595 - 13 pin (OE from datascheet) - remove GND and then add pull up 1k resistor and wire it to Arduino pin 6and software, added three lines in code:
const int outputEnablePin = 6; pinMode(outputEnablePin, OUTPUT); digitalWrite (outputEnablePin, LOW);
put them after 190 line https://github.com/mysensors/MySensorsArduinoExamples/blob/master/examples/IrrigationController/IrrigationController.ino
should be like that:
<some code> //Setup Shift Register... const int latchPin = 8; const int clockPin = 4; const int dataPin = 7; const int outputEnablePin = 6; // byte clock[8] = {0x0, 0xe, 0x15, 0x17, 0x11, 0xe, 0x0}; // fetching time indicator byte raindrop[8] = {0x4, 0x4, 0xA, 0xA, 0x11, 0xE, 0x0,}; // fetching Valve Data indicator // Set the pins on the I2C chip used for LCD connections: // addr, en,rw,rs,d4,d5,d6,d7,bl,blpol LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C address to 0x27 MySensor gw; // MyMessage msg1valve(CHILD_ID_SPRINKLER, V_LIGHT); MyMessage var1valve(CHILD_ID_SPRINKLER, V_VAR1); MyMessage var2valve(CHILD_ID_SPRINKLER, V_VAR2); // void setup() { SERIAL_START(115200); DEBUG_PRINTLN(F("Initialising...")); pinMode(latchPin, OUTPUT); pinMode(clockPin, OUTPUT); pinMode(dataPin, OUTPUT); pinMode(ledPin, OUTPUT); pinMode(waterButtonPin, INPUT_PULLUP); //pinMode(waterButtonPin, INPUT); attachInterrupt(1, PushButton, RISING); //May need to change for your Arduino model digitalWrite (ledPin, HIGH); DEBUG_PRINTLN(F("Turning All Valves Off...")); updateRelays(ALL_VALVES_OFF); pinMode(outputEnablePin, OUTPUT); digitalWrite (outputEnablePin, LOW); <some code>
If somebody can update this project in github and that fritzling draw - would be super nice.