piBeacon: presence monitoring plugin discussions

Posted on
Fri Apr 10, 2020 2:34 pm
kw123 offline
User avatar
Posts: 7065
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

Glenn. A question. Right now they report bits not voltage. Should I add an option to convert the bits to V
right now the user has to do it by multiplying / dividing with the gain factor.
Eg 0.3mV per Bit

Karl


Sent from my iPhone using Tapatalk

Posted on
Fri Apr 10, 2020 3:07 pm
GlennNZ offline
Posts: 728
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: piBeacon: presence monitoring plugin discussions

kw123 wrote:
Glenn. A question. Right now they report bits not voltage. Should I add an option to convert the bits to V
right now the user has to do it by multiplying / dividing with the gain factor.
Eg 0.3mV per Bit

Karl


Sent from my iPhone using Tapatalk
Hi Karl

Took a bit of reading to half get my head around bits and voltages from ADS1115.
May make troubleshooting issues easier if have voltage as well - certainly if was 4.096V and not any higher probably would help recognise the issue.

But as always up to your preference and time!

Glenn


Sent from my iPhone using Tapatalk

Posted on
Fri Apr 10, 2020 3:27 pm
kw123 offline
User avatar
Posts: 7065
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

actually I am wrong, it returns the values in mV as is, so no bits but

eg raw value = 3200.00mV (= 3.2V)

Karl

need to get out of the house and do something else

Posted on
Mon Jun 08, 2020 4:42 pm
kw123 offline
User avatar
Posts: 7065
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

coming up:

added several auto discovery beacons / finders.

In the past it was always a pain in the b to figure out which of the many MAC# is your beacon.

The new version will have TAGs defined for several beacon types:
Code: Select all
Beacon type:  properties and functionality
====================================

Name/type            v    FormFactor    hole     auto    has     isBeepable  Battery  battery                   sensors        APP
                                        4 key    detect  beeper  byPlugin    reading  Type                                    functions
-----------------------------------------------------------------------------------------------------------------------------------
Nonda_Aiko          all  small square    yes     yes     yes     yes         yes      rechargeable ~ 2+ weeks   no           beep, register
Nonda_iHere         all  triangle        yes     yes     yes     yes         yes      rechargeable ~ 3+ weeks   no           beep, register       
Rinex_iTrack        all  square          yes     yes     yes     yes         yes      cr2032                    no           beep, register
Njoiii_iTrack       x    square          yes     yes     yes     yes         yes      cr2032                    no           beep, register
Vozni_iTrack        x    square          yes     yes     yes     yes         yes      cr2032                    no           beep, register
SpotyPal            x    square          yes     yes     yes     yes         yes      cr2032                    no           beep, register
Innway              x    square          yes     yes     yes     yes         no       cr2032                     no           beep, register
Cube                x    square          yes     yes     yes     yes         no       cr2032                     no           beep, register
XY_1                1    pentagon        yes     yes     yes     yes         yes      cr2032 ~ 6+M              no           beep, register, creates several MAC numbers
XY_2                2    pentagon        yes     yes     yes     yes         yes      cr2032 ~ 6+M              no           beep, register, creates several MAC numbers
XY_3                3    pentagon        yes     yes     yes     yes         yes      cr2032 ~ 6+M              no           beep, register, creates several MAC numbers
Orbit               1    round           yes     yes     yes     yes         ?        cr2032, sp tool repl Bat. no           beep, register
NutFind             3    square          yes     yes     yes     yes         yes      cr2032                    no           beep, register


===ibeacon + Sensors
ruuviTag            all  round Big       no      yes     no      no          yes      cr2450 1Y                 T,H,P,accel  display of sensors
Blue_Charmn         x    square          yes     ?       no      ?           ?        cr2032                    T            iBeacon,EddyStone, conf: TX, repeat

===iBeacon types:
MiniBeacon          x    various         no      yes     no      no          no        USB                      no           iBeacon,EddyStone
Feasy_USB           x    USB             no      yes     no      no          no        USB                      no           iBeacon,EddyStone, conf: TX, repeat
Feasy_Triangle      x    trinagle        yes     yes     no      no          no        cr2032                   no           iBeacon,EddyStone, conf: TX, repeat
SocialRetail        x    USB             no      yes     no      no          no        USB                      no           iBeacon,EddyStone, conf: TX, repeat
SocialRetail        x    BIG             no      yes     no      no          no        AAA                      no           iBeacon,EddyStone, conf: TX, repeat
Radius              x    round           no      yes     no      no          no        cr2032 ~ 3 months        no           iBeacon, conf: TX, repeat
Radius              x    USB             no      yes     no      no          no        USB                      no           iBeacon, conf: TX, repeat

== other types
Tovala-oven         1    Oven            no      yes     no      no          no        AC                       no           no
OralB               1    toothbrush      no      yes     no      no          no        rechargeable             no           no
   
cheap ibeacon        likely working,     ?       no      no      no          no        cr2032 mostly            no           pure iBeacon, edystone..some have sig config

tile                x    not working
xy_4                4    not working
swiftFind == ZenLife      intrusive, no actions possible 
These beacons indicated can be automatically added, set in config which type of device you like to add and they will show up automatically (after you configured them w the app)
I believe this makes live MUCH easier

and some other nice features ..


Karl

and thanks again to Adam for patiently testing

Posted on
Wed Jun 24, 2020 4:08 am
GlennNZ offline
Posts: 728
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: piBeacon: presence monitoring plugin discussions

Hi Karl,

Hope all is well....

Wonder whether you could detail GPIO usage in a bit more detail?

I know, it’s the easiest most basic sensor!

But ... getting on/off fluctuating every few seconds or so, between a GPIO and GND.

Presume need either a pull-up or pull-down resistor. Didn’t seem to need one before — but haven’t checked the hardware for issues for a while.

Can you clarify the setup for such most basic sensor?

Thanks

Glenn


Sent from my iPad using Tapatalk

Posted on
Wed Jun 24, 2020 6:28 am
kw123 offline
User avatar
Posts: 7065
Joined: May 12, 2013
Location: Dallas, TX

piBeacon: presence monitoring plugin discussions

Attached the setup of a GPIO input pin #21:
Screen Shot 2020-06-24 at 07.08.24.png
Screen Shot 2020-06-24 at 07.08.24.png (123.16 KiB) Viewed 130 times

The value is 1 if pin is connected to ground and 0 when open (switch is connected => 1, open = 0)
The RPI has internal pull up/down resistors. In the setup the internal pull -up resistor is used

You can use this simple setup if the switch is "floating" ie no electric connection to anything else.
As precaution you could add a simple diode (1n4148) with anode connected to GPIO pin and cathode (the end with the black ring) towards the switch.
This will prevent any current flowing back to the GPIO pin. The switch will still work fine.

When your state value goes up and down on its own it could indicate a loose connection.
To test that, connect your gpio pin directly to ground (w a 2 female jumper cable). The value should be stable. If that is true then your cable connection is likely flaky/loose/ .., if not your RPI might have a problem ( just double checked .. the software is working)

If the switch is not floating eg connected to a bell with its own voltage, things are more complicated. And you might need an optical isolation circuit. They are not expensive < $0.5.
https://www.amazon.com/MCIGICM-optocoupler-Optoisolator-Transistor-3550Vrms/dp/B07V4NDLTR/ref=pd_sbs_147_3/143-3663147-3744315?_encoding=UTF8&pd_rd_i=B07V4NDLTR&pd_rd_r=e31ccbe4-90df-4707-8834-a9ef3c70b1fd&pd_rd_w=VgNm7&pd_rd_wg=3N32M&pf_rd_p=bdc67ba8-ab69-42ee-b8d8-8f5336b36a83&pf_rd_r=QEQ593H7XY9JDCJW355P&psc=1&refRID=QEQ593H7XY9JDCJW355P

Karl

Posted on
Thu Jun 25, 2020 3:00 am
GlennNZ offline
Posts: 728
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: piBeacon: presence monitoring plugin discussions

Thanks Karl,
Thats really helpful- particularly the bit about pointing out the internal pull-up resistors.
I suspect you are right and it is a loose connection - will go check and report back.

Glenn

Posted on
Thu Jun 25, 2020 10:36 am
kw123 offline
User avatar
Posts: 7065
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: presence monitoring plugin discussions

If you have an open connection w a long cable and no pull-up resistor i could imagine that it is going up/down repeatedly


Sent from my iPhone using Tapatalk

Posted on
Sat Jun 27, 2020 7:41 am
kw123 offline
User avatar
Posts: 7065
Joined: May 12, 2013
Location: Dallas, TX

piBeacon: presence monitoring plugin discussions


Who is online

Users browsing this forum: No registered users and 3 guests