Building a Raspberry Pi GPS Speedometer
gleslie.com
gleslie.com
edit: I just noticed the multi-meter glued to the "dash". Nice.
Cars in far worse shape than that are driven on the roads here all the time.
If the car is considered an antique you can get away with a lot. People are importing rare 90s Japanese cars because you can get away with having left hand drive. Over 25 years old is considered antique.
No one inspects your car like in Germany they just test emissions. The cops will have to see you and pull you over.
In the EU speedometers have to be carefully calibrated, have strict regulations to pass and your car is not allowed to drive with a broken one. Just replacing it with a, sometimes spotty, GPS signal sounds impossible here. Like, what do you do when driving through a tunnel?
These days are long gone in Europe, where the very pace at which you breathe is regulated.
Stories like this happen with disturbing regularity.
Source (da):
https://www.mm.dk/tjekdet/artikel/hvad-blev-der-af-eus-forbu...
Translated:
https://www.translatetheweb.com/?from=da&to=en&dl=en&a=https...
Danish food producers were taking the cheap route (Cassia cinnamon rather than the not-dangerous Cinnamomum verum), and rather than requiring the bakers to use less spice or the more expensive one, the Danish government abused the loophole in the law for traditional recipes.
+1 to the EU, -1 to Denmark and the bakers.
The entire tyrannical bureaucracy of the EU undoubtedly feel they're doing a great service, while a lot of people feel they're sticking their noses where they don't belong, making problems where none exist to justify their existence.
No-one died, but there's an account here [2] of mouth lesions caused by excessive cinnamon bun consumption.
The Veternary and Food Administration works closely with the European Union. [3]
[1] https://www.europarl.europa.eu/sides/getDoc.do?type=PV&refer...
[2] https://doi.org/10.14219/jada.archive.2000.0311
[3] https://www.foedevarestyrelsen.dk/english/Aboutus/Internatio...
I've moved from EU to NZ and it's kinda nice not to have that stringent regulation. People here has really good common sense, empathy and are quite technically handy. But that came from small population. Most are incredibly racists (tho easier than aussies) and fail to see their own weaknesses...
I must admin EU is so much more modern than NZ.
I wish this was possible in the EU.
First off, check out the front bumper. Bull bars like that were banned in the UK and throughout Europe on grounds of safety. This wasn't a recent ban either. The bull bar says a lot about what the driver thinks of other people and, in this case, through the lens of a EU citizen, it is not friendly.
Then there is the general safety aspect of the design of this vehicle. It is the worst hotch-potch of compromised design you could come up with. It is in Homer Simpson territory. The problem was the rollover test, so they lowered the tyre pressures and thinned out the material in the roof to give it a lower centre of gravity. So if you did go round a corner (like they have in European roads) then you could end up crushed to death. But let's not be self-centred, due to the bulk of the vehicle you could also crush the occupants of another vehicle to death. Not a good look.
The eventuality of this is rare, but more likely if the speedometer has been mangled into some Raspberry Pi screen. Try explaining that to the police, insurance company and grieving family members.
The low tyre pressures and the general obesity of the vehicle meant that fuel economy was worst-in-class. This vehicle is therefore the worst type of gas-guzzler, the poster-child-SUV for global warming. They sold these excuses for vehicles as 'trucks' rather than 'cars' as it was a tax fiddle that, combined with the 'Chicken Tax', meant that lousy design was permitted. So much for the 'free market' and 'competition'.
I would say the hacky Raspberry Pi speedometer is well suited to the general hackiness of the vehicle's botched and very American engineering. It is in character, a quick and dirty solution that certainly would not meet EU standards for safety.
A proper mechanic would rip this hacky solution out and put in the correct cable/sensor in minutes. Sometimes you have got to respect the skills people have and wonder why it is they do it properly rather than go for abominable hacks. But this vehicle isn't worthy of a mechanic's time, it needs to be taken out to the scrapyard and replaced with something practical like a planet-friendly bicycle.
Regulation 35 does allow compliance with alternative requirement, either Community Directive 75/443 or with ECE Regulation 39. These I am not familiar with, but the Regulation 36 regarding maintenance states:
"Every instrument for indicating speed fitted to a motor vehicle shall be kept free from any obstruction which might prevent its being easily read and shall at all material times be maintained in good working order."
Therefore, the original one would need to be removed to even begin to be legal.
The point of having a low-power SoC is that it can stay on while the car is powered off, taking a GPS sample every 10 minutes or so, so that when the car powers on it can very quickly get a lock. The Neo 6M also keeps a memory of the last location which helps it get a lock quickly.
https://create.arduino.cc/projecthub/ruchir1674/how-to-inter...
I wonder if you could use something like this [0] and feed info from the pi over OBD using some sort of OBDII breakout board or OBDII <-> USB device.
I did a lot of soldering as a microwave tech, and used a setup like that just for convenience. I have to have a magnifying glass on a similar flex arm because my eyes are so bad. I suppose there are still some hard parts, like trying to use braid to remove solder, but I bet you can do it.
I have a 1991 Mitsubishi Galant VR4 that has a place in my heart that your Subaru seems to have. Cool family compact with 4WD and 500 oversized, at the wheels, turbo HP.
Would that not be preferable to this as it'd be a lot more reliable, granted I don't know which cars support them or not but I've seen them working in modern vehicles.
In my use case (as in the article) only care about GPS readouts when the car is in motion so I don't really care about energy efficiency (within reason, the cigarette lighter thing should be able to safely power the device).
The GPS module manual says it takes about forty seconds for the GPS module to position.
https://images-na.ssl-images-amazon.com/images/I/81+jY5X2YrL...
> Once the GPS module is powered on, there is data output > It usually takes about 40 seconds to be successfully positioned. > After the positioning is successful, the correct time, latitude and longitude position data will be available.
But the article says:
> GPS is usually acquired within 15-30 seconds of starting (much faster than the cheap electronic speedometers I tested first).
Maybe this does not include the time it takes for the raspberry pi to boot? Maybe the raspberry pi takes an additional thirty seconds to boot and the GPS unit powers on almost simultaneously with the raspberry pi but we don't blame the GPS module for any delay until the raspberry pi boots, logs in, and the Navit application starts?
Or maybe the GPS positions way before forty seconds and the manual is written that way to not be overly optimistic (could never get decent GPS signal when walking in areas with tall skyscrapers on my Android phone a few years back).
This is also exciting because it is modular. When GPS III[1] (hopefully) becomes operational by the end of the decade (The tenth and final GPS Block III launch is projected in Q2 2023 so it should be fully operational/adopted by 2030), you could simply use a new module (in theory at least).
Something about engine oil and lubrications. Probably doesn’t harm anything in the short term but if you have time, probably not a bad idea.
Edit - much much faster (4 secs), actually: http://himeshp.blogspot.com/2018/08/fast-boot-with-raspberry...
Even if that works, doing sensor fusion with a gyroscope and an accelerometer probably is both easier and cheaper.
While you can calculate based on position fixes, it is more accurate for the GPS to do it. It does not do a simple distance/time calculation but can instead look at the phase / doppler shift of the GPS signals. This ends up being much more accurate.
https://www.gps-speedsurfing.com/default.aspx?mnu=item&item=...
I am not sure what you can get away with for DIY replacements - perhaps a police officer might give you the benefit of the doubt if you were polite and explained it was temporary while you are waiting for the real part, but I really suspect this would force your car off of the road at the next annual safety check/inspection (MOT test in the UK)
Drive a safe speed for the given road conditions. Match speed of other drivers. Not hard to do.
You're welcome to match other drivers - enjoy the speeding tickets you'll both get.
The brainwash is thorough in this one.
Exceeding the speed limit is still illegal even in places where the lack of speedometer is not illegal --- they just don't care how you know your speed.
Basically, if your car came with a safety feature, it has to still be there and it has to work. Car had no ABS when new? Doesn't need it. But if it had it, then it has to operate.
As for rust, it needs to be close to structural points in order for your car to fail a WOF. If you have rust near a pillar or on your firewall, there's a good chance it's worse than it looks and a safety hazard. Rust is a cancer for cars, it might not look bad at first, but it will eat your car from the inside out.
Your car basically just has to be safe, that's what your WOF is for. You can modify your car to your hearts content, you just need to get an engineer to sign off on it to say it's safe. Want to stuck a RB25DET in your old ute? No worries, just get a cert.
Then you come to Australia, where each state has a plethora of "anti-hoon" laws, banning you from having both a pod filter and a straight pipe, and other arbitrary rules to stop you from modifying your car. It's ridiculous and also inconsistently enforced, nobody seems to know what the actual rules are here.
There is a good reason this is illegal in most of the world. Not sure why you don't put car safety as a priority? 40,000 people die every year in the US, and over 4 million are seriously injured.
https://freematics.com/pages/products/freematics-esprit-obd-...