Tranmist data over RF from arduino to arduino and then to pc

Hey,
Im struggling (total beginner) how to build following:
I need to put arduino in space where I cannot go nonstop and need to know temp/huminity from there.

I was first thinking bluetooth to pc but Im an idiot and ordered only boards, without bluetooth chips in them >.<
I have 433Mhz Trans/receiver package and arduino uno and mega.

I was thinking to put uno in space with dht11 sensor but I dont know how I make it transmit its readings (Celcius/humi) to Mega and that I could read from mega with computer.

Mega would be connected to pc with usb cable nonstop and I should be able to connect to pc via internet(ok this I know how to do) and read the readings that mega receives.

so:
Uno RF->Mega Receiver connected to pc from where I read data (i think via terminal is best)

Im asking lot but Im in hurry because I need to get this to work over weekend, on monday I need it to work.

I saw lots of tutorials to transmit from arduino to another arduino with lcd screen but I want it to go to pc.

Could some nice soul help me, how to build the circuitry and what libraries/codes do I need?

again im sorry I ask so lot, this would have been easy if my bluetooth chips would have been right ones…

Also I have lots of stuff with bluetooths in them like phones, handsfree etc. I wonder how hard it would be to rip module from that and use on arduino?

Hi,
What range do you need for your radio link?
When you say space you mean up above the atmosphere?

Have you googled cube sats

They will give you better information on requirements for satellites.

You will need a decent RF system from satellite arduino to ground arduino.
The arduino to PC link can be the USB cable and a monitor program.

Tom... :slight_smile:

Uh sorry I explained poorly.
Range is less than 5 metres
by space I meant closed space, like room :slight_smile:

I found this ASK library from radiohead, only is that I have no clue how to use it.

try virtual wire library

with virtualwire i get error
In file included from ask_transmitter.pde:6:0:
C:\Program Files (x86)\Arduino\libraries\VirtualWire/VirtualWire.h:14:20: fatal error: wiring.h: No such file or directory
#include <wiring.h>

But in code this is like:
//simple Tx on pin D12
//Written By : Mohannad Rawashdeh
// 3:00pm , 13/6/2013
//http://www.genotronex.com/
//…
#include <VirtualWire.h>
char *controller;
void setup() {
pinMode(13,OUTPUT);
vw_set_ptt_inverted(true); //
vw_set_tx_pin(12);
vw_setup(4000);// speed of data transfer Kbps
}

void loop(){
controller=“1” ;
vw_send((uint8_t *)controller, strlen(controller));
vw_wait_tx(); // Wait until the whole message is gone
digitalWrite(13,1);
delay(2000);
controller=“0” ;
vw_send((uint8_t *)controller, strlen(controller));
vw_wait_tx(); // Wait until the whole message is gone
digitalWrite(13,0);
delay(2000);

}

so what is problem and where does it get that wiring.h to error?

Ok the library i got first, was missing something.

I'm using the radiohead library for that. It works great.
http://www.airspayce.com/mikem/arduino/RadioHead/
You need two Arduinos, but hey, they're cheap!

    #include <RCSwitch.h>
    RCSwitch mySwitch = RCSwitch();

    void setup() {
      Serial.begin(9600);
      pinMode(3,INPUT);
      mySwitch.enableReceive(1);  // Receiver on inerrupt 1 => that is pin #3
      }

    void loop() {
     
      if (mySwitch.available()) {   
        int value = mySwitch.getReceivedValue();
        if (value == 0) {
          Serial.print(“Unknown encoding”);
        } else
        {
      
          Serial.print(“Received “);
          Serial.print( mySwitch.getReceivedValue() );
          Serial.print(” / “);
          Serial.print( mySwitch.getReceivedBitlength() );
          Serial.print(“bit “);
          Serial.print(“Protocol: “);
          Serial.println( mySwitch.getReceivedProtocol() );
        }
       
        mySwitch.resetAvailable();
       
      }

    }

I get errors:
A

rduino: 1.6.5 (Windows 8.1), Board: "Arduino Nano, ATmega328"

transmitter-dht11.ino:15: error: stray '\' in program
transmitter-dht11.ino:15: error: stray '\' in program
transmitter-dht11.ino:19: error: stray '\' in program
transmitter-dht11.ino:19: error: stray '\' in program
transmitter-dht11.ino:21: error: stray '\' in program
transmitter-dht11.ino:21: error: stray '\' in program
transmitter-dht11.ino:23: error: stray '\' in program
transmitter-dht11.ino:23: error: stray '\' in program
transmitter-dht11.ino:24: error: stray '\' in program
transmitter-dht11.ino:24: error: stray '\' in program
transmitter-dht11.ino.ino: In function 'void loop()':
transmitter-dht11.ino:15: error: 'u201cUnknown' was not declared in this scope
transmitter-dht11.ino:19: error: 'u201cReceived' was not declared in this scope
transmitter-dht11.ino:21: error: 'u201d' was not declared in this scope
transmitter-dht11.ino:21: error: 'u201c' was not declared in this scope
transmitter-dht11.ino:23: error: 'u201cbit' was not declared in this scope
transmitter-dht11.ino:24: error: found ':' in nested-name-specifier, expected '::'
transmitter-dht11.ino:24: error: 'u201cProtocol' has not been declared
stray '\' in program

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.