Posts with «arduino» label

Build a simple RGB LED color detector with Arduino

You may think that visually sensing colors is a complicated operation, requiring a camera or other advanced sensors. This isn’t always the case, as engineer “Tech Martian” illustrates in the video below, using a photoresistor and RGB LED along with an Arduino 101 board.

His setup uses the LED to shine on a piece of paper in three colors, measuring the reflected light intensity. These reflections are first calibrated by reflecting light off of white and black paper, which can then be combined to show the colors presented in front of the emitter/sensor pair.

I got a comment and request from one of my Instructables that they would like to see an LED used as a color detector. Then, I got the idea that if I were to use an RGB LED, I can detect all the color spectrum possible by sending PWM signals to the LED.

Be sure to check out the project write-up for more information, including the Arduino code!

Mouse Mis-Clicking? We Got You.

A mouse with malfunctioning buttons can be a frustrating to deal with — and usually a short leap to percussive maintenance. Standard fixes may not always last due to inferior build quality of the components, or when the microswitch won’t close at all. But, for mice that double/triple-click, will release when dragging, or mis-click on release, this Arduino-based hack may be the good medicine you’re after.

Instructables user [themoreyouknow]’s method cancels click malfunctions by latching the mouse’s controller switch trace to ‘on’ when pressed, keeping it there until the button normally closed contact closes again completely. Due to the confined spaces, you’ll want to use the smallest Arduino you can find, some insulating tape to prevent any shorts, and care to prevent damaging the wires this process adds to the mouse when you cram it all back together.

Before you take [themoreyouknow]’s guide as dogma, the are a few caveats to this hack; they are quick to point out that this won’t work on mice that share two pins between three buttons — without doing it the extra hard way, and that this might be trickier on gaming or other high-end mice, so attempt at your own peril.

Speaking of gaming mice, we recently featured a way to add some extra functionality to your mouse — cheating optional — as well as how to stash a PC inside an old Logitech model.


Filed under: hardware, how-to
Hack a Day 30 Aug 09:00
arduino  click  debounce  hardware  how-to  mouse  nano  repair  

Mouse Mis-Clicking? We Got You.

A mouse with malfunctioning buttons can be a frustrating to deal with — and usually a short leap to percussive maintenance. Standard fixes may not always last due to inferior build quality of the components, or when the microswitch won’t close at all. But, for mice that double/triple-click, will release when dragging, or mis-click on release, this Arduino-based hack may be the good medicine you’re after.

Instructables user [themoreyouknow]’s method cancels click malfunctions by latching the mouse’s controller switch trace to ‘on’ when pressed, keeping it there until the button normally closed contact closes again completely. Due to the confined spaces, you’ll want to use the smallest Arduino you can find, some insulating tape to prevent any shorts, and care to prevent damaging the wires this process adds to the mouse when you cram it all back together.

Before you take [themoreyouknow]’s guide as dogma, the are a few caveats to this hack; they are quick to point out that this won’t work on mice that share two pins between three buttons — without doing it the extra hard way, and that this might be trickier on gaming or other high-end mice, so attempt at your own peril.

Speaking of gaming mice, we recently featured a way to add some extra functionality to your mouse — cheating optional — as well as how to stash a PC inside an old Logitech model.


Filed under: hardware, how-to
Hack a Day 30 Aug 09:00
arduino  click  debounce  hardware  how-to  mouse  nano  repair  

Small CNC machines for customizing coasters

As seen on Make:, Barton Dring wanted to make something interesting to bring to a hardware meetup, along with learning more about the Grbl Arduino machining package. What he came up with was a pair of drawing robots that are both small enough to fit inside of a backpack, and are used to decorate coasters!

The first of these projects, known as “Coasty,” employs a laser to mark, or even cut, square coasters. They are fed in from the side, then pop out again with a new pattern.

The second device uses a much different method, showing off Grbl’s versatility as a polar plotter. Round coasters are placed on a rotating base, and a pen goes around and around until a new doodle is produced.

Be sure to check out both of these machines in action in the videos below!

Regulate air flow with Arduino

Blow guns can be very helpful around your workshop, but sometimes you want a subtle shot of air instead of a full blast. There are several ways to take this on, but YouTuber “MBcreates” decided on a novel method using an Arduino Nano for control.

In his setup, a stepper is used to turn a screw as a linear actuator, pushing an intermediate blow gun’s trigger at progressively more aggressive intervals. This effectively regulates the air flow going into the handheld blow gun, allowing for a more subtle burst of air when needed.

Simple is often better. So I grabbed an old blow gun and used this a valve. The Arduino Digital Air Pressure Regulator uses a NEMA 17 stepper motor to press the lever of the blow gun. A micro end switch was placed against the lever. When the Arduino Nano goes through the setup, the stepper hits the end switch, now the program knows the exact position of the stepper.

The video seen here features some very clever build techniques, and it really turned out spectacular, especially considering it was MBcreates’ first Arduino project!

Fling discs with a brushless motor and an Arduino

YouTuber “austiwawa,” apparently not satisfied with other methods of causing mayhem in his garage and backyard, has come up with an innovative disc shooter.

His homemade device uses a brushless motor controlled by an Arduino Nano and an ESC to pull a vacuum belt at high speeds. A clear plastic tube on top holds a stack of about 27 3D-printed discs. At the press of a button, they are then fed one by one onto the belt surface by another motor, which accelerates the disc to ejection velocity and out the “muzzle.” There’s also a potentiometer that allows him to adjust the fire rate.

Although it appears to work quite well, destroying items like an apple and eggs, austiwawa notes that this is only a prototype, and plans to make a fully 3D-printed version in the future. At that point, he’ll release the Arduino code and STL files, making it easy for others to duplicate!

Until then, check it out in action below!

Hackaday Prize Entry: Fochica Alerts You

It seems like no one should need to be reminded about the importance of not leaving children in cars, but it still happens. The Fochica project is a Hackaday Prize entry that equips the family minivan with car seat monitors—the name comes from FOrgotten CHild in Car Alert.

It’s an Open Source project consisting of a Bluetooth LE-equipped Arduino that monitors whether the seat is empty or occupied. Paired with a phone app, Fochica monitors pressure sensors and the seat belt’s reed switch to determine whether there’s a kid there. The user’s app checks whether he or she is within Bluetooth range of the car, while also checking whether the kid’s seat is occupied. When the first comes up false and the second true, an alert is sounded.

We could see this technology also being useful for home automation tasks–for instance, reminding you to close the garage door before you go to bed. It’s a great project, and also one of the finalists in the Best Product challenge of the Hackaday Prize this year.


Filed under: The Hackaday Prize

Hackaday Prize Entry: Fochica Alerts You

It seems like no one should need to be reminded about the importance of not leaving children in cars, but it still happens. The Fochica project is a Hackaday Prize entry that equips the family minivan with car seat monitors—the name comes from FOrgotten CHild in Car Alert.

It’s an Open Source project consisting of a Bluetooth LE-equipped Arduino that monitors whether the seat is empty or occupied. Paired with a phone app, Fochica monitors pressure sensors and the seat belt’s reed switch to determine whether there’s a kid there. The user’s app checks whether he or she is within Bluetooth range of the car, while also checking whether the kid’s seat is occupied. When the first comes up false and the second true, an alert is sounded.

We could see this technology also being useful for home automation tasks–for instance, reminding you to close the garage door before you go to bed. It’s a great project, and also one of the finalists in the Best Product challenge of the Hackaday Prize this year.


Filed under: The Hackaday Prize

Design and 3D Print Robots with Interactive Robogami

Internals of 3D printed “print and fold” robot. [Image source: MIT CSAIL]
Robot design traditionally separates the body geometry from the mechanics of the gait, but they both have a profound effect upon one another. What if you could play with both at once, and crank out useful prototypes cheaply using just about any old 3D printer? That’s where Interactive Robogami comes in. It’s a tool from MIT’s Computer Science and Artificial Intelligence Laboratory (CSAIL) that aims to let people design, simulate, and then build simple robots with a “3D print, then fold” approach. The idea behind the system is partly to take advantage of the rapid prototyping afforded by 3D printers, but mainly it’s to change how the design work is done.

To make a robot, the body geometry and limb design are all done and simulated in the Robogami tool, where different combinations can have a wild effect on locomotion. Once a design is chosen, the end result is a 3D printable flat pack which is then assembled into the final form with a power supply, Arduino, and servo motors.

A white paper is available online and a demonstration video is embedded below. It’s debatable whether these devices on their own qualify as “robots” since they have no sensors, but as a tool to quickly prototype robot body geometries and gaits it’s an excitingly clever idea.

Perhaps there’s an opportunity to enhance the “3D print, then fold” approach Robogami uses with this concept for making flexible prints out of non-flexible material, or incorporating simple 3D printed circuitry.

Thanks to [Adam] for the tip!


Filed under: robots hacks

Design and 3D Print Robots with Interactive Robogami

Internals of 3D printed “print and fold” robot. [Image source: MIT CSAIL]
Robot design traditionally separates the body geometry from the mechanics of the gait, but they both have a profound effect upon one another. What if you could play with both at once, and crank out useful prototypes cheaply using just about any old 3D printer? That’s where Interactive Robogami comes in. It’s a tool from MIT’s Computer Science and Artificial Intelligence Laboratory (CSAIL) that aims to let people design, simulate, and then build simple robots with a “3D print, then fold” approach. The idea behind the system is partly to take advantage of the rapid prototyping afforded by 3D printers, but mainly it’s to change how the design work is done.

To make a robot, the body geometry and limb design are all done and simulated in the Robogami tool, where different combinations can have a wild effect on locomotion. Once a design is chosen, the end result is a 3D printable flat pack which is then assembled into the final form with a power supply, Arduino, and servo motors.

A white paper is available online and a demonstration video is embedded below. It’s debatable whether these devices on their own qualify as “robots” since they have no sensors, but as a tool to quickly prototype robot body geometries and gaits it’s an excitingly clever idea.

Perhaps there’s an opportunity to enhance the “3D print, then fold” approach Robogami uses with this concept for making flexible prints out of non-flexible material, or incorporating simple 3D printed circuitry.

Thanks to [Adam] for the tip!


Filed under: robots hacks