RadioHead not working on attiny85

Hi all.
I'm trying to have an attiny85 as a RF transmitter using RadioHead.
I've been successful using an Arduino pro mini, but when switchig to the attiny85, it doesn't send the message.
According to RadioHead (RadioHead: RadioHead Packet Radio library for embedded microprocessors) it supports attiny.

I've tried with both Arduino IDE 1.0.5, and 1.6.6.
The sketch is compiling and uploading as it should, but when running, it hangs up on either the driver.send, or the driver.waitPacketSent.
I know this as the loop doesnt loop at all. Any ideas?

See code below:

#include <RH_ASK.h>
RH_ASK driver(2000, 2, 0);//TX on pin 0

int LED = 3;
void setup()
{
  pinMode(LED, OUTPUT);
}

void loop()
{
    const char *msg = "Hello World!";
    //delay(1000);
      digitalWrite(LED, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(LED, LOW);    // turn the LED off by making the voltage LOW
  driver.send((uint8_t *)msg, strlen(msg));
    driver.waitPacketSent();
}

Can you try different pins?

Hi,

it's the same problem for me. I tried different Pins for the transmitter.
Always the same problem. After calling "driver.init();" the program seems to freeze.
The code works perfect with the Arduino uno, nano and pro mini.
But I want to build up a battery powered motion and temperatur sensor. Therefore the ATTINY84 need less power.

Did anybody get the radiohead library working with the ATTINY and the cheep radio transmitter ?

#include <RH_ASK.h>

#define RH_ASK_MAX_PAYLOAD_LEN 30
#define LED_PIN  0
#define RADIOTRANSMITTER_PIN 7

RH_ASK driver(2000, 6, RADIOTRANSMITTER_PIN);    // Transmitter initialisieren

void setup() {
	//LED Pin
	pinMode(LED_PIN, OUTPUT);
	digitalWrite(LED_PIN, HIGH);


	//*******Radiotransmitter *********
	driver.init();
}

I'm trying the same thing, not working. seems that the bit rate is not correct for tiny(With internal 8mhz).

Hi, try to use the sei () function just after RadioHead driver initialization...

panservolvo:
Hi all.
I'm trying to have an attiny85 as a RF transmitter using RadioHead.
I've been successful using an Arduino pro mini, but when switchig to the attiny85, it doesn't send the message.
According to RadioHead (RadioHead: RadioHead Packet Radio library for embedded microprocessors) it supports attiny.

I've tried with both Arduino IDE 1.0.5, and 1.6.6.
The sketch is compiling and uploading as it should, but when running, it hangs up on either the driver.send, or the driver.waitPacketSent.
I know this as the loop doesnt loop at all. Any ideas?

See code below:

#include <RH_ASK.h>

RH_ASK driver(2000, 2, 0);//TX on pin 0

int LED = 3;
void setup()
{
 pinMode(LED, OUTPUT);
}

void loop()
{
   const char *msg = "Hello World!";
   //delay(1000);
     digitalWrite(LED, HIGH);   // turn the LED on (HIGH is the voltage level)
 delay(1000);              // wait for a second
 digitalWrite(LED, LOW);    // turn the LED off by making the voltage LOW
 driver.send((uint8_t *)msg, strlen(msg));
   driver.waitPacketSent();
}

Hello all,

did somebody get this working?
I have the same problem, sei() was not working for me.