Tag Archives: ATtiny85

Check the time on an ATtiny 85 ring watch


One ring to rule them all, one ring to tell time!


Watches come in all shapes and sizes, but this DIY ring watch featuring the ATtiny85 is quite a feat of miniaturization! It’s based on two previous posts by Maker Chen Liang, explaining how the watch guts work on a breadboard and how he put a similar design together in a more traditional wrist watch. As he had to use a smaller battery than the breadboard version in his ring, he expects battery life to be around half a year.

Virew1.png

The ring’s ATtiny85 was programmed using a Digispark (as outlined here), and the device’s circuit was set up on three tiny boards for physical flexibility. The circuit board sections included one for the chip, another for the display, and another for three tightly-spaced buttons. These buttons were able to share one analog input pin on the tinyAVR MCU by using a clever technique involving resistors across two of the button circuits. The three buttons were wired into an analog input, giving different voltage reading depending on the button pushed. Since the ATtiny85 could differentiate between these readings, only one pin was needed for control.

Side View

The watch band was 3D-printed, and covered with a clear thermoplastic layer. Although impressive by itself, Liang has plans to “research sync time method, GPS, Wi-Fi + Internet, BLE + mobile phone, and more.” Maybe we’ll see this project expand to a variety of rings that can be worn and linked via Bluetooth depending on what is needed in a particular situation. Do we sense a Kickstarter? In the meantime, check out the Maker’s entire build here.

 

Blast some tunes on this colorful speaker


An RGB LED strip driver adds some colorful effects to this DIY sound system.


A friend of Philip Verbeek, Guus Boonen, has created an totally awesome handmade sound system comprised of a few speakers, an amplifier circuit, a Bluetooth module and a charger module with accu, all housed inside a custom case with a handle on top for portability.

Pv2.png

During the build process, Boonen had come up with the idea to also include an RGB LED strip driver, paving the way for some pretty cool effects. This board, which was specially designed by Verbeek, features a rotary encoder and an ATtiny85 at its core. What really makes this driver special, though, is the inclusion of the rotary encoder with an integrated tact switch. This not only makes all kinds of new user interfaces possible, but enables precise control of the LEDs.

A panel in the back allows a user to adjust the light color and brightness, as well as turn the speaker on/off. Aside from that, the system is powered and charged via AC, and is equipped with Bluetooth connectivity and an audio jack.

PV1

As Verbeek explains, “The custom driver includes two modes. Mode 1 is where you can set the color. When pressing the tact switch in the rotary encoder, you will go to mode 2 where you can set the brightness level of the RGB LEDs. When holding the tact switch for two seconds, the LEDs will go off in a nice fade animation.”

With every touch of the push button (which is built into the rotary encoder), the variables are saved in the memory. This way, whenever the device is powered on and off again, the driver will revert back to where a user left it. Intrigued? You can check out the entire project here, or see it in action below!

Building a power switch for Chromecast


This Maker built a power switch for his Google Chromecast with the help of an ATtiny85, Bluetooth and Tasker.


The Google Chromecast device is a neat media player that simply plugs into your TV to play media. One thing it doesn’t have, though, is a way to turn it off remotely. This might not be a problem for most people, but Ilias Giechaskel was using it as an input for a computer monitor which didn’t have a “remote off” function. It did, however, have the ability to go to sleep when no input was received, so turning off the Chromecast would serve a useful function in his setup.

pcb-large

Gichaskel decided to accomplish this task with “hardware that he already had available,” and opted for an ATtiny85 with its small physical footprint and number of I/O pins to control everything. He also used a Bluetooth chip for communication with his smartphone. The module receives an “on” or “off” command from the phone, then the ATtiny switches power to the Chromecast appropriately.

Originally, this setup meant that the user had to manually turn Bluetooth on, connect it to the Arduino, send the appropriate commands, then turn Bluetooth off. Doing all of this manually wasn’t what Giechaskel had in mind, so he wrote a Tasker plugin which takes care of this for him.

Tasker

Of course, this isn’t Giechaskel’s only ATtiny85 hack. Be sure to check out how he replaced the guts of a bathroom scale using one!

ATtiny85 helps breathe new life into a broken scale


Rather than toss out a broken bathroom scale, this father-son duo decided to refurbish it with an all-new electrical system.


What do you do when your scale breaks? If you’re like most people, you either buy a new one, or don’t weigh yourself hoping that you didn’t actually gain any weight over the holidays. If, however, you are Oxford doctoral student Ilias Giechaskiel, you simply design a new electrical system for it, then build it with the help of your dad.

display-large

As the Maker puts it, “The obvious solution…was to get rid of the internal components, reuse the case and the sensors, and build everything from scratch.”

One of the more interesting techniques employed in this project is the use of a Wheatstone bridge in conjunction with a load cell to measure weight. As the voltage change in this type of setup is quite small, a separate chip was needed to amplify the signal before it was passed to an ATtiny85’s analog input. Another neat design choice was the use of the ATtiny85 with its limited input/output (IO) capability (5 IO pins plus a reset pin).

pcb-large

Giechaskiel explains his selection of MCU,“I like its small form-factor, and did not want to have unused pins.” However, he does admit that more I/O would have been useful to implement more functionality in the scale.

If that wasn’t enough, he programmed the ATtiny with an Arduino, as outlined in these instructions, and his new display is a nice bright red. This would seem to be an improvement over the boring gray, though if you’re not happy with the reading, it might be harder to conceal!

reset-large

There are several neat concepts in this build, so be sure to check out his code, library, and schematics on GitHub. if you think you might be able to use some of these ideas!

 

 

These string racing robots are awesome


One Maker decided to build tiny autonomous robots that could go back and forth along some string like a cable car. 


According to Adafruit forums user HarpDude, “Back in the 1980s, my college-aged brother designed a simple motor+battery car that raced along a string between the birch tree and the street-side power pole. For years now, we’ve been improving on the design.” Although this seems like a fun experiment by itself, one major weakness of the design was that it crashed at the end of its run, needing a human to catch it.

2015-12-14%20DSC02561%20lores

Now 30 or so years later, encouraged by his son the ‘Dude decided to get back into electronic design. Proving that no Maker project is never really finished, he decided to start making these racers again. This time though, his goal was to make them autonomous, able to avoid crashing at the end of the string.

HarpDude’s background is in transistor-based logic, but after discovering the Arduino for himself, it seemed like a this type of system would work well in his device. Adafruit’s Trinket, with an ATtiny85 at its core, fit the bill perfectly for his little device, and at around seven bucks, wouldn’t be a tragedy if one did end up crashing.

DSC02572a%20lores

Currently, his string racer can be used in two modes, “Boomerang,” which travels to the end of the line and comes back, and “Pong,” which goes back and forth continuously. Besides racing, perhaps something like this used with a tiny camera to take neat video footage, or with a slower motor in time-lapse mode.

Ring in the holidays with this cuckoo clock bell


Drive your family cuckoo with this awesome, ATtiny85-powered Christmas bell! 


Last summer, Philip Verbeek visited Philadelphia. And what would a trip to the City of Brotherly Love be without a stop at the Liberty Bell? While there, he bought his own little replica as a souvenir, which he planned to throw on his Christmas tree this year.

Picture-04

However, being the Maker that he is, Verbeek felt that wasn’t enough. Instead, he wanted to take it one step further by having it ring automatically. To accomplish this, he used a servo motor with a small hammer at the end. An ATtiny85 in combination with an RTC mini-breakout board is tasked with ringing the bell.

Picture-09

At the top of every hour, the clock rings the number of the current hour and once at every half hour. (Think of it as a cuckoo clock for your tree.) As an extra feature, Verbeek even included a push button for manual control and an RGB LED on top that illuminates as the bell chimes.

Ready to ring in the holidays? Check out Verbeek’s project here, or watch it in action below!

Starduino is an 8-bit Super Mario tree topper


Bring this classic power-up to life as part of your Christmas decor. 


Super Stars (also referred to as Starmen) can be found in a plethora of Mario Bros. games, including the original and the Mario Kart series. One place you’d typically not find them, however, is on top of a Christmas tree. That was until now.

12366397_1209106882439813_1472394612068828280_n

In the game, when a player gets a star, they become temporarily invulnerable to all damage. This enables them to defeat anything and rack up points, except to hazards that would normally be fatal regardless of power-ups. Well, John Edgar Park has decided to swap out invincibility for some sparkling decor.

led_pixels_Starduino12

The Super Mario fan has built his own 8-bit tree topper using an Arduino, LEDs and a few other off-the-shelf tools. Starduino — a name that was coined by yours truly — is a fairly straightforward project. It consists of an Arduino GEMMA (ATtiny85) that drives an Adafruit NeoPixel ring housed inside a 3D-printed blocky star. Meanwhile, power is supplied by a USB cable plugged either into a wall adapter or a battery.

Still looking for a last-minute focal piece for your tree? Don’t despair! Park has provided a step-by-step breakdown of his build on Adafruit, so you can spark some nostalgia of your own this holiday season.

 

Only a true Maker has a Christmas tree like this


Zach Burhop’s Trinket-powered piece is complete with 3D-printed ornaments and a custom LED star.


Two years later and Zach Burhop’s Christmas tree is still spreading some holiday cheer. Back in 2013, the industrial designer by day and Maker by night may have built one of the most geeked-out decorations of all-time. And with December 25th quickly approaching, we figured what better time to reminisce about the amazing tinyAVR-powered piece — complete with 3D-printed ornaments and a custom LED star.

Tree1

“I was very disappointed in what you can buy — mostly just classical decorations. I saw the ornaments and had started playing around with the LEDs and thought this would be an awesome mashup,” Burhop explained.

In terms of electronics, the engineer (who happens to be a huge Adafruit fan) had some NeoPixels and Trinkets (ATtiny85) lying around. A two-meter LED strip was driven by the tiny MCU, and ran through the center of the tree, fading out through the branches. Another Trinket was tasked with controlling the 3D-printed tree topper’s animations. He also picked up an AC brick at a local thrift store, which handled all of the necessary power requirements for the 120 or so lights.

Trinket

What’s more, you’ll notice that Burhop selected a white tree, which proved to be the ideal backdrop for the flickering, addressable RGBs and colorful DIY ornaments. Trust us, you’ve got to see it in action.

 

Light the menorah with an ATtiny85 and LEDs


Add some colorful LEDs to your Hanukkah celebration!  


The Evil Mad Scientist’s Mega Menorah 9000 is an updated take on the traditional hanukkiyah, a nine-armed Hanukkah candelabrum. But instead of candles, this DIY kit swaps out flames for ultra-bright LEDs capable of producing all kinds of colors and flickery effects.

4

The Mega Menorah 9000 has an Adafruit Trinket (ATtiny85) at its heart, and is powered by either USB or a 5V DC source. The device is USB programmable via the MCU’s built-in interface.

“No additional hardware is needed (other than the computer and standard USB cable), and you can use the Arduino IDE or avrdude (with some config changes). Our example code (standard firmware) is available for download and is written as an Arduino program, making use of the Lightweight WS2812 library,” EMSL writes.

6

When turned on, the menorah displays the correct configuration of LED “candles” (just without all that wax) for each night of Hanukkah. Every time that a user presses the “night” button or plugs it in, the ATtiny85 based candelabrum will trigger one more light than it had the previous time. The LEDs are lit up in the traditional sequence, each with a candle-like fade.

The Menorah Mega 9000 features a candle lighting sequence, which allows a user to adjust the brightness level and dim intensity, turn on/off flicker mode, as well as enhance its beauty with one of 24 built-in color combinations. And for the more elegant folks, despair not! This DIY hanukkiyah is equipped with blue/white blinky modes. To change the tone, simply press the “color” button.

“From a control standpoint, it’s awfully nice that they’re managed by just a single pin of the microcontroller, and have the built-in ICs to handle colors and dimming,” EMSL notes.

2

The Mega Menorah 9000 ships as a soldering kit and includes a pair of circuit boards: an oval-shaped one that holds the MCU, USB jack and control buttons, and another carved in the likeness of a menorah with nine RGB LEDs and connectors.

When completed, the accessory makes for an excellent holiday centerpiece. Measuring just 6” tall and  7.5” wide, the menorah can rest easily on any window sill, mantel or wherever else its creator desires. But perhaps one of, if not, the coolest things about this unit is that it boasts a unique “Trompe-l’œil” PCB design. Although it is actually flat, this gives the illusion of a rounded 3D surface.

7

Interested? Head over to Evil Mad Scientist’s official page here. In the meantime, happy holidays!

This $10 device can predict your next credit card number


MagSpoof is an ATtiny85 based device that can accurately predict your next Amex card number, disable chip-and-PIN and even spoof magnetic stripes wirelessly.


After recently losing his credit card, it wasn’t long before American Express sent Samy Kamkar a replacement. It was that moment in time that the serial hacker noticed something quite peculiar: the digits on the new card were similar to his previous ones. With a little more research, he uncovered a global pattern that would enable him to accurately predict the digits on any subsequent Amex card by knowing the preceding card’s full number.

687474703a2f2f73616d792e706c2f6d616773706f6f662f6d616773706f6f662e6a7067

“This means if I were to obtain your Amex card and you called it in as lost or stolen, the moment you get a new card, I know your new credit card number,” Kamkar explains. “I also know the new expiration date as the expiration date is fixed based on when the new card was requested, and you can determine if the new card has been requested by performing an auth on the existing card.”

Like many of his prior security-focused projects, this discovery yielded another opportunity to highlight a vulnerability. And so MagSpoof was born. Kamkar’s new $10 device is capable of emulating any magnetic stripe or credit card, entirely wirelessly, and storing more than 100 card numbers in various form factors. The unit works by generating an electromagnetic field that’s strong enough to reach a traditional reader’s sensor within close proximity, sending a signal that mimics the card being swiped.

“What’s incredible is that the magstripe reader requires no form of wireless receiver, NFC, or RFID — MagSpoof works wirelessly, even with standard magstripe readers. The stronger the electromagnet, the further away you can use it (a few inches in its current iteration),” he notes.

687474703a2f2f73616d792e706c2f6d616773706f6f662f636369726f6e2e6a7067

And that’s not all. MagSpoof features a button that employs his prediction algorithm. In order words, if a thief using the device finds out that the card they were trying to imitate had been cancelled, the gadget could instantly determine the victim’s next card number.

“As soon as the card gets declined, you press a button and it switches to the next number,” Kamkar tells WIRED. “It sucks for [Amex users], because they could have their new credit card stolen almost instantly.”

Aside from disabling chip-and-PIN protection (a function that he has since removed), accurately predicting expiration numbers and switching between different Amex cards (even when reported lost or stolen), MagSpoof can be employed for security research in any area that would traditionally require a magstripe, such as readers for drivers licenses, hotel room keys and automated parking lot tickets.

687474703a2f2f73616d792e706c2f6d616773706f6f662f6d657465722d736d616c6c322e676966

As you can tell, the MagSpoof’s hardware doesn’t look anything like a credit card, so a criminal couldn’t just simply hand it to a cashier or waiter without raising any red flags. However, Kamkar points out that he can use a digital credit card device like Coin to store the numbers that his system generates — a technique that would make his trickery much less noticeable.

Impressively, Kamkar built his prototype out of several off-the-shelf components. These included an ATtiny85, a 100mAh 3.7V LiPo battery, a motor driver, an LED, a capacitor, a resistor and some 24AWG magnet wire. He created a smaller version with an ATtiny10 as well. By simply pulsing the H-bridge and activating the coil of wire, the MagSpoof is capable of emulating the swipe of a card. MagSpoof is compatible with the Arduino framework and can work on traditional Arduino boards, as well as ATtiny chips.

According to the hacker, he has notified American Express of the issue and will not exploit their algorithm. Kamkar has made both MagSpoof’s source code and schematics available on GitHub, and elaborates upon his method on his page here.

[h/t WIRED via Samy Kamkar]