Op Amps Combine Into Virtual Ball In A Box

What happens when you throw a ball into a box? In the real world, the answer is simple – the ball bounces between the walls and the floor until it eventually loses energy and comes to rest. What happens when you throw a virtual ball into a virtual box? Sounds like something you might need a program running on a digital computer to answer. But an analog computer built with a handful of op amps can model a ball in a box pretty handily too.

OK, it takes quite a large handful of op amps and considerable cleverness to model everything in this simple system, as [Glen Kleinschmidt] discovered when he undertook to recreate a four-decade-old demonstration project from AEG-Telefunken. Plotting the position of an object bouncing around inside the virtual box is the job of two separate circuits, one to determine the Y-coordinate and bouncing off the floor, and one to calculate the X-coordinate relative to the walls. Those circuits are superimposed by a high-frequency sine-cosine pair generator that creates the ball, and everything is mixed together into separate outputs for an X-Y oscilloscope to display. The resulting simulation is pretty convincing, with the added bonus of the slowly decaying clicks of the relay used to change the X direction each time a wall is hit.

There’s not much practical use, but it’s instructional for sure, and an impressive display of what’s possible with op amps. For more on using op amps as analog computers, check out [Bil Herd]’s “Computing with Analog” article.

Continue reading “Op Amps Combine Into Virtual Ball In A Box”

Bluetooth Automation Remote Hangs Around

Using your smartphone to control your home automation system gives you a lot of flexibility. But for something as simple as turning the lights on and off, it can be a pain to go through the whole process of unlocking your phone, choosing the right browser page or app, and then finally hitting the button you need. It’d be much simpler if it could all be done at the touch of a single, physical button – but phones don’t have many of those anymore. [falldeaf] brings the solution – a four-button Bluetooth remote for your smartphone that’s wearable, to boot.

The project is built around the RFDuino, an Arduino platform used for quickly and easily building Bluetooth compatible projects. So far, so simple – four buttons wired into a microcontroller with wireless capability onboard. The real trick is the 3D-printed clothespin style case which allows you to clip the four-button remote onto your clothes. [falldeaf]’s first attempt was a palm-mounted setup that they found got in the way of regular tasks; we agree that the wearable version offers a serious upgrade in utility.

The smartphone side of things is handled with a custom app [falldeaf] coded using PhoneGap. This is where actions for the buttons can be customized, including using the buttons to navigate a menu system to enable the user to select more than just one function per button. It adds a high level of flexibility, so you can create all kinds of macros to control your whole home automation system from your button clip.

It’s really great to see a project that considers ergonomics and usability above and beyond just creating the baseline functionality. Follow this train of thought and you’ll find yourself enjoying your projects in the use phase well beyond the initial build. Another great example is this self-charging electrically heated jacket. Video after the break.

Continue reading “Bluetooth Automation Remote Hangs Around”