Attiny-Duino or whatever?

Hi geeks ;-)

I am thinking about to shrink some of my projects. That's the deal. I am planning to build a Attiny-Duino.

What would you think about it's usage? For myself I would use it in the Insect bot to reduce the weight, costs and power comsumption.

UPDATE June 8 2012:

My first PCB since 1988 and I will call it AT-LUMI-TINY ;-) This board is still far from perfect (see the jumper wires) but it's my first 1-layer board created on the computer. 

It's 27mm x 27mm and contains 1x ISP port, 1x 6x3 header (two rows for the power supply one for the signal) for attaching servos, 1x LED on pin 0 and one port for the power. This will be improved later since the soccer board was etched tonight ;-) Happy drilling tomorrow...

UPDATE:

As I already wrote, the PCB is far from perfect. There is a version 2 with separated I/O pin headers 2x(3x3) for better routing on the board. This reduced the size of the board to 25mmx25mm. Pictures will come later.

UPDATE JUNE 19:

Birdmun did not let me rest ;-) I got the board even smaller (ok, I cheated with adding one jumper wire)

See picture.

and here in 3D

I am just trying how small is possible. This is not a competition but I have to say that birdmun gave me a hard time after releasing his  24.4 x 21.6 wonder :-) 

The board with that Attiny will be bigger in the final design since we need it also a bit handy and may add some more useful components. we are trageting a board with app. 30mm x 50mm.

If you get that one even smaller, then show it here ;-) but I doubt that it can be much smaller since the compoments set the minimum size. With all those standard 3x1 pin arrays I see no way to shrink it more.

Edit: As you can see in the comments birdmun found a error. That happens when you do things in a hurry ;-) I changed the resistor and doing this i was able to even shrink the board more. Now it's 20.3mm x 21.6mm.

On OddBot's request here is the schematic.

Click to enlarge the picture:

attiny-board.jpg

Schematics corrected!

 

UPDATE July 16:

Last night I etched the PCB for the first test. After drilling and soldering all the components I had a short circuit on the board which prevented the programming via ISP port but not the execution of the program when uploading it to the Attiny on the breadboard.

We tried the servos and got 3 of them working. However, the servo on Pin 3 was not moving at all. The connection from the Attiny is correct, power is there but no movement. I am not sure why but I guess it’s something in the library and/or the programming. 

Also the timer is srewed up. A delay(1000) for example flashes the LED like delay(50) under normal conditions. But this can be adjusted in the programming. Tomorrow is the troubleshooting and debugging, if the PCB is ok then we are going to send the files to the factory. Pictures and short movie coming soon…

 

This is the PCB we etched and tested.As you see the size is bigger than before. The reason is not to build the smalles board (this we proofed in our little competition) but to build a board which is handy and can be used in different projects.

Circuit diagram (click the pic for big):

at-lumi-tiny-plan.jpg

The LED on pin 0 is missing in the circuit plan since it was added directly in the BRD file.

I an still sure that we can improve a lot but that’s it now. If we don’t find something to improve or to change we will send the to the factory. Video is uploaded and ready to go. In the Video are just two servos connected since the USB does not power that much load. With the external power supply we attached 4 servos…but only 3 are moving for above mentioned yet unknown reasons.

https://www.youtube.com/watch?v=j0LHbxmsuEo

this would be very cool!

this would be very awesome! specially for flying robots (weight), and also for swarms!

@Max: Yes, i did programm my

sorry, double post…

@Max: Yes, i did programm my

@Max: Yes, i did programm my Tiny’s with help of this page.

@OddBot: Yes i know, but I want to build my own one :wink: Also want to use it as a educational board for our workshops.

@mogul: Yes i know that too. We had already trouble to fit the program into that tiny memory. But on the other hand, it’s only for projects which does not require more than the Tiny can offer. I don’t want to build a 4-leg walker with that. For programming purpose, we are going to include a standard 6-pin ISP header.

Here is the 6-pin header already included, buit the µC is an Attiny2313, not the 85 

Soon I will modify my insect bot with this new board to lower the costs for the workshop and make the build even more easy.

The insect bot is running with 2 servos and one ultrasound sensor and just a coulpe of lines code, good to use the Tiny.

Re: updated post with board

I was about to be upset that you could get your board built inside of 27mm ^2, then I noticed that you didn’t have a vreg on board and I was happier. :stuck_out_tongue: I would have suggested looking at https://www.robotshop.com/letsmakerobots/node/32665 my board, but, the PIC and AVR are just too different to be able to make them interchangeable.

How was this updated on June 8?

You’re not that far of the US time zones. If time travel, please include instructions!

By the way, is there documentation anywhere as to which programming functions are supported by the ATTiny and which are not?

Oh, there’s enough room to

Oh, there’s enough room to squize in a TO92 v-reg (about 250mA) on Lumi’s board. As for yours, you can make it smaller if you use a 2 layer board. It all depends on your needs. Of course, if you use SMD, you can make it smaller than a quarter. But anyway, both boards look nice, congrats both of you!

Thanks for the compliment!

I was shooting for single layer for my first foray into toner transfer. I didn’t want to make my life too hard to start with. :slight_smile:

Looking at your layout,

is there a concern of the voltage drop across the LED?

I couldn’t stand it.

I had to try to do better than 27x27. :slight_smile:

 

I managed 22.9 x 24.4 with a straight ISP header. That 6 pin header plays hell with making a single sided board.

This is what I managed with 1 jumper. It is the same size as above.

 
I am concerned about the continuity of the ground plane though. 

There is still room for more

There is still room for more components and as I said, the board is far from finished yet. The voltage drop on the LED was not considered, just the space the LED will occupy :wink:

Haha, i am quite far from

Haha, i am quite far from any time zone, especially US :wink: I am in UTC/GMT +8 hours. So at 0:38am was already June 8.

The Attiny will support at least the servo library and the main functions:

  • pinMode()
  • digitalWrite()
  • digitalRead()
  • analogRead()
  • analogWrite()
  • shiftOut()
  • pulseIn()
  • millis()
  • micros()
  • delay()
  • delayMicroseconds()

Great little board birdmun.

Great little board birdmun. well, that’s hard to beat :slight_smile:

I will improve my board later, right now I am bound to the soccer bot. What software are you using for your PCB design?

I am struggling through

gEDA. It is one of the common Free Open Source Software EDA packages available for linux.

Last time I promise. :slight_smile:

I took one last stab at getting a single sided board with the standard ISP socket. I won. :slight_smile: 24.6 x 24.4

The little black blobs all over are some of the labels. I couldn't manage to delete them, so, I shrank them as much as I could.

Well, that’s cool. I will

Well, that’s cool. I will try to improve mine too and shrink it to the minimum. Will see how small i can get it.

 

I know I said final. :stuck_out_tongue:

Laying out PCBs is like putting a puzzle together.

I got it down to 24.4 x 21.6 :)

Looking at it I could have rotated the resistor around so the ground would be in line with the grounds on the 3 pin headers. Slide the LED back towards the resistor. Rotate the 2 pin power header CW and move it back toward the LED. You might have enough room for a vreg and a capacitor. If you stand the resistor up, you might be able to get the LED back inline with the power rail of the 3 pin headers.

Haha, it’s never final :slight_smile:

Haha, it’s never final :slight_smile: But i think this one is hard to beat. I do not have much time right now but I also will improve my Attiny PCB. I hope to get it smaller than it’s now by separating and relocating the I/O header pins. They do not have to be in one big block right :wink:

I noticed something on your newest design that caught me too.

Your current limiting resistor should be between either the power and anode or ground and cathode, not, in parallel with the LED. It won’t affect board size only circuit layout.

Damn, i knew that something

Damn, i knew that something looks wierd…thanks :slight_smile: Will change it right now.