@Boots33
One more question: The closed door with a lock symbol. Is that door just closed or closed AND locked?
I will probably wait with this main question since it seems to be related to an beta update.
@Boots33
One more question: The closed door with a lock symbol. Is that door just closed or closed AND locked?
I will probably wait with this main question since it seems to be related to an beta update.
Hi
I have a PCB board Idea that I plan to create. I would like to share my idea here and also will ask if some one is willing to pitch in on design ideas.
I seen 2 PCB boards that in different ways fits my needs. So my idea now is to make my own PCB by merging the main ideas of those two boards in a way that fits me.
The inspirational boards Im talking about.
Easy/Newbie PCB for MySensors
https://www.mysensors.org/hardware/newbie-pcb
My Slim 2AA Battery Node
https://www.mysensors.org/hardware/slim-node
My idea is to take some of the Dynamic/Basic/simple part from the Newbie node and make it a bit slimmer towards the Slim node.
In order to use a standard Arduino Pro mini Im going to use a wider cable duct as housing. Im planing on using a 25*16mm
http://www.clasohlson.com/se/Kabelkanal/Pr365306000
I was thinking about making the board about 23x100mm. I was hoping to manage to "panelize" the design so that I could get 3 PCBs from a single 100x100mm PCB.
My idea is to order my PCB from DirtyPCB, a protopack would then give about 30 pcbs for $16.95 plus shipping.
Im not sure if it will have to be 100mm long
I think I will have to use 90degrees female pin headers for the Booster in order to get the board not to become to thick.
I am an absolut noob at making PCBs, have only made one before. It was a MySensor PCB and it worked like a charm and it was really fun to make.
The image is just a test with loads of unused space. The Arduino part is a pro MICRO, a Adafruit version with same pinout if I have understod correct. I hope to find the time to make my own parts. Im using DipTrace to design the board.
Iv got many things that I dont know about this board.
If some one have some pointers on usual noob mistakes that would be great.
//Peter
@kimot
Im using custom icon for my door, however, you can't use custom icon for the switchtype contact. At least not on v3.5877
@Boots33
Sorry didn't see the Contact type 2 positions up.
I see that the Door Contact has a lock on its icon. How does it look when your pysical door is open? Just gray?
I managed to change my PCB order, I saw that one of the updates to rev9 was the ability to use Pin 2 as GPIO instead of going to the Radio where it is unused. So now I have a order for Rev9 instead.
I will try to desolder the led or resistor and the voltageregulator.
Thanks for sharing your design.
Thanks for you answers!
@DavidZH
In this particular case I dont want to send data periodically. It is a Door/Lock node. I just want it to wake up when there is a change on one of the pins, run a Loop and then fall back to sleep.
If I could use more pins I could have 1 node monitor 2 doors/locks.
Will we see the result of your work (Multiple pin interrupts AND timed interrupts) her on mySensors later?
Would be great!
HMmmm...
I have presented the Switch as s_door.
present(PRIMARY_CHILD_ID, S_DOOR);
My Message looks like this:
MyMessage msg(PRIMARY_CHILD_ID, V_TRIPPED);
I sould have written this in my first post but it was a quick post, sorry about that.
However, in Domotics i don't get Door Contact as Switch type, only Contact.
When I chose Contact, it says Open/Close but then I dont get to choose Icon, it only shows to arrows.
So to chose Contact kind of solved my problem but I like my Door Icon.
I see that @Boots33 uses V3.6765. I guess thats a Beta. I only uses Stable versions so the latest is v 3.5877
I Guess that it could be a new switch type but I would guess not. The strange thing is that I see that the switchtype Contact is not avalible on @Boots33 screen shot.
Thanks anyway for both answers.
Hi
I have trouble finding the right info about switch type for a door reed switch.
I have a node that detects door state and lock state.
However they both shows up in Domoticz as on/off, not open closed.
But in many Mysensors/Domoticz screenshots I see logs that has the words open/Closed instead.
I thought Iwould find the info here.
https://www.mysensors.org/download/serial_api_20
But that did not help.
So where do I find info on this subject?
This could also be a Domoticz question but I havent found a Switchtype in there that helps me with this.
I found this page:
http://playground.arduino.cc/Main/PinChangeInterrupt
Iv seen it on other places as well. Is there anyone here that is expert on Arduino and deep sleep/interrupt.
Is it possible to sleep the Node and then wake up and run a "send-data-loop" if there is a change on any pin. Not just pin 2 and 3 (Arduino Pro Mini)
//Peter
Hmmm... Ok...
I had only read that the boosters helpt to drain the battery completely, had missed that they "messed" with the radio.
It will be really interesting to see what kind of battery life I can get out of 2 or 4 AA batteries on different types of nodes.
When I look at the Specs for the Pro Mini board the supply voltage is 3.35 - 12v.
I guess that means that without a Booster 2 AA batteries wont be able to run the Pro mini for a long time at all.
Iv just orderd Rev8.
I have a primary question, might have a couple more later on.
In the info about the board it says:
"BAT: Short this if you are using batteries as power supply. It will activate booster circuit and feed the radio directly from the batteries and not voltage regulator"
It says about the same on the image of the board.
My question is. Why would I want to powewr the radio directly from battery and not from the Booster? Wouldent that make the radio not to function like it sould when the voltage dropps?
I having trouble to order this board from DirtyPCB.
Both the link in the beginning of this thread (Rev8) and the link in the OpenHarware page just directs me to an empty DirtyPCB order page, with no board preloaded. It wants me to upload files.
Does anyone know how to order from DirtyPcb without uploading the boardfiles?
Hi
Im starting to look into powering some nodes with battery.
I have been looking for a minimalistic code example with external interrupt but I cant seem to find one that I feel confident to adapt to my own needs.
I have a 2 switch node that works like a charm. The code is mainly (or was it completly) from this thread. 2 Reed switches 1 Arduino Nano
I will use the code/node to log a doors state Open/closed, Locked/onlocked.
I Would like for the node to sleep as "deep" as possible and when the state of either pin changes, run the code once (Check if the value on the door has change, if so send the data. Check if the value on the Lock has change, if so send the data.) then go back to deep sleep.
Will a deep sleep power of the Transiver?
Can anyone help me in the right direction?
Code
/**
The MySensors Arduino library handles the wireless radio link and protocol
between your home built sensors/actuators and HA controller of choice.
The sensors forms a self healing radio network with optional repeaters. Each
repeater and gateway builds a routing tables in EEPROM which keeps track of the
network topology allowing messages to be routed to nodes.
Created by Henrik Ekblad henrik.ekblad@mysensors.org
Copyright (C) 2013-2015 Sensnology AB
Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
Documentation: http://www.mysensors.org
Support Forum: http://forum.mysensors.org
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundation.
DESCRIPTION
Simple binary switch example
Connect button or door/window reed switch between
digitial I/O pin 3 (BUTTON_PIN below) and GND.
http://www.mysensors.org/build/binary
*/
// Enable debug prints to serial monitor
#define MY_DEBUG
// Enable and select radio type attached
#define MY_RADIO_NRF24
//#define MY_RADIO_RFM69
#include <SPI.h>
#include <MySensors.h>
#include <Bounce2.h>
#define CHILD_ID_1 3
#define BUTTON_PIN_1 3 // Arduino Digital I/O pin for button/reed switch
#define CHILD_ID_2 4
#define BUTTON_PIN_2 4 // Arduino Digital I/O pin for button/reed switch
Bounce debouncer1 = Bounce();
Bounce debouncer2 = Bounce();
int oldValue1 = -1;
int oldValue2 = -1;
// Change to V_LIGHT if you use S_LIGHT in presentation below
MyMessage msg1(CHILD_ID_1, V_TRIPPED);
MyMessage msg2(CHILD_ID_2, V_TRIPPED);
void setup()
{
// Setup the button
pinMode(BUTTON_PIN_1, INPUT);
pinMode(BUTTON_PIN_2, INPUT);
// Activate internal pull-up
digitalWrite(BUTTON_PIN_1, HIGH);
digitalWrite(BUTTON_PIN_2, HIGH);
// After setting up the button, setup debouncer
debouncer1.attach(BUTTON_PIN_1);
debouncer1.interval(5);
debouncer2.attach(BUTTON_PIN_2);
debouncer2.interval(5);
}
void presentation() {
// Register binary input sensor to gw (they will be created as child devices)
// You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage.
// If S_LIGHT is used, remember to update variable type you send in. See "msg" above.
present(CHILD_ID_1, S_DOOR);
present(CHILD_ID_2, S_DOOR);
}
// Check if digital input has changed and send in new value
void loop()
{
debouncer1.update();
// Get the update value
int value1 = debouncer1.read();
if (value1 != oldValue1) {
// Send in the new value
send(msg1.set(value1 == LOW ? 1 : 0));
oldValue1 = value1;
}
debouncer2.update();
// Get the update value
int value2 = debouncer2.read();
if (value2 != oldValue2) {
// Send in the new value
send(msg2.set(value2 == HIGH ? 1 : 0));
oldValue2 = value2;
}
}
Hmmm.... I guess this topic is kind of dead.
I tried to desolder the transiver but failed miserably (to much heat in frustration over that the thing would not come loose). So the PCB lost 2 solderpads. This means I cant go on with this hardware. I might toss the Arduino aswell, its solderd on all pins.
Well well...
I now have a different problem.
I now have a Arduino Uno, NRF24L01 and a 1-wire sensor.
The new Node seems to be running as it should but it doesnt get any respons from the gateway.
The Gateway is talking to my old Node with 3 sensors.
A thing that is a bit wierd is that i Updated the GW to version 2.1.0.
I thought that I would loose connection with my old Node that I belive is version 1.6 but those are running fine together.
The new node is the same version as the gateway.
This should probably be a seperate Topic but I feel bad for starting multiple topics so close together.
Log from new node:
20783 TSM:FAIL:RE-INIT
20806 TSM:INIT
20823 RF24:write register, reg=0, value=14
20872 RF24:write register, reg=3, value=3
20916 RF24:write register, reg=4, value=95
20961 RF24:write register, reg=5, value=76
21006 RF24:write register, reg=6, value=39
21051 RF24:write register, reg=16, value=115
21098 RF24:write register, reg=29, value=6
21143 RF24:read register, reg=6, value=39
21187 RF24:read register, reg=5, value=76
21231 RF24:write register, reg=2, value=2
21274 RF24:write register, reg=1, value=0
21318 RF24:write register, reg=28, value=3
21363 RF24:flushRX
21384 RF24:flushTX
21403 RF24:write register, reg=7, value=112
21449 TSM:INIT:TSP OK
21473 TSM:FPAR
21488 RF24:STP LIS
21509 RF24:write register, reg=0, value=14
21554 RF24:OPEN WPIPE,RCPT=255
21586 RF24:write register, reg=10, value=255
21634 RF24:write register, reg=16, value=255
21681 RF24:SND:TO=255,LEN=7
21709 RF24:flushTX
21730 RF24:write register, reg=7, value=48
21775 RF24:STRT LIS
21796 RF24:write register, reg=0, value=15
21841 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
21919 RF24:read register, reg=23, value=17
21964 RF24:read register, reg=23, value=17
22009 RF24:read register, reg=23, value=17
22054 RF24:read register, reg=23, value=17
22099 RF24:read register, reg=23, value=17
22145 RF24:read register, reg=23, value=17
22190 RF24:read register, reg=23, value=17
22235 RF24:read register, reg=23, value=17
22280 RF24:read register, reg=23, value=17
22325 RF24:read register, reg=23, value=17
22369 RF24:read register, reg=23, value=17
22414 RF24:read register, reg=23, value=17
22459 RF24:read register, reg=23, value=17
22504 RF24:read register, reg=23, value=17
22549 RF24:read register, reg=23, value=17
22594 RF24:read register, reg=23, value=17
22639 RF24:read register, reg=23, value=17
22684 RF24:read register, reg=23, value=17
22729 RF24:read register, reg=23, value=17
22774 RF24:read register, reg=23, value=17
22819 RF24:read register, reg=23, value=17
22864 RF24:read register, reg=23, value=17
22909 RF24:read register, reg=23, value=17
22953 RF24:read register, reg=23, value=17
22999 RF24:read register, reg=23, value=17
23044 RF24:read register, reg=23, value=17
23089 RF24:read register, reg=23, value=17
23134 RF24:read register, reg=23, value=17
23179 RF24:read register, reg=23, value=17
23224 RF24:read register, reg=23, value=17
23269 RF24:read register, reg=23, value=17
23314 RF24:read register, reg=23, value=17
23359 RF24:read register, reg=23, value=17
23404 RF24:read register, reg=23, value=17
23449 RF24:read register, reg=23, value=17
23494 RF24:read register, reg=23, value=17
23539 RF24:read register, reg=23, value=17
23583 RF24:read register, reg=23, value=17
23628 RF24:read register, reg=23, value=17
23673 RF24:read register, reg=23, value=17
23718 RF24:read register, reg=23, value=17
23763 RF24:read register, reg=23, value=17
23809 RF24:read register, reg=23, value=17
23854 RF24:read register, reg=23, value=17
23899 RF24:read register, reg=23, value=17
23944 !TSM:FPAR:NO REPLY
23969 TSM:FPAR
23986 RF24:STP LIS
24006 RF24:write register, reg=0, value=14
24051 RF24:OPEN WPIPE,RCPT=255
24083 RF24:write register, reg=10, value=255
24130 RF24:write register, reg=16, value=255
24177 RF24:SND:TO=255,LEN=7
24207 RF24:flushTX
24227 RF24:write register, reg=7, value=48
24272 RF24:STRT LIS
24293 RF24:write register, reg=0, value=15
24338 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
24417 RF24:read register, reg=23, value=17
24462 RF24:read register, reg=23, value=17
24507 RF24:read register, reg=23, value=17
24552 RF24:read register, reg=23, value=17
24596 RF24:read register, reg=23, value=17
24641 RF24:read register, reg=23, value=17
24686 RF24:read register, reg=23, value=17
24731 RF24:read register, reg=23, value=17
24776 RF24:read register, reg=23, value=17
24821 RF24:read register, reg=23, value=17
24866 RF24:read register, reg=23, value=17
24911 RF24:read register, reg=23, value=17
24956 RF24:read register, reg=23, value=17
25001 RF24:read register, reg=23, value=17
25047 RF24:read register, reg=23, value=17
25092 RF24:read register, reg=23, value=17
25137 RF24:read register, reg=23, value=17
25181 RF24:read register, reg=23, value=17
25226 RF24:read register, reg=23, value=17
25271 RF24:read register, reg=23, value=17
25316 RF24:read register, reg=23, value=17
25361 RF24:read register, reg=23, value=17
25406 RF24:read register, reg=23, value=17
25451 RF24:read register, reg=23, value=17
25496 RF24:read register, reg=23, value=17
25541 RF24:read register, reg=23, value=17
25586 RF24:read register, reg=23, value=17
25631 RF24:read register, reg=23, value=17
25676 RF24:read register, reg=23, value=17
25721 RF24:read register, reg=23, value=17
25765 RF24:read register, reg=23, value=17
25810 RF24:read register, reg=23, value=17
25856 RF24:read register, reg=23, value=17
25901 RF24:read register, reg=23, value=17
25946 RF24:read register, reg=23, value=17
25991 RF24:read register, reg=23, value=17
26036 RF24:read register, reg=23, value=17
26081 RF24:read register, reg=23, value=17
26126 RF24:read register, reg=23, value=17
26171 RF24:read register, reg=23, value=17
26216 RF24:read register, reg=23, value=17
26261 RF24:read register, reg=23, value=17
26306 RF24:read register, reg=23, value=17
26350 RF24:read register, reg=23, value=17
26395 RF24:read register, reg=23, value=17
26440 !TSM:FPAR:NO REPLY
26467 TSM:FPAR
26482 RF24:STP LIS
26503 RF24:write register, reg=0, value=14
26548 RF24:OPEN WPIPE,RCPT=255
26580 RF24:write register, reg=10, value=255
26628 RF24:write register, reg=16, value=255
26675 RF24:SND:TO=255,LEN=7
26703 RF24:flushTX
26724 RF24:write register, reg=7, value=48
26769 RF24:STRT LIS
26790 RF24:write register, reg=0, value=15
26835 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
26913 RF24:read register, reg=23, value=17
26958 RF24:read register, reg=23, value=17
27003 RF24:read register, reg=23, value=17
27048 RF24:read register, reg=23, value=17
27094 RF24:read register, reg=23, value=17
27139 RF24:read register, reg=23, value=17
27184 RF24:read register, reg=23, value=17
27229 RF24:read register, reg=23, value=17
27274 RF24:read register, reg=23, value=17
27319 RF24:read register, reg=23, value=17
27363 RF24:read register, reg=23, value=17
27408 RF24:read register, reg=23, value=17
27453 RF24:read register, reg=23, value=17
27498 RF24:read register, reg=23, value=17
27543 RF24:read register, reg=23, value=17
27588 RF24:read register, reg=23, value=17
27633 RF24:read register, reg=23, value=17
27678 RF24:read register, reg=23, value=17
27723 RF24:read register, reg=23, value=17
27768 RF24:read register, reg=23, value=17
27813 RF24:read register, reg=23, value=17
27858 RF24:read register, reg=23, value=17
27904 RF24:read register, reg=23, value=17
27948 RF24:read register, reg=23, value=17
27993 RF24:read register, reg=23, value=17
28038 RF24:read register, reg=23, value=17
28083 RF24:read register, reg=23, value=17
28128 RF24:read register, reg=23, value=17
28173 RF24:read register, reg=23, value=17
28218 RF24:read register, reg=23, value=17
28263 RF24:read register, reg=23, value=17
28308 RF24:read register, reg=23, value=17
28353 RF24:read register, reg=23, value=17
28398 RF24:read register, reg=23, value=17
28443 RF24:read register, reg=23, value=17
28488 RF24:read register, reg=23, value=17
28533 RF24:read register, reg=23, value=17
28577 RF24:read register, reg=23, value=17
28622 RF24:read register, reg=23, value=17
28667 RF24:read register, reg=23, value=17
28712 RF24:read register, reg=23, value=17
28758 RF24:read register, reg=23, value=17
28803 RF24:read register, reg=23, value=17
28848 RF24:read register, reg=23, value=17
28893 RF24:read register, reg=23, value=17
28938 !TSM:FPAR:NO REPLY
28963 TSM:FPAR
28980 RF24:STP LIS
28999 RF24:write register, reg=0, value=14
29044 RF24:OPEN WPIPE,RCPT=255
29077 RF24:write register, reg=10, value=255
29124 RF24:write register, reg=16, value=255
29171 RF24:SND:TO=255,LEN=7
29201 RF24:flushTX
29221 RF24:write register, reg=7, value=48
29266 RF24:STRT LIS
29287 RF24:write register, reg=0, value=15
29332 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
29411 RF24:read register, reg=23, value=17
29456 RF24:read register, reg=23, value=17
29501 RF24:read register, reg=23, value=17
29545 RF24:read register, reg=23, value=17
29590 RF24:read register, reg=23, value=17
29635 RF24:read register, reg=23, value=17
29680 RF24:read register, reg=23, value=17
29725 RF24:read register, reg=23, value=17
29770 RF24:read register, reg=23, value=17
29815 RF24:read register, reg=23, value=17
29860 RF24:read register, reg=23, value=17
29905 RF24:read register, reg=23, value=17
29950 RF24:read register, reg=23, value=17
29996 RF24:read register, reg=23, value=17
30041 RF24:read register, reg=23, value=17
30086 RF24:read register, reg=23, value=17
30131 RF24:read register, reg=23, value=17
30175 RF24:read register, reg=23, value=17
30220 RF24:read register, reg=23, value=17
30265 RF24:read register, reg=23, value=17
30310 RF24:read register, reg=23, value=17
30355 RF24:read register, reg=23, value=17
30400 RF24:read register, reg=23, value=17
30445 RF24:read register, reg=23, value=17
30490 RF24:read register, reg=23, value=17
30535 RF24:read register, reg=23, value=17
30580 RF24:read register, reg=23, value=17
30625 RF24:read register, reg=23, value=17
30670 RF24:read register, reg=23, value=17
30715 RF24:read register, reg=23, value=17
30759 RF24:read register, reg=23, value=17
30804 RF24:read register, reg=23, value=17
30850 RF24:read register, reg=23, value=17
30895 RF24:read register, reg=23, value=17
30940 RF24:read register, reg=23, value=17
30985 RF24:read register, reg=23, value=17
31030 RF24:read register, reg=23, value=17
31075 RF24:read register, reg=23, value=17
31120 RF24:read register, reg=23, value=17
31165 RF24:read register, reg=23, value=17
31210 RF24:read register, reg=23, value=17
31255 RF24:read register, reg=23, value=17
31300 RF24:read register, reg=23, value=17
31345 RF24:read register, reg=23, value=17
31389 RF24:read register, reg=23, value=17
31434 !TSM:FPAR:FAIL
31457 TSM:FAIL:CNT=2
31478 TSM:FAIL:PDT
31499 RF24:write register, reg=0, value=12
31544 RF24:PD
Different cable, stops at the exact line in the serial monitor.
0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.0
41 MCO:BGN:BFR
116 TSM:INIT
130 TSF:WUR:MS=0
148 RF24:write register, reg=0, value=14
196 RF24:write register, reg=3, value=3
237 RF24:write register, reg=4, value=95
280 RF24:write register, reg=5, value=76
323 RF24:write register, reg=6, value=39
366 RF24:write register, reg=16, value=115
411 RF24:write register, reg=29, value=6
453 RF24:read register, reg=6, value=39
495 RF24:read register, reg=5, value=76
537 RF24:write register, reg=2, value=2
579 RF24:write register, reg=1, value=0
621 RF24:write register, reg=28, value=3
664 RF24:flushRX
681 RF24:flushTX
699 RF24:write register, reg=7, value=112
743 TSM:INIT:TSP OK
764 TSM:FPAR
778 RF24:STP LIS
795 RF24:write register, re�0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.0
41 MCO:BGN:BFR
116 TSM:INIT
130 TSF:WUR:MS=0
148 RF24:write register, reg=0, value=14
196 RF24:write register, reg=3, value=3
237 RF24:write register, reg=4, value=95
280 RF24:write register, reg=5, value=76
323 RF24:write register, reg=6, value=39
366 RF24:write register, reg=16, value=115
411 RF24:write register, reg=29, value=6
453 RF24:read register, reg=6, value=39
495 RF24:read register, reg=5, value=76
537 RF24:write register, reg=2, value=2
579 RF24:write register, reg=1, value=0
621 RF24:write register, reg=28, value=3
664 RF24:flushRX
681 RF24:flushTX
699 RF24:write register, reg=7, value=112
743 TSM:INIT:TSP OK
764 TSM:FPAR
778 RF24:STP LIS
795 RF24:write register, reg=0, value=14
838 RF24:OPEN WPIPE,RCPT=255
869 RF24:write register, reg=10, value=255
914 RF24:write register, reg=16, value=255
959 RF24:SND:TO=255,LEN=7
986 R
Since I did not even get garbage in the serial monitor I started with your second tips, adding the Debug lines.
I then got one single line of garbage in the serial monitor. Garbage even though I had baud set to 115200 in the serial monitor.
I then added the line
#define MY_BAUD_RATE 9600
I den got this:
��`��������`f���`f`��0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.0
41 MCO:BGN:BFR
116 TSM:INIT
130 TSF:WUR:MS=0
148 RF24:write register, reg=0, value=14
196 RF24:write register, reg=3, value=3
237 RF24:write register, reg=4, value=95
280 RF24:write register, reg=5, value=76
323 RF24:write register, reg=6, value=39
366 RF24:write register, reg=16, value=115
411 RF24:write register, reg=29, value=6
453 RF24:read register, reg=6, value=39
495 RF24:read register, reg=5, value=76
537 RF24:write register, reg=2, value=2
579 RF24:write register, reg=1, value=0
621 RF24:write register, reg=28, value=3
664 RF24:flushRX
681 RF24:flushTX
699 RF24:write register, reg=7, value=112
743 TSM:INIT:TSP OK
764 TSM:FPAR
778 RF24:STP LIS
795 RF24:write register, reg=0, value=14
838 RF24:OPEN WPIPE,RCPT=255
869 RF24:write register, reg=10, value=255
914 RF24:write register, reg=16, value=255
959 RF24:SND:TO=255,LEN=7
986 R
Looks promesing but then it does not come any more serial prints.
Its wierd, I only got this serial print above when I program it. Not if I unplug/plug to the computer. Only when programming it.
If I program it again it stops at the same line. I guess that is some kind of "send/use the NRF24L0" line, am I right?
I probably should desolder it and test with a different NRF24L01. (Why didnt I solder a header instead of the NRF24L01 directly.
I know that this is probably the worst title for a Topic ever but I dont know where to start the debugging.
Controller: Domoticz on Rasp-Pi, up and running since years back.
Gateway: Serial-gateway, up and running since years back.
MySensors node with 3 18b20, up and running since years back.
The Gateway is updated to version 2.1, it is still receiving data from my old node so i know it is working.
I have now made a new node with 1 18b20 solderd to it. Iv uploaded the "DallasTemperatureSensor.ino" sketch unmodified. Kompiled, uploaded without a problem.
However, nothing happends. When I look in the serial monitor (115200 baud) nothing shows up, nothing.
I have uploaded a simple 1-wire sketch to the same arduino and it works as a charm so I know that the arduino -> 1-wire is working.
With the MySensors "DallasTemperatureSensor.ino" sketch the led on the arduino dimmly lights up a couple of seconds on/off.
Could a faulty NRF24L01 make this problem. The NRF24L01 is solderd in place so it was there when the simple 1-wire sketch was running smoothly. However that sketch of cause did not use those pins for anything.
Any tips?
Yes I understand. I'm not criticising your answer. But I guess that means that I cant program it at the moment. Because that would mean the transiver would start transmitting directly.
Hmmm... Unless I start with a 5-10 sec delay.
It is a temperatur sensor sketch. I could probably code a 10 sec delay in the void setup() section. It would be an ugly solution but probably would work.
But dosent it start the sketch directly after I flash it?
Hi quick question. Is it dangerous to power a transiver like the one in the picture with external antenna when the antenna is removed?
I have solderd the transiver to the arduino and need to program the arduino but I dont have the antenne here.
I belive that in some cases you can fry the transiver. What do you think?
Now it seems to work. Probably was the resetting of the node. Switching it from the power outlet to the computer.
However, sould I be woried that I will lose connection if I unplug the devices now? Because they are not exactly where I want them.
This is what the Node is sending.
send: 1-1-3-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=ok:1.5
send: 1-1-3-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:3
sensor started, id=1, parent=3, distance=2
send: 1-1-3-0 s=255,c=3,t=11,pt=0,l=18,sg=0,st=ok:Temperature Sensor
send: 1-1-3-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.1
send: 1-1-3-0 s=0,c=0,t=6,pt=0,l=0,sg=0,st=ok:
send: 1-1-3-0 s=1,c=0,t=6,pt=0,l=0,sg=0,st=ok:
send: 1-1-3-0 s=2,c=0,t=6,pt=0,l=0,sg=0,st=ok:
send: 1-1-3-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:23.8
send: 1-1-3-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=ok:23.1
send: 1-1-3-0 s=2,c=1,t=0,pt=7,l=5,sg=0,st=ok:19.5
send: 1-1-3-0 s=2,c=1,t=0,pt=7,l=5,sg=0,st=ok:19.6
Where can I see if they are on the same channel?
Im trying to get the pooltemp in Domoticz. I have a Node that has been working great on my second floor. It has 3 temp sensors and all are registred in domoticz.
I now tried to move it to the pool but the distance was too far. Its only about 5 meters further than where it was and now its on the same "level" as the gateway.
No new temp messages is now recived.
I then tried to put a repeater node in between. Standard mySensors code, no other fuctionality on that node.
But nothing happends.
When I read the serial from the Repeater it only sends the starting message and noting else.
This, and nothing else.
send: 3-3-0-0 s=255,c=0,t=18,pt=0,l=3,sg=0,st=ok:1.5
send: 3-3-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
read: 0-0-3 s=255,c=3,t=6,pt=0,l=1,sg=0:M
repeater started, id=3, parent=0, distance=1
send: 3-3-0-0 s=255,c=3,t=11,pt=0,l=13,sg=0,st=ok:Repeater Node
send: 3-3-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
Any idea where I sould start to look for the problem?
Gateway to repeater about 6meters.
Repeater to gateway about 7 meters.
None uses batteries.
Just rememberd that I have one of these usb to serial cables. Could I use it?
http://www.clasohlson.com/se/USB-till-serieportsadapter/38-2150
Hi
I need help getting Arduino to upload my skeches to my Pro mini board.
My Pro mini is a China clone at 5v.
Im trying to program it with my UsbAsp but I keep getting the common error:
avrdude: stk500_recv(): programmer is not responding
Im on a Mac Book using Arduinos software to try to program the board.
I have programed many Arduino Uno and Nano with (almost) no problem.
So, what is the easiest way to program the Pro Minis? I will probably want to program many of them in the future so I like to find the best way (or at least A way).
//Peter
Looks great. Is it posible (Or do you think it will be) to sen dynamic values to the display from Domoticz? Like the temperature or soil moist procentage.
TheoL: the screenshot you posted. Is that screen updating every time you receive something?
TheoL: This is the haardware settings.
I havent have time to look into the other answers yet.
Hmm...
TheoL: That didnt seem to work. I changed to my USBport, using:
sudo cat /dev/ttyUSB0
But that just left me "Hanging" so I hade to Quit that command using Ctrl-C.
Im using SSH by the way.
Barduino: Are you meaning that you have your gateway on a Mac? Im running Rasbian Wheezy on my Pi.
Hmmm... I really would like to see the RAW serial output from the Gateway.
I belive I have read the answer to this question somwhere but I cant find the answer now.
I have a node with 3st 1-wire sensors. It reported all the way in to Domoticz controller for a couple of hours.
When I hook the node to a coumputer I can see in the serial monitor that it is indeed reading the temp and trying to send it but it reports "Failed".
So now I want to read if the SerialGateway is reciving anything at all to see if I can get the problem sorted.
//PEter
If I understand your post I believe I did specify the CAD/CAM suite in the Headline for the topic. "Diptrace footprint".
Then I will reply myself.
This is how my board looks now. As I said before, this is my first attempt at creating a more complex board.
I do realize this is a very simple and not beautiful board but do you think it will do the job?
The Idea is simply to get rid of the wires that goes between MCU and Radio. And get simple connectors for adding sensors.
Iv done a couple of PCBs before that I have either etched or milled my selfe. I have never orderd a PCB before.
Im now trying to make my own "general, multi purpose" node PCB.
I have made a Arduino nano footprint but Im not really satisfied with it. Im absolutely certain that you guys make better components than me so here comes a plea.
Does anyone have the radio modul (NRF24L01+) and for the Arduino Nano.
I want to use the Nano because Im liking its simplicity in the beginning now. (5v and 3.3v, USB programming ect).
What I can offer in retur is that I will share my design if anyone will be interested.
//Peter
I tried the delay. It might have fixed the sending FAIL.
I put it after the ge.send() and lastTemperature.
gw.send(msg.setSensor(i).set(temperature,1));
// Save new temperatures for next compare
lastTemperature[i]=temperature;
gw.wait(200);
Im using the sketch from the example "temperature" on Mysensors page.
http://www.mysensors.org/build/temp
(Now with the exception of the added gw.wait(200); )
Hmmm.... Your comment on the line:
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
was no fun at all.
I definitely do not have other MySensors node here.
I have:
1 serialGateway
1 Node with 2 Dallas sensors connected to it.
This is how the serial output looks now.
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:21.4
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:21.5
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:21.4
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:22.3
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:24.3
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=ok:21.7
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=ok:21.9
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:25.0
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=ok:22.0
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:25.6
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=ok:22.1
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:26.1
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:26.3
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:26.5
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:25.9
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=ok:22.2
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:25.6
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=ok:22.3
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
So the "read" is printed after every "send".
Have I understood it corectly that if the temperature have not changed there would not be any send and not any information on the serialMonitor either?
Where can I read what the each number represents in that line?
//Peter
Well for me this is either a Domoticz question or a Mysensors question, i dont know which one.
So for me the subforum "Mysensors/Domoticz" is just as good as "Domoticz/Mysensors".
But if I come up empty here I might as well ask on the Domoticz forum.
With the help of this forum I managed to get my first node running with 1 Dallas sensor logging temp to my controller (domoticz).
I have now added a sensor in "in series" (is that the right phrase? or is it in parallel?), any way, exactly like the drawing in the Temperature page on Mysensors build page.
The problem is that the output is far from stable.
This is from the serial output on the node.
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:26.0
send: 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=ok:22.4
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:25.5
send: 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=fail:22.3
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:25.3
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:25.6
send: 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=fail:22.5
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=ok:22.4
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:25.8
send: 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=ok:22.5
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=ok:22.4
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=ok:22.5
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:26.0
send: 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=ok:22.4
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:25.8
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:25.7
send: 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=fail:22.3
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=ok:22.4
read: 1-1-0 s=1,c=0,t=6,pt=0,l=0,sg=0:
send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:25.8
send: 1-1-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,st=ok:22.5
As you can see sometimes both temp readings is sent OK, sometimes only one is sent OK and the other FAIL. Sometimes only one is sent OK and the other is not even logged as tried.
I have followed the build tips and have a 10uF capacitor on the power leads on the transmitter module.
Is this usual? Is it any way to make the node/sending more stable. The distance to the Gateway is about 8 meters with 1 wooden wall in between. When I had one Dallas sensor it was sent OK every time.
//Peter
If i look at my newly built temperature sensor node in the Devices "tab" in Domoticz it reports value 12 in the "RF signal level". Does this mean that I have really good connection between my node and gateway or is this not supported?
I have searched but could not find a answer.
Ps sorry for the many questions in the beginning, just getting started.
//Peter
I belive I have found the problem. I have a RFXcom RFXtrx 433 transiver that talks to some swiches and so on. When I started experimenting with mysensors I did not have enough usb ports so I disconnected the RFXcom. This led to the fact that the Mysensors gateway was connected to the same usb port as the RFXcom were using earlier. I did not realise that I had to uncheck the "enabled" checkbox in Domoticz for the RFXcom. I quess Domoticz where trying to talk "RFXcom language" with my gateway that only understands "Mysensors language".
Where can I see the "Node output"? The serial monitor on the arduino is showing the text I posted i previus post.
The controller I use is Domoticz on a Rasperry Pi. The controller is running good and reciving values from a usbbound 1-wire network with a couple of sensors (These does not have any connection with Mysensors). But not from the wireless Mysensors node.
Now I dont receive anything on the controller. Yesterday Wien I recived 22degrees I was 10-12 meters away from the gateway with 1 Wall inbetween. Now the nude sits 30cm from the gateway and Im not reciving anything.
Iv restarted the node but not the controller (RaspberryPi).
Well that was better.
read: 254-1-0 s=0,c=0,t=6,pt=0,l=0,sg=0:
send: 254-254-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:21.3
read: 254-1-0 s=0,c=0,t=6,pt=0,l=0,sg=0:
send: 254-254-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:21.4
read: 254-1-0 s=0,c=0,t=6,pt=0,l=0,sg=0:
send: 254-254-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:21.3
read: 254-1-0 s=0,c=0,t=6,pt=0,l=0,sg=0:
send: 254-254-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:21.4
read: 254-1-0 s=0,c=0,t=6,pt=0,l=0,sg=0:
send: 254-254-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:21.3
read: 254-1-0 s=0,c=0,t=6,pt=0,l=0,sg=0:
send: 254-254-0-0 s=0,c=1,t=0,pt=7,l=5,sg=0,st=ok:21.5
read: 254-1-0 s=0,c=0,t=6,pt=0,l=0,sg=0:
In this case it looks like the node is sendong (about) 21.3 degrees, does it not?
Im not getting that on the controller. So the problem is not the sensor reading but one of the following: 1Sending the data, 2 Reciving the data, 3sending the data from the gateway to the controller.
Well, I belive my problem is the sensor/node. This is what comes up in the serial monitor. Thanks for the tip though. Does all different Mysensors examples send info to the serial gateway? That is great to know, as a debugging tool I mean.
����d�Ug�R����Jl��P�����՚���JX���
I have just manage to put together a Serial Gateway + one node with a 18b20 tempsensor.
Im using Domoticz as controller on a Raspberry Pi.
Domoticz sees the node with the sensor and it logs 22 degrees C. The problem is that it does not change. Iw put the sensor on the floor and open the door to my house and it still gives the reading 22 degrees every 5 minutes.
Does anyone have an idee where the problem could be?
MVH Peter
Say I build a node with a analog sensor (light, sound, water or whatever). Say that these analog sensors gives the arduino on the node a value in the range between 0-1024. I would like to learn what the node will be sending to Domoticz and what kind of values Domoticz would like to receive.
Im hoping on using some of the arduino sketches and altering them so that I can build my own type of nodes/sensors. The 2.4gHz sending bit I belive is out of my league but I would like to know what type of value Im sending.
So, does anyone know where I can start reading. Is there any "clean" sketch out there that is a good start point for sending my own values? Any good place to start reading about Domoticz value format?
I have a Raspberry Pi logging temps mainly from a 1-wire net. Today the logg is done with RDDtool. I have used Domoticz before and I belive that will be my controller.
Now on to the questions.
Question 1:
My raspberry Pi is connected to my lan as well as to the internet using the ethernet port. However I would like to build the ethernet gateway from Mysensors. Is there a simple ”clean” way to connect a ethernet gateway to a Raspberry Pi who is already using its Ethernet port?
Questioin 2:
Have I understood the mysensors info correct? Can I have 1 (one) arduino node with multiple sensors. For example: Can I have 1 node with 2 temp sensors, 2 light sensors and maybe 2 actuators (Light switches).
Question 3: (Kinda offTopic)
Do you guys know if i could keep my RDDtool running parallel with my future installation of Domoticz?
Ps, I was really exited when I saw the Mysensors work on a swedish forum. This is great!