Now after hundreds of tests I can only confirm that HC-SR04 isn't really a sensor to rely on.
Yes it shows something and it is somehow correlated with reality but... the deviations are so big!
In my case it shows stable results if you point it onto a wall... if you put a book, hand or try to dance in front of it... so unreliable measures! I even tried to apply statistical methods to filter outfitters silly errors etc... too bad!
Posts made by Alex B Goode
-
RE: 💬 Parking Sensor
-
RE: 💬 FOTA (Wireless Programming)
Fellows, let me ask you about the procedure of switching controllers during OTA.
My sensors are connected to a serial gateway, which is operated by a controller.
In my case the controller is Domoticz server hosted by Raspberry Pi2.So if I want to initiate updating one of my nodes over the air then I need to... stop my current controller on my Raspberry Pi2 and... start a new gateway on a Windows machine with MYSControler, wait when all nodes will re-discover the new gateway and connect, and then use MYSControler to do all updates I need?
-
RE: 💬 Parking Sensor
I am going to abuse this use case to handle the 'toilet occupied' events because it is a well known challenge of presence detection
-
RE: 💬 Temperature Sensor
Why don't we use an internal pull-up resistor available within an arduino board? Why additional external one?
pinMode(pin, INPUT); // set pin to input
digitalWrite(pin, HIGH); // turn on pullup resistors -
RE: ESP8266 WiFi gateway port for MySensors
Any chance to achieve some success using ESP-01 or I really have to buy ESP-07/12?
I just have some ESP-01 modules already and I wonder if I can use them
-
RE: RelayWithButtonActuator (from Development branch) doesn't change the relay
Thanks
Maybe you also advice how to trick Master branch (not Development branch) on the same way to disable radio and achieve coexisting of the serial gateway and node on the same arduino connected to a controller via usb?
Examples at the Development branch have explicit definitions for using radio, which I can comment out
//#define MY_RADIO_NRF24
//#define MY_RADIO_RFM69Meanwhile the master branch examples have no such definitions and assume the radio is always present, so I cannot disable it and it cause radio init errors for my case
-
RE: RelayWithButtonActuator (from Development branch) doesn't change the relay
Right, I can of course switch the relay pin directly in the loop() just after the push button was pressed.
There will be no magic, meanwhile I am looking for a graceful scenario when everything works perfectlyWell, now I understand that the node based on RelayWithButtonActuator.ino will only change the state after pressing the button when the ACK is received back from the controller...
I this case I think I found a bug because I checked in MYSController and saw messages sent from my node/gateway like that 0;1;1;0;2;1
It sends always value 1 because never receives ACK feedbacks from the controller, which should cause toggling the value.
And It never receives ACK feedbacks from the controller because it actually doesn't request ACK - we can see fourth zero meaning no ACK required! And it should be different because ACK request is hardcoded in the RelayWithButtonActuator.ino :send(msg.set(state?false:true), true); // Send new state and request ack back
-
RE: RelayWithButtonActuator (from Development branch) doesn't change the relay
I have no separate node and gateway - I am trying to reuse the gateway as the node.
As I understand the concept, any gateway may also serve as a node.
So I am trying to achieve the behaviour when the gateway (RelayWithButtonActuator modified with #define MY_GATEWAY_SERIAL) receives commands from the controller and physical push button, and switch the light on/offIt works well when I control it from the controller (Domoticz) and the LED (pin 13) confirms the reaction perfectly. And when I press on the push button (D4 + GND) then the signal goes to the controller, however with no consequences!
May I ask you please to explain a bit the idea behind the sketch logic RelayWithButtonActuator.ino?
When I press the button then actually no signal is sent to the relay pin (LED pin in my case), right?
How the node (coexisting with the gateway in my case) should receive the message back from the controller in order to turn the relay pin on/off? Is the logic relies on ACK mechanism, when we sent the push button message with the confirmation request (ACK) and expect to receive it back to change the relay pin? -
RE: Sensors on Gateway?
I wonder why do we have to use the a development branch instead of master?
If I want to disable the radio (because I don't have it yet on my serial gateway connected to the controller via usb) so why it is not possible on the master branch?Maybe it is possible to comment out few definitions in myconfig.h or somewhere else in source cpp code?
-
RelayWithButtonActuator (from Development branch) doesn't change the relay
Hello
I am playing with RelayWithButtonActuator from Development branch.
I have no radio connected to my arduino so meanwhile I use gateway mode via usb connection - that's why I took the code from the development branchhttps://github.com/mysensors/Arduino/tree/1.4.2
I added/commented out the following definitions to disable radio and that way works for the example for relay without buttons:
// Enable serial gateway
#define MY_GATEWAY_SERIAL
// Enable and select radio type attached
// #define MY_RADIO_NRF24 // Disable to switch into USB GW without radioWhen I control it from my controller (Domoticz) then the relay (which is modelled by LED pin 13) is reflecting any changes.
When I push the button (by connecting two wires from GND and D3) then the update message is sent to the controller (slow reaction but it works and the light switch icon is changed) however the relay itself is still unchanged (LED ignores the button)!
I am looking thru the code and see that there is no relay action in void loop() but such the activities are coded in void receive(const MyMessage &message)
Is it normal to have relay specific code out of the loop?
I guess that's the reason in my case because when I push the button then then only one way feedback is sent to the controller and no action message is sent back to the gateway, which could be received and processed to turn the relay on/off -
RE: Why don't you write mysensors library for ESP8266 similar to the nRF one ?
I found the following info which is looking promising
ESP made easy -
RE: SerialGateway.ino fatal error MySigningNone.h no such file or directory compilation terminated
Thanks, it is better that way. Now I understand that in my case I created an extra top level folder MySensors which included all libraries. When I have these two libraries then SerialGateway is being compiled well.
~/Documents/Arduino/libraries:
- MySensors
- PinChangeInt
Meanwhile I wonder why does the archive include so many irrelevant libraries as well?
I mean for example:- Adafruit_BMP085
- Adafruit_NeoPixel
How are they connected to the topic of MySensors?!
-
SerialGateway.ino fatal error MySigningNone.h no such file or directory compilation terminated
Hello
I followed the guidance how to get started and faced the problem of wrong location of libraries or something around
I am doing it in OSX. I did it already with FastLED libraries when played around Ambilight and it worked fine with no surprises.
I downloaded Arduino-master.zip from github and extracted in a temp location.
Surprisingly the extracted folder structure contained a lot of extra things which should not be placed at Arduino IDE library location. Okay, I should not use anything except the library folder in the archive!The default location for Arduino IDE libraries is ~/Documents/Arduino/libraries
I created a subfolder MySensors and moved all the content of the library folder from the downloaded archiveSo finally I got the following folder structure
~/Documents/Arduino/libraries/MySensors:
- Adafruit_BMP085
- Adafruit_NeoPixel
- BH1750
- ...
- MySensors
- ...
- UTFT_Buttons
- UTouch
Is that the proper location and the structure for the libraries?
Dear folks, please advice on this