And Merry Christmas from Italy
Posts made by salvato
RE: Water meter: Itron Aquadis+ with pulse sensor
What happens if the mirror is barely in position to reflect and the counter stay at rest or is moving very slowly?
I'm afraid that it will trigger many false events instead of just one (maybe depending on the ambient light).
Probably using a couple of detectors and trigger only when both see the reflection can help.
RE: Binary sensor expanded help
I think that your problem is that you are using a "variable" (msg) that you never declare.
C++ requires that every variable used MUST have a type and be declared in advance.
Inserting a declaration:
should fix your problem. Let us know.
RE: nrf24l01+ RPi2 direct connection problem
I think that the problem related to the messsage:
error: invalid suffix "x" on integer constant
come from a problem in the Makefile of the librf24-bcm.
There you can find the following line:
IOBASE := $(shell cat /proc/iomem | grep bcm2708_vcio | cut -f 1 -d "-")
This try to find the memory base address of the peripherals in the Raspberry that is variable between the different models.
In my Raspberry the /proc/iomem file does not contain any information about bcm2708_vcio and the string returned is empty (in my case should be 0x20000000)
You could try to hard code the correct value in the Makefile.
Hope this help