Live data from Hacker News

Control Mario Kart 64 with your car over CAN bus (2016)

github.com

51–60 of 73 posts

Re: Control Mario Kart 64 with your car over CAN bus (2016)

#51
post #49
post #29

I was involved in a Nissan advertisement project connecting Playstation 4 with a cars as controllers[1]. They did a convention tour with 4 cars playing the same football game in front of a projector. I did everything except front end and CAN interface though, $20 USB CAN reader device + python. I remember it took a while for my colleague to figure out the right input signals as the bus was quite chatty/high output, l…

On that particular car model you had to interact with the touch display every 15 minutes or else the whole car went into power saving mode and the CAN bus stopped sending messages. Wait, what? I guess that doesn't disturb ordinary operation, i.e. driving? Very easy of course to imagine a scenario when you drive and don't touch the display for 15 minutes. That would have made sense if the CAN was for non-driving stuff…

I'd assume that the demo car was not having its engine running - it's usual for cars to switch to power-save after 5-10 minutes, mostly to prevent cars from draining their battery if the user forgot to take the key out.

Re: Control Mario Kart 64 with your car over CAN bus (2016)

#52
post #21

Earlier quoted context omitted.

Steering angle is a critical input for antilock break systems, so quite a while.

ABS is very simple and only needs to know the difference between the speed of the tire and the speed of the road. It is more complicated systems like ESC (which works with ABS) that need to know about steering inputs.

I thought the "speed of the road" was calculated by checking the speeds of the other types, which is trivial if you are going in a straight line, but needs correction if you are steering, hence needs steering angle?

Or is there a simpler way in non-ESC systems?

Re: Control Mario Kart 64 with your car over CAN bus (2016)

#53
post #45

Earlier quoted context omitted.

Here is the video from the creator I think: https://www.vice.com/en/article/jpn45k/watch-this-dude-play-...

Here’s the link to the actual video: https://youtu.be/zOSN66wYbTE

The input lag looks terrible.

Re: Control Mario Kart 64 with your car over CAN bus (2016)

#54
post #45

Earlier quoted context omitted.

Here’s the link to the actual video: https://youtu.be/zOSN66wYbTE

The input lag looks terrible.

My guess it is using some periodic signal one of devices on bus sends instead of querying it directly, code looks like it only process signals, not sends any queries

Re: Control Mario Kart 64 with your car over CAN bus (2016)

#55
post #9

Earlier quoted context omitted.

I’m also of the impression that dry turning the wheel isn’t great for the tie rods. But I welcome a car person to teach me the truth.

Park the car with the front tires on two pieces of cardboard (each) to limit the turning forces. I wouldn’t sweat it for the duration of demo or until you (quickly) got bored with it. You do the same everyday you parallel park a car.

Or just on jack stands

Re: Control Mario Kart 64 with your car over CAN bus (2016)

#56
post #38

Earlier quoted context omitted.

For steering you're exactly wrong. Drive an old car without power steering, on the highway you'll barely notice, but you'll be using all your might to park. It's much easier to steer a rolling tire. Power steering systems create heat and rely on airflow for cooling...so prolonged steering back and forth in a parking space is a worst case scenario for the system.

> For steering you're exactly wrong. Drive an old car without power steering, on the highway you'll barely notice, but you'll be using all your might to park. It's much easier to steer a rolling tire. So you're talking about the force the human has to use to turn the steering wheel. In a car with power steering, the human doesn't have to do much, because the pump effectively amplifies the force and exerts it on the t…

[deleted]

Re: Control Mario Kart 64 with your car over CAN bus (2016)

#57
post #8

Earlier quoted context omitted.

I’m also of the impression that dry turning the wheel isn’t great for the tie rods. But I welcome a car person to teach me the truth.

The amount of force you're putting into the system, regardless of if the engine is running (and therefore the power steering pump is pumping) or not, is a fraction of the forces the system handles constantly while going around a corner at 60 mph or hitting a pot hole. It's perfectly fine.

I... don't think you ever driven anything without power steering.

Re: Control Mario Kart 64 with your car over CAN bus (2016)

#58
post #5

Earlier quoted context omitted.

Surely, you’d do this key on-engine off. (Key on so the CAN bus is active; engine off for obvious reasons.)

Or you could play while driving. Solves the accelerator and steering problems at the same time.

Extra challenge, drive the same track in real life and in video game
Post reply on HN