Posts with «attiny hacks» label

USB Arduino into AVR TPI Programmer

Turning an Arduino of virtually any sort into a simple AVR 6-pin ISP programmer is old hat. But when Atmel came out with a series of really tiny AVR chips, the ATtiny10 and friends with only six pins total, they needed a new programming standard. Enter TPI (tiny programming interface), and exit all of your previously useful DIY AVR programmers.

[Kimio Kosaka] wrote a dual-purpose TPI and ISP firmware for the ATmegaxxUn chips that are used as a USB-serial bridge on the Unos, and constitute the only chip on board a Leonardo or Micro. The catch? You’re going to have to do a little bit of fine-pitch soldering. Specifically, [Kosaka-san] wants you to get access to an otherwise obscured signal by drilling out a via. We’d do it just for that alone.

The rest of the procedure is to flash a DFU USB bootloader into the Arduino, then load up the flash-programmer code. Your former Arduino is now capable of flashing both old-school ISP AVR chips, as well as the tiny little ones that require TPI.

If you’re having deja vu, yes we have covered a DIY TPI programmer before, but it required a bespoke uploader software on your host computer. [Kosaka]’s version appears to the host as an Atmel programmer, and you can use any of the standard tools. And you get to try your hand at some fun fine-pitch solder work. That’s win-win!

Filed under: ATtiny Hacks
Hack a Day 06 Jan 09:01

DIY I2C Devices with ATtiny85

[Pawel] has a weather station, and its nerve-center is a Raspberry Pi. He wanted to include a light sensor but the problem is, the Pi doesn’t have a built-in ADC to read the voltage off the light-dependent resistor that he (presumably) had in his junk box. You can, of course, buy I2C ADC chips and modules, but when you’ve already got a microcontroller that has ADC peripherals on board, why bother?

[Pawel] wired up a tremendously simple circuit, downloaded some I2C slave-mode code, and added an LED for good measure. It’s all up on GitHub if you’re interested.

Bright by Day, Dark by Night!

We’re covering this because we rarely see people coding for I2C slave devices. Everyone and their mom uses I2C to connect to sensors, for which the Arduino “Wire” library or “i2c-tools” on the Pi do just fine. But what do you do when you want to make the I2C device? [Pawel]’s project makes use of TinyWireS, a slave-mode SPI and I2C library for AVR ATtiny Arduino projects.

Here, [Pawel] just wanted a light sensor. But if you’re building your own devices, the sky is the limit. What’s the most esoteric I2C sensor that you can imagine? (And is it really the case that we haven’t seen an I2C slave device hack since 2010?)

Filed under: ATtiny Hacks
Hack a Day 07 Nov 09:00

One Dollar Board Targets Students

The Raspberry Pi was made to be inexpensive with an eye toward putting them into schools. But what about programs targeted at teaching embedded programming? There are plenty of fiscally-starved schools all over the world, and it isn’t uncommon for teachers to buy supplies out of their own pockets. What could you do with a board that cost just one dollar?

That’s the idea behind the team promoting the “One Dollar Board” (we don’t know why they didn’t call it a buck board). The idea is to produce a Creative Commons design for a simple microcontroller board that only costs a dollar. You can see a video about the project, below.

Despite being licensed under Creative Commons, there isn’t much detail available that we could find. It appears the board uses an 8 pin Atmel CPU (and the FAQ indicates that the board will use the Arduino IDE). We’re guessing that it’s essentially a Digispark / Adafruit Trinket / ATtiny85 with V-USB installed.

The crowdfunding campaign page lists the following details:

  • CPU: 8-bit
  • GPIO (input and output ports): 6
  • USB Interface: Yes
  • Memory: Flash 8 kBytes (expandable to 256 kBytes)
  • Spaces for expansions: WiFi ESP8266, Memory 24C256, H bridge L293
  • Voltage: 5V
  • Indicator LEDs: 2
  • Reset Button: Yes
  • Fitting Spaces: 4 (compatible with Arduíno UNO or similar)
  • Quick Guide: The English board comes with a printed guide in other languages.

If it is an ATTtiny85-based design, two of those “GPIO” pins will be eaten up by the USB programmer, and maybe two more by the indicator LEDs. And some of that 8 kB of flash is consumed by the bootloader. In short, it’s not going to be able to do everything all at once. Still, it could be just the thing for getting your feet wet.

But the real story is the price. The dollar price tag doesn’t include shipping or taxes, of course, but even getting the price down that low is impressive. Time will tell if the market has an appetite for a dollar board. If we had to guess, the real value will be in ready-made course material.

There are plenty of educational boards out there, but few (if any) cost a buck.

Filed under: Arduino Hacks, ATtiny Hacks, Crowd Funding

ATtiny Does 170×240 VGA With 8 Colors

The Arduino is a popular microcontroller platform for getting stuff done quickly: it’s widely available, there’s a wealth of online resources, and it’s a ready-to-use prototyping platform. On the opposite end of the spectrum, if you want to enjoy programming every bit of the microcontroller’s flash ROM, you can start with an arbitrarily tight resource constraint and see how far you can push it. [lucas]’s demo that can output VGA and stereo audio on an eight-pin DIP microcontroller is a little bit more amazing than just blinking an LED.

[lucas] is using an ATtiny85, the larger of the ATtiny series of microcontrollers. After connecting the required clock signal to the microcontroller to get the 25.175 Mhz signal required by VGA, he was left with only four pins to handle the four-colors and stereo audio. This is accomplished essentially by sending audio out at a time when the VGA monitor wouldn’t be expecting a signal (and [lucas] does a great job explaining this process on his project page). He programmed the video core in assembly which helps to optimize the program, and only used passive components aside from the clock and the microcontroller.

Be sure to check out the video after the break to see how a processor with only 512 bytes of RAM can output an image that would require over 40 KB. It’s a true testament to how far you can push these processors if you’re determined. We’ve also seen these chips do over-the-air NTSC, bluetooth, and even Ethernet.

Filed under: ATtiny Hacks

Now Let’s See The World’s Largest Arduino

A few days ago we saw what would have been a killer Kickstarter a few years ago. It was the smallest conceivable ATtiny85 microcontroller board, with resistors, diodes, a USB connector, and eight pins for plugging into a breadboard. It’s a shame this design wasn’t around for the great Arduino Minification of Kickstarter in late 2011; it would have easily netted a few hundred thousand dollars, a TED talk, and a TechCrunch biopic.

[AtomSoftTech] has thrown his gauntlet down and created an even smaller ‘tiny85 board. it measures 0.4in by 0.3in, including the passives, reset switch, and USB connector. To put that in perspective, the PDIP package of the ‘tiny85 measures 0.4 x 0.4. How is [Atom] getting away with this? Cheating, splitting the circuit onto two stacked boards, or knowing the right components, depending on how you look at it.

[Atom] is using a few interesting components in this build. The USB connector is a surface mount vertical part, making the USB cord stick out the top of this uC board. The reset button is extremely small as well, sticking out of the interior layer of the PCB sandwich.

[AtomSoft] has the project up on OSH Park ($1.55 for three. How cool is that?), and we assume he’ll be selling the official World’s Smallest Arduino-compatible board at Tindie in time.

Filed under: Arduino Hacks, ATtiny Hacks

What Is This, A Microcontroller Board For Ants?

You youngins probably don’t remember this, but a few years ago there was an arms race on Kickstarter to create the smallest Arduino-compatible microcontroller board. Since then, a few people have realized they can make more money on Kickstarter through fraud or potato salad, and the race to create the smallest ‘duino board petered out.

It’s a shame [Meizhu] wasn’t part of the great miniature Arduinofication of Kickstarter, because this project would have won. It’s an Atmel ATtiny85, with USB port, resistors, diodes, reset button, LED, and pin headers, that is just 72 mils larger than the PDIP package of the ‘tiny85. Outside of getting a bare die of ‘tiny85s, there isn’t much of a chance of this board becoming any smaller.

[Meizhu] was inspired to create this board from [Tim]‘s Nanite 85, which up until a few days ago was the current champion of micro microcontroller boards. With a bit of work in KiCAD, the new board layout was created that is just a hair larger than the 0.4″ x 0.4″ footprint of the PDIP ATtiny85. There were a few challenges in getting a working board this small; you’d be surprised how large the plastic bits around pin headers are, but with some very crafty soldering, [Meizhu] was able to get it to work.

Filed under: ATtiny Hacks

Solderless Noise-o-Tron Kit Makes Noise at Chicago Makerfaire

Anyone who’s manned a hackerspace booth at an event knows how difficult it can be to describe to people what a hackerspace is. No matter what words you use to describe it, nothing really seems to do it justice. You simply can’t use words to make someone feel that sense of accomplishment and fun that you get when you learn something new and build something that actually works.

[Derek] had this same problem and decided to do something about it. He realized that in order to really share the experience of a hackerspace, he would have to bring a piece of the hackerspace to the people.  That meant getting people to build something simple, but fun. [Derek's] design had to be easy enough for anyone to put together, and inexpensive enough that it can be produced in moderate quantities without breaking the bank.

[Derek] ended up building a simple “optical theremin”. The heart of this simple circuit is an ATTiny45. Arduino libraries have already been ported to this chip, so all [Derek] had to do was write a few simple lines of code and he was up and running. The chip is connected to a photocell so the pitch will vary with the amount of light that reaches the cell. The user can then change the pitch by moving their hand closer or further away, achieving a similar effect to a theremin.

[Derek] designed a simple “pcb” out of acrylic, with laser cut holes for all of the components. If you don’t have access to a laser cutter to cut the acrylic sheets, you could always build your own. The electronic components are placed into the holes and the leads are simply twisted together. This allows even an inexperienced builder to complete the project in just five to ten minutes with no complicated tools. The end result of his hard work was a crowded booth at a lot of happy new makers. All of [Derek's] plans are available on github, and he hopes his project will find use at Makerfaires and hackerspace events all over the world.




Filed under: ATtiny Hacks, Hackerspaces

Programming the ATtiny10 with an Arduino

The ATtiny10 – along with its younger siblings that go by the names ATtiny 4, 5, and 9 – are the smallest microcontrollers Atmel makes. With only 32 bytes of RAM and 1 kB of Flash, there’s still whole lot you can do with this tiny six-pin chip. [feynman17] figured out a way to program this chip using an Arduino, allowing him to throw just about anything at this absurdly small microcontroller.

The ATtiny10 doesn’t use the familiar ISP programming header found on other Atmel-based boards. Instead, it uses the exceedingly odd Tiny Programming Interface to write bits to the Flash on the chip. [feynman17] realized he could use the Arduino SPI library to communicate with this chip and built a small programming shield with just a few resistors and a 8-pin DIP socket to mount an ATtiny10 breakout board.

After writing a sketch to upload a .hex file from the Arduino serial console, [feynman] had a programmed ATtiny10, ready to be dropped into whatever astonishingly small project he had in mind.

As for what you can do with this small microcontroller, chiptunes are always an option, as is making a very, very small Simon clone. It may not be a powerhouse, but there’s still a lot you can do with this very inexpensive microcontroller.

Filed under: ATtiny hacks
Hack a Day 23 Aug 14:59

Bench power supply resetting thingy

As is common among some hackers, [Henry] re-purposed an ATX power supply unit to function as a bench power supply for testing circuits on a breadboard (much like this fancy example).

However, safety mechanisms on some modern PC PSUs do not automatically reset after over-current protection has kicked in, which soon became annoying for [Henry]. In order to make his power supply more hacker-friendly, he wired up and programmed an ATtiny85V, using some Arduino libraries, to do that for him. This simple project is a great example of using a hack to improve a pre-existing hack.

Filed under: ATtiny hacks, pcs hacks