Loading...
Pages: 1 ... 13 14 [15] 16 17 18   Go Down
Author Topic: Arduino Tiny  (Read 25723 times)
0 Members and 2 Guests are viewing this topic.
Italy
Offline Offline
Brattain Member
*****
Karma: 219
Posts: 16440
Don't know what I do
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh... crap...  smiley-red
That was a test code I wrote this night.... I think it's better if I spend more time sleeping during the night  smiley-sweat
Logged


Montevideo, Uruguay
Offline Offline
Newbie
*
Karma: 1
Posts: 30
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I want to make a question:

It is possible with this core (arduino-tiny-0100-0015) to use 3 PWM in attiny85 with analogWrite()?
Logged

Norfolk UK
Offline Offline
Edison Member
*
Karma: 23
Posts: 1320
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I want to make a question:

It is possible with this core (arduino-tiny-0100-0015) to use 3 PWM in attiny85 with analogWrite()?
I asked that very same question and was told yes. I can confirm this as I just programmed one using 3x PWM on Saturday.
Logged

Montevideo, Uruguay
Offline Offline
Newbie
*
Karma: 1
Posts: 30
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This is great, thanks.

I can ask you another question? What are enabled PWM pins in the Attiny85? According to the datasheet, pin3 = OC1B, pin5 = OC0A and pin6 = OC0B/OC1A. Does that mean that I should use D0, D1 and D4 in Arduino pin naming scheme?
Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 33
Posts: 3618
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

less direct answer ... if you look at the tiny core files, pins_arduino.c has the pin assignments for arduino listed as handy ascii drawings for all the chips supported
Logged


Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 116
Posts: 10137
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Well, the ATtiny85 diagram is incomplete...
http://code.google.com/p/arduino-tiny/source/browse/trunk/hardware/tiny/cores/tiny/pins_arduino.c#256

Digital pins 0, 1, and 4 feature PWM.  (PB0, PB1, and PB4)
Logged

Norfolk UK
Offline Offline
Edison Member
*
Karma: 23
Posts: 1320
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This is great, thanks.

I can ask you another question? What are enabled PWM pins in the Attiny85? According to the datasheet, pin3 = OC1B, pin5 = OC0A and pin6 = OC0B/OC1A. Does that mean that I should use D0, D1 and D4 in Arduino pin naming scheme?
Code:
/*         ATtiny85
             --U--
      Reset |1   8| VCC
    (A3) D3 |2   7| D2 (A1)
PWM (A2) D4 |3   6| D1 PWM
        GND |4   5| D0 PWM
             -----
 */
That's what I used  smiley
Logged

Montevideo, Uruguay
Offline Offline
Newbie
*
Karma: 1
Posts: 30
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you very much, all of you.

I love Arduino Tiny, very complete implementation.

By the way, I made a timer-driven Software Serial library for Attiny85, without delay tables. It does not consume CPU time, and can work at any baudrate, even a non-standard. Want to see it?
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 116
Posts: 10137
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Certainly.
Logged

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

can i know is there any other micro controller like Tiny that works with arduino with more pins ??? please help i need to make a circuit without hooking arduino up with it problem is i need more digital pins than Tiny :/ can anyone help me with this thanks alot  smiley
Logged

Norfolk UK
Offline Offline
Edison Member
*
Karma: 23
Posts: 1320
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

can i know is there any other micro controller like Tiny that works with arduino with more pins ??? please help i need to make a circuit without hooking arduino up with it problem is i need more digital pins than Tiny :/ can anyone help me with this thanks alot  smiley
How many pins do you need. You can use standalone version of the same chip in your UNO (ATmega328) or something like the ATtiny84
Logged

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

i need like 10 digital pins if it can be more its perfect
and arduino chip is not a good idea is there any cheap once like Tiny ??? and thanks for suggestion
Logged

Norfolk UK
Offline Offline
Edison Member
*
Karma: 23
Posts: 1320
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i need like 10 digital pins if it can be more its perfect
and arduino chip is not a good idea is there any cheap once like Tiny ??? and thanks for suggestion
http://www.hobbytronics.co.uk/atmel-attiny24a?keyword=tiny
Same chip as used in UNO can be cheap http://compare.ebay.co.uk/like/170872574730?var=lv&ltyp=AllFixedPriceItemTypes&var=sbar&cbt=y
Logged

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

thanks alot for help smiley
and this chip is also easy and same as Tiny right ??
Logged

Norfolk UK
Offline Offline
Edison Member
*
Karma: 23
Posts: 1320
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks alot for help smiley
and this chip is also easy and same as Tiny right ??
The core here http://code.google.com/p/arduino-tiny/ says it supports the tiny24. If you go for the mega328 then that's just the UNO core that's part of Arduino IDE.
Logged

Pages: 1 ... 13 14 [15] 16 17 18   Go Up
Print
 
Jump to: