Hello Everyone,
I might need a piece of advice here as I'm little bit stuck.
I am working on a small project where I need utilize attiny85, Uno and 433Mhz transmit/receive modules.
Objective is to send a string (or char array) from Arduino Uno to attiny85. Attiny part is mandatory as I need a smallest form factor possible and power efficiency.
After short surfing, I see there are few choices of libraries, I mostly came across with Manchester and RadioHead(former VirtualWire).
I decided to go for Manchester due to its simplicity and small size.
I have managed to compile successfully the transmitter and receiver part on Attiny85s. I can send char array from Attiny85 and receive it (LED blink) on another Attiny85 (used same exact code as in examples). both are clocked at 1Mhz (8Mhz did not work), 600 baud rate, powered from 5V supply. I got a decent distance as well with antennas attached, I was able to get 99% of messages through several concrete walls between 2nd floor and hallway, ~30 meters, so LoS should have been even better. But when I tried transmitter sketch on Arduino Uno (of course adjusting the pins) - silence, nothing received.
I posted full description of the issue here, but I am afraid it is no longer maintained, I see last commit 2 years ago.
Anyway, this pushed me also to give a try to RadioHead library. I see some difficulties while people try to compile it, that it needs to tune up, very sensitive to clock speed, uses the same timer as for milis(), occupies almost 90% of Attiny85 ram, etc... But I am stuck on compilation part.
I can compile the transmitter code on Arduino Uno, no problems. I noticed that default initialization of RH_ASK driver does not point to PIN 11 and 12 for Tx and Rx as it is described in RadioHead manual. I assumed it as I have around 0 volts on these pins while code is running. Instead I included PIN arguments like RH_ASK driver(2000, 11, 12, 0) and I see small spikes round 1.2volts now. Ok, Arduino part is more or less ready, proceeding with the receiver .
In RadioHead.h I see a comment that tiny core from spencekonde did not go well and they recommended another one. Here’s the list I tried so far:
- http://drazzy.com/package_drazzy.com_index.json
- https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json >> Recommended by RadioHead team
- Google Code Archive - Long-term storage for Google Code Project Hosting.
My problem is, no matter which core I try, I am getting flooded by errors like below(full log attached):
error: 'uint8_t' does not name a type
error: 'NULL' was not declared in this scope
error: 'millis' was not declared in this scope
First thing I tried was adding #include <stdint.h> to my receiver sketch, did not help, same error. Tried to add it to the header files directly where the error was originating from - same thing. I was wondering if SPI declaration was messing things up, but as I read RadioHead docs, it is already taken into consideration for Attinys and should be handled. Perhaps my libraries are not organized well?
At this moment I am wondering if there is any stable supplement to above 2 libraries that I can use on long run? First seems OK but I am afraid I might face support issues once I have final product, second seems more sophisticated but too heavy for my task + I'm stuck on compiling.
I’m using IDE 1.8.12
Perhaps I missed some of the info I should have provided, let me know I will gladly fill in.
For now I'm looking for some advices, maybe any of you had same issues?
thanks
Sergi
error.log.txt (32 KB)