SparkFun Forums 

Where electronics enthusiasts find answers.

Tips and questions relating to the GPS modules from SFE
By Coyote47
#55233
thank you for reading. I need help. I have an idea for a gps tracking device that would be used for a game similar to Paintball called Airsoft I was wondering if it would be possible to create a small device that would broadcast a gps coordinate and some sort of id number that could be picked up by a base station (laptop) and mapped in real time. Hopefully it would be run on Normal batteries (9v, AA, AAA), have a range of about 2mile max and be able to track up to 100 units (or more). Can someone help me design this device and get a price per unit estimation. I have very little electronics knowledge but if this was feasible I would go and learn. Thanks again.
By Krogoth
#55239
Yes, it's feasible, but it's going to be very difficult or expensive (likely both). You could either use a GM862/3 GPS module as the tracking device and a GSM modem on your laptop for 'infinite' range (over the cellular network), or use a generic GPS module with a radio transmitter, and a receiver connected to your laptop.

I'm guessing you want to track all the Airsoft players in real-time within the combat area. The most elegant solution I can think of is a miniature GPS connected to an XBee Pro Series 2 module in mesh configuration. That way, as long as each player is within 1 mile of each other, and there is a player within 1 mile of the base station, you can get communication throughout all the modules (could allow for some neat proximity warnings, etc).

That said, to do this would be very very difficult with limited electronics knowledge, and would end up costing about $100 per unit (so 100 units will set you back 10 grand). My advice: if you're a hobbyist, hit the books, and if you run an Airsoft company and own a combat zone (and have money to spend), hire an engineer to do the dirty work :P

Will.
By gussy
#55241
I think the best way to go would be something like this:

GPS: EB-85, or even better, LS20033 (not sold at SFE, but about $35 plus shipping from the maker where I get mine in bulk)

Wireless: Zigbee or Meshnetics modules. You can get a 2.4 Meshnetic module that will get you 4km open air range for around $35.
With using a zigbee stack you could create a mesh network, which means all the devices communicate with each other. Sort of like each device being a repeater in itself. Meaning you could place 100 devices in a straight line 4km apart and each one would be able to talk with each other device.
So for this application, if someone is in a hole or behind something, and another person is in a tree or on a hill, they would use that device to get back the the base station.

Controller: I would use an AVR, probably an ATMega16 or ATMega168
For simplicity you could use one of the small Arduino board SFE offers, these run at about $20ea, or $16 in quantity.

Power: I would go with a LiPo. The small 2000mAH style pack SFE offers would be fine for a 3.3v system and give you a run time of possibly 20+ hours
For the LiPo you will need a circuit to protect over/under charging, SFE has boards for this.
You could use standard AA cells, but a LiPo would be a much neater solution.

As you said 100 devices, the units become alot cheaper than making one off's. I think your cost would be around $100 per unit, so like Will said, do you have $10,000 to spend on this?

All up, I don't think this project would be overly complex, and if you made/assembled your own boards rather than using SFE "modules" (no offense SFE), you could get a unit working for under $100 and small enough to fit in the palm of your hand. Maybe even half the size of a credit card in LxW.

Are you just doing this for fun, or are you an Airsoft business looking to set this up?[/b]
By Coyote47
#55253
Thanks for the responses. this was supposed to be just for fun but now that I've spent some time thinking about it , It might be useful for other applications(terrain mapping perhaps) so if i can get some group to latch on to the idea i might be able to get funding. but for now just a few questions what kind of accuracy would this system have geographic and altitude? what if i wanted to run 2 systems in the same area but not have them interfere or show up on the "other Teams" map?
By ewerebellatok
#55267
Thank to those feel free to read and help. Here I like to ask about how to build GPS track device which can track and display data on laptop in infinite range. can anyone help me specific or give the information about device or component I should used. or design me the system which enough information.

I looking for the system operate in normal battery, can display map to find current position of device was track on the laptop and with widest range or infinite range.. :?
Thanks,
By wiml
#55268
The Meshnetics modules have an AVR on them that can run user code (in addition to the Zigbee or other networking code), so you could knock your BOM down by one chip that way.

There are some other low-cost meshing systems out there, some based on (eg) the Nordic chips.

If you're interested in what other people are doing in this field check out "wireless sensor networks" and "mote" networks.
By wiml
#55269
ewerebellatok wrote:Thank to those feel free to read and help. Here I like to ask about how to build GPS track device which can track and display data on laptop in infinite range.
Take a look at APRS, maybe?
By gussy
#55286
ewerebellatok wrote:Thank to those feel free to read and help. Here I like to ask about how to build GPS track device which can track and display data on laptop in infinite range. can anyone help me specific or give the information about device or component I should used. or design me the system which enough information.

I looking for the system operate in normal battery, can display map to find current position of device was track on the laptop and with widest range or infinite range.. :?
Thanks,
You want the GM862 or GM863. SFE sells them.
By Krogoth
#55288
Coyote47 wrote:but for now just a few questions what kind of accuracy would this system have geographic and altitude? what if i wanted to run 2 systems in the same area but not have them interfere or show up on the "other Teams" map?
The accuracy you get is entirely dependant on the GPS module you choose - but most offer a standard 5m (3.3m with WAAS) RMS error (so, let's say accurate to within 3-4m). Altitude is apparently less accurate, with figures of around 20m of RMS error.

As for the teams in the same area, it depends entirely on how you program it. If you have one base-station for each team, they could all be part of the mesh yet only receive position signals from transmitters on that team. If you're an ace programmer and everyone has GPS phones, you could even program in a FPS-style local map on each person's phone with friendlies and terrain shown :P There won't be any interference between transmitters if you use 2.4GHz radio modules (GPS transmits around 1.5GHz).

Gussy, nice call on the Meshnetics modules - I'd never even heard of them, but with built-in AVR they're perfect for a whole bunch of projects I've thought up in the past. I agree with the hardware design as being fairly simple (but then again I'm an electronics engineer), but it's the wireless protocols and mesh integration, as well as the host software for the PC that will be the difficult part, requiring knowledge about a whole lot more than just electronics. I'd also go with disposable batteries to keep costs down.

Will.
By Coyote47
#55290
That fps map idea sounds amazing. what do you mean about the wireless protocols and mesh integration being the hard part? this project sounds like alot of fun. but first i need to know what i'm doing. what books would you guys recommend?
By gussy
#55294
I'm not such a big fan of books for learning for projects like this, I would rather learn hands on.

If I were you, I would go and buy some parts like Meshnetics modules, GPS modules and just start playing using examples found on the net. Probably start with enough bits to make 2 or 3 "devices" to keep the costs down.
Another thing that helps a lot is to read datasheets for the parts your using.

What Krogoth means is that the software part is going to be hard, not the hardware part. The actual electronics of this is simple, its just connecting a GPS serial port to a microcontroller then to a RF module.

I suggest to try the Arduino offerings SFE has, there are loads of examples and help on the net for them.

Basically 10% or less of this project is hardware. The other 90% is software.
By ewerebellatok
#55302
never mind either GM862 or GM863,.

unless I can used to track in high wide range, that what i want..
TQ.

to you, which one is better, have u know what gps model with radio transmitter and receiver
By Coyote47
#55305
what amount of software has to be programed on the Device? once i've got the data on to the computer I know how to do that programing. but what kind of programing will be needed for the devices? also what kind of radio reciever will i need for the laptop?
By stevech
#55308
Coyote47 wrote:thank you for reading. I need help. I have an idea for a gps tracking device that would be used for a game similar to Paintball called Airsoft I was wondering if it would be possible to create a small device that would broadcast a gps coordinate and some sort of id number that could be picked up by a base station (laptop) and mapped in real time. Hopefully it would be run on Normal batteries (9v, AA, AAA), have a range of about 2mile max and be able to track up to 100 units (or more). Can someone help me design this device and get a price per unit estimation. I have very little electronics knowledge but if this was feasible I would go and learn. Thanks again.
Rather expensive in cost and battery. But if you can stand $100ea and a fairly large battery with, say, 8 hrs between recharges, it can be done. For 2mi you may well have to use public carrier cellular data, unless you have clear line of sight and can use high power at 900MHz unlicensed. For that 2mi case, look at these rather expensive modules that take a lot of battery:
http://www.digi.com/products/wireless/z ... sh-900.jsp
(900MHz is North America only).
The 2.4GHz XBee et al, even with the PRO at 60mW, is not a good fit here due to the propagation problems, esp. with non-line-of-sight and the fact that even no-gain antennas for this have nulls.
A good GPS is SiRF-III, $59, integrated into many products; maybe here on SFE, and I have one from Tyco via Mouser. You have to program it using a special protcol to do sleeping to conserve power. I also use a vibration sensor (<$1) to influence sleeping. GPS is the largest battery consuming element. An Atmel AVR -P series micro is a good low power micro. (people tracking via GPS is done in military training systems, I know from job experience).
By gussy
#55328
Coyote47 wrote:what amount of software has to be programed on the Device? once i've got the data on to the computer I know how to do that programing. but what kind of programing will be needed for the devices? also what kind of radio reciever will i need for the laptop?
Second question first, that one is easy. The receiver would just be one of the RF modules hooked up to USB of the laptop. The RF Modules (like the meshnetic ones) are transmitters and receivers so you don't need anything special on the receiving end. Only difference is it has a USB output, maybe in a nice box and probably a bigger antenna.

As for software, if it were just a case of point to point comms, it would be a simple program that received the GPS data, maybe added some info like unit ID, battery voltage, and then sent it on the the RF module. Pretty simple stuff. You could add other things like GPS fix lights, status lights but that's all cosmetic.
I have not played with the Meshnetics module so I don't know how easy it is to get them to form a mesh network, but thats all you need to do, and that would be the "complex" part of the code. Although I doubt you would have to write it all yourself, I think the idea of Meshnetics is that they provide meshing code/functions for you to use.

A quote from the Meshnetics website: "802.15.4 / ZigBee stack featuring self-organizing, self-healing mesh network". So you may not have to code any meshing software at all, it may just be a case of telling the module on setup that you want a mesh network. That would make the code VERY easy, maybe only 50 or so lines for GPS receiving and forwarding.

If your patient, got a bit of time a $$$ to spend, this wouldn't be an overly difficult project.

I have to say, if implemented right in a "high tech" paintball/airsoft situation this could be VERY cool. With a 5Hz GPS you would see smooth and realtime positions of players, and the "captain" of the team could have a handheld reading unit which showed where all his players were.
If you really wanted to get into it, you could sense with a microphone or switch when the players gun fires, and then that would show up on the oppositions map for 5 seconds, just like in the real FPS games.
If you get something working well you could try pitching it to large paintball/airsoft operations.