Pages: [1]   Go Down
Author Topic: Comprehensive ATtiny libraries overview?  (Read 2712 times)
0 Members and 1 Guest are viewing this topic.
Palermo
Offline Offline
Full Member
***
Karma: 0
Posts: 174
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everybody,
I'm currently trying to figure out a way to use ATtinys (especially attiny85) with Arduino code possibly using already proved to be working Arduino libraries. Some are working, some are not, some have specifically modified corresponding versions which partially work with attiny, and sadly enough there are many libraries which were adapted to attinies but really don't work at all even if the authors claim they do.
Of course, sometimes it's just because of me that things don't work :-( I have to admit I'm not that good a coder at all.
Fact is, informations regarding ATtiny + Arduino Libraries is inconsistent and badly distributed on the net, so I'm lost.

Anyway, I'm wondering if there's someone out there confident enough to guide me through a working set of libraries that can be efficiently used in order to build a remote RF-Temperature-Light-Sensor. I already have a working sample that uses a standalone ATmega328, I whish to port this design to a smaller ATTiny85 based circuit.
Logged

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


This may help...
http://brohogan.blogspot.com/
Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 144
Posts: 5378
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What sort of libraries?
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Palermo
Offline Offline
Full Member
***
Karma: 0
Posts: 174
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, since I'm going to use a DS18B20 for measuring temperatures and a 433MHz RF transmitter to send data to a base station, I'm going to need a OneWire library for the Temp and a VirtualWire/Manchester family library for the TX.
I've already tried VirtualWireTiny and a couple of Manchester Libs but without success :-(

I know porting an ATmega328 lib to work with an ATtiny85 is not always streamline, still it doesn't look to be extremely difficult either. I wonder if someone has already approached the task of such a port in a more consistent way. A few guidelines could be of much help for anybody wanting to try and do it by themselves.

This is the ATmega328 TX module prototype:

I'd like to make it work with an 8MHz internally clocked ATtiny85, hence reducing even more size and components. I'm positive it can be done :-)
« Last Edit: October 14, 2012, 09:17:50 am by robitabu » Logged

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

I'm working on a similar project, have you had success down-scaling your components?  I'm in the same boat, thinking the Atmega328p is overkill for this application.
Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 144
Posts: 5378
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'd like to make it work with an 8MHz internally clocked ATtiny85, hence reducing even more size and components. I'm positive it can be done :-)

The real impediment is you're waiting for somebody else out there to do it for you. smiley




Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Denmark
Offline Offline
Edison Member
*
Karma: 35
Posts: 1058
Happy Hobbyist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Regarding the DS18B20 and OneWire, I have succesfully used the example code found here on a Attiny85

http://playground.arduino.cc/Learning/OneWire
Logged

Palermo
Offline Offline
Full Member
***
Karma: 0
Posts: 174
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm working on a similar project, have you had success down-scaling your components?  I'm in the same boat, thinking the Atmega328p is overkill for this application.

No mate, I was distracted by my daily job, didn't have much time to spend on that. So I went on with a full flagged ATmega328.

But the idea is still in place. I really need to improve my programming skills though, before I can try and customize the libs like I want them to be. I still think recompiling OneWire and VirtualWire for ATTiny is doable, especially if I'm going to include strictly necessary code into them only. It's just that I'm still not the right person to do that, not yet at least.
Logged

Denmark
Offline Offline
Edison Member
*
Karma: 35
Posts: 1058
Happy Hobbyist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have just tried the new Manchester library mentioned here:

http://mchr3k-arduino.blogspot.dk/2012/02/wireless-sensor-node-part-6.html

It runs flawless on a Attiny85 as TX.

The transmitter is the same as  robitabu use

The receiver:
http://dx.com/p/315mhz-wireless-superregeneration-receiving-module-for-arduino-green-148957?rt=1&p=2&m=2&r=3&k=1&t=1&s=148983&u=148957

« Last Edit: January 15, 2013, 11:33:42 am by Erni » Logged

Sweden
Offline Offline
Sr. Member
****
Karma: 11
Posts: 444
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How about this?

http://cosa-arduino.blogspot.se/2013/04/a-virtual-wire-digital-thermometer.html

Cheers!
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

has anyone got i2c working on the attiny85 lately? TinyWireM doesn't seem to work anymore with IDE 1.0 or at least it doesn't work with any other libraries that expect the Wire library.
Logged

Pages: [1]   Go Up
Jump to: