how to transfer bmp180 data by using RF transmitter to RF receiver module... im using RF 433mhz.. both side i want to display in lcd... can u send me the code
Have a look at the VirtualWire library.
Please don't SHOUT.
in virtual library there is code only for data which we will give directly.... but im asking sensor's data transmission
Why not give the sensor's data "directly"?
I cant get you..sorry
I used this for sending my character,..
#include <VirtualWire.h>
void setup()
{
// Initialize the IO and ISR
vw_setup(2000); // Bits per sec
}
void loop()
{
send("Hello there");
delay(1000);
}
void send (char *message)
{
vw_send((uint8_t *)message, strlen(message));
vw_wait_tx(); // Wait until the whole message is gone
}
But the problem is
I want to read BMP180 Temperature and pressure data,and it to be transmitted in RF.
In 7th line i changed as
send(bmp.readTemperature());
it shows error...
So help me find solution for it...Thank you..
it shows error...
And we have to guess what the error is?
OK, I've written what I think the error is on a slip of paper.
Oh, and code tags. We really like you to use code tags when you post code.
Arduino: 1.6.1 (Windows 7), Board: "Arduino Uno"
mm.ino: In function 'void loop()':
mm.ino:19:27: error: cannot convert 'float' to 'float*' for argument '1' to 'void send(float*)'
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
this is the error
So, assign the return value from "bmp.readTemperature()" to a variable (a float, I assume), and pass the address of the variable to your "send".