I just bought a RFM12B 433MHz S2 Transceiver and hooked it to an ATtiny 84 and put the jeelabs library in my arduino library folder and when I run an example I get this error:
error: 'Serial' was not declared in this scope
and that error pointed to Ports.h so when I found the 2 line numbers the error pointed to I found these 2 to be the issue...Any ideas as to what is causing the error?
/// Set up with a buffer of specified size InputParser (byte size, Commands PROGMEM*, Stream& =Serial); InputParser (byte* buf, byte size, Commands PROGMEM*, Stream& =Serial);
here is my code:
#include <JeeLib.h>
MilliTimer sendTimer;
const int RF12_BAND = RF12_433MHZ;
const int rxLEDPin = 2;
const int txLEDPin = 3;
I wanted to gift something to a friend by September 25th...it was her birthday.
So I asked around and was told to buy rfm12b and ATTINY84A-20PU 8K flash 20Mhz PDIP14 AVR 8bit
Now I find out after trying to implement serial connection that attiny84, my specific version, might not actually support serial connection...I had spent a fair bit of money on this and time so it is very disappointing to know this.
What I was trying to do was have an attiny with RFm12b, attached to a potentiometer, send the POT's reading to another RFm12b attached to an arduino Uno.
Now not only is my $ wasted, I am running out of time since not many stores around in mississauga, Canada sell arduinos that I can buy to replace the ATTiny to work with serial connection...
Does anyone have any alternatives or thoughts on what I could do to prevent my gift plan from disaster? I would appreciate it a lot!
Sorry about cross posting I was wanting an alternative for hardware from project guidance section and possibly some programming alternatives from this category...
After seeing http://arduino.cc/forum/index.php/topic,85238.0.html it seems that it says I can still send data just not receive it...The weird signs and unfamiliarity on there really confuses me as I have never used that library before...
Does anyone know how to program using that library to send the POT reading from the ATTiny?
The coding for that is driving me so crazy! it doesnt look familiar at ALL
twirap:
So I asked around and was told to buy rfm12b and ATTINY84A-20PU 8K flash 20Mhz PDIP14 AVR 8bit
...
What I was trying to do was have an attiny with RFm12b, attached to a potentiometer, send the POT's reading to another RFm12b attached to an arduino Uno.
It would help us to help you with your birthday gift plans if you gave a bit more information. I don't particularly want to play 20 questions with you. What is this project going to do? So far you have a Uno, an Attiny84 (for some reason) a potentiometer, and a transceiver.
i have 2 RFM12B, one connected to ATTiny, one with Uno. The Pot is connected to Attiny. When the pot is turned its reading is sent from Tiny to Uno. That is all. Nothing Else.
I don't follow the extent of your application, but you mention the problem is sending the pot data from the ATtiny84. I suggest you just follow the HLT tutorial at the link I posted. Then check out the software serial library. These are the two things you'll need to solve the problem of sending data from the attiny. I am not familiar with the JeeLabs rf module so can't help you there.
I suggest that first you try a direct wired connection from the tiny to the uno then you'll be able to tell if that works. After getting that to work, move on to adding the rf modules as a wire replacement.
This thread discusses cores: ATtiny85 music? - #3 by system - Audio - Arduino Forum
but don't get too distracted by that. Just understand that Arduino doesn't have built in support for ATtiny's and you have to add some files to make it recognize the chips. The HLT tutorial guides you through the process nicely.