can someone please help me using HMTR 433Mhz TTL module with two arduino unos
I tried using HopeRF library and Virtualwire library,,,but while compiling it shows blah blah blah was not declared in this scope...why i am seeing this problem,,,,,,plz help me with a proper solution,,,,,i am new to the arduino and this forum
i am new to the arduino and this forum
That's no excuse for not posting code and error messages. We can't possibly tell you what the problem is without seeing both, unless you consider "Well, declare blah blah blah properly" helpful. I didn't think so.
I used the example code for client provided by virtual wire library. while compiling it shows "vw_set_ptt_inverted" was not declared in this scope. I used the following code.
#include <VirtualWire.h>
void setup()
{
Serial.begin(9600); // Debugging only
Serial.println("setup");
// Initialise the IO and ISR
vw_set_ptt_inverted(true); // Required for DR3100
vw_setup(2000); // Bits per sec
vw_rx_start(); // Start the receiver PLL running
}
void loop()
{
const char *msg = "hello";
uint8_t buf[VW_MAX_MESSAGE_LEN];
uint8_t buflen = VW_MAX_MESSAGE_LEN;
digitalWrite(13, true); // Flash a light to show transmitting
vw_send((uint8_t *)msg, strlen(msg));
vw_wait_tx(); // Wait until the whole message is gone
Serial.println("Sent");
digitalWrite(13, false);
// Wait at most 200ms for a reply
if (vw_wait_rx_max(200))
{
if (vw_get_message(buf, &buflen)) // Non-blocking
{
int i;
// Message with a good checksum received, dump it.
Serial.print("Got: ");
for (i = 0; i < buflen; i++)
{
Serial.print(buf*, HEX);*
- Serial.print(" ");*
- }*
- Serial.println("");*
- }*
- }*
- else*
- Serial.println("Timout");*
}
What version of the IDE are you using? What version of VirtualWire do you have? Look in the CHANGES file.
With 1.0.4 of VirtualWire and 1.0.3 of the Arduino IDE, the only "error" I get with your code (after fixing the forum mangling because you didn't post the code correctly) is:
Binary sketch size: 6,292 bytes (of a 258,048 byte maximum)
I am using VirtualWire 1.9 and my Arduino IDE is 1.0.4. Even if I simply go to examples->virtualwire->client and try to compile the given code in example in my IDE, I get the same error message("vw_set_ptt_inverted" was not declared in this scope). How can I solve this problem? Please kindly help me
Is there any other way to use HMTR 433 TTL with arduino uno without using any library file,,,,,I am using HMTR for gesture recognition car. I am using adxl335 accelerometer and flex sensors in my hand and by using HMTR i want to control the car using my hand movements.