What Makes A Hacker

I think I can sum up the difference between those of us who regularly visit Hackaday and the world of non-hackers. As a case study, here is a story about how necessity is the mother of invention and the people who invent.

Hackaday has overlap with sites like Pinterest and Instructables but there is one vital difference, we choose to create something new and beautiful with the materials at hand. Often these tools and techniques are very simple. We look to make things elegant by reducing the unnecessary clutter, not adding glitter. If something could be built with a 555 timer we will let you know. If there is a better choice for a processor, we will tell you.

My first real work commute was a forty-minute eastward drive every morning and a forty-minute westward drive every evening. This route pointed my car directly into the sun twice a day. Staring into a miasma of incandescent plasma for an hour and a half a day isn’t fun, and probably isn’t safe, but we can fix that.

Continue reading “What Makes A Hacker”

The Bane Of Aftermarket Car Alarms

The humble car alarm has been around almost as long as the car itself, first being developed by an unknown prisoner in Denver, circa 1913. To the security-conscious motorist, they make a lot of sense. The noise of a car alarm draws attention which is the last thing a would-be thief wants, and the in-built immobilizers generally stop the car being moved at all without a time-consuming workaround. Both are a great deterrent to theft.

It may then surprise you to know that I, dear readers, consider the aftermarket car alarm to be one of the most heinous devices ever fitted to the modern automobile. Combining the unholy trifecta of being poorly designed, cheaply made, and fitted by only the most untalented or uncaring people to wield a soldering iron, they are a blight that I myself refuse to accept.

It was my very own Mazda that suffered at the hands of a car alarm system. Two days after purchasing the car, the keyfob died, and thus the car would no longer start. My other car was already out of action due to bent valves, and I needed to get to work, so I figured as a competent hacker, I’d be able to quickly disable it.

Continue reading “The Bane Of Aftermarket Car Alarms”

Detect Cars Running Stop Signs (and Squirrels Running Across The Roof)

There’s a stop sign outside [Devin Gaffney]’s house that, apparently, no one actually stops at. In order to avoid the traffic and delays on a major thoroughfare, cars take the road behind [Devin Gaffney]’s house, but he noticed a lot of cars didn’t bother to stop at the stop sign. He had a Raspberry Pi and a camera, so he set them up to detect the violating cars.

His setup is pretty standard – Raspberry Pi and camera pointed outside at the intersection. He’s running OpenCV and using machine learning to detect the cars and determine if they have run the stop sign or not. His website has some nice charts showing when the violations occurred by hour and by day of the week. Also on the site are links that you can use to help train the system in noticing cars, cars that run the stop sign, determining if there’s enough of the video to determine if there’s a violation, and whether or not there’s a car going the wrong way through the intersection.

This is an interesting use of the Pi and OpenCV; there’s no guarantee that this will help the people of [Devin Gaffney]’s neighborhood, but hopefully gives them some ammunition (assuming they want something done about the intersection.) It’s a cheap and easy setup and it’s nice to let the community have a hand in training the system. For more OpenCV, check out this article on taking the perfect jump shot or this one which tries to quantify cloudiness. Cool stuff.

[via reddit]

Continue reading “Detect Cars Running Stop Signs (and Squirrels Running Across The Roof)”

Reverse Engineering The Smart ForTwo CAN Bus

The CAN bus has become a defacto standard in modern cars. Just about everything electronic in a car these days talks over this bus, which makes it fertile ground for aspiring hackers. [Daniel Velazquez] is striking out in this area, attempting to decode the messages on the CAN bus of his Smart ForTwo.

[Daniel] has had some pitfalls – first attempts with a Beaglebone Black were somewhat successful in reading messages, but led to strange activity of the car and indicators. This is par for the course in any hack that wires into an existing system – there’s a high chance of disrupting what’s going on leading to unintended consequences.

Further work using an Arduino with the MCP_CAN library netted [Daniel] better results, but  it would be great to understand precisely why the BeagleBone was causing a disturbance to the bus. Safety is highly important when you’re hacking on a speeding one-ton metal death cart, so it pays to double and triple check everything you’re doing.

Thus far, [Daniel] is part way through documenting the messages on the bus, finding registers that cover the ignition and turn signals, among others. Share your CAN hacking tips in the comments. For those interested in more on the CAN bus, check out [Eric]’s great primer on CAN hacking – and keep those car hacking projects flowing to the tip line!

Sporty Cars Making Fake Engine Noise

Following the monumental emissions-cheating scandal at VW, further horrible revelations demonstrate just how corrupt the modern automotive industry has become: many cars make fake engine noise. And we’re not just talking about those darn sneaky Priuses.

Ford, BMWs, Porsche, and yes, Volkswagen are all doing it, to different degrees. Some of the systems, like the one in the BMW M5, play engine sounds at low volumes through the stereo system. As you’d expect from a BMW, it’s an overly-technological solution: they have built essentially a BMW engine-sound synthesizer that responds to the tachometer and gas pedal data from the car’s data bus. They also let you turn off the “acoustic experience”.

Continue reading “Sporty Cars Making Fake Engine Noise”

Hyperloops And Robot Cars, A Glimpse Into The Future

His mobile blooped at him with one of those noises a company spent money to get. A timer started on the screen as he rushed to put his shoes on. He finished and pushed open his door, running down the stairs two to a bound. By the time he reached the bottom of the stairs he had his backpack slung over both shoulders, which he mentally cursed himself for since he’d just have to take the dang thing off again.

It was morning on January first, and he was due at his parent’s house for a new year’s dinner fifteen hundred miles away. He should have booked a plane weeks ago, but now the Loop was his only option. The Loop didn’t really have peak rates, and while the plane would be a little faster, more direct, and cheaper IF he had remembered to book it in time, the Loop would take him the same distance today. Plus, the seats were comfier. They reclined nicely, and he intended to nap on the way. Hopefully, by the time he got there, the bleariness from last night’s celebration would be undetectable by parental senses.

He locked the door to his apartment complex, a reassuringly square assembly from the seventies, and walked to the sidewalk where a friendly light blue car waited for him. When he got close, his mobile vibrated and made another distressingly cheery noise. The doors of the car swung open opposite of each other to expose the space inside. The car displayed two rows of inward facing bench seats, a panoramic row of windows around the entire perimeter of the vehicle, and… yes, his nose was telling him before his eyes fixed on it, a very unsettling amount of vomit in the center of the floor.

He turned around, a bit squeamish, and took out his mobile. He navigated through the controls. Where is the menu option? What year is it now? Why is this still hard? Three awkward menus deep and he finally found and selected the option to let the dispatch know the car had an issue which made it uninhabitable. The car immediately began to chirp warnings and the doors soon started to close. In a moment, a human somewhere in the city would be looking at a video of the inside of the car, determining him a liar or not. As expected, a few seconds later, the little car began to drive off. The lights on the rear of the car turned from bright red to the yellow amber of headlights as it decided its front would be its back. It drove off to the dispatch center for cleaning and repair. Someone would be eating a 100 dollar cleaning bill today. He didn’t feel sorry for them.

His phone began to vibrate. He picked it up to answer a call from a bored customer service representative who was trying hard to sound earnest. “Sorry for the trouble sir, the ride today will be free. We have another car on its way”

Continue reading “Hyperloops And Robot Cars, A Glimpse Into The Future”

HotWheels

DIY Hot Wheels Drag Race Timer

[Apachexmd] wanted to do something fun for his three-year-old son’s birthday party. Knowing how cool race cars are, he opted to build his own Hot Wheels drag race timer. He didn’t take the easy way out either. He put both his electronics and 3D printing skills to the test with this project.

The system has two main components. First, there’s the starting gate. The cars all have to leave the gate at the same time for a fair race, so [Apachexmd] needed a way to make this electronically controlled. His solution was to use a servo connected to a hinge. The hinge has four machine screws, one for each car. When the servo is rotated in one direction, the hinge pushes the screws out through holes in the track. This keeps the cars from moving on the downward slope. When the start button is pressed, the screws are pulled back and the cars are free to let gravity take over.

The second component is the finish line. Underneath the track are four laser diodes. These shine upwards through holes drilled into the track. Four phototransistors are mounted up above. These act as sensors to detect when the laser beam is broken by a car. It works similarly to a laser trip wire alarm system. The sensors are aimed downwards and covered in black tape to block out extra light noise.

Also above the track are eight 7-segment displays; two for each car. The system is able to keep track of the order in which the cars cross the finish line. When the race ends, it displays which place each car came in above the corresponding track. The system also keeps track of the winning car’s time in seconds and displays this on the display as well.

The system runs on an Arduino and is built almost exclusively out of custom designed 3D printed components. Since all of the components are designed to fit perfectly, the end result is a very slick race timer. Maybe next [Apachexmd] can add in a radar gun to clock top speed. Check out the video below to see it in action. Continue reading “DIY Hot Wheels Drag Race Timer”