Tag Archives: ATtiny85

1:1 Interview with Erik Kettenburg of Digistump (Part 2)

(Part 2 – continued)

digispark-atiny85-avr-atmelTV: Why AVR as the microcontroller? What did you especially like in the development, prototype, production use-cases for AVR 8-Bit Microcontrollers?

EK: The best thing about AVRs is that they have a huge community and it makes sense why – as for microcontroller use, they are pretty easy to use, thanks to all of the tools for them – of course Arduino is a big part of that – but even before that, probably the key component was avr-gcc – being able to write C/C++ code and easily compile it for AVRs with a completely free unrestricted compiler is a huge incentive to develop with it, especially for makers who don’t have the big bucks or the desire to use proprietary compilers. PIC took a long time to catch on to that, and still isn’t nearly as easy to get started with, and the community is not as open and beginner friendly either, in my opinion – and I started with PICs back in the late 90s.

The other great thing about AVRs is that they are pretty robust and there is nothing quite like a device that can source up to 40ma on a pin and survive – that makes it much more beginner friendly!

TV:  Are there any particular microcontrollers or microprocessors you would like to get your hands on more easily in design and prototyping?

EK: There are lots of them – lots of the new silicon MCUs being developed in China would be fun to play with and see what they can do – like the Allwinner ARM SoCs but we have lots of trouble getting them – we find ways though.  Lots of MCUs have a ton of potential for use in startups and IoT but we don’t even think about using them because of all the non-competes, minimum orders, binary blob drivers, etc – it doesn’t make sense to develop open source software with a very closed company.

TV: How do ARM and AVR microcontrollers differ to you, why do you design your first project in AVR?

hello-digispark-avr-tiny-avr-8-bit-attinyEK: Our first project was using an AVR 8-bit Microcontroller because that is what we knew best and that is what our target audience was used to – because of Arduino.

TV: Why did you choose Atmel ARM for DigiX? Development, IDE options, Design, Production, Quality, Supply or any other reasons?

EK: We chose the ARM chip for the DigiX because we do see it as the future of IoT products – the AVR is being pushed to its limits when you stack Wifi, LCD touch solutions, sensors, and more all on top of it – the ARM still has plenty of room to handle more – so it is a natural progression for power users to move towards more powerful hardware.

TV:  Our goal was then to make it as easy to use as possible – we chose the same chip as the Arduino Due because we wanted to add to their support for that chip in Arduino rather than compete with it – we wanted to help make both the DigiX and Due easier to use.

From a design, supply, and production standpoint it has been far more difficult, expensive, and harder to work with – but it is worth it to enable people to access that kind of power in an easy to use format.

TV:  Is it more about low power and smarter hardware design or beyond the core development with Restful cloud based architectures to empower the Smart Connected Thing? What do you find more important, if you had to choose?

EK: Low power and ease of use – many of the best ideas come from people who are in no way experts at the hardware or software involved – the more people are able to use the tech, the more likely a breakthrough will come about. Low power is also important because the more we can move to small and battery powered, the more we’ll see these ideas break free of the home and desk and move into everyday on person use.

TV:  Do you see the Maker Movement and Enterprise coming together in matrimony someday? What are some of the challenges?

EK: I don’t see them at odds – as I mentioned before – I think the enterprises who embrace the maker culture will be met with more success and the rest will be left behind, at least by those embracing the maker culture.

TV: For a designer or developer, are we at the hour of product creation or the hour of connectivity?

EK: Both – we need people doing both to fuel this cultural change!

TV:  If you had to build the perfect smart city integrated with personal networks, take me through your choice of network topologies and protocols most considerably ideal to optimize the connectivity for people and customers. What would your design look like in terms of ideal integrated connectivity (802.11.x, 802.15.14, ZigBee, 6LoWPAN, IPv6, CoAp, MQTT, etc)?

EK: Whether or not it is ideal – I think that it would be met with the most success if it is 802.11.x based for long range, and 802.15.4 for personal area and shorter range links – the short range 802.15.4 protocol would be ideal for devices communicating with other devices around them and wifi is already so ubiquitous that it makes sense to use it for longer distance and high bandwidth connections. Its range and prevalence also allows it to be very successful without worrying nearly as much about infrastructure.

I don’t see IoT world being built on closed protocols – industry is trying to do that, but they are ending up with expensive devices that people actively resist while we openly welcome more open devices like WiFi into our lives. WiFi is extremely prevalent and the (finally) emerging widespread us of IPv6 opens up many new doors. Technologies like 6LoWPAN, or simply put IP over low power radios has the potential to increase standards between low power 802.15.4 devices. Additionally, by essentially moving the internet into the realm of low power wireless devices the transition between personal area networks and WiFi/standard IP networks becomes far more seamless, and therefore much more user friendly. These technologies will reduce complexity, barrier to entry, and part count – which should allow for IoT to spread freely and at a much lower cost. These technologies are still working there way into the Maker culture, and the more open they are the more quickly they will be adopted.

TV: How can Internet of Things and Internet of Everything come to more realization when it comes to design choices and connectivity designs? What design aspects would like to share with the community or similar-minded engineers, makers, hackers, and designers of tomorrow?

EK: As creators we all need to focus on removing the barriers to other makers and consumers using the technology – this means price and ease of use. Maker culture remains rather elitist, mostly due to price – a simple, elegant, and affordable design will take us farther towards mainstream culture then all the features that can be possibly packed into it. digispark-avr-8-bit-mcu

We also need to keep those designs accessible, and our communities friendly – to all, all people, all types, all skills, nationalities, sexes, etc – the open source hardware community has a long way to go to shed the elitist mens club image – it is getting there, but we can always work to be more welcoming.

TV: How can designs that you bring to the community help change the product landscape? Any last thoughts you would love to share with the Embedded Design and Makers community?

EK: I hope the products we bring to the community change the landscape – and I think in general products made by makers can do that by accessibility (a common theme with me) and doing new things with old tech, or old things with new tech – basically looking at things a different way. Since the Digispark came out we’ve seen many clones/derivatives taking advantage of using V-USB and the ATtiny – which has been awesome! We like to see when makers share their methods and inspire new applications through taking a different approach.

Last thoughts: Keep making, I am firm believer that the more of us make, and the more things we make, the better idea will come around – so lets all make our ideas reality, regardless of whether or not other people think it is possible! My other thought would be, open up your process – the more open we’ve become as a company the better we’ve done – I love the popular quote that goes something like “Don’t be afraid someone will steal your idea, you’re not that important, and if it is that good of an idea you’ll make money off it anyway” – we’ve found that to be very true and will keep pursuing that strategy.

(This concludes the interview, part one can be found here).

Building an analog meter clock with Atmel and Adafruit

Adafruit’s Trinket is a tiny microcontroller board built around Atmel’s versatile ATtiny85 (MCU).

“We wanted to design a microcontroller board that was small enough to fit into any project – and low cost enough to use without hesitation,” Adafruit’s Limor Fried (aka LadyAda) explained. “[It is] perfect for when you don’t want to give up your expensive dev-board and you aren’t willing to take apart the project you worked so hard to design.”

Although the Trinket launched in September, the ATtiny85-powered Trinket has already tipped up in a number of projects including a sound-reactive color LED organ, IR control device, Tap Tempo and a temperature/humidity sensor. Today, we’ll be talking about building a Trinket-powered analog meter clock. As Adafruit’s Mike Barela notes, the Trinket is a perfect fit for clock projects, as the platform is small and easy to hide behind a larger display.

“Clocks don’t need a lot of logic, this example only has maybe 20 lines of code, [while] adding a digital display via I2C is possible using seven segment or character-based displays (with the library code posted for other projects),” Barela wrote in a detailed tutorial on the subject. “This [specific] project interfaces Trinket to the the Adafruit DS1307 real-time clock (RTC) breakout board to form a clock. But in a twist, the display is done using two analog meters. One for hours, one for minutes.”

According to Barela, the Trinket is capable of outputting to a meter without digital to analog converters.

“Trinket has pulse width modulation (PWM) on three of its pins. The meter uses a moving coil inductance movement, acting to average the indication of current flowing through it,” he continued.

“If you have narrow pulses, the average voltage it sees is lower, thus the current is lower for the fixed resistance attached to it. For wide pulses, the meter sees nearly the supply voltage and will stay around the full scale. This circuit varies the pulse width sent to the meters proportional to the hour of the day and the minutes after the hour.”

For two meters, says Barela, two of the three PWM pins on Trinket will be used (the third is also an I2C pin connected to the clock module). Although there are many ways to display the finished product, Adafruit decided to go with the meters “free-floating” in a colorful box, rather than a cabinet or plexiglass display.

To kick off the project, Barela recommends Makers first unpack their Trinket. Those using a breadboard or Perma-Proto board will want to solder on the (provided) header pins. After unpacking the DS1307 kit and building the circuit, Makers are instructed to modify the Arduino IDE to work with Trinket by adding the hardware definition file, the avrdude.conf file – while changing the ld.exe program from the 2008 dated version to the 2009 dated version and installing the driver for USBtinyISP appropriate to your operating system.

“To prepare the Trinket for other programs, you will want to first load the Trinket Blink sketch into the Arduino software then load it onto the Trinket to verify everything works well. You must press the hardware reset button on the Trinket then quickly press upload in the Arduino software to upload a sketch,” Barela added. “If you get an error, try the reset-upload process again. If you continually cannot load the blink sketch, check to make sure the Trinket is connected (without any wires connected to pins #3 and #4) and the Arduino IDE software has all the required changes.”

Interested in learning more? Be sure to check out Adafruit’s detailed analog meter clock tutorial here.

1:1 Interview with Erik Kettenburg of Digistump (Part 1)

digistumpfounders

 1:1 Interview with Erik Kettenburg co-founder of Digistump (Part 1)

Tom Vu: Why did you create Digistump? Did you see a strong need to do this primarily for the movement of connectivity hardware and embedded software going too slowly or too conventional? Why do this yourself instead of use what is available?

Erik Kettenburg: Digistump was created from the success of our first project launch on Kickstarter. We launched the Digispark hoping to sell 500 units on Kickstarter and ended up selling 25,000 – in the course of that campaign I started to design several add-on boards (shields) for the Digispark and when it was all complete we had orders nearly 100,000 units total across all products. Turning that momentum into a company was a natural choice and in doing so we wanted to stay true to our original goal of making open source hardware cheaper and more accessible.

The creation of the Digispark was fueled by a feeling that existing open source development products were too expensive to leave in all the little projects that I had built. The Digispark was created to be as minimal as possible while still being very user friendly – thus enabling it to also be much cheaper – which is something we didn’t see in the open source market.

TV: Walk the reader through your two successful Kickstarter projects. What do they do and who should use these products?

digispark-atiny85-avr-atmel

EK: Our first Kickstarter, as mentioned above was for the Digispark, and ended up raising just over $330,000. The Digispark is an Atmel AVR 8-bit Microcontroller ATtiny85 based development board with on-board USB. The ATtiny85 doesn’t have hardware USB and the AVRs that do or an external solution (as is used on the Arduino) would have made it too expensive, so we built off of the V-USB project which is essentially a hack that does USB communications from regular i/o pins. The Digispark has 6 i/o pins (we disabled the reset pin to get an extra), a 500ma voltage regulator for using with external power, it can be powered over USB and has an integrated USB connector, a bootloader that allows it to be programmed over USB with our slightly modified version of the Arduino IDE (or by command line with any hex file), and two LEDs – one for power, and one connected to Pin 1 for use as a status indicator. It is about the size of a quarter. The Digispark now retails for $9.95 and has over a dozen shields kits available for it that allow you to quickly add everything from a motor drive or real time clock to a RGB LED or protoboard. It makes both a great first board to get started for a low price and also a great board to leave in projects, or use in projects where cost and size are a concern.

Our second Kickstarter was for the DigiX and just ended a few months ago. The DigiX aims to be the opposite of the Digispark – it is an Atmel ARM SAM3X8E based development board that aims to have everything you could ever need. It is also compatible with the Arduino IDE. The main feature is that it has built in, easy to use, client and server capable low power WiFi, allowing it to be an IoT device without purchasing anything else! It also has a mesh networking module, microSD reader, EEPROM, status LEDs, switching voltage regulator, audio output, and 99 i/o pins. It is compatible with all Arduino Due compatible shields and we also sell a level converter shield along side of it that makes it electrically compatible with all classic Arduino shields. The DigiX is the ultimate Arduino compatible board for the ultimate power user – or anyone looking to get a WiFi enabled Arduino platform for an affordable price. Currently it is on presale (expected to ship late October) for $59, with the level shifter also on presale for $15. lessThan2cm_digispark-avr-atmel-tinyavr

TV: What challenges do you see in the maturation of a embedded design project especially when dealing with operations, prototyping, production, licensing, distributors, supply, etc? Any tips to share?

EK: We have had many challenges with both of our products. The Digispark was a very simple design but used standard parts in non-standard ways. This presented some challenges when it was handed over to a factory for production. They were not able to program the Atmel 8-bit AVR ATtiny85s successfully because they had never before programmed them in that way, it took several weeks to get it worked out and eventually we sent them the programmer we were using and the exact commands and they were able to duplicate our setup and then transfer that knowledge to their automated programming machines.

digispark-avr-attiny-atmelThe other major obstacle with the Digispark was that we had to scale very quickly, as I mentioned before we expected to, at best, sell 500 units – we sold 100,000 across all products and 25,000 Digisparks alone – we had to scale everything, production, packaging, kitting, shipping, bank accounts, etc. It was good problem to have but added significant delays. The result of that scaling, though, was that we now have a full company set up and running, and the Digispark continues to be very successful, as well as our other products we have introduced since.

From a distribution standpoint we were surprised to find that the distributors found us, and so that hasn’t been too hard. Micro Center stores, MCM, and RobotShop, to name a few, carry our products and just today we have shipped our first order to MakerShed for them to carry them as well. We’d love to see even more distributors carry them, but I would say the biggest problem we’ve had is finding the time – my wife (the other Founder, and my partner in the business) Jenni works on Digistump whenever possible as her main job (in addition to taking care of our 2 month old daughter Maple, and our 18 animals on our small farm) – I still work a day job (as CTO for Portland based Vacasa) and split the rest of my time between Digistump and family as well. We hope that someday I’ll be able to work on Digistump full time.

With the DigiX – which is still in production – our issues have been more with supply – for instance we needed 2,000 SAM3X8E chips right away to start production, that meant we had to buy from about 6 different suppliers to get enough of them. The WiFi modules had to be made to order, and generally having such a complex and cutting edge board has meant the parts can be harder to find.

Some of the challenges we’ve experienced have made us plan ahead more and other have made us give serious thought to moving production in house. Our next product the Digispark Pro (to hear when it comes out join our mailing list at digistump.com) will be made entirely in house on a pick and place machine we recently installed.

TV: Is DigiStump sort of like the composite utility belt or multi-purpose digital rivet for USB based hardware design/development?

EK: I hope that Digistump will grow to be a sort of smaller version of Sparkfun or Adafruit – focused on in-house products, hopefully built in house as well. Where Digistump differs already and will continue to is that price will remain a major focus. We want to keep things accessible to everyone, folks in other countries, students, kids, retirees, etc. We believe that anyone should be able to get into the electronics hobby and we’ve already seen this approach pay off with many schools using Digisparks to not just teach children, but allowing them to take them home and continue to use them.

Digistump is also expanding beyond hardware – in an effort to enable makers we will also be adding a low cost prototype PCB service and laser cutting service.

TV: Give an outlook of what there is to come – hypothetical and speculative products, empowerment of individual makers, enterprise designers, and tinkerers? Convergence?

EK: The momentum and mainstream acceptance of the maker movement is something I never could have dreamed would happen. When I was a kid and very much into computers and electronics in the 90s, it was not cool or encouraged at all, now we see children being encouraged by schools, parents, and more importantly each other to invent and innovate. I only hope the I (and Digistump) and continue to find ways to enable their creations – I think that should be the number one goal of the entire open source hardware community – to enable the next generation of makers. digispark-avr-atiny85-8-bit

With this mainstream acceptance we are also seeing the culture move into enterprise situations, which some may think is the death of the movement, but I think is an excellent step – when a enterprise tries to be “disruptive” it is far better than it simply writing off the movement and continuing to make marginal improvements – we should welcome all disruption and all innovating, regardless of the source.

TV: What is the difference between products built from Startup DNA vs Enterprise DNA? Are there recognizable traits or differentiators? Is there a special need for “Made in Makers” seal to advocate authenticity, consideration, and brand?

EK: I think Enterprise DNA is moving towards the maker culture, but 99% of companies are still stuck in the marketing and/or marginal improvements approach. A very recent example of this would be Intel – they just released a new processor aimed at IoT but they are pushing it towards existing industrial customers and making reference boards available through select channels – if Intel really wants to compete with ARM producers like Atmel on the IoT platform they need to get those in the hands of makers and tinkerers, not just career design engineers. A company like Intel needs to go to a company like Arduino, Sparkfun, or even Digistump and say “We want you to make a cheap dev board for this chip, we’ll even help you market it” that would be disruptive (mostly to their internal structure) and far more effective for being part of the future of IoT then millions of dollars in marketing. I guess what I see is that there is still a wall that makes no sense – Makers can’t get access to many of the newest parts and Enterprise can’t get anyone to make something truly innovative with them, so they aren’t capturing the attention of our increasingly maker obsessed culture, and equally important, the new companies that these makers spawn aren’t using their tech.

Because of this divide I don’t think we need a “Made by Makers” seal – it is obvious what is made by Makers – and if a enterprise makes something disruptive or innovative enough to seem like it fits in maker culture then they deserve to be called makers as much as I do.

TV: What’s your definition of disruption? Who successful/innovative in industry do you look to as a mentor? Do you draw forth similar way of thinking?

EK: To me disruptive is overused – a technology or company can be disruptive when they launch, but years later when millions are using them they are no longer disruptive, the next thing is, and it only is if it challenges the current norms. Stripe was disruptive to the merchant payment industry, now even Paypal follows their lead (and actually Paypal was very disruptive when it started). Disruptive seems to often, today, be self applied when it doesn’t fit – I look at companies and individuals who change markets or even better cultures as disruptive – Arduino, RepRapMakerbot, Adapteva and the Parallela, Laen as and OSHPark to name a few. I wouldn’t dare call Digistump disruptive, we built on an existing community (Arduino) and technology (Arduino, V-USB, and AVR). I hope someday to come up with an idea that is disruptive.  neopixel-digispark-avr-tinyavr

As far as those I look to in this industry for inspiration – Sparkfun and Nathan Seidle, Arduino and Mossimo Banzi, Ubuntu and Mark Shuttleworth

TV: What are some of the challenges of the day for Makers and Startups (Kickstarter, Indiegogo)?

EK: Since the Digispark campaign we’ve seen the crowdsourcing arena get very competitive – and dare I say more corporate. While there is still a fair amount of organic success on Kickstarter and the like – there is also a strong segment of companies, startups but well funded ones, with big production budgets, slick movies, etc – and those are getting harder and harder to compete with. Additionally we’re seeing established companies (even some who call themselves open source) latching on to new ideas and using their considerable resources to put a competing product in the market by the time the new project ships. This sort of competition is not just a challenge but is hurting innovation that the community has worked so hard to foster. That isn’t to say all companies are doing that – SparkFun, SeeedStudio, Atmel, lots of companies have been good friends to the small startups – it is, after all, very much in their benefit to do so. Atmel chips run the majority of new open source projects because Atmel gets it – Atmel gets that they need to support Makers, starting with Arduino and now expanding to many other startups like Digistump. Our Atmel reps (Mike as Cascade Tech) treat us like we are big customers even if we only buy a fraction of the chips the big guys buy. Other companies’ reps have treated us very badly, and made it nearly impossible to get advice, samples, or help because we aren’t huge – I think companies like that will find themselves left behind in the maker revolutiondigispark-rgb-shield-tinyavr-avr-atmel

TV: What do you plan on doing with DigiX and Digispark, its quite noticeably public especially in its origins and funding from Kickstarter. What is the eventual roadmap for Digistump LLC?

EK: As I mentioned previously, we’ll continue to build development boards, and other electronics to enable makers – while keeping these devices as accessible and affordable to everyone as possible. That doesn’t stop with our products either, where most companies want $30-$100 to ship internationally we are shipping some products for as little as $3 – and most for under $10 – we really want to make sure that everyone can get into electronics – so much so that we’ve yet to take any profit – we just keep investing everything back into products, efficiency, and keeping the prices low. That is part of the reason I still need a day job!

As I also mentioned, we are moving into service – including PCB prototyping (with a US fab partner) and laser cutting. We’ve been slow to roll these out because we are automating them almost entirely so that we are able to offer then at a much lower price than the existing services.

What else is in store? Well Digistump also does lesser-known contract work, everything from manufacturing to design, development, testing, consulting, and prototyping. I’m not an EE – I have a degree in Economics actually – but I have a lot of business experience in both the web development world and now the hardware world – I hope to find more contract work as it allows me to improve my skill set for Digistump while also helping companies look at technology in a less corporate way – of course, I can’t talk much about what I’m working on, but I’ve been able to show some companies how to develop awesome products for a fraction of what they had been paying traditional product development teams, and give some tips on marketing, tech infrastructure, etc on the way. That has been a lot of fun, and I think it will be awesome if we can keep that a part of Digistump as well as we grow.

TV: What needs and requirements were set forth to have custom firmware and bootloader in the DigiSpark?

EK: The bootloader for the Digispark does a lot. The ATtiny85 does not have a reserved bootloader section in its flash – which means it really isn’t setup for having a bootloader.

TinySafeBoot (http://jtxp.org/tech/tinysafeboot_en.htm) came up with serial solution some time ago and Embedded Creations did it with USB support – but those needed to be further refined into something smaller than Embedded Creation’s bootloader that was also more reliable, and ready for production use. After the failures of some of our experimental work on it, Jenna Fox, a very talented individual stepped forward and offered to help and started the Micronucleus open source bootloader  which Digistump sponsored, and supports in every way possible. Digisparks run that bootloader and it provides protection of the bootloader and upload over usb, all using the internal oscillator (with automatic calibration). To date it is the smallest, robust USB bootloader for ATtiny chips – and certainly the best tested ATtiny USB bootloader as well. It also remains truly open source.

Interested in reading more? Tune into Part 2 of Atmel’s 1:1 Interview with Erik Kettenburg co-founder of Digistump

digispark-avr-atmel-microcontroller-kickstarterErik-Tylek-Kettenburg-Digispark

Building a sound-reactive (Trinket) LED color organ

A color organ was a staple of the music scene in the 1970s, although the instrument can still be seen today at various concerts and select home theaters. The principle is relatively simple: flash colored lights in step with music or other sounds.

“Color organs sample sound and flash lights based either the sound intensity or frequency. The higher end units use analog or digital signal analysis to determine the sound energy in selective parts of the frequency spectrum and flash the lights accordingly,” Adafruit’s Mike Barela explained in a recently published tutorial.

“The Adafruit Ampli-Tie project, which uses [the Atmel-powered] Flora, has two different algorithms to light a string of Neopixel LEDs according to sound intensity. We will reuse much of the first Ampli-Tie algorithm’s code. The more complex algorithm uses a good deal of floating point math, which is too large to fit on a Trinket or Gemma.”

According to Barela, the simpler algorithm fits with room to spare, using integer math. The code is slightly modified to give the effect one may want in a color organ, although Makers can easily alter the code to produce other effects for their own projects.

To kick off the project, Barela recommends starting with a breadboard and subsequently transferring the circuit to a small perma-proto board when a permanent mount becomes more appropriate.

“You may solder the headers supplied with Trinket to facilitate breadboarding. A small three-pin header was placed on the microphone breakout board for breadboard connection,” he added.

“For a more permanent circuit, you could use a servo extension cable to extend the microphone or wire your own three wires from the microphone breakout to the Trinket, power and ground lines.”

As we’ve previously discussed on Bits & Pieces, Adafruit’s recently launched Trinket is a tiny microcontroller board built around Atmel’s ATtiny85.

“We wanted to design a microcontroller board that was small enough to fit into any project – and low cost enough to use without hesitation,” said Adafruit’s Limor Fried (aka LadyAda). “[It is] perfect for when you don’t want to give up your expensive dev-board and you aren’t willing to take apart the project you worked so hard to design.”

Fried describes the Attiny85 as a “fun processor,” because despite being so small, it boasts 8K of flash and 5 I/O pins – including analog inputs and PWM ‘analog’ outputs.

Want to learn more about building a sound-reactive LED color organ using the Atmel-powered Trinket? You can check out Adafruit’s detailed tutorial here. Additional information about the Atmel-powered Flora is available here.

Going Steampunk with Atmel and Adafruit

Recently, the Adafruit crew designed a pair of goggles for cyberpunks, steampunks and yes, Daft Punks. Officially dubbed “Kaleidoscope Eyes,” key components for the headware include NeoPixel rings, an Atmel-powered (ATtiny85) Trinket (or Atmel-powered Gemma) and a battery (lithium-polymer or 3x AA battery case).

Now the Adafruit crew is back with another slick goggle design. While “Kaleidoscope Eyes,” targeted a slew of fashion genres, the latest pair of goggles are clearly more Steampunk (from a fashion perspective) than either Cyber or Daft.

“Everyone loves funky goggles and the Adafruit Neopixel rings are perfect for building a flashy pair. To kick it up a notch, we STEAMed up these goggles with some high tech sensors and a bit of applied math and physics,” explained Adafruit’s Bill Earl.

“The goggles are controlled by a Flora microcontroller [powered by Atmel’s Atmega32u4 MCU] with a LSM303 accelerometer/magnetometer to track the motion of the wearer’s head. A simple physics engine implements virtual pendulum display on the LED rings that swings in response to the motion of the wearer. The effect is much like a pair of hyperactive electronic googly eyes.”

In addition to the Atmel-powered Flora MCU, key project components include:

  • One pair of Goggles – Any pair of goggles with 50mm lenses will be a perfect fit for the neopixel rings. The prototype for this particular project was built with these German-made safety goggles – using the optional tinted lenses.
  • Two Adafruit Neopixel Rings.
  • One Adafruit Flora LSM303 Magnetometer/Accelerometer.
  • One 3xAAA battery pack.
  • Scrap of leather or upholstery vinyl for mounting electronics to the temple.
  • One 53mm Watchmaker’s Case to house the Flora & Sensor.

It should probably be noted that the goggles are more for show than anything else (Halloween, COSPLAY), as they aren’t suitable for general use as eyewear and certainly not safe to use as protective lenses.

“The flashing lights are very visible inside the goggles. They will impair your vision and may cause dizziness headaches or even nausea with prolonged use,” Earl cautioned in a detailed tutorial. “The LED rings themselves will severely limit your peripheral vision, making it dangerous to walk-about, much less drive a car, juggle chainsaws or pilot a starship.”

That being said, these awesome STEAM-Punk Goggle Operating System recognizes several “gesture” commands for changing operating modes. To be sure, all it takes is a nod of the head to engage the anti-gravity circuits.

Interested in learning more about the Atmel-powered STEAM-Punk Goggles? You can check out Adafruit’s STEAM-Punk Goggle tutorial here.

Building a superhero power plant with Atmel and Adafruit

The Gemma is a tiny wearable platform board neatly packed in a 1″ diameter package. The device – powered by Atmel’s versatile ATtiny85 – is easily programmable with an Arduino IDE over USB. Similarly, Adafruit’s Trinket, a tiny microcontroller board, is also built around Atmel’s ATtiny85.

Although the Gemma only recently hit the streets, the platform been used to power a wide range of Maker projects across the DIY spectrum. And today, we’re going to be taking a closer look at how to use the Atmel-powered Gemma (and Flora) to build a superhero power plant designed by Becky Stern and the Adafruit crew.

“Planning an epic Iron Man costume for Halloween or Comic Con, or looking for that iconic piece that turns a plain t-shirt into Tony Stark? Look no further, for in this guide we’ll show you how to make your own electronic glowing reactor with a cool pulsing effect,” Stern wrote in a recent Adafruit post. “You can even customize it once complete, go for red, purple, green, pink – whatever color will power you up! Or change the pulse rate or effects to add a special touch.”

Although the superhero power plant is a relatively simple soldering+crafts project, Stern recommends that Makers familiarize themselves with a couple of tutorial guides before kicking things off, such as “Introducing GEMMA” and Adafruit’s “NeoPixel Überguide.”

Aside from the Atmel-powered Gemma, key projects components include:

  • NeoPixel ring
  • Single FLORA NeoPixel
  • solid-core hookup wire
  • JST extension cable
  • 3xAAA battery pack with batteries
  • 2x laser-cut/etched acrylic in clear or white (files on Thingiverse)
  • elastic
  • safety pin or velcro
  • E6000 craft glue or hot melt glue
  • needle and thread
  • tracing/printer paper

The first step? Download the relevant vector files from Thingiverse, and yes, there is also an Iron Man 3-inspired version available.

“Inking the engraved portion with a dry erase marker really brings out the detail. We layer two of these together for a neat 3D effect then later we’ll wrap wire through the provided holes and indents to hold them together,” Stern continued. “Hairline features are vector cuts, everything else is engraved. Our settings using a 60 Watt Epilog? Raster speed 50%, raster power 50%, vector speed 40%, vector power 100%, vector frequency 5000. Have fun!”

Interested in learning more about building a superhero power plant with Atmel and Adafruit? Be sure to check out Becky Stern’s complete tutorial over at Adafruit.

Video: Cuboro goes digital with an ATtiny85

Cuboino can probably best be described as a tangible, digital extension of the classic marble puzzle game Cuboro. Designed by Felix Heibeck of the University of Bremen, Cuboino is powered by Atmel’s versatile ATtiny85 MCU.

“Cuboino consists of a set of cubes that are seamlessly compatible with the Cuboro cubes. In contrast to the passive Cuboro cubes, Cuboino modules are active parts of a digital system consisting of sensor cubes, actor cubes and supply cubes,” Heibeck explained.

“By snapping them together, players can build a modular system that functions according to the individual functionalities of the Cuboino cubes. Cuboino establishes a new pathway that is not embodied in the marble, but adapts to the medium of its transmission. Signals can be received by multiple modules, creating more than one signal at a time. This allows signals to intertwine, thus creating more dynamic and complex outcomes.”

As previously discussed on Bits & Pieces, Atmel’s high-performance, low-power sipping 8-bit AVR RISC-based ATtiny85 MCU boasts 8KB ISP flash memory, 512B EEPROM, 512-Byte SRAM, 6 general purpose I/O lines, 32 general purpose working registers, one 8-bit timer/counter with compare modes, one 8-bit high speed timer/counter, USI, internal and external Interrupts.

The ATtiny85 microcontroller also feature a four-channel 10-bit A/D converter, programmable watchdog timer with internal oscillator, three software selectable power saving modes and debugWIRE for on-chip debugging. The device achieves a throughput of 20 MIPS at 20 MHz and operates between 2.7-5.5 volts. By executing powerful instructions in a single clock cycle, the device achieves throughputs approaching 1 MIPS per MHz – neatly balancing power consumption with processing speed.

Interested in learning more about Cuboino? You can check out Heibeck’s project/thesis page here. You can also read more about Atmel’s extensive tinyAVR lineup here.

Playing Tetris on a breadboard with Atmel

Jianan Li has designed a breadboard-based Tetris game built around two Atmel microcontrollers (MCUs). As the HackADay crew notes, Li’s breadboard Tetris creation is so impressive that it probably should be considered “wire artwork.” To be sure, the layout of the ‘board and circuits are as elegant as the carefully written code.

“There are two microcontrollers at work, each running the Arduino bootloader. The main chip is an [AtmelATmega328 which is responsible for monitoring the buttons and controlling game play,” writes HackADay’s Mike Szczys.

“The other is an [AtmelATtiny85. The 8 pin chip listens to it’s bigger brother, playing the theme song when the game starts, and pausing or resuming to match the user input.”

No matter which way you slice it, this is definitely one of the most stellar interpretations of Tetris we’ve seen over the years. As some of you may recall, Tetris is a modern digital classic originally designed and programmed by Alexey Pajitnov in the Soviet Union. The very first version of the game was released on June 6, 1984, while Pajitnov was working for the Dorodnicyn Computing Centre of the Academy of Science of the USSR in Moscow.

According to Wikipedia, the name “Tetris” was derived from the Greek numerical prefix tetra- (all of the game’s pieces contain four segments) and tennis, Pajitnov’s favorite sport.

IR control with the Trinket and Gemma

Adafruit’s Trinket and Gemma are both powered by Atmel’s ATtiny85 microcontroller (MCU). Although the duo only recently hit the streets, the ‘boards have been used to power a wide range of Maker projects across the DIY spectrum. Today, we’re going to be taking a closer look at how to use the devices to determine the IR codes from your remote and trigger specific events.

“Trinket and Gemma are perfect for small projects needing to receive some external event, triggering your own defined output,” explained Adafruit’s Mike Barela. “[Our] project uses the Adafruit IR Sensor to first receive IR commands from a remote, then to use those codes in controlling a project of your own.”

According to Barela, the above-mentioned project simplifies the process of obtaining codes and using them to scale to the limits of the ATTiny85 processor in the Trinket and Gemma boards.

In terms of wiring, check out Adafruit’s diagram shown below.

As you can see, the IR data pin links to the Trinket GPIO #2 (Gemma Pin D2) and is connected to power and ground. To read codes, you will need to connect Trinket GPIO #0 / Gemma D0 to a serial to USB board such as the FTDI Friend receive RX pin (cross connect).

“To demonstrate how the Trinket or Gemma may process IR commands into an action of your choice, a piezo speaker is connected to Trinket Pin GPIO #1 (Gemma Pin D1) to output a tone when a certain IR code is received,” Barela continued. “Going further, you can use an IR code to change NeoPixels, a servo, a solenoid, or any other output.”

Interested in learning more about IR control with the Atmel-powered Trinket and Gemma? Mike Barela’s official tutorial on the Adafruit website is available here, while additional information about Atmel’s versatile ATtiny can be found here.

This ATtiny85 plays tic-tac-toe

Tic-tac-toe (or Noughts and crosses, Xs and Os) is a traditional paper-and-pencil game for two players, X and O, with each taking turns marking the spaces in a 3×3 grid. The player who succeeds in placing three respective marks in a horizontal, vertical, or diagonal row wins the game.

According to Wikipedia, an early variant of Tic-tac-toe was played in the Roman Empire around the first century BC – which may actually have originated in ancient Egypt. Fast forward to 2013: Tic-Tac-Toe is going Atmel, courtesy of Rahul Kar. Powered by Atmel’s ATtiny85, the digital implementation of the classic Tic-Tac-Toe game boasts an AI mechanism capable of making defending or winning moves against a human opponent.

“The project uses an 8×8 LED matrix to display the player’s move. The LED matrix is controlled by a display driver – MAX7219. The MAX7219 takes care of all the multiplexing, decoding and refresh circuitry via SPI interface connected to Attiny85. The processing and logic part is handled by ATtiny85,” Kar explained.

“[The] Attiny85 is a high-performance, low-power 8-bit AVR RISC-based microcontroller combining 8 KB ISP flash memory, 512-Byte SRAM and 6 general purpose I/O lines. Input is taken via 2 push button switches: scroll & enter. Scroll button is used to navigate to a particular grid [0-8] while enter is used for confirmation. The display blinks briefly to acknowledge key press.”

To avoid the ubiquitous tie of traditional tic-tac-toe games, Kar implements a specially coded algorithm programmed to always play the optimal move and never lose.

“In order to achieve the goal, the well known algorithm Minimax is used, [which] optimizes its chance of winning by predicting the future states as the game progresses. [Basically], it exploits the fact that two players are working to reach opposite goals,” said Kar.

“The [primary] objective [of the] algorithm is to minimize whatever value the opponent’s algorithm is trying to maximize. In this project, the Minimax function recursively finds the best possible move with respect to users input. It does so by generating a complete game tree. A game tree contains all possible moves from each position for a given game.”

Interested in learning more about playing tic-tac-toe with Atmel’s ATtiny85, which was recently submitted to Atmel’s AVRHero contest? You can check out Rahul Kar’s official page here.