LumiNet (based on attiny84)

Yeah I thought that each cip would have to be bootloaded first, I just wanted to confirm that. Thx for taking a look at the bit bang technique for me, this is how I would like to program the chip

I'm glad you got the software serial working out fine , and that I2C will not be a problem.

In terms of my use for this project, the attiny support is the most attractive feature for me. I've wanted to use them to teach simple stuff to kids due to their smaller form factor and lower power consumption

A neural netowrk seems interesting and I would love to work with something lie that, but I don't think I can afford to! However, if I can successfully get working with the Attiny and get fairly comfortable with it I do have a plan to develop a halloween constume kit with it.

Here is the measurement of the power consumption:

I tested three programs:

  1. idle program
  2. idle but pin 2,3,4,5,6,7 HIGH (OUTPUT)
  3. sleep mode (SLEEP_MODE_PWR_DOWN)

Arduino Diecimila @5V; LillyPad@5V; LumiNet@8MHz, 5V; LumiNet@1MHz 3.6V:
1:26,5;8,15;6,14;0,99
2:25,8;7,94;6,39;1,02
3:8,69;0,30;0,30;0,30
(all values are mA)

I guess the FTDI chip of the Diecimila consumes about 8,5mA and I don't know how to set this chip to sleep mode...

LumiNet can't run at 16MHz so there are no 16MHz values for LumiNet and it is hard to compare the 16MHz Arduino values with the 8MHz LumiNet values. But what I can say is that operating at 3.6V at 1MHz is a good choice for battery powered applications :slight_smile:

Wow didn't know the Arduino sucks so much juice on idle.

Is this using the internal oscillator?
Is 8M the max you can clock the internal oscilator? i.e can I add an external oscillator?
What is the default config of the bootloader? 1Mhz or 8Mhz?

Just trying to figure out what changes I would have to make (if any at all).

I have to wonder why the power consumption is less with the outputs high. And each LED segment active will probably add 20mA to the total...

Yes, that was also something I did not expect. But it was the same effect with the LilyPad Arduino and the Diecimila and I measured everything three times.
No LEDs are connected to pins 2,3,4,5,6,7 (that's why I have choosen them).
Please notice that I did measure the overall system power and not the power that goes only through the atmel chips.

Maybe someone else can do a measurement and verify my values? - I connected the power supply to the 5V and GND pins and disconnected everything else.

The question about the clock speed: The internal clock can be 1-8 MHz. Of course you can add external clock sources. Then 16MHz are no problem.
The bootloader runs at 1MHz but I tested it with 8MHz at 115000baud and it works with a good selection of boards.

I'll try and test the duminalove on Saturday. I am heading to my University (I am at the University of Waterloo) then (a bunch of us forum members are holding our first Arduino meeting there). Hopefully I can get into an open lab and use one of their regulated lab power supplies to power the Arduino and monitor the power consumption.

Hi, I am very interested in your project using the ATTiny microcontrollers and the Arduino IDE. I have a project that might take advantage of the ATTiny85/84. I know your LumiNet project uses the ATTiny84 - would the same bootloader/IDE mods work with the 85 as well? They are very similar in their features, except the 85 can come in an 8-pin package (PDIP/SOIC, which is easier to prototype with). I haven't really decided which would be better for my application, and both come in the same MLF package, but I know I need the low voltage and low power consumption of the Tiny's (need to operate on one lithium cell down to <2.0V). My initial application would use just one chip, but I have other ideas for using small, cheap, low-power devices embedded in a wireless sensor network. Hopefully your work make it into the official release. These Tiny's are really perfect for battery-operated projects and being able to use the Arduino/Wiring language would make development that much quicker. Thanks and I look forward to your release of the bootloader and IDE!

I'm interested in this. I have a couple of projects in mind that could benefit from smaller parts.

Great, can you please specify your interest? Are you only interested in the attiny support or is the idea of a neural network something that you can use?

the attiny85 is supported as well. I took some pictures, but you will have to wait until Monday I guess. I think the attiny84 is the better choice, I have one here in DIL14... the attiny85 has too few pins.
But if this is sufficient for your application then my modified IDE can handle this chip, yes.

And now some great news for all windows users (mac and linux support will be added later):

I managed to add the FTDI BitBang bootloader upload process into my IDE.

So from now on it is possible to use the X3 pin header of the FTDI chip of the Arduino Diecimila as an ISP programmer (as descibed in the link above).

Of course this enables you to burn a bootloader to the Diecimila itself, but I burn the bootloader to my attiny84 powered LumiNet nodes with this hack.

@darudude: thanks for motivating me, the bit bang bootloader is really working well and you can select it like any other ISP programmer in my IDE.

Awesome!! Can't wait for the schematics and IDE to release. I'm gonna order some Attinys in anticipation

Also regarding the power usage. I seem to have some problems with by arduino (I think I blew the FTDI chip). So i couldn't program it to set pins high. I did put an empty chip in (IDLE program) and got about the same power usage as you did: ~30 mA.

I am going back to the university in a couple weeks. I plan on just doing power testing an Atmega 168 bootloaded with Arduino on beadboard. This should give a better comparison between power usage on Attiny84 and Atmega168

Schematics and software will be released soon, end of April I guess.

I think the numbers of the LilyPad Arduino and an atmega168 on a breadboard will be the same.

I made a video of the BitBang upload process but I am too busy to upload it at the moment. Videos will be released soon.

Any more questions or feedback?

Update: FTDI BitBang tested with Mac OS X. It now works out of my IDE.

But I don't understand how to use the VCP driver and the D2XX driver at the same time on Mac OS. So right now the user must decide if her wants to upload sketches (using the VCP driver) or if he wants to burn the bootloader (using the D2XX driver).

But it is possible to use the FTDI BitBang hack for the Diecimila out of the IDE under Mac OS and Windows now and I used it to flash LumiNet nodes with it.

I'm very interested for the bitbang en attiny support in the arduino ide.

Good work!

Wow, I've been looking for something like this for awhile now. Can't wait for the board files, bootloader and IDE. I could use about a dozen of these little things!!

-m

Thankx for the feedback.
I am currently fine tuning the last parts and hope to release the files until the end of April.
If there are any other features that you miss in the official Arduino IDE then please let me know, maybe I can include it in the LumiNet version.

How much would it take to get the TWI/I2C to work? I was looking at going with the ATTiny 25/45, but guess I could try 84/85. Or would it work for any in the ATtiny series? I'm just getting started with this whole arduino thing, so of course, the easier, the better.

Thanks

Has there been any more work done on this? i'm very interested to see the modified files. this could be very useful for me!

@harry: sure, I am working on it day and night. Fixing the last problems and hope to get the release online in two weeks.

It will be a standalone release and not part of an official Arduino release.

I test everything under Windows and Mac OSX. And of course the sources are released too, so anyone who has Linux can give it a try as well. So if there are any requests for changes in the (original) IDE please post them here soon.

Also have a look at the project page (http://www.luminet.cc) for changes. The package will be release there.

Any news about the ATTiny Arduino IDE release? I can't wait to test it out - I already have an Arduino-like board assembled for it and I'd love to program it up using your IDE. Thanks! :slight_smile: