Pages: [1]   Go Down
Author Topic: TinyShield - An All-In-One programmer shield for Arduino  (Read 3642 times)
0 Members and 1 Guest are viewing this topic.
Netherlands
Offline Offline
Sr. Member
****
Karma: 0
Posts: 414
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A couple of months ago I found a story on Hackaday (and later on other places too) about programming ATtiny processors through Arduino. I thought that it would be nice to have this in a form of a shield. Now this product has become reality and it does even more than programming ATtiny processors. A collobaration between Flyton and myself resulted in a shield that makes it possible to program ATtiny45/85 processors, various Atmel ATmega processors (168/328/44/48) and it can even be used as a STK-500 programmer.



For more information see: http://flytron.com/open-source-hardwares/162-tinyshield-all-in-one-avr-programmer-shield-for-arduino.html

Looking forward to hear what you think!
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 362
Posts: 17307
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Very impressive, good luck with the project.

Lefty
Logged

Global Moderator
Netherlands
Online Online
Shannon Member
*****
Karma: 227
Posts: 14048
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Mooi werk | Well Done!

Can I stack multiple shields to program lets say 4 ATtiny's at once?

Can you show some sample sketches how easy it is?
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Global Moderator
Netherlands
Online Online
Shannon Member
*****
Karma: 227
Posts: 14048
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Have you posted it to Jonathan Oxer yet? - shieldlist.org -
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Netherlands
Offline Offline
Sr. Member
****
Karma: 0
Posts: 414
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you Rob,

I don't have an example to show how easy it is, but on the product page you can download a manual that tells how to do it (and it is easy).

The steps are:
- Upload a sketch to your Arduino that makes it an ISP
- Insert ATtiny (or other supported processor) into the TinyShield and insert TinyShield into your Arduino
- Open an exisiting Sketch that can work with ATtiny (think pin compatibility, the manual uses the blink example)
- Select ATtiny w/Arduino as ISP from the boards menu in Arduino IDE
- Upload your Sketch

The 20 boards that we have prepared are not stackable, but if you want one (or more) that are stackable, I think we can make them and you could burn probably, let's say, 4 at once. We haven't tried it.

Thanks for the heads up on Jonathan's site!

Dank je wel!
« Last Edit: January 14, 2012, 09:17:50 am by CrashingDutchman » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Bought the Tiny shield...Nicely constructed piece!

But, i have an UNO SMD WITH NO SERIAL NUMBER - WILL IT WORK? see 10A.

I ran the arduino as ISP-tinyShield Un-mounted on Ardy (NO SERIAL NUM ON BOARD)

Wrote a litttle rg Not b, candle routine running off pins 9 and 10(red and green) to produce yellow/orange with common anode RGB LED.

1. ran fine on arduino;
2 mounted attiny85 on TSboard ;
3. While TS unmounted , ran ISP on Arduno (SMD Edition) using Arduino UNO and Comm3;
4. No errors, but no indication it took;
5.loaded my program and changed pins 9->0,10 ->1;
6. Using for (i=0; i<1;i++); /* to set pin mode, and later send PWM values.
.what c commands does the AtTiny 85 understand? */
7. Mounted TS On Ardy
8. Chose Attiny85 w/Ardy as ISP
10. Tried uploading program to Attiny85 on TS...see errors at the end.

10A.  As per many instructions re Ardy UNO, while programming the AtTiny 85, there needs to be a 10mfd electolytic condenser between gnd and reset....OR an ~120 ohm resister between reset and 5v.....do I need to do this with your board, or have you compensated for the UNO?  I notice what might be a resistor between 3.5v and gnd.

11.  I see no real explanation of the red, blue and white LEDs on you(our) board, unless they are the LEDs suggested AT THE TOP  in the arduino as ISP SKETCH.

12.See below when I uploaded....please advise
-–--------

// Output (anode to digital gnd- using common anode RGB LEDS, (thus the reversed PWM values)R,G,B attached to PWM 9,10,11, re-pgm'd for AtTiny PWM 0,1 as below )

int i=0;
int redPin = 0;   // Red LED,   connected to digital pin 0
int grnPin = 1;  // Green LED, connected to digital pin 10

int PiN[2] = { 0,1};
// Color arrays
int white[3]  = { 0, 0, 0 };
int black[3]  = { 255,255,255};
int red[3]    = { 100, 250, 0 };
int green[3]  = { 0, 100, 0 };
int blue[3]   = { 0, 0, 100 };
int yellow[3] = { 85, 200, 255 };
int dimWhite[3] = { 30, 30, 30 };
int rndVal;

int redVal = white[0];
int grnVal = white[1];
int bluVal = white[2];

int wait = 100;
int hold = 0;       // Optional hold when a color is complete, before the next crossFade
int DEBUG = 1;      // DEBUG counter; if set to 1, will write values back via serial


// Set up the LED outputs
void setup()
{
     pinMode(0, OUTPUT);   // sets the pins as output
    pinMode(1, OUTPUT);   // sets the pins as output

 
}

// Main program: list the order of crossfades
void loop()
{
 
  
     for (i=0; i <2; i++)
     {

        analogWrite(PiN, yellow);  
       // showNum(PiN,yellow);
 
     }
    
   Rando(3540);
    for (i=0; i < 2; i++)
     {
     //  Rando();
    analogWrite(PiN, black);  
  //   showNum(PiN,black);
 
     }
    
     Rando(25);
}


void Rando(int seed)
{
  //  randomSeed(analogRead(0));

  delay(int(random(seed)));
}
/*
void showNum(int pinNum,int value)
{
  
  
  if (DEBUG)
  { // If we want serial output, print it at the
  
        Serial.print("pin# ");
          Serial.print(pinNum);
 Serial.print("Color= ");
 Serial.println(value);
    
      DEBUG += 1;
    }
}
*/

-------------------------------------

 RGB_FLAME_cAnode_AtTiny85.cpp:4:21: error: Arduino.h: No such file or directory
RGB_FLAME_cAnode_AtTiny85.cpp: In function 'void setup()':
RGB_FLAME_cAnode_AtTiny85:30: error: 'OUTPUT' was not declared in this scope
RGB_FLAME_cAnode_AtTiny85:30: error: 'pinMode' was not declared in this scope
RGB_FLAME_cAnode_AtTiny85.cpp: In function 'void loop()':
RGB_FLAME_cAnode_AtTiny85:44: error: 'analogWrite' was not declared in this scope
RGB_FLAME_cAnode_AtTiny85:53: error: 'analogWrite' was not declared in this scope
RGB_FLAME_cAnode_AtTiny85.cpp: In function 'void Rando(int)':
RGB_FLAME_cAnode_AtTiny85:66: error: 'random' was not declared in this scope
RGB_FLAME_cAnode_AtTiny85:66: error: 'delay' was not declared in this scope



As I said, please advise

chas
« Last Edit: February 23, 2012, 09:24:09 am by hesynergy » Logged

Madrid
Offline Offline
Sr. Member
****
Karma: 5
Posts: 481
Life isn't about finding yourself, life is about creating yourself!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice board indeed!!

In your webpage this board is listed under "open source" hardware although I was able to find the schematics  I was not able to find the board files.
Are you going to publish it?
thanks,
Logged

Engineering is the art of
making what you want from
things you can get.

     

[SOLUCIONADO]

Deep south of Italy
Offline Offline
Faraday Member
**
Karma: 8
Posts: 2955
The quieter you become, the more you can hear
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@hesynergy , look like a core error.
Wich version of the arduino ide are you using?
Logged

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 76
Posts: 7305
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you spread out the parts a bit and put a zif socket on the shield? I don't know how much fuss one has to make with the machined socket cause I don't have machined sockets.
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@hesynergy , look like a core error.
Wich version of the arduino ide are you using?

Update!!! I shoulda read his disclaimer stating it works on IDE 0023....IT DOES....YAYYYYY CrashingDutchman!!( even though he never responded).

IDE V1<---------@/&&$/*+=^</:smiley-wink$&&@??,;:88*{*|€\€\€......WTF!!!!!!!!!!!!!!


Chas
« Last Edit: May 07, 2012, 10:46:22 am by hesynergy » Logged

Pages: [1]   Go Up
Jump to: