Looking at a new project and wondering whether it is feasible/if anyone has done similar and could share
I want to define a preset location using GPS, and if a module exceeds a given distance (say 50 metres) from the base location, a buzzer or LED turns on
Has anyone got any advice how to do this?
Thats not difficult, Arduino libraries such as TinyGPS++ have routines that will calculate the distance and direction from two sets of GPS co-ordinates.
It rather depends on the accuracy you need, outdoors with a good view of the sky a standard GPS will give a position error in the range of 3-5m, but it can extend to an error of 10m or more, depending on the vicinity of buildings and trees etc.
It can work indoors, however the accuracy can vary from normal to zero (no satellite reception).
Agreed, the times I have checked the postion accuracy 'indoors' it can be 50m or worse, but take the GPS just a few metres 'outdoors' of the 'indoors' location and position accuracy rises to the 3-5m range.
I built a GPS based speedometer to use in veteran trains. Studiyng the interface of the NEO-6M GPS and using their example code made things happend. That was the base for the final sketch. A phone charging powerbank is the power source. An I2C communicated LCD shows the information.
Good question. I don't remember and I made some failing tries.
Use tinyGPS++.h library. I guess that the library contains example code. No, didn't find it there.
Wait a little for some more sharp helper will answer!