Ok, meanwhile I also found the Manchester library.
Unfortunately I'm working with Tiny84 but Manchester seems only to support Tiny85.
I tried the examples an they compile with Tiny85 8MHz selected. With Tiny84 I get the partially in the web reported errors:
D:\Arduino\arduino-1.0.1\libraries\MANCHESTER\MANCHESTER.cpp: In function 'void MANRX_SetupReceive()':
D:\Arduino\arduino-1.0.1\libraries\MANCHESTER\MANCHESTER.cpp:196: error: 'TCCR2A' was not declared in this scope
D:\Arduino\arduino-1.0.1\libraries\MANCHESTER\MANCHESTER.cpp:196: error: 'WGM21' was not declared in this scope
D:\Arduino\arduino-1.0.1\libraries\MANCHESTER\MANCHESTER.cpp:197: error: 'TCCR2B' was not declared in this scope
D:\Arduino\arduino-1.0.1\libraries\MANCHESTER\MANCHESTER.cpp:197: error: 'CS22' was not declared in this scope
D:\Arduino\arduino-1.0.1\libraries\MANCHESTER\MANCHESTER.cpp:197: error: 'CS21' was not declared in this scope
D:\Arduino\arduino-1.0.1\libraries\MANCHESTER\MANCHESTER.cpp:198: error: 'OCR2A' was not declared in this scope
D:\Arduino\arduino-1.0.1\libraries\MANCHESTER\MANCHESTER.cpp:199: error: 'TIMSK2' was not declared in this scope
D:\Arduino\arduino-1.0.1\libraries\MANCHESTER\MANCHESTER.cpp:199: error: 'OCIE2A' was not declared in this scope
D:\Arduino\arduino-1.0.1\libraries\MANCHESTER\MANCHESTER.cpp:200: error: 'TCNT2' was not declared in this scope
This means the installation is correct but doesn't compile with Tiny84. =(
I didn't read the whole topic that Erni posted, but it looks like that they had a couple of problems with that library.. Anyway, I've made an update of my own.. I don't have the Attiny84 only 85 so I didn't try the library directly. I've updated the Timers and interrupts and also changed the prescaler because the 128 prescaler isn't supported. It compiles fine under Arduino 1.0.1 with the Attiny core.. Please try it and report any problems..
The MANCHESTER example code now compiles without error. Unfortunately the code does not run on my tiny84, even if I just try a led blink code nothing happens, i.e. the tiny.zip seems to have a bug!? I used the ATtiny84 @ 8 MHz (internal oscillator; BOD disabled) configuration instead of ATtiny84 (internal 8 MHz clock) The latter one works without problems but doesn't compile with MANCHESTER library.
The MANCHESTER example code now compiles without error. Unfortunately the code does not run on my tiny84, even if I just try a led blink code nothing happens, i.e. the tiny.zip seems to have a bug!? I used the ATtiny84 @ 8 MHz (internal oscillator; BOD disabled) configuration instead of ATtiny84 (internal 8 MHz clock) The latter one works without problems but doesn't compile with MANCHESTER library.
Use the standard core together with the library that I've posted above.. And use the option Attiny84 @ 8MHz (Internal Oscillator; BOD Disabled).. Compile, upload and post your results here..
Edit: Here is a sketch I believe will work.. Connect the Data pin of the transmitter to D4 (Physical pin 7). Connect a switch between GND and D2 (physical pin 5). Everytime you press the switch the tiny will transmitt 12345 to the reciever.
If I understand right, the arduino-tiny-0100-0015.zip has no "Attiny84 @ 8MHz (Internal Oscillator; BOD Disabled)" - this is a part of the tiny.zip. The arduino-tiny-0100-0015.zip comes with "ATtiny84 (internal 8 MHz clock)" and does definitely not compile with original MANCHESTER or your update, neither on Arduino 1.0.1 nor on 1.0.4.
What I did was:
Downloading and installing the Arduino 1.0.4 IDE (after it didn't work with 1.0.1)
Selecting "Attiny84 @ 8MHz (Internal Oscillator; BOD Disabled)" compiles with MANCHESTER but does nothing with my Tiny 84V 10 PU, the "ATtiny84 (internal 8 MHz clock)" doesn't compile with MANCHESTER.
By the way: I did nothing with the core subdirectory of MANCHESTER, since the tiny.zip should be sufficient.
Milou:
If I understand right, the arduino-tiny-0100-0015.zip has no "Attiny84 @ 8MHz (Internal Oscillator; BOD Disabled)" - this is a part of the tiny.zip. The arduino-tiny-0100-0015.zip comes with "ATtiny84 (internal 8 MHz clock)" and does definitely not compile with original MANCHESTER or your update, neither on Arduino 1.0.1 nor on 1.0.4.
What I did was:
Donwnloading and installing the Arduino 1.0.4 IDE (after it didn't work with 1.0.1)
Selecting "Attiny84 @ 8MHz (Internal Oscillator; BOD Disabled)" compiles with MANCHESTER but does nothing with my Tiny 84V 10 PU, the "ATtiny84 (internal 8 MHz clock)" doesn't compile with MANCHESTER.
By the way: I did nothing with the core subdirectory of MANCHESTER, since the tiny.zip should be sufficient.
So, where is the error in my chain of actions?
You're obviously doing something wrong because I just REdownloaded the core and opened up the boards.txt and there you have it: attiny84at8.name=ATtiny84 @ 8 MHz (internal oscillator; BOD disabled)
So if you're not seeing this in the IDE then I believe your putting the files in the wrong directories..
Extract the directory "tiny" to "C:\arduino-1.0.1\hardware" (change to your path to the hardware folder of the arduino IDE). You will get the following tree under the hardware folder:
C:\arduino-1.0.1\hardware\tiny\boards.txt
C:\arduino-1.0.1\hardware\tiny\cores
C:\arduino-1.0.1\hardware\tiny\bootloaders
and so on......
Download the updated manchester library and extract the files to "C:\arduino-1.0.1\libraries".. You will get the following tree under the libraries folder:
C:\arduino-1.0.1\libraries\MANCHESTER\MANCHESTER.cpp
C:\arduino-1.0.1\libraries\MANCHESTER\MANCHESTER.h
Try the sketch that I posted in the previous post.
Did not do anything with the cores subdirectory of MANCHESTER library.
Behaviour is as before, i.e. "ATtiny84 (internal 8 MHz clock)" works perfectly for the Tiny84 but doesn't compile with MANCHESTER, "Attiny84 @ 8MHz (Internal Oscillator; BOD Disabled)" compiles with MANCHESTER but doesn't do anything with my Tiny84. Does anyone use the same Tiny: Tiny 84V-10PU. Maybe this is the reason, why it doesn't work?
Milou:
Behaviour is as before, i.e. "ATtiny84 (internal 8 MHz clock)" works perfectly for the Tiny84 but doesn't compile with MANCHESTER, "Attiny84 @ 8MHz (Internal Oscillator; BOD Disabled)" compiles with MANCHESTER but doesn't do anything with my Tiny84. Does anyone use the same Tiny: Tiny 84V-10PU. Maybe this is the reason, why it doesn't work?
After selecting the "board" did you use Tools / Burn Bootloader to ensure the fuses were correct?
Yes, everytime I change the board I first burn the bootloader.
What about the ATtiny 84V-10PU question? I program this by using the Arduino as ISP. The aim for me is also (as mentioned above) to have Attiny84 as TX and Arduino UNO as RX (later also an Attiny84).