Italy
Offline
Brattain Member
Karma: 219
Posts: 16470
Don't know what I do
|
 |
« Reply #210 on: September 24, 2012, 04:57:19 am » |
Oh... crap...  That was a test code I wrote this night.... I think it's better if I spend more time sleeping during the night 
|
|
|
|
|
Logged
|
|
|
|
|
Montevideo, Uruguay
Offline
Newbie
Karma: 1
Posts: 30
Arduino rocks
|
 |
« Reply #211 on: November 05, 2012, 11:16:02 am » |
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
Edison Member
Karma: 23
Posts: 1320
|
 |
« Reply #212 on: November 05, 2012, 11:23:15 am » |
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
Newbie
Karma: 1
Posts: 30
Arduino rocks
|
 |
« Reply #213 on: November 05, 2012, 11:46:30 pm » |
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
Faraday Member
Karma: 33
Posts: 3621
@ssh0le
|
 |
« Reply #214 on: November 06, 2012, 12:04:59 am » |
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
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
Global Moderator
Dallas
Online
Shannon Member
Karma: 118
Posts: 10157
|
 |
« Reply #215 on: November 06, 2012, 12:40:49 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Norfolk UK
Offline
Edison Member
Karma: 23
Posts: 1320
|
 |
« Reply #216 on: November 06, 2012, 02:58:38 am » |
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?
/* 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 
|
|
|
|
|
Logged
|
|
|
|
|
Montevideo, Uruguay
Offline
Newbie
Karma: 1
Posts: 30
Arduino rocks
|
 |
« Reply #217 on: November 07, 2012, 12:17:18 am » |
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
Online
Shannon Member
Karma: 118
Posts: 10157
|
 |
« Reply #218 on: November 07, 2012, 12:47:57 am » |
Certainly.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #219 on: November 07, 2012, 07:29:45 am » |
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 
|
|
|
|
|
Logged
|
|
|
|
|
Norfolk UK
Offline
Edison Member
Karma: 23
Posts: 1320
|
 |
« Reply #220 on: November 07, 2012, 07:47:22 am » |
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  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
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #221 on: November 07, 2012, 07:55:54 am » |
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
|
|
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #223 on: November 07, 2012, 08:17:48 am » |
thanks alot for help and this chip is also easy and same as Tiny right ??
|
|
|
|
|
Logged
|
|
|
|
|
Norfolk UK
Offline
Edison Member
Karma: 23
Posts: 1320
|
 |
« Reply #224 on: November 07, 2012, 09:11:39 am » |
thanks alot for help 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
|
|
|
|
|
|