Announcing our next theme: ATtiny hacks

ATtiny Hacks Theme Banner

It is time once again to announce a new theme. This time around, we have chosen to highlight projects built around the ATtiny series of processors. These are 6 to 32 pin AVR processors that run up to 16 MHz and have anywhere from 512 Bytes of flash with 32 Bytes of RAM to 16K of Flash with 512 bytes of RAM. We’re guessing that this will be a pretty popular theme since so many people are using Atmel processors these days. If you have a project that you would like to see on Hackaday that is using an ATtiny processor, please hit us up on our tip line. If we like it, we may we choose to feature it in one of our daily themed hacks.

To kick off this theme, here is a nice write up about a stepper motor driver based around the ATtiny13. This project reads the analog value on pin B4 and adjusts the speed of the stepper motor. It is well documented and includes source code.

Comments

  1. Sci says:

    But where’s the Ardui.. oh right, whoops.

  2. CMJ says:

    I vote for no bootloaders allowed. This should showcase the talent of the designer in both hardware AND software aspects of a build.

    I have no issues with arduinos as art displays and fun hobby projects but I’m an advocate of speed, efficiency, and economy. I sometimes proto with a duino but why throw away the speed and ability to optimize your end project with a bloated development tool?

    Just sayin.

  3. Snobound says:

    Bravo!
    I love playing with these thing. Th little ones like the ATtiny 13 can be had for <$1 and you can do a little or a lot with them depending on your need. I built a simple flasher to simulate an alarm system w/ an ATtiny 13, an LED and a wallwart from a defunct phone. Granted a small task for a RISC computer but, from my point of view it was a solution for under a dollar that has worked non stop for 3 years.

  4. John Boxall says:

    Looking forward to see what people come up with. It’s also nice to see some non-Arduino stuff now and again :)

  5. Hammerhead says:

    Hah, maybe i’ll finally figure out how to program that darn tiny13 on a STK500. That method posted everywhere, where you have to stick jumper wires all around the board while having a finger up your nose and pushing a button at the same time seems not to work for me :D

  6. ino says:

    Sorry but I don’t get the “hack factor” in designing a device with a defined µc.
    I do this all year long as a job and it’s not considered hacking by my boss.
    It’s simply electronic design.

  7. mess_maker says:

    I like this theme :) I’ve been playing with some attiny’s for about a year now and really enjoy what I’ve been doing with them.

  8. Nivoset says:

    Anyone know a good but decently cheap pic programming hardware that works well? I gotta work with the WAF (Wife allowed Funds) so the idea of getting a programmer, but the only ones i know of are for production lines and are a bit pricey for a hobby piece for me.

    • ino says:

      there’s a pickit2 clone available on the web for less than 30 bucks and even cheaper if you build it yourself. Did it and it works fine for most pics.

      • Mike says:

        And if anyone complains about 30 (or even 50 for an official pickit3), think about what you are paying for the processors. About a quarter each, a dollar for the more powerful ones.

        If you can do serial programming the programmers are dirt cheap if you build them yourself.

      • Ben Ryves says:

        It’s also worth bearing in mind that a PICkit 2 or 3 will not just program PICs, but can also act as an in-circuit debugger – an extremely valuable feature that very cheap programmers will miss out.

  9. MoJo says:

    Much of the ATtiny range runs at 20MHz, not 16. Also look out for the ones with high frequency PLL driven PWM which can produce quite good sound.

  10. thrasher says:

    Atmel sells the AVRISP mkII In-System Programmer for $34

  11. Ken says:

    I’ve had trouble with this setup (using an MSP430 instead of AVR), albeit at lower voltage (6-9V instead of 12). I don’t know why, but I had to write microstepping code to get usable low speed torque. Anyone have a possible explanation?

    Other than that, this circuit is missing some of the basic protection diodes required for driving higher power motors, but it works if you set reasonable goals and is about as cheap and simple as you could hope for.

    • password says:

      well if your stepper requires 12v it will not function as spec if you only give it 6-9V

    • I’m also playing with microstepping and low voltages (5V and down) and I have to admit that it must be just that some steppers (and their loads) just don’t lend themselves to microstepping. I am trying to do 1/8th step and what happens is that the motor just sits there for 7/8th of the cycle and then suddenly jumps on the last 1/8th. Messes up any hope for synchronisation (it’s a CNC setup, so two or three of these motors doing this create a complete chaos). I cannot even make it half step (with a chopper driver tho, so even 1/2 step is not full power). Anyhow, I think to remedy that you have to get a bigger motor or lower the load or use one with more steps per revolution.

  12. BadWolf says:

    Thanks to myself for proposing this subject….

  13. password says:

    my 2c on the whole to Arduino or not to Arduino debate.

    if you argue it makes it too easy and people should use “proper” micros then you can argue that micros is to easy and you should use ttl logic and you can go all the way back to the first computer. Arduino’s is just the latest iteration of an age old argument.
    Each previous generation hates the next because
    its too easy ,but is that not the point of improvements of technology to make a said task easier?

    Remember this is Hackaday, not some highly theoretical site about how it should be done using only “approved” hardware.
    Most of the hacks of interest is not so much about the how but its about the why.It’s pointless if you program a micro to keep time accurate to 1nS if you do not have much application for it or is just gonna blink an led(except for a few bragging points).

    just my 2c, do with it what you will.(maybey I s hould use a dictionary instead of firefoxs spell cheacker?)

  14. zrzzz says:

    Yeah! I bought a bunch of those a while back. Looking for some inspiration!

    You can use an arduino as a programmer. If I recall… the sketch was flaky (or maybe it was avrdude). You run it once, it fails. You run it again, it works. Just keep trying. You gotta watch how you set your fuse bits, because if you mess up, it is impossible to reset them if you’re using an arduino as a programmer. There’s a website that you tell it what you want to set and it will give you the correct arguments for avrdude.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 93,673 other followers