Some more info here:
https://github.com/jdesbonnet/RCWL-0516
...but not any power consumption figures....
Posts made by gregl
-
RE: Another cheap Radar Motion detection module
-
Another cheap Radar Motion detection module
Hi everyone.
Some chat on these Pete Scargill's site:http://tech.scargill.net/microwave-for-the-weekend/
It uses a different chip (RCWL-0516) to the other cheap radar modules discussed here last year...Ive ordered two to play with so will report back in a few months if they work for me.
http://www.ebay.com.au/itm/262783104831 -
RE: Am I crazy?
@rvendrame
Stick with it.... My pool controller is the reason I very reason I originally got into Arduino, which led to Home Automation and ultimately MySensors... I've learned a lot in the process and the rewards are great!!The pH sensor I have is one from IONODE. They do not appear to sell them anymore, but its designed to be installed into a 40mm PVC T-piece and built for constant usage.. Similar to the "Industrial" ones here http://www.cwc.com.au/cat/sensors-probes/ph/
The phidgets site also has a pH sensor which is designed for permanent install http://www.phidgets.com/products.php?category=36&product_id=3551_0Not cheap though are they!! I think my ph sensor was about $140 AUD
I made my own temp sensor... I just bought a Stainless steel bolt ( about 30mm long ), put it in a lathe and bored out a 5.5mm hole from the bolt side deep enough to install a ds18b20 sensor and epoxied it in.
The pH probe you have is designed just to dip in the water., take a reading then put back in its box...I have one like it for testing. I guess you could use this type of sensor, by periodically filling a tank with fresh poolwater, take your readings, then drain the water back into the pool... a bunch of solenoid valves to allow the water to flow in/out should do the trick. Or some irrigation poly and some pumps if you don't want to mess with the pool plumbing.
Here are some pics, in one of them you can see the homemade temp sensor and the pH probe installed in the pipework. https://goo.gl/photos/benm5vkpxbZjHEAW7
-
RE: Am I crazy?
Hey @Birdy - Jump right in the deep end eh?!! ( pun intended )
I say this as a pool environment is particularly hard on electronics.... and creating a floating sensor, whilst i think is a great idea, will be very tricky to do.
Ive been automating my pool for several years now and i use mySensors to show me metrics ( pool temp, roof temp (solar heated), pH, pump runtimes and the ability to turn it on/off as needed...using Openhab ( and thus my phone ).
There is also a pump to add HCL to the pool periodically as needed
There is some more info and the code here:
https://github.com/mgf909/PoolController_mqttIts really quite cool and my friends well impressed
pH is really hard to do...ive never got it working 100% right....Its a PITA to calibrate the probe and you need to allow for temperature fluctuations.
I hope one day to have another crack at this as well as add ORP ( measure chlorine ) and pressure sensor to the filter to advise when to backwash etc.I love the idea of a floating sensor..I think this would be quite feasable for measuring water temp, but not really for measureing ph/ORP as those sensors are super fragile, and as mentioned above, getting it waterproof is very difficult.
I once made an RGB LED pool light https://goo.gl/photos/AmFdVfunQVpmsbk18 to be submersed in my pool. Even though its encased in casting resin, water still got into it - i think around the cable...it always worked , but when i removed it ( sold the house ) i noticed some corrosion...PS: I'm in Sydney....and mySensors is perfect for this project and the 200000 others you will get into!
-
RE: Redesign: MySensors.org!
@hek and team - New site looks great! Well done!
-
RE: Read color of a LED?
COuld you perhaps just use an LDR - i would presume the RED light emitted is at a different level to that of the GREEN light emitted and thus just MAP the range you would expect each to be at.
You would need to handle ( block out ) any ambient light however...and then you wont be able to see the led anymore...
-
RE: [Closed][Unresolved]gateway DHCP Fail
Take a photo of your board and we can help identify.
I would recommend ONLY using static ip's for "servers/gateways" etc on your network. Only use DHCP for 'clients" ( pc's and mobile devices )Did you try assigning a static address?
Also, do you have any other arduino based network devices already running? If so check the MAC address its already using.. DEADBEEFEED is typically used, and MAC address's must be unique on a subnet (as it says in the sketch) - So change the MY_MAC_ADDRESS to something else.. looks like you may have already - but is 0000DEADBE01 valid?
-
RE: Moving existing MySensor 1.2 network to MySensor 2.0
@clippermiami said:
Thanks, I suspected that might be the case. I hadn't thought of the idea of using a second gateway. Obviously I have to update the Vera drivers, will it support two gateways, one old and one new?
Probably not ;-(
-
RE: Moving existing MySensor 1.2 network to MySensor 2.0
Hi John,
When I upgraded I startup a new gateway on a different channel and move each node over one by one..
I also migrated from Vera Mysensors Ethernet gw ( iboard with hardware hack) over to Mysensors 2beta MQTT client gateway ( iboard spi method) and Openhab...
This way nothing was "offline" for more than a few mins and all metrics continued to get logged to Openhab database..so no gaps in data.
It also allowed me to do the upgrade over several weeks. -
RE: Wateringsystem
Hi @Lars65
Now you have finished dressing yourself, why not consider using a IO port expander rather than 3 arduinos?
Something like:
https://www.sparkfun.com/products/13601 -
RE: Dimmable LED kitchen light (Arduino, APDS-9960, RGBWW led)
@mfalkvidd - Nice work.
Q: How close to the sensor does your hand need to be? and can this distance be controlled? -
RE: OpenHAB not assigning node id
replied to your thread over here:
https://community.openhab.org/t/openhab-not-assigning-mysensors-node-id/12642 -
RE: Indoor BLE Location ( or presence detection)
@nemik - Really nice work Nemik!
Ill be sure to check this out!
-
RE: Meet in Malmö, Summer 2016?
Looks great guys!...especially your ribs @hek - Wish id been able to make it!
Speaking of cooking....there must have been some crazy ideas cooked up on what to mysensorize next??
(i've already thought of and semi built a mysensor meat thermometer...so anything else? )
-
RE: MySensors 2.0.0 Released
Well Done MySensors team!
Thanks for your efforts! Ive been using the beta for some time now in production and it hasn't missed a beat!.Its easier to use ( once you forget the earlier stuff ) and much more reliable!
So to @Hek and everyone who has contributed to the library and the community, thank you!
-
RE: Cheap Asda USB charger + Sensor node
Hi @thazlett144
..sounds good... and probably looks good ( but i cannot see the images in your post?!? ) - Can anyone else see them?I think you will indeed find that the temperature is off due to the heat generated by the supply... perhaps put the sensor on a short cable ( which wont be as tidy
If you do put the dht on a cable, be really careful as you may not have the level of isolation you need!!!
Perhaps, forget the dht, and install a PIR sensor instead. ?
-
RE: Nice push buttons?
As mentioned in the post above, the switches are still perfect - its been raining here in Sydney, and as a result they have been splashed with rainwater, so they do get wet whenever it rains...and continue to operate and look as they did when new.
-
RE: Nice push buttons?
Hi @mfalkvidd
Ive bought and used the 12mm metal buttons before... they are pretty good in feel/performance.
I've had some installed outside for probably ~2yrs ( undercover, but would still get damp etc.) Ill have a close look at them tonight to see how they are going with respect to corrosion etc.I've also used some small black plastic ones... they are also OK, but I think I got these from my father, so don't have a link.
-
RE: selection of proximity sensor
Ok cool...
Does it need to be durable in the installation (last many years) or just for the duration of the project? Either way id probably go with a light beam ( IR ) break sensor....cheap and robust.
I got to admit im really curious as to what noises you will be playing to the person taking the shower!
I dont need these sensors... my kids all sing in the shower so i know when they are in there
-
RE: Microwave Radar Module as PIR replacement.
There has been some chat about these modules over on Pete Scargill's site.
Seems that using some aluminium foil you can create a shield so there are at least directional.Here is the thread ( starting at the relevant comment)
http://tech.scargill.net/microwave-radar/#comment-16685
I have not tested this myself yet...
-
RE: selection of proximity sensor
What are you actually wanting to achieve?
How long your kids are taking a shower for?
If they actually did have a shower vs "Yes dad I did have a shower...I promise"...but really didn't?I ask as there are other methods to make assumptions that someone is in the shower...
eg: Humidity sensor to detect the steam...
Or temp sensor on the shower rose which heats up when the hot water flows...You could use a light beam sensor set at waist height. These are easily waterproof and robust and cheap.
-
RE: Item render others useless.
hi @jotar
Do you mean that when you use the sitemap in a browser, that everything under it does not work?
If so then you are likel missing something in your sitemap file.... If you use the Openhab designer, it will likely show any syntax/formatting issues.
-
RE: devDuino Sensor Node V2.2 (ATmega 328)
ive used these with mysensors for several years now... they work great. Batteries last ages!
-
RE: PWM frequencies on pin 9,10,11
I was having some probs with the led dimmer sketch the other night beacuse i wanted to use PIN6 rather than PIN3.
My LED strip would flicker....had me puzzled for a bit until i remembered the mysensors v2 beta ( im using quite an old cut of it ) uses pin 6 for the RX/TX/ERR leds...
So i just reassiged them in my sketch...and problem solved!
#define MY_DEFAULT_TX_LED_PIN A2
#define MY_DEFAULT_RX_LED_PIN A3
#define MY_DEFAULT_ERR_LED_PIN A4This may not be relevant to your posts... but i thought it was a PWM frequency issue initially!
-
RE: Might have bricked 60 WS2811 RGB leds
Perhaps when the arduino died , the full 12v was put down the data pin to your led strip.... subsequently killing all ws2811 chips....
What voltage do you see on the data pin on the arduino now if you connect it back to the 12v raw??
As you said, good thing these are cheap....
-
RE: Microwave Radar Module as PIR replacement.
@danta lol - I too was inspired by this thread and bought a couple of modules which arrived last week. Mine are identical to those in your first ebay link.
I've not tried to use them yet, but I think you use them identical to a PIR. ie VCC, GND and Signal.
As @Yveaux mentioned... these use the same IC as the PIR's, but these do seem to lack the ability to tune the sensitivity and timeouts like the PIR's have.
So in short... try to use them as you would a PIR.
-
RE: ATMega32u4 + RFM69 + MySensors = Working!?
Im by no means an expert...but...
isn't the key difference of the two that one 32u4 has a built in USB controller, whereas the 328p doesn't and relies on an external USB controller (FTDI usually.)
All other pins are the same
So assuming the available arduino memory space etc is the same ( or more) then I cant see why it wouldn't work.Personally I use Nano's are they are real cheap, or boards that require an external FTDI programmer ( Rboard/RBoardMini/Sensbender ).
I do have some Leonardo's which use the 32u4 chip, but never tried them with MySensors....
Didn't answer your question eh!.... Perhaps someone else is using them?
-
RE: Cannot detect my ds18b20 temp probes
How are you putting the gateway into inclusion mode? Via the Vera UI, or a button on the gateway? Ive only ever used the Vera UI.
-
RE: Cannot detect my ds18b20 temp probes
if you use the inbuilt dallas temp example in Arduino ( forget mysensors temporaily) - does it detect and read the values?
-
RE: Buy designs on OpenHardware.io
@Hek - this is a really cool idea.. well done yet again!
-
RE: Vacuum
Use a sensor such as this.
http://www.ebay.co.uk/itm/MPX5700DP-Differential-Air-Pressure-Sensor-Freescale-Arduino-MPX5700D-UK-Stock-/121626002591
There are heaps of similar sensors for measuring pressure ( or lack of ) -
RE: Guide: Setting up and testing MQTT Client Gateway
Hi Dirk - did you change the MAC address ( these need to be unique too and it could have the same one "DEADBEEFFEED" as your existing GW )
-
RE: Ultrasonic essential Oil diffuser
"what is this black component on the right side"
id say its a simple transformer. how many leads go into it? ( photos a bit blurry ) -
RE: Ultrasonic essential Oil diffuser
@fifipil909 That's outstanding work!
I never knew these ultrasonic essential oil diffusers existed.
for version 2 you need to add a sensor for when the oil is depleted!
What sort of current does the ultrasonic humidifier demand?
-
RE: Requesting time from MQTT/Openhab - How?
My memory is sh*t.... i even replied to this relevant post!
http://forum.mysensors.org/topic/812/realtimeclockdisplaysensor-ino-no-fetch-time-from-controller/6 -
RE: Requesting time from MQTT/Openhab - How?
To answer myself, the mqtt message sent is onto topic
mygateway1-out/x/255/3/0/1(where x is the node id )
and the reply is likewise sent back to
mygateway1-in/4/255/3/0/1 - with a payload being the epoch time
So now to work out the plumbing within Openhab. I already have a Number item with the epoch time (albeit in UTC)...so just need to work on the rules.
-
Requesting time from MQTT/Openhab - How?
Im currently scratching my head trying to work out the best way to provide a sensor the current time, via MQTTClientGateway and Openhab.
I don't have access to my hardware here ( im at work ) so cant test a lot of this, but I thought id put it out here now in case anyone has some ideas/thoughts..or solution
Q: What message is sent to MQTT when a sensor node requests the time?
Q: What does the Openhab "item" look like to watch for the request. This would then run a rule to return the epoch time back to the sensor node.
Q: What MQTT message needs to be returned to the node?
-
RE: Relay connection with MQTT?
what message is the sketch wanting to receive? ( what sketch are you using? link to example or post your specific sketch )
-
RE: RealTimeClockDisplaySensor.ino - no fetch time from controller
@mbj Could you please elaborate on how you allow a sensor/actuator to query OH for a V_VAR ? I know i need to do this for one of my devices when i move it from Vera, so any examples would be a terrific help!
-
RE: Help with MQTT gateway
Ive been testing the mqtt-client gateway from the dev branch for the past month or so, and its been rock solid. I'm using it with OpenHab2 beta2...so if your not too far down with your deployment of sensors, I would go with the dev branch.
With respect to you not seeing the gateway in your "router listing" - im assuming you mean the DHCP table the router keeps for IP addresses it has allocated. So if you set the IP address in the sketch, its a static address and did not ask the router for the IP, thus it wont be in the list.
No it doesn't matter if the gateway is up before the sensors or vice-versa. Assuming you have set the same radio channel they will find one another again.
-
RE: Meet in Malmö, Summer 2016?
Id love to come...but quite a distance from Australia!!
;-(
-
RE: Help with MQTT gateway
Hi George,
Do you see any messages on the serial port? ( you may have to enable debug messages..but i think they are on by default)
You should also be able to ping it from your PC if the ethernet is working.
-
RE: Guide: Setting up and testing MQTT Client Gateway
@hek
Thanks Hek - will give it a try soon! -
RE: Guide: Setting up and testing MQTT Client Gateway
I also tried to use DHCP and fqdn for mosqitto, but no luck....so I cant help but I too would like to know if its possible.
-
RE: First run of my Arduino uno Ethernet gateway
does the same issue happen with the arduino blink example?
-
RE: Power from flowing water
Or this..somewhat more compact...
http://www.seeedstudio.com/depot/36V-Micro-hydro-generator-p-634.html?cPath=1_2 -
RE: Windows GUI/Controller for MySensors
In answer to my own question... No..it doesnt seem to.. ;-(
I tried with the IP address of my MQTT client gateway board, and port 5003 ( same port that works for my 1.4 Ethernet GW )
It says it connects, but no data flows in....@tekka @hek - Is it unlikely that the MQTTClient Gateway will be usable with MYSController??
If not, would this work?
Have two networks -
1 for MYSController to perform OTA's using a serial gateway on the PC we typically do sketch changes on.2 for normal MySensors operation. When you want to invoke an update, you could send a I_REBOOT command ( MQTT message in my case), which would reboot the node and if i understand correctly, look for an update on the other network channel.
I guess you would loose all the other functionility of MYSController, but at least we could do OTA.
Cheers,
Greg -
RE: Flow to turn SerialGateway into MQTT-SerialGateway
Very cool!
Im currently using the dev branch MQTTClient Gateway sketch - but will keep my eye on this! -
RE: Windows GUI/Controller for MySensors
@tekka
Is the (dev branch) MQTTClientGateway supported by MYSController?I'm in the process of moving from Vera and Ethernet GW, to Openhab with MQTTClient gateway and would love to have the OTA functionality your bootloader and controller provides. I looked at this a while back, but ran out of time to play!
So yeah.. Can MYSController talk with the MQTTClientGateway ( over Ethernet) ?
Cheers,
Greg -
RE: WIFI Mysensors MQTT client gateway and MQTT persistence setting in Openhab
im pretty sure I turned it off in mosquito - namely for opentracks.
-
RE: Relay Sketch (1.6dev ) failed messages cause relay to activate.
Yeah -right on! In my sketch ive set them to use unused analogue pins
#define MY_DEFAULT_TX_LED_PIN A0
#define MY_DEFAULT_RX_LED_PIN A1
#define MY_DEFAULT_ERR_LED_PIN A2...problem went away.
-
RE: Relay Sketch (1.6dev ) failed messages cause relay to activate.
Ive been digging, and in MyConfig.h i see this:
// The Error LED default pin #ifndef MY_DEFAULT_ERR_LED_PIN #if defined(ARDUINO_ARCH_ESP8266) #define MY_DEFAULT_ERR_LED_PIN 7 #else #define MY_DEFAULT_ERR_LED_PIN 4 #endif #endif
Could this be the cause?
and if so shouldnt it be disabled by default due to line 141,
//#define MY_LEDS_BLINKING_FEATURE?
-
RE: Relay Sketch (1.6dev ) failed messages cause relay to activate.
I have been able to reproduce it on a another arduino and relay. ( nano IO shield + relay board )
but... if i move the relay from D4 to D8 there is no issue! Failed messages do not cause the relay to activate.
Could the radio be somehow driving D4 ??
-
Relay Sketch (1.6dev ) failed messages cause relay to activate.
I'm wondering if anyone can reproduce this.
Using the Relay actuator sketch as a base, im adding a switch ( so as to make a garage door opener/monitor) - i have this all working, except for when i encounter a failed transmission, the relay activates!
Here is a sketch with minimal modifications from the example RelayActuator sketch - in effect all ive added to it, is to send some packets frequently, in order to generate some fail messages.: ( im running it on a rBoard -mini )
/** * 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. * ******************************* * * REVISION HISTORY * Version 1.0 - Henrik Ekblad * * DESCRIPTION * Example sketch showing how to control physical relays. * This example will remember relay state after power failure. * http://www.mysensors.org/build/relay */ // Enable debug prints to serial monitor #define MY_DEBUG #define MY_NODE_ID 4 // Enable and select radio type attached #define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 // Enable repeater functionality for this node #define MY_REPEATER_FEATURE #include <SPI.h> #include <MySensor.h> #define RELAY_1 4 // Arduino Digital I/O pin number for first relay (second on pin+1 etc) #define NUMBER_OF_RELAYS 1 // Total number of attached relays #define RELAY_ON 1 // GPIO value to write to turn on attached relay #define RELAY_OFF 0 // GPIO value to write to turn off attached relay #define CHILD_ID_R1 8 MyMessage doorLockMsg(CHILD_ID_R1, V_LOCK_STATUS); int value = 1; void setup() { for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS;sensor++, pin++) { // Then set relay pins in output mode pinMode(pin, OUTPUT); // Set relay to last known state (using eeprom storage) digitalWrite(pin, loadState(sensor)?RELAY_ON:RELAY_OFF); } } void presentation() { // Send the sketch version information to the gateway and Controller sendSketchInfo("Relay", "1.0"); for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS;sensor++, pin++) { // Register all sensors to gw (they will be created as child devices) present(sensor, S_LIGHT); } } void loop() { //generate some traffic if (value == 3000) { //Serial.println(value); send(doorLockMsg.set(value == HIGH ? 1 : 0)); value = 0; } value++ ; } void receive(const MyMessage &message) { // We only expect one type of message from controller. But we better check anyway. if (message.type==V_LIGHT) { // Change relay state digitalWrite(message.sensor-1+RELAY_1, message.getBool()?RELAY_ON:RELAY_OFF); // Store state in eeprom saveState(message.sensor, message.getBool()); // Write some debug info Serial.print("Incoming change for sensor:"); Serial.print(message.sensor); Serial.print(", New status: "); Serial.println(message.getBool()); } }
Serial output looks like this:
send: 4-4-0-0 s=8,c=1,t=36,pt=2,l=2,sg=0,st=ok:0 3000 send: 4-4-0-0 s=8,c=1,t=36,pt=2,l=2,sg=0,st=ok:0 3000 send: 4-4-0-0 s=8,c=1,t=36,pt=2,l=2,sg=0,st=ok:0 3000 send: 4-4-0-0 s=8,c=1,t=36,pt=2,l=2,sg=0,st=ok:0 3000 send: 4-4-0-0 s=8,c=1,t=36,pt=2,l=2,sg=0,st=ok:0 3000 send: 4-4-0-0 s=8,c=1,t=36,pt=2,l=2,sg=0,st=ok:0 3000 send: 4-4-0-0 s=8,c=1,t=36,pt=2,l=2,sg=0,st=ok:0 3000 send: 4-4-0-0 s=8,c=1,t=36,pt=2,l=2,sg=0,st=ok:0 3000 send: 4-4-0-0 s=8,c=1,t=36,pt=2,l=2,sg=0,st=**fail:0** 3000 send: 4-4-0-0 s=8,c=1,t=36,pt=2,l=2,sg=0,st=ok:0 3000 send: 4-4-0-0 s=8,c=1,t=36,pt=2,l=2,sg=0,st=ok:0 3000 send: 4-4-0-0 s=8,c=1,t=36,pt=2,l=2,sg=0,st=ok:0
every time the fail:0 appears the relay toggles! I know its not going through the void recieve function, as there are no prints due to 'Serial.print("Incoming change for sensor:");'
It also occurs at the intialisation phase, when the sketchname/version is sent.
Starting repeater (RNNRA-, 2.0.0-beta) Radio init successful. send: 4-4-0-0 s=255,c=3,t=15,pt=1,l=1,sg=0,st=ok:0 send: 4-4-0-0 s=255,c=0,t=18,pt=0,l=10,sg=0,st=fail:2.0.0-beta send: 4-4-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0 send: 4-4-0-0 s=255,c=3,t=11,pt=0,l=5,sg=0,st=fail:Relay send: 4-4-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=fail:1.0 send: 4-4-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok: Init complete, id=4, parent=0, distance=1 3000 send: 4-4-0-0 s=8,c=1,t=36,pt=2,l=2,sg=0,st=ok:0 3000 send: 4-4-0-0 s=8,c=1,t=36,pt=2,l=2,sg=0,st=ok:0
Is anyone able/interested in trying to reproduce this? or any ideas what may be the cause? I will setup another arduino and relay to see if its hardware specific, but id be surprised if it was!
Cheers,
Greg -
RE: Guide: Setting up and testing MQTT Client Gateway
Ok got it... ( sorry for making mess of this discussion!)
If i publish to
mygateway1-in/9/1/1/0/2 and send message values of 0 or 1 it works....Hope this helps someone else!
Greg
-
RE: Guide: Setting up and testing MQTT Client Gateway
I can see in mosquitto logs a subscription from the gateway
1452645694: mosquitto version 1.3.4 terminating 1452645694: Sending CONNACK to mysensors-1 (0) 1452645694: Received SUBSCRIBE from mysensors-1 1452645694: mygateway1-in/+/+/+/+/+ (QoS 0) 1452645694: Sending SUBACK to mysensors-1
So looks like i need to add an extra level to the message i send!
So i just tried sending a message to topic:mygateway1-in/9/1/0/1/1
and now i can see in my serial outputs of both the mqttclient gateway and the relaysketch node the message received!
( but its not swithing my relay yet! )@hek is this the correct MQTT formatting:
MY_MQTT_PUBLISH_TOPIC_PREFIX/FROM-NODE-ID/SENSOR-ID/CMD-TYPE/ACK-FLAG/SUB-TYPE -
RE: Guide: Setting up and testing MQTT Client Gateway
mmm..perhaps there is a problem between mosquito and the mqttclient gateway. As ive now attached a serial monitor to the mqttclient gateway and sending the message doesnt appear in the console. I assume it should...
Opening port Port open 0;255;3;0;9;read: 9-9-0 s=255,c=3,t=15,pt=1,l=1,sg=0:0 0;255;3;0;9;Sending message on topic: mygateway1-out/9/255/3/0/15 0;255;3;0;9;read: 9-9-0 s=255,c=0,t=18,pt=0,l=10,sg=0:2.0.0-beta 0;255;3;0;9;Sending message on topic: mygateway1-out/9/255/0/0/18 0;255;3;0;9;read: 9-9-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0 0;255;3;0;9;Sending message on topic: mygateway1-out/9/255/3/0/6 0;255;3;0;9;read: 9-9-0 s=255,c=3,t=11,pt=0,l=5,sg=0:Relay 0;255;3;0;9;Sending message on topic: mygateway1-out/9/255/3/0/11 0;255;3;0;9;read: 9-9-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0 0;255;3;0;9;Sending message on topic: mygateway1-out/9/255/3/0/12 0;255;3;0;9;read: 9-9-0 s=1,c=0,t=3,pt=0,l=0,sg=0: 0;255;3;0;9;Sending message on topic: mygateway1-out/9/1/0/0/3 0;255;3;0;9;read: 1-1-0 s=0,c=1,t=0,pt=7,l=5,sg=0:26.8 0;255;3;0;9;Sending message on topic: mygateway1-out/1/0/1/0/0 0;255;3;0;9;read: 1-1-0 s=1,c=1,t=0,pt=7,l=5,sg=0:26.7 0;255;3;0;9;Sending message on topic: mygateway1-out/1/1/1/0/0
as you can see no incoming messages from mosqutto.
-
RE: Guide: Setting up and testing MQTT Client Gateway
Hi @hek
Nothing...
there is no message received from the node. ( based off the serial output)How can i serial.print out all the messages it receives?
-
RE: Guide: Setting up and testing MQTT Client Gateway
Im lost...
Ive just setup a new MQTT client gateway ( from link at the top of this post..) and have a few nodes successfully sending data to a mosquito server.
What im trying to now do is, using the RelayActuator sketch, is control the relay via a MQTT message...but im confused as to what i need to send it!
Here is the serial output from the RelayActuator sketch:
Starting repeater (RNNRA-, 2.0.0-beta) Radio init successful. send: 9-9-0-0 s=255,c=3,t=15,pt=1,l=1,sg=0,st=ok:0 send: 9-9-0-0 s=255,c=0,t=18,pt=0,l=10,sg=0,st=ok:2.0.0-beta send: 9-9-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0 send: 9-9-0-0 s=255,c=3,t=11,pt=0,l=5,sg=0,st=ok:Relay send: 9-9-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0 send: 9-9-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok: Init complete, id=9, parent=0, distance=1
So what message do i send it from another MQTT client ?
ive been trying things such as mygateway1-in/9/0/1/1 with message of 0 or 1Pls help !
-
RE: Omron D6T Thermal sensor for detecting human presence
Looks good..
I found some code here for it:
http://forum.arduino.cc/index.php?topic=212749.15I've not looked any further as to what people may have done with respect to counting people etc..but im sure there is some out there!
Not too cheap though.. $80AUD here!
-
RE: Are we initializing the nRF24L01+ correctly?
Interesting...
my g/w using a NRF24L01+ dies occasionally...
I always suspect its due to movement of the pcb/radio as its mounted underneath a staircase.Ill have a go at making this change and see if the issue goes away.
-
RE: Experimenting with cheap 433mhz gadgets
@Dwalt great post!
I too played with some cheap 433 receivers and PIR units... the result was rubbish! Looks like I need a better receiver - so thanks for the post! -
RE: Ceiling fan control replacement
Ive had this project on "the list" for ages.
My kids have ceiling fans with 3 motor speeds and off...and a light in the center of the fan.
My fans use this capacitor style to control the speed:
https://www.ceilingfansdirect.com.au/shop/ceiling-fan-accessories/speed-control-knob-capacitor-rotary-mech-for-hunter-pacific-fans-2-3-f-w06-018-w06-013-12209My plans was to use one of these for each room to control.
http://www.itead.cc/rboard.htmlI already use this rboard to control my gas heater and its never skipped a beat.
It would just be a case of analysing the switch and wiring it to the relays accordingly, and then in the sketch ensuring the relays are switched on/off as appropriate to the speed required.For dimming the light, I was thinking of a separate driver board like this
http://www.inmojo.com/store/inmojo-market/item/digital-ac-dimmer-module-lite-v.2/- On the rboard you can get to D2 for the interrupt for this controller, then use one of the exposed analogue pins for driving the load( via the dimmer module )
- Im pretty sure ive seen cheaper dimmer modules than this one out there too...
What lurks behind your existing fan speed controller currently??
Will be interested and hopefully inspired to get mine done!
Oh.. I also intended to add a motion sensor so the light can be turned off when they leave the bloody light on!
-
RE: easy coder
hi @freerpg - I too suck at programming and had the same idea as you did several years ago... im pretty sure i also asked on a forum if someone could create such a program....i got told similar to whats be said above...and so i got stuck in and learnt it....well enough to get me by.
Have a go, and i bet in a few months you will look at this post and laugh....
Heaps of people here and elsewhere can help...
Actually... check out these vids for getting going with Arduino...awesome
https://www.youtube.com/playlist?list=PLA567CE235D39FA84Good luck!
-
RE: Dallas 1-wire temp only gives 22 degrees C reading. Any suggestions?
What do you see in the serial monitor of the sensor - it should be printing the temp its sending to the controller.
If this is correct then you know the issue is not with your sensor, but upstream somewhere...
-
RE: OpenHab with smart door lock
@jemish ,
There are thousands of locks out there which can be controlled by electricity - several examples have already been given to you.Why dont you go and research the hardware lock you think will work for you and your door and come back here with the link to it, and we can help you to control it with mySensors.
-
RE: Is there anyway to have Ethernet Gateway set to DHCP for IP address?
@drock1985 - Sorry if I missed it, by WHY do you need to use DHCP on the mySensors Gateway? Why not just pick a free IP address, outside of the DHCP pool?
-
RE: Pool Pressure Sensor
Nice one - this is one sensor I haven't yet got around to adding.
Out of interest, Why do you want to know this data?
For my I was thinking that it could prompt me to backwash the filter or alert if there was a problem.Yes - I guess you would use the BARO type for pressure
http://www.mysensors.org/download/serial_api_15#sensor-typesI would assume the units shown will be dependant on your controller or interface.
Ill be interested to see how this works for you!
-
RE: MyNetSensors (closed)
Great work @derwish . The more options people have to use MySensors the stronger and cooler it will become!
Good stuff!!
-
RE: Is there anyway to have Ethernet Gateway set to DHCP for IP address?
Yeah cant you just use https://www.arduino.cc/en/Tutorial/DhcpAddressPrinter and then recycle the mac address used?
-
RE: Presence detection
@clippermiami said:
So I rigged a Door/Window sensor to seat bottom of the desk chair.
That's gold John!!!!
Another way for this solution, would be don't turn off the lights if the screensaver is not active ...assuming the major use of the room is to use a PC...
-
RE: MQTT Client gateway
@ruslan said:
to tomkhy: your gateway sketch compiles, but Arduino runs out of memory (I use Nano with W5100 ethernet module, SOFTSPI enabled). It does fit with MY_SIGNING_FEATURE and DEBUG disabled, but I need debug - somehow it is not registering with MQTT server. Please tell me how to reduce memory footprint.
Looks like you have it working now, but just incase, Previously when I have had memory issues , I have upgraded my bootloader to use Optiboot which gives you a little bit more.
HTH
-
RE: MyController.org
Great work...but yes pls some pics!!! ( as they tell 1000 words! )
-
RE: Having trouble with Ethernet Gateway/Radio/SoftSPI
Glad to hear you have it working. If you are now looking to make your gateway permanent and off your breadboard, I would definitely recommend the iBoard - very easy, cheap and stable.
-
Happy 2nd Birthday to MySensors!!!!
Happy Birthday MySensors - 2 years ago you came into the world.
(im calling it today)
http://forum.micasaverde.com/index.php/topic,16170.msg123378.html#msg123378Great work @hek – You should be very proud of what you have created and brought to life just 2 years ago.
I see there are now about 1500 users in the MySensors forum and I would think most have gone on to make MySensors a part of their everyday lives. You have introduced many of us to not just Home Automation but also programming , inventing and all the skills associated with electronics and creating many cool projects for all to share..We’re all now monitoring our homes temperature, humidity, lights,heaters, garage doors, water heaters, shutters,power/water/gas usage. We’re faking that our TV is on, automating our pool, dog water bowls, sprinkler systems, the dust in our air we breath and how much rain has fallen. We can also now control our dumb TV’s with IR from our phone, or seeing what our Rooba vacuum has done.
We can hack our kids moneyboxes requiring a secret knock to access or see when the mailman has left us bills…
We can do it securely with encrypted transmission and we can log the data to the internet to see just how cold the beer fridge was last year in December.
We’re 3d printing special cases for our creations as we’re so proud of them and know they deserve a good home to operate in!We’re all doing this and more because of your vision to create an open system and to seed and encourage so many ideas and contributors – so thank you and thank everyone who has contributed to mySensors.
I still remember this post in particular….
http://forum.micasaverde.com/index.php/topic,16170.msg127403.html#msg127403
I had only just discovered your work and was really concerned reading this post that there was no one interested…I certainly was and didn’t want you to lose interest in sharing your creation! Thankfully you didn't and we now have this wonderful community!Happy Birthday MySensors!!!
and thank you Hek and everyone here whom has made MySensors awesome!
-
RE: Beginner question about Ethernet gateway
You typically would have the Nano on a bread board so you can use multiple wires to the 3.3v pin on the Nano.
You may have issues with this however, as iirc the current provided by the 3.3 pin is probably not sufficient for driving BOTH the radio and the W5100.
But give it a try....if its unreliable then you can try adding a capacitor, or use a separate 3.3v regulator. -
RE: OpenHab with smart door lock
What door lock?
If its zwave then I don't think OpenHab can do it as zwave locks have some encryption or similar.
Or are you wanting to use MySensors with a standard electric door strike?? In which case, have a look at one of the various "Garage Door" sketches. This should be a good base for driving a door strike... probably just change the period that the lock is disabled.
-
RE: External connector options?
No worries. They are a lot smaller than XLR connectors but im sure you realise that.
-
RE: External connector options?
I like these style...
You can get them in 2,3,4,5,6,7,8 pin configurations, they are keyed meaning you cant plug them in wrong.
I use 2pin for power , 3pin for temp sensors, and 8pin for interface - but its up to you what you choose.
Easy to use - solder the wires to the pins, and drill a round hole to mount.
Relatively robust and plug screws onto socket making them difficult to dislodge.Cheap for what you get too!
-
RE: Test your home made controller with MockMySensors (w/ tutorial)
Wow - nice work again! Im in bed with Vera and looking at OpenHAB, but what you have created looks very nice and a good start!
-
RE: Cheapest way to build wireless buttons?
One thing I noticed when I first powered up with battery the excellent Sensebender Micro, was how quickly it "booted" and said hello to the gateway! - seemed like milliseconds! If its started via the interrupt then it should be able to deep sleep...
So you could possibly look at using a battery powered version since you should be able to put a large pack of batteries in your now vacant wallswitch boxes.
Have you seen this:
http://www.mysensors.org/build/scene_controllerEven if you don't use the beautiful screen, you can use some of the code.
-
RE: openHAB 2.0 binding
For those interested in OpenHAB - they have a new forum here:
http://community.openhab.org/I think/hope it will be easier to use that the google groups.
-
RE: Test your home made controller with MockMySensors (w/ tutorial)
Nice work and great idea.
When I was getting started I too didn't have enough arduinos/radios to test different bits with it was a pain...or wanting to try out Hek's latest and greatest sensor/sketch to see what it looks like in Vera/Imperihome... but I never thought to create a sketch to just pretend it had the hardware...great thinking!
Q: What GUI is that?
-
RE: Nano shield from Robotale
I bought 5 of these from iTead a long time back.. excellent to get going quickly and for testing.!
Highly recommend these!This one has been running on my desk just as a light lux sensor for months without needing any attention.
-
RE: Is this enough to get me started?
I would suggest you buy from itead their iBoard for your gateway - since you are buying from there anyway.
http://imall.itead.cc/im120410001.htmlIts pretty easy to get going as an Ethernet gateway - you do need to make some temporary changes to deploy the sketch, but I think its well worth it and a very robust tidy solution....NO WIRES needed!!
Grab a http://imall.itead.cc/im120525005.html to program it with..
As Moshe said...no need to rush into the controller, but what you are thinking with the RPi2 and OpenHab is a sound decision - very powerful and cheap to do.
I have Vera, but I forsee my future on OpenHab. -
RE: Wake up arduino only (without radio)?
Ive never done it, but I recall reading about the idea where the radio is only powered when the arduino sets an output pin high, switching on a transistor which provides the power to the radio...
-
RE: Mysensored Doorbell
@Dwalt said:
The onboard guidance computers for the Apollo moon missions were all wire wrapped.
Really?? That's madness!
@Moshe Livne - Cmon...use a soldering iron! I bought a couple of these
http://www.hobbyking.com/hobbyking/store/__24789__Soldering_Station_with_Adjustable_Heat_Range_with_AUS_plug.html
They are up to temp in 10secs... -
RE: A very beginner needs help - MySensors and OpenHab !
Hi ewgor,
Perhaps post about what you cant get working?
Can you get your sensors/actuators communicating to a mysensors gateway?
Or is it that you are having trouble getting OpenHab to work/see your mysensors gateway? -
RE: Pool water temp measuring hose adapter
Make your own....
Buy some 1/8NPT ** Stainless steel bolts about 25-30mm long... put them in a metal lathe and bore out a 5.5mm hole in the center of the bolt...dont go all the way to the end, 20mm or so deep.
Then solder up your DS18B20 nicely -heatshrink etc and epoxy it into the hole ( test it first)
In your pipework, chose a corner joint or coupling. Drill a hole and then use a 1/8 tap to create the threads in the PVC...screw in your bolt..! Done!
Ill find a photo...
-
RE: Iboard - Cheap Single board Ethernet Arduino with Radio
@hugob - Finally got to try this last night late...Success!
I did also need to add to the EthernetGateway.ino this line to load the Softspi libs...
#include <DigitalIO.h> <-added this too! #include <SPI.h> #include <MySensor.h> #include <MyGateway.h> #include <stdarg.h>
I also needed to compile it under a newer IDE version due to memory..I used 1.6.5.
-
RE: openHAB 2.0 binding
Hi Timo,
I've just ( as of about 5mins ago) run up Openhab2 A2 on my Rpi2....and last night ran up a new iBoard ( unmodified thanks to @hugob ) with the MySensors Ethernet gateway sketch.
As mentioned i plan to migrate off Vera so building a parallel environment to get up and running with.
So i would love to help test/troubleshoot your MySensors binding....ethernet though?
-
RE: openHAB 2.0 binding
Nice one Tim.
I wish to move from Vera onto OpenHab eventually and this is a key piece of the puzzle!
Looks forward to seeing your progress!
-
RE: Combine Relay Actuator (with button) and BinarySwitch examples?
Hi
I'm a bit confused what sketches you are trying to combine..
I take it you are starting with
http://www.mysensors.org/build/relay#relaywithbuttonactuator-exampleas a base?
-
RE: "Washing machine ended" sensor
Nice work!
For version 2, get it to fold and put the clothes back in wardrobes!
-
RE: Led Ring ideas?
Install it surrounding a rotary encoder for visual feedback...