pibeacon: 22 - BLE sensors

Posted on
Sat May 23, 2020 10:30 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

pibeacon: 22 - BLE sensors

ruvvitag https://ruuvi.com has a piece of hardware that fits well w pibeacon:

1. it sends an ibeacon message every second,
2. battery should last > 1 year
3. it sends as part of its message Temp, humidity, pressure (using BME280) and x,y,z acceleration ( gravity sensor)

With this beacon you can sense
1. presences
2. movement ( LIS2DH12 accelerometer)
3. environmental info (TPH using Bosch BME280)

The plugin offers 2 devices for each ruuvitag:
1. regular ibeacon. It will have regular signal, position.. as well as battery level info
2. sensor for TPH, acceleration in mg (1g= normal gravity)
it also calculates total acceleration (gravity sqrt(x*x+y*y+z*z)) and accelerationTurn (delta acc.%: ( |x-xlast|+|y-ylast|+|z-zlast|)/3*100): when you turn the device the total acceleration stays roughly constant while the acceleration_Turn info clearly shows a large change

How to setup
You get the MAC number of the device using the ruuvi tag station phone app.
Screen Shot 2020-05-23 at 11.11.20.png
Screen Shot 2020-05-23 at 11.11.20.png (162.86 KiB) Viewed 6705 times

show here also the option of having a color code for the state image, here for temperature. this does not work when you show more than one state in the state column (eg temp/humidity)

To add ibeacon type device you allow new sensors for 1 minute and pick the right one to keep: pick the right MAC number and the description field will show something like this "ruuviTag-xx:xx:xx:xx:xx-sensor" (xx:..=MAC number) (you could also just add an ibeacon device and add the mac number at the bottom of the edit screen, then you would need to to a manual push of config to the rpis, The TX- signal strength for distance calculation is ~ -63dBm (enter in the proper field in device edit)

To add the sensor device you add an indigo/pibeacon/ruuvitag device and enter the MAC number, configure some of the sensitivity parameters and which RPI should monitor the sensor, you could select all of them. Then save.
Screen Shot 2020-05-23 at 11.07.19.png
Screen Shot 2020-05-23 at 11.07.19.png (259.56 KiB) Viewed 6705 times
Screen Shot 2020-05-24 at 11.35.11.png
Screen Shot 2020-05-24 at 11.35.11.png (86.84 KiB) Viewed 6671 times


You then get the following states:
Screen Shot 2020-05-23 at 11.08.03.png
Screen Shot 2020-05-23 at 11.08.03.png (214.24 KiB) Viewed 6705 times


With a very long battery life and frequent updates this sensors can be used anywhere in the house ( < 30m distance tot the nearest RPI) - do not expose to rain! to
- measure temperature, humidity, air pressure with high accuracy
- movement / tilt sensor on doors - windows, fridge, dogs
- regular ibeacon presence

There is no config option for the device itself, just power on and it is ready.

THE ONLY BAD NEWS: it is not small. It fits in my pocket, but not everyone would accept the size.
You can only get it directly from ruuvitag in Finland (at least in the US). I got mine in 4 days.

Karl

Posted on
Mon Jul 20, 2020 4:53 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: pibeacon: 22 - Ruuvi Tag sensors

the is a posting on how to use the ruuvitag sensor for water level measurement, pretty cool.

http://mybeacons.info/swampFlood.html

Karl

Posted on
Wed Sep 30, 2020 2:53 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: pibeacon: 22 - BLE sensors

iBS03-TP as pool thermometer. The device as a whole is IP67: "it has been tested to work for at least 30 minutes while under 15cm to 1m of water. "

1. oder a sensor / beacon @ eg[url]beaconzone.co.uk[/url]
2. open sensor; switch it on - tiny white lever; close it and tighten top/bottom part with the 2 small screws
3. in piBeacon plugin: menu/accept new beacons/ select "INGISCS iBSxx", after < 40 secs you should see a new beacon. Edit it & copy mac #
4. create new device: piBeacon / model=BLE-iBS03TP .. , give it a name, paste the MAC number from #3, select closest RPI to the pool. Set other parameters: if you like red/green/grey indicator and select ambient temp to be shown in status column
== that is all for indigo.

Physical setup
1. dump the sensor probe into liquid plastic
Screen Shot 2020-09-30 at 15.12.33.png
Screen Shot 2020-09-30 at 15.12.33.png (195.31 KiB) Viewed 6193 times
and cover the screws and the edge where it holds together
Screen Shot 2020-09-30 at 15.12.47.png
Screen Shot 2020-09-30 at 15.12.47.png (166.18 KiB) Viewed 6193 times

2. use a spatular, heat it
Screen Shot 2020-09-30 at 15.11.31.png
Screen Shot 2020-09-30 at 15.11.31.png (228.62 KiB) Viewed 6193 times
and "melt" /cut two plates of styrofoam (top and bottom) 10cmx10cm is large enough
Screen Shot 2020-09-30 at 15.12.00.png
Screen Shot 2020-09-30 at 15.12.00.png (368.25 KiB) Viewed 6193 times

3. Melt space for the sensor with the spatular in the bottom and top part. The sensor fit ~ 1/2 into the bottom part.. melt a hole into the bottom plate for the temperature probe
Screen Shot 2020-09-30 at 15.30.02.png
Screen Shot 2020-09-30 at 15.30.02.png (264.48 KiB) Viewed 6193 times

4. put everything together . You can use two small solid wires to hold top and bottom part together - poke the wires through the top and bottom plate and bend it around
5. curl up the long probe cable so that the sensor is ~ 20 -30 cm in the water.
Screen Shot 2020-09-30 at 15.28.04.png
Screen Shot 2020-09-30 at 15.28.04.png (263.57 KiB) Viewed 6193 times

6. let it swim, here shown w/o the top part
Screen Shot 2020-09-30 at 15.28.21.png
Screen Shot 2020-09-30 at 15.28.21.png (93.17 KiB) Viewed 6193 times


You then should see the water temperature in the device state "AmbientTemperatur" (you can set that to be the value shown in the state column in device edit) it is updated every 30 secs
You can download the android ibs01 app and set the refresh timing parameter.

The other temp value is from within the sensor. It gives you the temp just above the water line, somewhere between air and water temperature.
device edit:
Screen Shot 2020-10-01 at 19.29.41.png
Screen Shot 2020-10-01 at 19.29.41.png (129.35 KiB) Viewed 6163 times

devices states:
Screen Shot 2020-10-01 at 19.29.07.png
Screen Shot 2020-10-01 at 19.29.07.png (67.06 KiB) Viewed 6163 times


I have compared it to the old rfxcom pool temp device and the temp values where < 0.2 C apart

Karl

Posted on
Mon Oct 12, 2020 1:04 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: pibeacon: 22 - BLE sensors

BLE sensors supported

This class of sensors send BLE broadcasts with sensor data on a regular basis or when button is pressed or when sensor value change.
Some of them can also be used as iBeacons when they send a message often enough (eg ruuvuitag, iBSxx Minew)
The reaction time between button press and indigo device change is <0.4 secs
In general they do not use a lot of power = have a longer battery life

Code: Select all
 
Vendor  sensorName battery          Freqquency       Size         App      Type of Sensor ------------------------------------------------------------------------     
                                    Ibeacon                                On/off or ON      Temp ExTemp Hum  Press   Accell/Grav  IR       Light  GAS  CO  Smoke     
 
ruuvi   opensource sensor w BME280 and LIS2DH22 Acceleration sensor 
        ruuviTag   1x cr2450        1/1s             largeRound  ruuvi                        Y           Y    Y       X,Y,Z 

Govee Temp & humidity sensors, they broadcast T, H, BatteryLevel
  - H5101          3x AAA           1/3sec          w small display                           Y           Y                     
  - H5075          2x AAA           1/3sec          w medium display                          Y           Y                       
  - H5177          1x cr2032        1/3sec          w large display                           Y           Y                       
  - H5174 outside  3x AAA           1/3sec          no display                                Y           Y                     

Xiaomi MiJia 
 - LYWSDCGQ/01ZM   1x AAA           1/1s       large Round display  YES                       Y           Y   
 - LYWSD03MMC      1x CR2032        1/2Min     small Square display YES                       Y           Y requires 2 BLE dongles, get data through GATT command
 - VegTrug         1x CR2032        1/2Min                          YES                       Y           Y                                  Y  + Moisture+Conductivity
   Flower Care                                                                                              requires 2 BLE dongles, get data through GATT command

INGICS: All have battery voltage support  in regular bluetooth message 
        iBS01      2x CR2032+USB    1/4s             large flat  IBS01      Button ON/off 
        iBS01G     2x CR2032+USB    1/4s             large flat  IBS01      Button ON/off                              movement ON/off 
        iBS01RG    2x CR2032+USB    3/s              large flat  IBS01                                                 X,Y,Z 
        iBS01H     2x CR2032+USB    1/4s             large flat  IBS01      Magnetic ON/off 
        iBS01T     2x CR2032+USB    1/5s             large flat  IBS01                        Y           Y 
        iBS02IR2   2x CR2032+USB    1/10s            large flat  IBS01                                                               present, short distance ON/off 
        iBS02IRPIR 2x CR2032+USB    1/10s            large flat  IBS01                                                               movement PIR ON/off 
        iBS02M2    2x CR2032+USB    1/10s            large flat  IBS01      ExtContact ON/off                                       
        iBS03G     1x CR2450        1/5s             squareThick IBS01                                                 Movement ON/off 
        iBS03RG    1x CR2450        3/s              squareThick IBS01                                                 XYZ 
        iBS03T     1x CR2450        1/5s             squareThick IBS01                        Y 
        iBS03TP    1x CR2450        1/5s             squareThick IBS01                        Y    Y water prove IP67 
        iBS04      1x CR2032        1/4s             key remote  IBS01      Button ON, not easy to press 
 
Minew All have battery voltage support  in regular bluetooth message 
        E8         1x CR2032        1/s                                                                                 XYZ 
        S1         1x CR2032        1/s                                                       Y    Y       Y 
 
Kaipule - iSensor 
        EN61        AC              1/hour                                                                                                           Y 
        ES62        3x AA           1/hour                                                                                                                    Y 
        EC50        2x AA           1/hour                                                                                                               Y 
        EW70        1x CR2032       1/10Min          round                   Water ON 
        ET90        1x CR2032       1/10Min/ValCHg   round                                    Y            Y 
        IM21        1x CR2032                        ovalSmall               Mag ON/off 
        IM24        1x CR2032                        oval                    Mag ON/off 
        IM22        1x CR2032                        Long square             Mag ON/off 
        IX30        1x CR2032       1/10Min          Large                                                                            movement PIR 
        IX32        1x CR2032       1/10Min          Large                                                                            movement PIR 
        RB50        1x CR2032       none                                     buttonPress ON   well done looks like a real door bell       
        RC10        1x CR2032       none                                     4 buttonPress ON well designed, easy to use       

WeatherHawk, outdated   
        myBueT     1x CR2032        1/1Min           oval small                               Y 
 
Satech .. not recommended SOS button disables the device, needs a power cyle   
AKMW      not recommended, requires APP/GATT with long read times   


Page 1 of 1

Who is online

Users browsing this forum: No registered users and 7 guests