Self driving 1993 Volvo with open pilot
practicapp.com
practicapp.com
The author seems to have a lot of electrical hacking knowledge, but didn't know some car stuff that could have made getting these controls installed much easier:
1) They could have just swapped in a newer BOSCH ABS pump, which can activate the brakes electrically without involving the brake booster. European cars started getting these when they got traction control in the late 90s, but I believe some would be virtually (or maybe even exactly) a direct swap into this vehicle. I was able to do this in a VW with about 10 minutes of work, which uses the same basic ABS systems as Volvo. This is assuming the car already had factory ABS which I think most (but possibly not all) 940s did.
2) They could fix the steering problem by swapping in an entire electric steering rack- they're fairly standard dimension wise, installing a fully manual rack from a Volvo 240, or adding an A/C compressor clutch to the hydraulic power steering pump to disable it above parking speeds (the only time torque would be high anyways). Moreover, these racks are strong enough to simply work with the hydraulic assist removed, because people in the Volvo racing/performance community do it all the time.
3) This car does not have a carburetor- it is electrically fuel injected. You can see the fuel injectors and rail above the throttle body. This could be just a mistranslation if the author is not a native english speaker. However, more importantly there was a factory system on this car to electrically control the throttle for the cruise control. They are missing those parts, but they are cheap and common, and would have just dropped in to a bracket and cam already on his engine. They consist of a vacuum servo on the throttle itself connected to a box that can actuate this with an electrical signal.
It does indeed not have a carburator (I wrote this while half asleep on a plane, I meant to say that it has a mechanical throttle/air valve which is cable operated).
It also doesn't have ABS (although I believe this was an option on the car starting this model year), so swapping out that pump wasn't an option. The iBooster is a great and easy retrofit, definitely recommend!
Haven't done it yet, but I'm just going to lower the pressure of the hydraulic steering by shimming the regulator, should be enough. It already steers somewhat ok without this mod too
Did everything you needed a reasonable car to do, well, and just kept on going.
Actually injection system is largely independent from throttle control. Required amount of fuel is calculated based on manifold air pressure sensor, so there were cars with fuel injection and cable operated throttle plate. I suppose the problem was with plumbing in modern throttle body as carburetor needs to be upstream of throttle plate.
The later T7 system involved a MAF sensor behind the intake, while still retaining the temp sensors and MAP but changed the fuel mapping in the system to be a speed - density system for greater control and better boost handling with large temp and altitude changes. (T5 shot for a pressure value t7 shot for a target air mass).
There is software called t5suite / t7suite that allowed you to remap everything in the ECU, basically letting you modify the system in every possible way but not making you do all the setup that a complete stand alone unit would make you setup. It was and is, amazing. You could flash an ECU via BDM interface out of car, and in later T7 models actually make real time changes on a laptop that would immediately take effect. Later you could write them to the ECU flash (it requires more than 12v to flash, although some people rigged things up so they could also flash the memory in car).
Good times. I still have a t7 Saab on my lawn. My custom tune isn't the best, but it went damn good.
Interesting to note, the MAF in the t7 could be placed on the pressure side of the world and it would work perfectly fine minus the fact that they would die a lot quicker due to oils and such on the pressure side of the turbo. People sometimes did this as it was the only way to run a true blow off valve for cool effect. If the MAF is in the stick location and you do not recirculate that air, the car would be fueling for XYZ air density but you'd have dumped some out of the closed system and it ran rich as hell and like crap .
T5 is awesome. I have a T5 setup in my 88. Works great!
I drove my car 2500 miles on Openpilot this holiday and it was wonderful. I took over maybe 10% of the trip and let automation handle the rest. That said, there are many many many areas of improvement and I have devoted this year to creating an openpilot fork to bring it's ADAS functionality closer to modern vehicles (read: tesla).
I will Show HN the first release!
But, in seriousness, if you don't mind pointing to your GH fork that'd be awesome, in case I miss the show hn
My wishlist, as soon as I work up the nerve to build and flash my own image, is:
- recognize lane change blinkers and decelerate (since currently it only decelerates once the car has intruded into the lane). I am aware of the innumerable edge cases about this, but it still seems like it should be a pretty safe (and polite!) change to make
- recognize multiple brakelights and lay off the accelerator; I believe it currently uses the radar from the car immediately ahead but if 75% of the other cars have their brakelights on and the car in front is just lazy or driving aggressively, there's no reason for the Comma to cause me to further that chain
really nice to haves:
- have it recognize speed limit signs and adjust the cruise accordingly
this change is related to my desire for it to decelerate on exit ramps versus screaming into them at 65mph and then whining because the curve is too sharp for its speed. If it recognized the "recommended speed limit" sign on the exit ramp then we'd all get what we wanted, and if the exit ramp was going into a new highway no driver action would be required (versus exiting into a stop sign intersection)
- have it recognize stop signs (and yellow or red lights would be awesome). I don't need it to detect traffic or whatever, but I also don't enjoy it screaming at stop signs and red lights at full velocity causing me to have to take further action
- I need to investigate whether the Comma is bright enough to know I have an electric car and to merely let off on the accelerator versus applying the brake. My car also has multiple levels of regenerative braking, so I'd be open to it taking that into consideration but for me personally I always run in the highest level of regen because that's how my BMW i3 drove and I got used to it
If you take your fork to the next level, look at frogpilot. It uncovers all of the tweakable inputs to the driver model. This enables you to customize your driver model to your preferences including less aggressive braking and faster acceleration.
Open pilot at its core (and thus all forks) supports one pedal driving as far as it needs to maintain 1) speed, 2) distance, 3) acceleration velocity. The car will accelerate when it deems the desired speed is below the target speed. It does this as long as there is space and will do so at a certain acceleration profile. It does the same in reverse, except it will apply brakes if safe distance is violated. As such, it will reduce the amount of gas to maintain distance or stop applying gas entirely prior to brake application. This would be your one pedal driving.
That said, there are a few underlying problems that need some major revisions to fix. Like the model was trained with a majority of drivers coming from California. Thus open pilot models tend to prefer the California stop, which will slow to 5mph and continue through the stop.
While OP can handle curves with ease, it excludes certain inputs. such as the angle of the road and thus will approach and predict a slower speed than the car can actually take. It does not predict actions from cars in other lanes. And while the blinker is a good indicator of head fakes, the model could very well be extended to observe the direction and speed of adjacent cars and adjust itself accordingly. On that same topic OP models do not care about pedestrians and will happily pass them with 6” of clearance.
This and a few more things are on my feature list that the software needs, like the ability to avoid potholes and slow over speed bumps. Full disclosure: I do not think this is possible with the current generation of comma hardware but that’s why we clicked the fork button!
Very cool project though!
There truly is more freedom in the US than there is in Europe in that context.
There are car shows in most major us cities featuring hundreds of tricked out, restored and modified cars.
The classic car market regularly appreciates. Just try to find an Alpha for a good price, or graph the price of a 1970 911 over the past 30 years. Also you can insure a classic for cheap since they see less road time, are garaged and generally well cared for. (see Hagerty)
As for getting hotrods and restored classics on the road. California has half a dozen classic car rallies where roadworthy classics get out on the road for a couple days.
I assure you the culture is alive and well.
They mean "that 5.0 Mustang doing burnouts at 2am" not a '32 Ford coupe.
It's not to say that "nice cars" are disappearing though. When I was a literal child in rural Appalachia, the standard fare Dream Car was a Dodge Viper or a Corvette and I did indeed admire those cars. But tastes certainly change as you get older and while I still have a "nice car", it's of a different breed than the All-American Dream Car.
I'd dare say that demographic died off and hasn't been replaced due to cultural and economic shifts. Also, the whirl of a turbo is a more appealing sound than the roar of a supercharged V8, to me anyways.
Edit: and yeah those types of guys just drive a lifted diesel truck with giant wheels now. At least they can do work with them.
I think car culture just takes different forms (In the 70s and 80s it was American hot rods, the 90s and 00s JDM and Euro, 2010s and 20s it’s all about trucks and diesels).
If feel rules about cars are such an obvious example of "your freedom to punch ends where my nose begins" that I'm not sure if the comment I'm replying to is satire x)
Now I don't expect this to be well-received because of "cool hack" but it is truly a major issue. Other issues like the high housing costs, bad healthcare, lacking infrastructure, mediocre education and a short-sighted population are all hard to solve. But this issue is clearly a priority. Swedish voters and politicians are prioritizing this over providing a good quality of life at a decent cost to enable education, research and knowledge based businesses.
The result as a whole is that almost anyone who can is moving from these cities to bigger cities that don't have these problems, but are also so expensive that engaging in activates with high growth potential isn't viable. With grassroot hacking, small- and medium-sized business and major growth startup ending up being a fraction of what they have been and even more so should have been now.
I had to search to see what you were referring to:
https://www.france24.com/en/live-news/20230320-sweden-s-teen...
Edit: Someone infamously converted and registered a heavy truck this way. Legal to drive as a 15-year-old with a moped license.
https://www.expressen.se/nyheter/eddie-15-har-en-lastbil-som...
Seems like the original target was mopeds? But somehow cars and trucks were included?
The original law considered tractors and other farm equipment, AIUI. You can drive these so called A-traktor with only a moped or tractor license when you're 15.
[1] Swedish article from 2022 with some examples (there are many more since then): https://www.svt.se/nyheter/inrikes/ungdomar-manipulerar-a-tr...
[2] Example police chase: https://youtube.com/watch?v=CqcEqhXWiYE
The account is recently created and this is the first and only comment/post they've made on this site.
I'm interested in quality of life because I spend a lot of time working, organizing thing and doing projects. This is also on topic. But as such I don't have that much time. Or at least not enough to end up getting stuck here instead of doing something more important. I've found that the best to manage that is not to hold a regular account. My first account is however many years older than yours.
Sometimes I do have some time or find the motivation to post, because sharing information about something you know about to others who might not know about it but have thought about something I haven't is something that is harder to do anywhere else than on the Internet. In this case how the freedom to tinker with a car can affect the long time viability of creating bigger things.
Unfortunately your comment doesn't seems out of place. It's very much part of why I'm not around a lot. It simply isn't worth posting anything when I have something better to do. (Which isn't really now since I'm on a train to Stockholm with little else to do considering the holidays).
I’m not sure whether the commenter speaks Swedish or not, their username seems to suggest they do (sv_SE is the language code for the Swedish [country] dialect of Swedish [lang]) but their comment reflects a phenomenon I’ve both experienced and witnessed:
Swedes are more likely to discuss policy issues in Swedish (and all of these issues are debated back and forth with varying degrees of success). Our grasp of English is mostly contextual since it’s a secondary and utilitarian language for us. I think it’s easy and natural for an English-speaker to mistake hitting language barriers as ignorance. That can extend into the ESL-speaker [English as a Secondary Language] feeling belittled, and eventually you get this effect of people just avoiding English because you associate it with feeling stupid. We get the French-waiter-that-clearly-speaks-English-but-refuses-to trope.
On the other side of that fence we have ESLs butting in on domestic affairs in English-speaking countries because we happen to speak the language. That makes us appear elitist and judgmental, too.
Apologies for deviating further from the topic.
Going back to the legality of the car: It’s complicated. The police claims it’s illegal to use autopilot on their website, but there’s a blurry line between adaptive cruise control/lane assist and autopilot. The competition requires cars to be insured, hopefully that insurance company is aware of the modifications and can advise the owners on what they can and cannot do. https://polisen.se/aktuellt/nyheter/ost/2024/mars/autopilot/ [swedish]
More practically, if they use country roads and drive somewhat near the speed limits, they’re not likely to run afoul of the law unless they’re in an accident.
If the author is here, I’d urge them to remember that a moose is practically designed to bypass a car’s safety features and kill you. There are a quarter of a million of them in Sweden. Invest in good tires and headlights, drive carefully, and avoid hitting wildlife or reindeer.
Here are some examples.
https://youtu.be/EprqvxTF5vI?t=92
And a chunk of people driving them violate the framework and drive extra passengers, bypass the speed limiter, and drink and drive.
Just pass the damn tractor. You're not doing anybody any favors by being "patient".
I've grew up in the countryside and worked on a farm as an adult and don't agree with you despite many hours in tractors, with and without trailers, on public roads.
What I hear when you say that is:
"I will follow you for several miles ignoring whaat other people would consider fine passing opportunities (and me waving my arm out the window at you trying to get you to go around) until a bunch of pissed off traffic stacks up until some guy with a Dodge Charger (or whatever, you get the stereotype) comes along and decides to pass us all at once in a sketchy way, to everyone's detriment"
And from there it goes one of two ways. Either you get the message and pass me at the next decent (to the average person, not you) opportunity or you squander that opportunity and the second guy in line passes you both of us at a reasonable time and that repeats.
Now, obviously when someone who gives off those sorts of vibes shows up I'll pull over at the first available opportunity to force them to pass but when you're talking a 2-lane with no shoulder and ditches and a combination too long to use a driveway as a pull off it could be awhile.
Listen, I get it, not everyone can pass, some people have higher standards than others for . There's people towing trailers, there's heavy trucks, student drivers, old people, shitboxes running on three cylinders, etc, etc. But that doesn't make the situation safer and for a normal person in a normal car in normal conditions to subject themselves to that is just, ugh.... misguided
The kind of people who won't pass (where reasonable, as defined by the average person) a tractor or moped or whatever in the name of safety are not creating a net increase in safety. They are creating a cluster fuck, which comes with a decrease in safety.
Driving 30 km/h instead of 70-80 km/h would drive anyone insane, it would effectively double your travel time.
These rules aren't in place to annoy people who have fun with cars, they're a public safety issue. Until OpenPilot is confirmed to be safe enough to be road legal in Europe (I doubt it ever will be).
Having a 1366kg vehicle under complete control of a system with the disclaimer
> THIS IS ALPHA QUALITY SOFTWARE FOR RESEARCH PURPOSES ONLY. THIS IS NOT A PRODUCT. YOU ARE RESPONSIBLE FOR COMPLYING WITH LOCAL LAWS AND REGULATIONS. NO WARRANTY EXPRESSED OR IMPLIED.
with hardware that was cobbled together in a garage somewhere, taking this thing out on the road is pure insanity.
The well maintained highways would be much safer. Not even considering the autopilot.
The people who live in that sparsely populated countryside wouldn't agree with you that the risk seems negligible. To drive on ice (which some of the roads turn into if it rains/wet-snow then gets cold), with experimental technology on country roads sounds like a recipe for the car to end up in someones living-room.
This is giving me chills, what if that RC servo gets "stuck" at full throttle? I suppose the assumption is you could hit the clutch, but depending on the specific situation there might not be a lot of time for realizing what's happening and reacting accordingly.
https://www.reddit.com/r/IdiotsInCars/comments/xj8540/they_u...
[1] https://ovi.rdw.nl/ [2] https://www.autoweek.nl/kentekencheck/HN-FZ-69/
Subaru was making CVT automatic cars back then that were even worse than the awful CVT cars of today. That would be my pick if I wanted to do a 30-year-old self driving car.
https://japanesenostalgiccar.com/the-subaru-justy-pioneered-...
You may be able to find an old automatic or CVT car in Europe, but you would need to look for a while
Here in Norway automatics are not finally catching on, they are ubiquitous and the driving instructors' association is campaigning to get the rules changed so that you can pass the driving test on an automatic and later simply do a conversion course to allow one to drive manual.
And of course it will all be moot quite soon because EV sales already outnumber ICE sales nearly nine to one here. Volkswagen and Hyundai no longer sell ICE cars in Norway. Volkswagen still sells ICE vans and pickups though.
It's a different story in large sedans/wagons.
After that, I’ll do part 3 explaining (and open sourcing) the code on the ECU and the openpilot port."
according to freely and readily available specifications, the 1993 volvo 940 had an automatic transmission.
i stand corrected. live and learn.
We also found a diminishing return the older the car we supported. So now we are currently only focusing up to gen n-1
I really enjoyed this post, well done.
Sidenote: Since 2018 all my cars are carbadge. Restored fully a CLK 200 Kompressor and Jaguar X308. I cannot stand the current cars. Neither designwise nor tech. There is a lost art of honest design, aesthetic and pure functionality in today's automotive logic.
All the infotainment needs you have is live in your phone/tablet. You can use it with every carbadge car you can imagine.
I enjoy my cars. They are stylish and reliable. Something that I would not say about my 2016 BMW 6. Next stop Toyota Land Cruiser from 1995.
Then, in contrast, the electric power steering assist seems so much easier compared to hydraulic, just because of the fuss that hydraulics introduce. I may be a bit biased from dealing with rotted 90s hydraulic power steering systems.
See the fatal accident of Ayrton Senna. Shortened and welded steering column was exactly the cause of the accident.
> Lorenzini stated: "It had been badly welded together about a third of the way down and couldn't stand the strain of the race. We discovered scratches on the crack in the steering rod. It seemed like the job had been done in a hurry but I can't say how long before the race. Someone had tried to smooth over the joint following the welding. I have never seen anything like it. I believe the rod was faulty and probably cracked even during the warm-up. Moments before the crash only a tiny piece was left connected and therefore the car didn't respond in the bend."
https://en.wikipedia.org/wiki/Death_of_Ayrton_Senna
And the forces on a formula 1 steering column are also higher than on a road car, I imagine.
A proper weld should be very strong, I don’t think welding a steering column in itself is bad.
With enough time, everything will be messed up by a professional at some point.
If some electrician makes a mistake when wiring a house and it burns down, does that mean that I can never trust myself to wire something myself?
Arguably you have an advantage over the professionals because at least you’re motivated to do it properly because it’s your own life on the line.
Edit: for another half-serious analogy: if a professional race car driver ever crashes while driving on a regular road, does that mean I can’t drive myself? Because even a professional made a mistake while doing it, so how can I be trusted to do it better?
Amateurs can take their time, it makes all the difference.
Amateurs are free to throw more metal at the problem.
Bear in mind that all modern steering columns have joints in them for crash safety reasons and they are often welded at the factory.
Now, how much of a risk there is, and whether or not it should be allowed on public roads where the failure could kill them and/or other people is a question for the local society and legal system :)
Not everything needs to be treated like a nuclear reactor.
X-ray and other inspection processes are mostly there to force people to behave like they give a crap.
"The daily value of your car should not exceed 1,000 Euros and the car must be at least 20 years old."
Also it completed the activity without failure.
https://www.carbagerun.nl/event/winter-editie-2025-naar-hels...
Fun times.
Obviously it's illegal so I don't expect them to use this while in Sweden.
Aha! So the obvious radar plate most manufacturers mount in an aesthetically horrible way directly in the middle of the grille is in fact complete lazy bullshit and it could easily be hidden without performance loss. The more you know...