Pages: [1]   Go Down
Author Topic: Attiny 85 RF  (Read 2777 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 31
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,guys can you tell me how to run virtualWire under attiny85 ?
I am using this RF :
http://www.robotev.com/product_info.php?cPath=1_30&products_id=235
Logged

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


Tinywire ?

http://www.arduino.cc/playground/Code/USIi2c
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 31
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is there something else I can use ?
Logged

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


http://arduino.cc/forum/index.php/topic,63755.0.html
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 31
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well I tried this manchested library, but I always get this error when I try to upload the code in attiny85 :
Code:
#include "MANCHESTER.h"

#define TxPin 1  //the digital pin to use to transmit data

unsigned int Tdata = 32;  //the 16 bits to send

void setup()
{               
MANCHESTER.SetTxPin(TxPin);      // sets the digital pin as output default 4
}//end of setup

void loop()
{
 //Tdata +=1;
 MANCHESTER.Transmit(Tdata);
 delay(100);
}//end of loop

Code:
D:\arduino-0022\libraries\MANCHESTER\MANCHESTER.cpp: In constructor 'MANCHESTERClass::MANCHESTERClass()':
D:\arduino-0022\libraries\MANCHESTER\MANCHESTER.cpp:42: error: 'TCCR2A' was not declared in this scope
D:\arduino-0022\libraries\MANCHESTER\MANCHESTER.cpp:43: error: 'TCCR2B' was not declared in this scope
D:\arduino-0022\libraries\MANCHESTER\MANCHESTER.cpp:44: error: 'TIMSK2' was not declared in this scope
D:\arduino-0022\libraries\MANCHESTER\MANCHESTER.cpp: In member function 'unsigned int MANCHESTERClass::Receive()':
D:\arduino-0022\libraries\MANCHESTER\MANCHESTER.cpp:85: error: 'TCNT2' was not declared in this scope
D:\arduino-0022\libraries\MANCHESTER\MANCHESTER.cpp:126: error: 'TCNT2' was not declared in this scope


« Last Edit: May 02, 2012, 02:49:14 am by mitko » Logged

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

The TX part of the example is meant to be used with a 328 processor and the RX part on a attiny85.
What you are trying is to use 328 code on a Attiny85 (the tny dos not have a Timer2)

« Last Edit: May 02, 2012, 03:52:18 am by Erni » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 31
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok so then how to upload succesufully the code on attiny85 then ?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 31
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Someone ?
Logged

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


One reason for the lack of response is the inappropriate section you chose.  Let's try it here...
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 31
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok,thank a lot , and sorry for my mistake
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 31
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nobody ... ?
Logged

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

I am using a different transmitter (433MHz from sparkfun) but I've had luck with the components listed below.

- IDE 1.0.5
- Virtual Wire 1.16
- ATtiny Cores from here
    -rename text file to boards.txt
- Load the bootloaded for 8MHz from the boards menu once the cores are installed in your sketch/hardware/attiny folder

Check out this link for help if you haven't seen it. I didn't have luck with their cores though.
Logged

Pages: [1]   Go Up
Jump to: