Posts with «arduino hacks» label

Simulate City Blocks With Circuit Blocks In A LEGO Box

Have you ever looked around your city’s layout and thought you could do better? Maybe you’ve always wanted to see how she’d run on nuclear or wind power, or just play around with civic amenities and see how your choices affect the citizens.

[Robbe Nagel] made this physical-digital simulator for a Creative Programming class within an industrial design program. We don’t have all the details, but as [Robbe] explains in the video after the break, each block has a resistor on the bottom, and each cubbyhole has a pair of contacts ready to mate with it. An Arduino nestled safely in the LEGO bunker below reads the different resistance values to determine what block was placed where.

[Robbe] wrote a program that evaluates various layouts and provides statistics for things like population, overall health, education level, pollution, etc. As you can see after the break, these values change as soon as blocks are added or removed. Part of what makes this simulator so cool is that it could be used for serious purposes, or it could be totally gamified.

It’s no secret that we like LEGO, especially as an enclosure material. Dress it up or dress it down, just don’t leave any pieces on the floor.

Via r/Arduino

Rock ‘n Roll With 3D-Printed Tonewheels

What can you do with ferromagnetic PLA? [TheMixedSignal] used it to give new meaning to the term ‘musicians’ gear’. He’s made a proof of concept for a DIY tone generator, which is the same revolutionary system that made the Hammond organ sing.

Whereas the Hammond has one tonewheel per note, this project uses an Arduino to drive a stepper at varying speeds to produce different notes. Like we said, it’s a proof of concept. [TheMixedSignal] is proving that tonewheels can be printed, pickups can be wound at home, and together they will produce audible frequencies. The principle is otherwise the same — the protruding teeth of the gear induce changes in the magnetic field of the pickup.

[TheMixedSignal] fully intends to expand on this project by adding more tone wheels, trying different gear profiles, and replacing the stepper with a brushless motor. We can’t wait to hear him play “Karn Evil 9”. In the meantime, put on those cans and check out the demo/build video after the break.

We don’t have to tell you how great Hammond organs are for making music. But did you know they can also encode secret messages?

Via the Arduino blog.

The Open Source Smart Home

[Tijmen Schep] sends in his project, Candle Smart Home, which is an exhibit of 12 smart home devices which are designed around the concepts of ownership, open source, and privacy.

The central controller runs on a Raspberry Pi which is running Mozilla’s new smart home operating system. Each individual device is Arduino based, and when you click through on the site you get a well designed graphic explaining how to build each device. The devices them

It’s also fun to see how many people worked together on this project and added their own touch. Whether it’s a unique covering for the devices or a toggle switch that can toggle itself there’s quite a few personal touches.

As anyone who’s had the sneaking suspicion that Jeff Bezos was listening in to their conversations, we get the need for this. We also love how approachable it makes hacking your own hardware. What are your thoughts?

Hack a Day 07 Nov 03:00

Godot Machine is the Project You’ve Been Waiting For

Are you waiting for something that may never happen? Maybe it’s the end of your ennui, or the release of Half Life 3. While you wait, why not build a Godot Machine? Then you can diversify your portfolio and wait for two things that could happen today, tomorrow, or at sunrise on the 12th of Never.

The Godot Machine is a functional art piece that uses a solar panel and a joule thief to charge a bank of capacitors up to 5V. Whenever that happens, the Arduino comes online and generates a 20-bit random number, which is displayed on an LED bar. If the generated number matches the super-secret number that was generated at first boot and then stashed away in EEPROM, the Machine emits a victory beep and lights a green LED. Then you can go back to complaining about whatever.

We like that [kajnjaps] made his own chaos-based random number generator instead of just calling random(). It uses a guitar string to collect ambient electronic noise and an entropy generator to amplify it. Then the four least significant digits are used to seed the logistical map, so the initial value is always different.

You don’t have to create your own entropy for truly random numbers, though it’s probably more fun that way. Did you know that someone wrote an Arduino entropy library?

Electricity Makes Soft Robotics More Like Us Meatbags

Building a future where robots work alongside humans relies heavily on soft robotics. Typically this means there will be an air compressor or a hydraulic system nearby, taking up precious space. But it doesn’t have to.

Engineers at the UC-San Diego Jacobs School have created a soft robotics system that uses electricity to control flexible actuators, much like our brains move our muscles. It works like this: sheets of heat-sensitive liquid crystal elastomer are sandwiched between two layers of standard elastomer. These layers are rolled into cylinders that can twist and bend in different directions depending on which of its six element(s) get electricity. Light up all six, and the tube contracts, forming the foundation for a good gripper. The team also built a tiny walker, pictured above.

The project is still in its infancy, so the actuators are slow to bend and even slower to return to their original shape, but it’s still a great start. Imagine all the soft robotic projects that can get off the ground without being shackled by the bulk and weight of an air compressor or fluid handling system. Watch it do various sped-up things after the break, like claw-machine gripping a bottle of chocolate rocks.

Speaking of delicious candy, edible soft robotics is totally a thing.

Via Arduino blog

Haptic Glove Controls Robot Hand Wirelessly

[Miller] wanted to practice a bit with some wireless modules and wound up creating a robotic hand he could teleoperate with the help of a haptic glove. It lookes highly reproducible, as you can see the video, below the break.

The glove uses an Arduino’s analog to digital converter to read some flex sensors. Commercial flex sensors are pretty expensive, so he experimented with some homemade sensors. The ones with tin foil and graphite didn’t work well, but using some bent can metal worked better despite not having good resolution.

The wireless communications set up was pretty easy thanks to the NRF24L01 modules. The hard part was sewing the flex sensors into the glove. We thought some of the circuitry looked precarious on the glove, too.

For the robot hand, he used balsa wood and hinges for each joint. Flexible thread provided the return power like a spring. The hand was surprisingly artistic in a primitive sort of way.

While this is a cool demo, the hand isn’t likely to be practical for much as it is. Nerve impulses are better but harder. The glove reminded us a little of one we’d seen before.

Hang Ten With Help From the Surf Window

Unless you live in a special, unique place like Hawaii or Costa Rica it’s unlikely you’ll be able to surf every day. It’s not easy to plan surf sessions or even surf trips to most locations because the weather conditions will need to be just right. Not only the wave height (swell) but also the wind speed and direction, tide, water and air temperature, and even amount and type of marine life present can all impact your surf session. You’ll want something which can easily tell you right away if conditions are good.

This project from [luke] is called the Surf Window shows the surf conditions at the local beach with just one glance. Made out of various pieces of wood, each part represents one of the weather conditions at the beach. A rotating seagull gives the wind direction, for example, and the wave height is represented by 3D, moving waves. All of the parts are connected with various motors and linkages to an Arduino Mega +WiFi R3 which grabs all of its information from Magicseaweed, a surf forecasting site.

The Surf Window can show the current conditions at virtually any surfable beach in the world, so if you really want to know how Jaws, Mavericks, or even Reef Road is breaking right now, you could use this to give you a more nuanced look. Don’t forget to take the correct board for the conditions!

Steering By Touch And Haptic Feedback

Scribble is a haptic interface lets you draw your way through traffic. In an environment where fully automated vehicles are becoming the expectation for the next step in transportation, Scribble provides a friendly alternative that allows you to guide your car around, while the automation makes decisions on how to actually steer the car around obstacles.

The driver is guided by haptic feedback that alerts them about the road conditions or obstacles ahead. The project was conceived by [Felix Ros] for his master’s thesis at Eindhoven University, featured a five bar linkage that moves with two lateral degrees of freedom, commonly used for drawing robots.

The code run on an Arduino DUE control over serial by a program made in Open Frameworks that communicates with a Unity 3D driving simulator over UDP. Fellow graduate student [Frank van Valeknhoef]’s Haptic Engines are used as the actuators, outputting the position and a variable force.

The forward kinematics algorithms were based on a clock and weather plotter by SAP, sharing the same servo and drawing arm assembly. The left and right actuators update based on the desired angle, calculating the proper angles needed to achieve the correct position.

While automated vehicles may be able to travel efficiently from one destination to the next, they can’t necessarily wander off course to explore new places. Scribble takes back some of that freedom and allows drivers to decide for themselves where they want to be. It’s an interesting take at inserting the human back into the driver’s seat in automated cars.

The Arduino IDE Finally Grows Up

While the Arduino has a very vocal fan club, there are always a few people less than thrilled with the ubiquitous ecosystem. While fans may just dismiss it as sour grapes, there are a few legitimate complaints you can fairly level at the stock setup. To address at least some of those concerns, Arduino is rolling out the Arduino Pro IDE and while it doesn’t completely address every shortcoming, it is worth a look and may grow to quiet down some of the other criticisms, given time.

For the record, we think the most meaningful critiques fall into three categories: 1) the primitive development environment, 2) the convoluted build system, and 3) the lack of debugging. Of course, there are third party answers for all of these problems, but now the Pro IDE at least answers the first one. As far as we can tell, the IDE hides the build process just like the original IDE. Debugging, though, will have to wait for a later build.

We were happy to see a few things with the new IDE. There’s some autocompletion support, Git is integrated, and there’s still our old friend the serial monitor. The system still uses the Arduino CLI, so that means there isn’t much danger of the development getting out of sync. The actual editor is Eclipse Theia. People typically either love Eclipse or hate it, however, it is at least a credible editor. However, Theia uses Electron which makes many people unhappy because Electron applications typically eat a lot of resources. We’ll have to see how taxing using the new Pro IDE is on typical systems with normal workloads.

On the future feature list is our number one pick: debugging. They are also promising support for new languages, third party plugins, and synchronization with the Web-based editor. All good features.

This is just an alpha preview release, but it is a great start. Our only question is will existing users really care? Most people already write code in another editor. Many use an external build system like PlatformIO. Eclipse already has a plug in for Arduino that supports debugging with the right hardware. So while new users may appreciate the features, advanced users may be wondering why this is so late to the party.

 

Hack a Day 21 Oct 12:00

Arduino Wire Bender Probably Won’t Kill All Humans

Do you want to make your own springs? Yeah, that’s what we thought. Well, blow the dust off of that spare Arduino and keep reading. A few months ago, we let you know that renowned circuit sculptor [Jiří Praus] was working on a precision wire-bending machine to help him hone his craft. Now it’s real, it’s spectacular, and it’s completely open source.

Along with that ‘duino you’ll need a CNC shield and a couple of NEMA 17 steppers — one to feed the wire and one to help bend it. Before being bent or coiled into springs, the wire must be super straight, so the wire coming off the spool holder runs through two sets of rollers before being fed into the bender.

[Jiří]’s main goal for this build was precision, which we can totally get behind. If you’re going to build a machine to do something for you, ideally, it should also do a better job than you alone. It’s his secondary goal that makes this build so extraordinary. [Jiří] wanted it to be easy to build with commonly-available hardware and a 3D printer. Every part is designed to be printed without supports. Bounce past the break to watch the build video.

You can also make your own springs on a lathe, or print them with hacked g-code.