Pages: 1 ... 14 15 [16] 17 18 ... 22   Go Down
Author Topic: Arduino Tiny  (Read 63293 times)
0 Members and 1 Guest are viewing this topic.
Montevideo, Uruguay
Offline Offline
Newbie
*
Karma: 1
Posts: 30
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is my software serial library for Arduino Tiny: http://www.pablogindel.com/images/SoftSerial.rar

Instructions in usage.txt file.

Regards,
P.G.
Logged

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

I have not really dug into it since its late, but what advantages are you seeing over the normal software serial library (I use soft serial on the 85 quite a bit)
Logged


Global Moderator
Italy
Offline Offline
Brattain Member
*****
Karma: 335
Posts: 23123
Logic is my way
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

A question redarding IDE 1.5.1
Both Arduino 1.0.x and 1.5 have been merged into IDE 1.5.1, that you can use to compile for Arduino UNO/MEGA/Leonardo and the new DUE.
I've tried to put the Tiny core inside the /hardware/arduino/avr/cores folder but it seems that it doesn't work. When I open the Tools/Boards menu I don't find the entries for the Tiny MCUs...

Logged


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

Both Arduino 1.0.x and 1.5 have been merged into IDE 1.5.1 ...

My attitude is, when it shows up here... http://arduino.cc/en/Main/Software ...it's official.  smiley-wink

Quote
I've tried to put the Tiny core inside the /hardware/arduino/avr/cores folder but it seems that it doesn't work. When I open the Tools/Boards menu I don't find the entries for the Tiny MCUs...

That's not good.  I'll try to spend some time on it this weekend.  Thanks for the heads-up.
Logged

Leeds, UK
Offline Offline
Edison Member
*
Karma: 80
Posts: 1730
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I got it working fine with 1.5.1. I will post where I put everything this evening.
Logged

~Tom~

Global Moderator
Italy
Offline Offline
Brattain Member
*****
Karma: 335
Posts: 23123
Logic is my way
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

My attitude is, when it shows up here... http://arduino.cc/en/Main/Software ...it's official.  smiley-wink
Yeah, but having both the UNO and the DUE, I needed to use the 1.5. When the 1.5.1 has been released, I read that it merged both branches, so I tried to program my Tinys with it.

Quote
That's not good.  I'll try to spend some time on it this weekend.  Thanks for the heads-up.
Thanks  smiley-wink

I got it working fine with 1.5.1. I will post where I put everything this evening.
Uhm.. good news for me.  smiley-grin
Logged


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

I have not really dug into it since its late, but what advantages are you seeing over the normal software serial library (I use soft serial on the 85 quite a bit)

Advantages are:

- light weight
- less CPU usage
- you can use at *any* baudrate (i.e. 3600, 5115, etc.). Particularly suitable for low baudrates, since it not implement delay tables.
- better start and stop bit detections (i think... standard software serial library tends to hang for a long time when it loses sync and data arrives continuously).
- receive only (this may not be an advantage).
Logged

Leeds, UK
Offline Offline
Edison Member
*
Karma: 80
Posts: 1730
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Put the tiny folder in the usual place (under the hardware folder). Then move the contents of the tiny folder into a subfolder named 'avr'. So for example my tiny files are located at:

...\arduino-1.5\hardware\tiny\avr

Then, copy the "platform.txt" file from:
...\arduino-1.5\hardware\arduino\avr\platform.txt
To:
...\arduino-1.5\hardware\tiny\avr\platform.txt

And voila, that should be all it takes. Restart the IDE and away you go.

The good news is that my fix for tiny85's and tiny84's to prevent errors when the compiled size is greater than 4kB still works in Arduino 1.5.1:
https://github.com/TCWORLD/ATTinyCore/tree/master/PCREL%20Patch%20for%20GCC
Logged

~Tom~

Global Moderator
Italy
Offline Offline
Brattain Member
*****
Karma: 335
Posts: 23123
Logic is my way
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Put the tiny folder in the usual place (under the hardware folder). Then move the contents of the tiny folder into a subfolder named 'avr'. So for example my tiny files are located at:

...\arduino-1.5\hardware\tiny\avr

Then, copy the "platform.txt" file from:
...\arduino-1.5\hardware\arduino\avr\platform.txt
To:
...\arduino-1.5\hardware\tiny\avr\platform.txt

And voila, that should be all it takes. Restart the IDE and away you go.
I's thinking that the /avr folder should have some role in this, you confirm that I've seen right.  smiley-wink
This evening I'll try your suggestions  smiley-wink

Quote
The good news is that my fix for tiny85's and tiny84's to prevent errors when the compiled size is greater than 4kB still works in Arduino 1.5.1:
https://github.com/TCWORLD/ATTinyCore/tree/master/PCREL%20Patch%20for%20GCC
I don't have this issue because I use Linux with the last 3.4.1 toolchain from Atmel.
Logged


Global Moderator
Italy
Offline Offline
Brattain Member
*****
Karma: 335
Posts: 23123
Logic is my way
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@Tom Carpenter:
your solution worked fine for me, too. Thnak you  smiley-wink

@Coding Badly:
if Tom has found the right place where to put the folders, is there any other issue between the actual version of the Tiny core (0100-0015) and the Arduino IDE 1.5.1?
Logged


Global Moderator
Italy
Offline Offline
Brattain Member
*****
Karma: 335
Posts: 23123
Logic is my way
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@Tom Carpenter:
your solution worked fine for me, too. Thnak you  smiley-wink

OK, I was able to compile but I was NOT able to upload the sketch on a Tiny84. There's something else to change...
Logged


Leeds, UK
Offline Offline
Edison Member
*
Karma: 80
Posts: 1730
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh right yeah forgot that. You have to now specify the upload tool in the boards.txt file.

To do that you need to add these lines for each entry:

attiny84at1.bootloader.tool=avrdude
attiny84at1.upload.tool=avrdude


Also, if you haven't already got one, you may have to copy the programmers.txt file from the arduino folder as well. I am not sure that this is needed though as it results in duplicate programmers in the IDE programmer window.
Logged

~Tom~

Global Moderator
Italy
Offline Offline
Brattain Member
*****
Karma: 335
Posts: 23123
Logic is my way
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Uhmm... seems to me that it's easier for now to keep both 1.0.2 and 1.5.1 versions of the IDE  smiley-wink
Logged


Leeds, UK
Offline Offline
Edison Member
*
Karma: 80
Posts: 1730
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

To make things easier, I have attached my boards.txt file.

This one also subdivides the entries into the new board/processor menus.

* boards.txt (26.51 KB - downloaded 58 times.)
Logged

~Tom~

Global Moderator
Italy
Offline Offline
Brattain Member
*****
Karma: 335
Posts: 23123
Logic is my way
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, Tom. But the problem isn't the entries that have to be put into boards.txt but the double entries that you said me they appear in the menus.
Logged


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