Predicting Weather With The Internet Of Cars

Follow this train of thought: cars have sensors, cars are in frequent use over large areas, cars are the ultimate distributed sensor network for weather conditions.

Many years ago, as I wasted yet another chunk of my life sitting in the linear parking lot that was my morning commute, I mused that there had to be a way to prevent this madness. I thought: What if there was a way for the cars to tell each other where slowdowns are? This was long before smartphones, so it would have to be done the hard way. I imagined that each vehicle could have a small GPS receiver and a wireless transceiver of some sort, to send the vehicle’s current position to a central server, which would then send the aggregate speed data for each road back to the subscriber’s car. A small display would show you the hotspots and allow you to choose an alternate route. Genius! I had finally found my billion dollar idea.

Sadly, it was not to be. Seemingly days later, everyone on the planet had a GPS-equipped smartphone in his or her pocket, and the complex system I imagined was now easily implemented as software. Comically, one of the reasons I chose not to pursue my idea is that I didn’t think anyone would willingly let a company have access to their location information. Little did I know.

So it was with great interest that I read an article claiming that windshield wiper data from connected cars can be used to prevent floods. I honestly thought it was a joke at first, like something from a Monty Python sketch. But as I read through the article, I thought about that long-ago idea I had had, which amounted to a distributed sensor platform, might actually be useful for more than just detecting traffic jams.

Continue reading “Predicting Weather With The Internet Of Cars”

Offline E-Paper Typewriter Lets You Write Without Distractions

Living and working online is not always easy, especially when it comes to staying focused. All it takes is a moment’s weakness to click on something you shouldn’t and fall down a time-wasting and creativity-killing rabbit hole. Imagine how the creative juices would come to a boil if it were not for the attractive nuisances that lie as close as the next browser tab over.

Creativity-killing online temptations are too much for some to resist, which is why we find this homebrew electronic typewriter so intriguing. Dubbed “SPUDwrite”, or “Single Purpose User Device” by its creator [Lucian], the device is a completely unconnected writing terminal. At its heart, SPUDwrite is just a keyboard attached to an STM32F401 Cortex-M4 microcontroller running MBED and driving an e-paper display. Unfortunately, the refresh rate of the display is too slow to see what you’re typing, so [Lucian] included a small LCD display that shows the current text and where you are in the file. There’s also a thermal receipt printer for those times you just need to hold hardcopy in your hand. [Lucian] introduced the SPUDwrite in an Adafruit show-and-tell session, a clip of which is below the break.

SPUDwrite isn’t perfect, but [Lucian] has plans for version 2, including improving the refresh rate – [Ben Krasnow] might have a few tips on that score. But even as-is, we love the potential for distraction-free creativity while still being able to have an electronic copy of your writing. Our book might finally become a reality with one of these – as long as we can avoid the smartphone.

Continue reading “Offline E-Paper Typewriter Lets You Write Without Distractions”

Immersive Augmented Reality On A Budget

By now we’ve all seen the cheap headsets that essentially stick a smartphone a few inches away from your face to function as a low-cost alternative to devices like Oculus Rift. Available for as little as a few dollars, it’s hard to beat these gadgets for experimenting with VR on a budget. But what about if you’re more interested in working with augmented reality, where rendered images are superimposed onto your real-world view rather than replacing it?

As it turns out, there are now cheap headsets to do that with your phone as well. [kvtoet] picked one of these gadgets up for $30 USD on AliExpress, and used it as a base for a more capable augmented reality experience than the headset alone is capable of. The project is in the early stages, but so far the combination of this simple headset and some hardware liberated from inexpensive Chinese smartphones looks to hold considerable promise for delivering a sub-$100 USD development platform for anyone looking to jump into this fascinating field.

On their own, these cheap augmented reality headsets simply show a reflection of your smartphone’s screen on the inside of the lenses. With specially designed applications, this effect can be used to give the wearer the impression that objects shown on the phone’s screen are actually in their field of vision. It’s a neat effect to be sure, but it doesn’t hold much in the way of practical applications. To turn this into a useful system, the phone needs to be able to see what the wearer is seeing.

To that end, [kvtoet] relocated a VKWorld S8 smartphone’s camera module onto the front of the headset. Beyond its relatively cost, this model of phone was selected because it featured a long camera ribbon cable. With the camera on the outside of the headset, an Android application was created which periodically flashes a bright LED and looks for reflections in the camera’s feed. These reflections are then used to locate objects and markers in the real world.

In the video after the break, [kvtoet] demonstrates how this technique is put to use. The phone is able to track a retroreflector laying on the couch quickly and accurately enough that it can be used to adjust the rendering of a virtual object in real time. As the headset is moved around, it gives the impression that the wearer is actually viewing a real object from different angles and distances. With such a simplistic system the effect isn’t perfect, but it’s exciting to think of the possibilities now that this sort of technology is falling into the tinkerer’s budget.

If you don’t want to go the DIY route, Leap Motion has been teasing an open source augmented reality headset which has us quite excited. We’re still waiting on the hardware, but that hasn’t stopped hackers from coming up with some fascinating AR applications in the meantime.

Continue reading “Immersive Augmented Reality On A Budget”

Downloadable 3D Cockpits Enhance FPV Racing

First Person View (or First Person Video) in RC refers to piloting a remote-controlled vehicle or aircraft via a video link, and while serious racers will mount the camera in whatever way offers the best advantage, it’s always fun to mount the camera where a miniature pilot’s head would be, and therefore obtain a more immersive view of the action. [SupermotoXL] is clearly a fan of this approach, and shared downloadable designs for 3D printed cockpit kits for a few models of RC cars, including a more generic assembly for use with other vehicles. The models provide a dash, steering wheel, and even allow for using a small servo to make the steering wheel’s motions match the actual control signals sent. The whole effect is improved further by adding another servo to allow the viewer to pan the camera around.

Check out the video embedded below to see it in action. There are more videos on the project’s page, and check out the project’s photo gallery for more detailed images of the builds.

Continue reading “Downloadable 3D Cockpits Enhance FPV Racing”

Anti-Lock Brakes For Bike Might Make Rides A Little Safer

Crashing one’s bike is a childhood rite of passage, one that can teach valuable lessons in applied physics. Assuming the kid is properly protected and the crash is fairly tame, scrapes and bruises are exchanged for the wisdom to avoid sand and gravel patches, and how to avoid a ballistic dismount by not applying the front brakes harder than or before the rear brakes.

But for many of us, those lessons were learned long ago using a body far more flexible than the version we’re currently in, and the stakes are higher for a bike ride that includes braking mistakes. To help with that, [Tom Stanton] has been working on anti-lock brakes for bicycles, and in the process he’s learned a lot about the physics and engineering of controlled deceleration.

It seems a simple concept – use a sensor to detect when a wheel is slipping due to decreased friction between the tire and the roadway, and release braking force repeatedly through an actuator to allow the driver or rider to maintain control while stopping. But that abstracts away a ton of detail, which [Tom] quickly got bogged down in. With a photosensor on the front wheel and a stepper motor to override brake lever inputs, he was able to modulate the braking force, but not with the responsiveness needed to maintain control. Several iterations later, [Tom] hit on the right combination of sensors, actuators, and algorithms to make a decent bike ABS system. The video below has all the details of the build and testing.

[Tom] admits bike ABS isn’t much of an innovation. We even covered an Arduino-instrumented bike that was to be an ABS testbed a few years back. But it’s still cool to see how much goes into anti-lock systems.

Continue reading “Anti-Lock Brakes For Bike Might Make Rides A Little Safer”

Hackaday Links Column Banner

Hackaday Links: February 17, 2019

There is a population of retrocomputing enthusiasts out there, whose basements, garages, and attics have been taken over by machines of years past. Most of the time, these people concentrate on one make; you’re an Apple guy, or you’re a Commodore guy, or you’re a Ford guy, or you’re a Chevy guy. The weirdos drive around with an MSX in the trunk of an RX7. This is the auction for nobody. NASA’s JPL Lab is getting rid of several tons of computer equipment, all from various manufacturers, and not very ‘vintage’ at all. Check out the list. There are CRT monitors from 2003, which means they’re great monitors that weigh as much as a person. There’s a lot of Sun equipment. If you’ve ever felt like cleaning up a whole bunch of trash for JPL, this is your chance. Grab me one of those sweet CRTs, though.

Last week, we published something on the ‘impossible’ tech behind SpaceX’s new engine. It was reasonably popular — actually significantly popular — and got picked up on Hacker News and one of the Elon-worshiping subreddits. Open that link in one tab. Now, open this link in another. Read along as a computer voice reads Hackaday words, all while soaking up YouTube ad revenue. What is our recourse? Does this constitute copyright infringement? I dunno; we don’t monetize videos on YouTube. Thanks to [MSeifert] for finding this.

Wanna see something funny? Check out the people in the comments below who are angry at a random YouTuber stealing Hackaday content, while they have an ad blocker on.

Teenage Engineering’s OP-1 is back in production. What is it and why does it matter? The OP-1 is a new class of synthesizer and sampler that kinda, sorta looks like an 80s Casio keyboard, but packed to the gills with audio capability. At one point, you could pick one of these up for $800. Now, prices are at about $1300, simply because production stopped for a while (for retooling, we’re guessing) and the rumor mill started spinning. The OP-1 is now back in production with a price tag of $1300. Wait. What? Yes, it’s another case study in marketing: the best way to find where the supply and demand curves cross is to stop production for a while, wait for the used resellers to do their thing, and then start production again with a new price tag that people are willing to pay. This is Galaxy Brain-level business management, people.

What made nerds angry this week? Before we get to that, we’re gonna have to back track a bit. In 2016, Motherboard published a piece that said PC Gaming Is Still Way Too Hard, because you have to build a PC. Those of us in the know realize that building a PC is as simple as buying parts and snapping them together like an expensive Lego set. It’s no big deal. A tech blog, named Motherboard, said building a PC was too hard. It isn’t even a crack at the author of the piece at this point: this is editorial decay.

And here we are today. This week, the Internet reacted to a video from The Verge on how to build a PC. The original video has been taken down, but the reaction videos are still up: here’s a good one, and here’s another. Now, there’s a lot wrong with the Verge video. They suggest using a Swiss army knife for the assembly, hopefully one with a Philips head screwdriver. Philips head screwdrivers still exist, by the way. Dual channel RAM was completely ignored, and way too much thermal compound was applied to the CPU. The cable management was a complete joke. Basically, a dozen people at The Verge don’t know how to build a PC. Are the criticisms of incompetence fair? Is this like saying [Doug DeMuro]’s car reviews are invalid because he can’t build a transmission or engine, from scratch, starting from a block of steel? Ehhh… we’re pretty sure [Doug] can change his own oil, at least. And he knows to use a screwdriver, instead of a Swiss army knife with a Philips head. In any event, here’s how you build a PC.

Hackaday writers to be replaced with AI. Thank you [Tegwyn] for the headline. OpenAI, a Musk and Theil-backed startup, is pitching a machine learning application that is aimed at replacing journalists. There’s a lot to unpack here, but first off: this already exists. There are companies that sell articles to outlets, and these articles are produced by ‘AI’. These articles are mostly in the sports pages. Sports recaps are a great application for ML and natural language processing; the raw data (the sports scores) are already classified, and you’re not looking for Pulitzer material in the sports pages anyway. China has AI news anchors, but Japan has Miku and artificial pop stars. Is this the beginning of the end of journalism as a profession, with all the work being taken over by machine learning algorithms? By vocation, I’m obligated to say no, but I have a different take on it. Humans can write better than AI, and the good ones are nearly as fast. Whether or not the readers care if a story is accurate or well-written is another story entirely. It will be market forces that determine if AI journalists take over, and if you haven’t been paying attention, no one cares if a news story is accurate or well written, only if it caters to their preexisting biases and tickles their confirmation bias.

Of course, you, dear reader, are too smart to be duped by such a simplistic view of media engagement. You’re better than that. You’re better than most people, in fact. You’re smart enough to see that most media is just placating your own ego and capitalizing on confirmation bias. That’s why you, dear reader, are the best audience. Please like, share, and subscribe for more of the best journalism on the planet.

How To Program A Really Cheap Microcontroller

There are rumors of a cheap chip that does USB natively, has an Open Source toolchain, and costs a quarter. These aren’t rumors: you can buy the CH552 microcontroller right now. Surprisingly, there aren’t many people picking up this cheap chip for their next project. If there’s no original projects using this chip, no one is going to use this chip. Catch 22, and all that.

Like a generous god, [Aaron Christophel] has got your back with a working example of programming this cheap chip, and doing something useful with it. It blinks LEDs, it writes to an I2C display, and it does everything you would want from a microcontroller that costs a few dimes.

The CH552, and its friends the small CH551 all the way up to the CH559, contain an 8051 core, somewhere around 16 kB of flash, the high-end chips have a USB controller, there’s SPI, PWM, I2C, and it costs pennies. Unlike so many other chips out there, you can find SDKs and toolchains. You can program the chip over USB. Clearly, we’re looking at something really cool if someone writes an Arduino wrapper for it. We’re not there yet, but we’re close.

To program these chips, [Aaron] first had to wire up the microcontroller into a circuit. This was just a bit of perf board, a resistor, a few caps, and a USB A plug. That’s it, that’s all that’s needed. This is a fairly standard 8051 core, so writing the code is relatively easy. Uploading is done with the WCHISPTool software, with options available for your favorite flavor of *nix.

But it gets better. One of the big features of the CH552 is USB. That means no expensive or weird programmers, yes, but it also means the CH552 can emulate a USB HID device. The CH552 can become a USB keyboard. To demo this, [Aaron] programmed a CH552 board (DE, here’s the Google translatrix) loaded up with touch pads and LEDs to become a USB keyboard.

If you don’t feel like soldering up one of these yourself, there are some suppliers of CH554 dev boards, and the files for [Aaron]’s projects are available here. Check out the videos below, because this is the best tutorial yet on programming and using some very interesting chips that just appeared on the market.

Continue reading “How To Program A Really Cheap Microcontroller”