News for hackers. Stuff that matters.
Re:Show HN: A machine that detects when you text and drive t... by nik12795 on Saturday June 26, 2021 @08:39AM (#27641337)
25% of car accidents in the US are caused by texting and driving. Although I think the “real solution” is self driving cars or some other great technology, I wanted to run an experiment where, every time you look down to text and drive, you get shocked.

The video explains some of the technical details and you get to see the hilarious experiment I ran but I'll highlight a few other key points.

- I thought a lot about different ways to detect when I look down. Originally this was just a solution for pausing the TV when I look down to eat so I don’t miss my show (lol), so I thought about using a camera to track my eyes. I started to go down this path but quickly aborted to avoid high costs and an over engineered solution.

- I eventually used the MetaMotionC sensor from Mbientlab which has an accelerator and gyroscope, among other things (more info here: https://mbientlab.com/store/metamotionc/). Their documentation wasn’t great so it took some time to get the sensor working with the Raspberry Pi. The sensor clips onto my glasses, so it was pretty simple to tweak the sensitivity settings and change it from detecting when you eat food to when you look down to text.

- Out of curiosity, does anyone have other use cases for what this glasses sensor could be useful for?

- I thought about using the Pi to send a signal to the collar to trigger the shock. This seemed pretty daunting to reverse engineer. I know I’d need some sort of transmitter to send the signal, but how else might I go about reverse engineering it to send the correct signal to the collar? Any tools, tutorials, etc that people recommend I look into? Might be useful for a future project but for this one, I used a solenoid to press the button on the remote.

- Using a solenoid to press the TV remote/shock collar remote buttons was trivial for me since I recently built a robot that plays Guitar Hero (powered by solenoids). I had struggled and learned a lot in that project so there weren't any surprises this time around.

- The actual texting and driving experiment only took about 30 minutes to run. But making the device, setting up the driving course, filming, editing, etc, made this all take about 6-7 weeks. Similar to my Guitar Hero robot which was on here a while ago (https://news.ycombinator.com/item?id=26843838), it probably cost around $1,000 for everything (traffic cones are super expensive plus smaller costs like Raspberry Pi, shock collar, and misc tech parts).

Re:Show HN: A machine that detects when you text and drive t... by tgv on Saturday June 26, 2021 @12:19PM (#27643174)
> every time you look down to text and drive, you get shocked

Wouldn't that be even more dangerous?

Re:Show HN: A machine that detects when you text and drive t... by _Wintermute on Saturday June 26, 2021 @12:31PM (#27643294)
I think the idea is you would stop texting while driving, rather than keep getting shocked...
Re:Show HN: A machine that detects when you text and drive t... by weird-eye-issue on Saturday June 26, 2021 @12:46PM (#27643443)
Yes especially if it kills you by causing an accident. I guess the question is just how distracting the shock itself is
Re:Show HN: A machine that detects when you text and drive t... by snet0 on Saturday June 26, 2021 @01:03PM (#27643602)
Ah yes but, with the threat of being shocked and causing an accident, you will be less likely to text while driving, because you don't want to do things that might get you into an accident oh hold on a second..

"I wanted to stop smoking, so I got an implant that, when I inhale cigarette smoke, releases carcinogens into my lungs."

Re:Show HN: A machine that detects when you text and drive t... by giantg2 on Monday June 28, 2021 @11:13AM (#27662976)
Except there are safer alternatives, like charging a fee from the user everytime instead of supplying the shock. I'd imagine that would be more lucrative too.
Re:Show HN: A machine that detects when you text and drive t... by Rumudiez on Monday June 28, 2021 @12:36PM (#27664077)
Sounds like something FAANG could really turn a profit with. Update Foogle Maps to prompt for reroutes more often, charge them for dismissing the prompt. Rinse and repeat…
Re:Show HN: A machine that detects when you text and drive t... by nik12795 on Sunday June 27, 2021 @08:36AM (#27651084)
We answer that in the video! You should check it out :)
Re:Show HN: A machine that detects when you text and drive t... by andi999 on Monday June 28, 2021 @12:41AM (#27658189)
Also what if there is a bug and you get like 100 shocks in a row...

Why not instead of a shock link your CC and donate 1$ to a politician you like. Just pick the one from last presidential election you like less.

Re:Show HN: A machine that detects when you text and drive t... by nik12795 on Monday June 28, 2021 @10:44AM (#27662639)
If you watch the video, you'll know that donating money was another option I considered!
Re:Show HN: A machine that detects when you text and drive t... by andi999 on Monday June 28, 2021 @10:45AM (#27662655)
Thanks. I shd watch it.