Miata Turbo Forum - Boost cars, acquire cats.

Miata Turbo Forum - Boost cars, acquire cats. (https://www.miataturbo.net/)
-   Race Prep (https://www.miataturbo.net/race-prep-75/)
-   -   Sub $50 10Hz GPS Receiver (https://www.miataturbo.net/race-prep-75/sub-%2450-10hz-gps-receiver-82941/)

aidandj 02-03-2015 04:00 PM

Sub $50 10Hz GPS Receiver
 
This idea came up because GPS chips are cheap, and so are bluetooth chips, and I didn't feel like paying ~$100 for something I could do myself.

Deezums pointed me on to this chip (it took about 3 weeks to get here), and I used an HC-05 bluetooth module that I have from work, same one I used on my MS3. I thought that I would have to use a micro controller in the middle but the output of the GPS turned out to be exactly what most apps need. After a bit of configuration I was able to get it to work.

Also ordered this (thanks Schuyler) and will be testing it too.

I will be adding a small power supply mini-usb breakout and 3d printing a case. After I get that all done I will update this with a little how-to for people who want to follow suit.

Total cost so far:

$25 gps ($16 maybe)
$7 bluetooth
$2 mini-usb

$34 ($25 maybe)

http://i62.tinypic.com/2yv9mon.jpg

http://i59.tinypic.com/23jnxog.jpg

cyotani 02-03-2015 04:22 PM


Originally Posted by aidandj (Post 1202594)
This idea came up because GPS chips are cheap, and so are bluetooth chips, and I didn't feel like paying ~$100 for something I could do myself.

Deezums pointed me on to this chip (it took about 3 weeks to get here), and I used an HC-05 bluetooth module that I have from work, same one I used on my MS3. I thought that I would have to use a micro controller in the middle but the output of the GPS turned out to be exactly what most apps need. After a bit of configuration I was able to get it to work.

I will be adding a small power supply and 3d printing a case. After I get that all done I will update this with a little how-to for people who want to follow suit.

Total cost so far:

$25 gps
$7 bluetooth
$4 power

$36

Nice project. What are you using to log the data? Does it just send and log NEMA sentences? I think the GPS unit used on my project is the same one but I haven't gotten around to changing the refresh rate from the default 1Hz

aidandj 02-03-2015 04:23 PM

It hooks up to any android app that supports NMEA protocols. So far tested with racechrono and harrys lap timer.

cyotani 02-03-2015 04:29 PM

Got it. How long does it typically take you to get a satellite lock from a cold start?

Is there any support for an external antenna?

aidandj 02-03-2015 04:32 PM

Haven't done a whole bunch of testing. Probably around 30 seconds.

No idea? Its a chinese gps breakout board with no datasheet. I only dug in far enough to find power and tx/rx pins. I'm going to make a case with a clear acrylic top and mount it to my windshield so I'm not to worried about the antenna.

Schuyler 02-03-2015 05:23 PM

hmm, i'm gunna order one of these and give the same plan a shot.

RYN25AI 10Hz UART Interface High Performance GPS Glonass Antenna Module Battery | eBay

Hoping i get just as lucky when it comes to microprocessor necessity.

aidandj 02-03-2015 05:24 PM


Originally Posted by Schuyler (Post 1202656)
hmm, i'm gunna order one of these and give the same plan a shot.

RYN25AI 10Hz UART Interface High Performance GPS Glonass Antenna Module Battery | eBay

Good find! I'm going to order one of them too. I'll compare the 2 and see if I notice any differences.

EO2K 02-03-2015 05:54 PM

I'd pay $35 for that, provided it comes with caveman-proof instructions.

aidandj 02-03-2015 05:58 PM

I don't want to commit to anything but if it works well and I don't run into any issues I will probably do a little group purchase. Gotta ask my boss what I would have to pay for 3d printing. Personal projects are free so I've never priced anything.

deezums 02-03-2015 07:02 PM

Hehe, thanks for being my guinea pig, I'm gonna go ahead and order one now :P

aidandj 02-03-2015 09:01 PM


Originally Posted by deezums (Post 1202681)
Hehe, thanks for being my guinea pig, I'm gonna go ahead and order one now :P

I'd use the ebay one. Bigger antenna. Better instructions.

fredricktsang 02-04-2015 12:31 PM

which bluetooth module did you get? I'm thinking of doing a bluetooth accelerometer module.

aidandj 02-04-2015 12:35 PM

HC-05. Phone accelerometers are a lot more accurate and fast than phone gps.

fredricktsang 02-04-2015 12:52 PM

I was using the phones accelerometer, but now I have the phone mounted on a windshield mount. The vibrations make the data from the phone sensor pretty much useless.

Leafy 02-04-2015 11:03 PM

Should consider not putting it in the windshield. You'll get lots of drops and shitty data if your roof goes between you and a couple satellites. This isnt noticable with 1hz phone gps, but its gets to be a problem when you're actually logging at 10hz. Best bet is on top of the hard top if you have one, or on the bit of metal just in front of the trunk.

fredricktsang 02-04-2015 11:10 PM


Originally Posted by Leafy (Post 1203114)
Should consider not putting it in the windshield. You'll get lots of drops and shitty data if your roof goes between you and a couple satellites. This isnt noticable with 1hz phone gps, but its gets to be a problem when you're actually logging at 10hz. Best bet is on top of the hard top if you have one, or on the bit of metal just in front of the trunk.

Only phone is mounted on the windshield, the gps receiver is mounted on the roll bar, at the moment. So far no issues with gps reception encountered yet. But thanks for the tip, didn't think the soft top would mess with the gps signal so much.

aidandj 02-04-2015 11:11 PM

GPS is typically line of sight. I will be testing out some options. So far once this module gets a fix its pretty hard to lose it.

Leafy 02-04-2015 11:12 PM


Originally Posted by fredricktsang (Post 1203116)
Only phone is mounted on the windshield, the gps receiver is mounted on the roll bar, at the moment. So far no issues with gps reception encountered yet. But thanks for the tip, didn't think the soft top would mess with the gps signal so much.

Race Technologies tells you not even to put colored tape over the gps antenna for the DL1 because it can effect the signal. Black being the worse offender.

Schuyler 02-04-2015 11:52 PM

Ordered all the goodies. HC-06 and a 10hz GPS. Will update when I get it all soldered up and in an enclosure. Hopefully I can box it in and not have too big of an issue with signal.

aidandj 02-05-2015 12:19 AM

Im going to use a 3d printed case with a clear acrylic laser cut top to keep the interference down.

NiklasFalk 02-05-2015 03:59 AM

Not to be a dick, and it's a little more than $50, but have been available for ages (Qstarz BT-Q818XT). But that includes a more cave-man-proof concept.
The sensitivity of the antenna and more importantly the processing of the data will give different results when it comes to positioning and mounting.
I never had a problem with a Qstarz unit duck-taped to the cage (even on the A-pillar tube, with the A-pillar and the glass in the way), when using Racechrono. The frequency makes the positioning on track good enough (it's always better when you have some extra satellites and crisper data of course).

That RT DL1 have problems when there is any minor flaw in the data falls in their way of working, fix the sensors, and let the unit/software show the sensor data as-is (even create some smoke when the input voltage is off). Filtering and protection is for sissies.

Braineack 02-05-2015 08:12 AM

Was hoping for a $50 10Hz subwoofer...

aidandj 02-12-2015 11:54 AM

1 Attachment(s)
Got a couple of these in the mail today. Need to do some testing to see how much power it will consume.

http://i57.tinypic.com/etwoap.jpg

Case will be designed similar to this.

https://www.miataturbo.net/attachmen...ine=1423760093

aidandj 02-14-2015 06:52 PM

Got my second chip in the mail today. I like this one better. Cheaper, larger antenna, simpler connections.

I took it outside to get a fix and once it had it I was able to go back in my house and keep the fix. I need to take it for a drive still but good so far.

http://i61.tinypic.com/33y029d.jpg

aidandj 02-17-2015 05:40 PM

Updates, got everything connected, currently designing a case. Testing will happen today or tomorrow:

http://i58.tinypic.com/10e0e9v.jpg

http://i58.tinypic.com/97jsiq.jpg

http://i58.tinypic.com/j7fgix.jpg

EO2K 02-17-2015 05:45 PM

I am excite!

aidandj 02-17-2015 06:07 PM


Originally Posted by NiklasFalk (Post 1203147)
Not to be a dick, and it's a little more than $50, but have been available for ages (Qstarz BT-Q818XT). But that includes a more cave-man-proof concept.
The sensitivity of the antenna and more importantly the processing of the data will give different results when it comes to positioning and mounting.
I never had a problem with a Qstarz unit duck-taped to the cage (even on the A-pillar tube, with the A-pillar and the glass in the way), when using Racechrono. The frequency makes the positioning on track good enough (it's always better when you have some extra satellites and crisper data of course).

That RT DL1 have problems when there is any minor flaw in the data falls in their way of working, fix the sensors, and let the unit/software show the sensor data as-is (even create some smoke when the input voltage is off). Filtering and protection is for sissies.

I've seen that one. But cost of materials right now is 25 dollars. Which is almost a 4th of the cost of the Qstarz one.

midpack 02-17-2015 06:53 PM

I so want one of these. A comparison between RaceChrono with built-in GPS (Galaxy Nexus) vs transponder at Hallett showed times anywhere from dead accurate to somewhere around a second off. Not exactly a reliable means of measurement. These times are from my 3rd, and final, session of Friday at Miatas@Hallett. That last lap was the death of my poor little IHI.

Code:

RaceChrono        Transponder
1:50.24                1:51.585
1:36.38                1:36.337
1:31.50                1:31.509
5:27.44                5:26.538
1:34.61                1:35.544
1:31.61                1:31.610
1:31.51                1:31.476
1:30.58                1:30.617
1:33.23                1:33.263
1:31.94                1:31.913
1:32.68                1:32.642
1:31.04                1:30.848
1:33.98                1:34.171
1:29.97                1:29.968


Leafy 02-17-2015 06:56 PM


Originally Posted by midpack (Post 1207030)
I so want one of these. A comparison between RaceChrono with built-in GPS (Galaxy Nexus) vs transponder at Hallett showed times anywhere from dead accurate to somewhere around a second off. Not exactly a reliable means of measurement. These times are from my 3rd, and final, session of Friday at Miatas@Hallett. That last lap was the death of my poor little IHI.

Code:

RaceChrono        Transponder
1:50.24                1:51.585
1:36.38                1:36.337
1:31.50                1:31.509
5:27.44                5:26.538
1:34.61                1:35.544
1:31.61                1:31.610
1:31.51                1:31.476
1:30.58                1:30.617
1:33.23                1:33.263
1:31.94                1:31.913
1:32.68                1:32.642
1:31.04                1:30.848
1:33.98                1:34.171
1:29.97                1:29.968


Sounds about right, the gps on your phone only polls once per second (1Hz).

aidandj 02-17-2015 09:37 PM

1 Attachment(s)
Case printed and cut:

Attachment 234392

creon 02-18-2015 03:40 PM

I zee
1 bluethoot module
1 GPS module
1 mini USB for power suply

Is that all?
No extra arduino to translate the GPS code because the output trok GPS is what Android neer
Only set the baut and code of the bluethoot module and your good to go?

aidandj 02-18-2015 11:12 PM

So the chip that Schuyler linked doesn't have flash memory so the 10hz setting doesn't stick. Because of this I switched to a different chip that has flash, but that won't be here for another couple weeks.

Schuyler 02-19-2015 02:48 AM


Originally Posted by aidandj (Post 1207470)
So the chip that Schuyler linked doesn't have flash memory so the 10hz setting doesn't stick. Because of this I switched to a different chip that has flash, but that won't be here for another couple weeks.

D: I already ordered it. #YOLO. It gets an atmeta chip to program it errytime I guess.

EDIT: it's 3am and i'm cramming for a test, but I went and got a double 1/4 pounder with cheese and I think something of that magnitude deserves a break. Look through the manual at the Electrical Programmable Fuse (eFUSE). My understanding is you set it up the way you want it, send the binary code, and it burns the current settings to the chip. One time use, hence the "fuse" part. Worth looking in to. http://www.reyax.com/Module/GPS/RYN25AI/RYN25AI.pdf

aidandj 02-19-2015 09:11 AM

Already did. eFuse is cant set the refresh rate, only the baud rate. I even confirmed with the manufacturer.

aidandj 02-19-2015 09:20 AM

Good luck in your test. The flash chip is only 18 dollars btw.

Full_Tilt_Boogie 02-19-2015 10:20 AM


Originally Posted by creon (Post 1207330)
I zee
1 bluethoot module
1 GPS module
1 mini USB for power suply

Is that all?
No extra arduino to translate the GPS code because the output trok GPS is what Android neer
Only set the baut and code of the bluethoot module and your good to go?

These GPS modules output serial (as well as i2c), so you dont need anything else. Youre just transmitting serial over bluetooth.

creon 02-19-2015 10:33 AM

this tread now becomes more intresting
thanks for the reply Tom

aidandj 02-19-2015 11:04 AM

Just got off the phone with ublox, and there is definitely no way to set navigation rate in eFuse. Oh well.

Schuyler 02-19-2015 11:28 AM

Meh I'll cost me $2 to add an ATMEGA328 chip to it, just more work. I think I have 4-5 them somewhere, so I'll probably just do that since I already have the chip. Props (but I'm mobile and don't know how) for digging in to that though, good to know.

aidandj 02-19-2015 11:30 AM

I have the command for changing the rate somewhere written down too, but its pretty simple. I'm buying the flash chip just for science. Funny how this has cost me more than the Qstarz module.

hi_im_sean 02-20-2015 11:32 AM

R&D isnt cheap, and your time too...

at least you got some back braces out of the deal lol

aidandj 02-20-2015 11:36 AM

Very true. I am picking up some suction cups this morning and designing a way to mount this to the windshield, or zipties. It will most likely have a replaceable bottom for however you want to mount it.

hi_im_sean 02-20-2015 11:37 AM

self adhesive hook and loop. thats how i mount my Q818XT where ever i want on the car

aidandj 02-20-2015 11:43 AM

That would work too, but I have unlimited access to a laser cutter, so this is gonna get fancy.

aidandj 02-20-2015 11:45 AM


Originally Posted by hi_im_sean (Post 1207985)
R&D isnt cheap, and your time too...

at least you got some back braces out of the deal lol

Sean yours will be ready as soon as the new chip with flash memory comes in. After that I will probably post up a for sale ad. The rules at my work are if I make cash off the 3d printing I have to pay for it, but if its for friends then its free. So I can sell all the parts separate at cost, and if you want it assembled it will be a few extra bucks of my time.

hi_im_sean 02-20-2015 11:48 AM


Originally Posted by aidandj (Post 1207999)
Sean yours will be ready as soon as the new chip with flash memory comes in. After that I will probably post up a for sale ad. The rules at my work are if I make cash off the 3d printing I have to pay for it, but if its for friends then its free. So I can sell all the parts separate at cost, and if you want it assembled it will be a few extra bucks of my time.

like i said im in no hurry. i have the qstar, this one will just be for toying around with, and i was going to see if i could integrate it with another droid app for my dirt bike expeditions, hard wired into the headlamp circuit. i can assemble it myself, just give me a clue on what to do.

edit- now that im thinking about it, hook and loop probably wont hold on my bike, so a solid mount is a good option. ill probably machine a handlebar mount for it.

aidandj 02-20-2015 11:50 AM

Eh, yours is already assembled lol. I just need to test the new chip. I posted some pictures earlier, but the chips are just stacked up in a way that fits perfectly inside the case.

cyotani 02-24-2015 06:16 PM

What's the latest on this project?

Any links to recommended hardware to replicate this?

aidandj 02-24-2015 06:19 PM

Waiting for another gps chip to come in. Eta another 2 weeks. Then I will have a writeup, cad files, and a little group buy.

cyotani 02-24-2015 06:31 PM


Originally Posted by aidandj (Post 1209399)
Waiting for another gps chip to come in. Eta another 2 weeks. Then I will have a writeup, cad files, and a little group buy.

Sounds good. I'll probably be in for the group buy :bigtu:

Leafy 02-24-2015 08:00 PM


Originally Posted by aidandj (Post 1207997)
That would work too, but I have unlimited access to a laser cutter, so this is gonna get fancy.

Lol I glued a harbor freight magnet to the battery door.

aidandj 02-24-2015 08:55 PM

I will probably have magnet, zip tie, and suction cup mounting. With switchable faces.

EO2K 02-24-2015 10:59 PM


Originally Posted by aidandj (Post 1209399)
Waiting for another gps chip to come in. Eta another 2 weeks. Then I will have a writeup, cad files, and a little group buy.

I'd love to try to build one, but will get in on the group buy as well. Damn man, thanks for doing all this :bigtu:

aidandj 02-24-2015 11:10 PM

They are honestly really easy to put together. Group buy will just be parts+shipping+a little for my time to put them together/3d print stuff. I don't plan on getting rich off this. All files will be open sourced too if you have your own 3d printer and whatnot.

90civichhb 02-25-2015 08:11 AM

I would be interested in one for sure.

fail wagon 02-25-2015 11:28 PM

I'll take one.

Schuyler 02-25-2015 11:49 PM

So because I'm lazy and don't want to have this 10hz gps laying around, I bought a $2.50 arduino nano to set the gps to 10hz on boot up.

Nano V3 0 ATMEGA328P Improve Controller Board Xtwduino USB Driver for Arduino | eBay

That should work, right?

aidandj 02-25-2015 11:57 PM

Yeah, make sure that you only have the TX line on the GPS connected to the Bluetooth, and the RX to the arduino. Otherwise you will get errors with the serial data. It will make it impossible to program the GPS chip over bluetooth but will allow you to program with the arduino and read from the bluetooth chip. I personally am firmly anti arduino, so I would have used something else but either way it should work.

aidandj 02-25-2015 11:58 PM

You also have to find the string to send that programs the GPS. I can look that up sometime but my board is at work right now.

cyotani 02-26-2015 12:27 AM


Originally Posted by Schuyler (Post 1209939)
So because I'm lazy and don't want to have this 10hz gps laying around, I bought a $2.50 arduino nano to set the gps to 10hz on boot up.

Nano V3 0 ATMEGA328P Improve Controller Board Xtwduino USB Driver for Arduino | eBay

That should work, right?

Holy hell China can make some damn cheap clones.


Originally Posted by aidandj (Post 1209949)
I personally am firmly anti arduino, so I would have used something else but either way it should work.

Why anti Arduino? I'm not an EE/CS guy so that's just about the only think I can program by stealing a bunch of code snipts from all over the interwebs.


All times are GMT -4. The time now is 11:57 PM.


© 2024 MH Sub I, LLC dba Internet Brands