Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Interfacing / Re: Arduino wireless communication on: November 02, 2008, 01:04:00 pm
Hi

VirtualWire is excellent and I have got the example transmit tx / Receive rx circuit working well, but I have tried to adapt the code to transmit a temperature reading from a Dallas 18B20. If I comment out the dallas code the Virtual wire works fine (Transmitting OK to the receiver), and if I comment out the VirtualWire the Dallas code works fine (reading Temperatures), but together I get wrong readings from the Dallas (E.g. 58C or -212C etc), which is connected to Pin 6.

it seems to be this line corrupting the temperature readings:

 vw_send((uint8_t *)msg, strlen(msg));

Am I missing something?

Any ideas?

Thanks



2  Forum 2005-2010 (read only) / Development / Re: new wireless comms module on: November 01, 2008, 05:15:27 am
Hi

I found this post
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1222985221/2

and added the extra lines under virtualwire.h and it now compiles :-)

#include <VirtualWire.h>
#undef int
#undef abs
#undef double
#undef float
#undef round

 :smiley

thanks
3  Forum 2005-2010 (read only) / Development / Re: new wireless comms module on: November 01, 2008, 04:51:50 am
(as this is my first post I could only post an image in my second post)



Thanks in advance
4  Forum 2005-2010 (read only) / Development / Re: new wireless comms module on: November 01, 2008, 04:50:37 am
Hi MikeM

Thanks for posting the VirtualWire libary it looks fantastic. I am having a few problems compiling it, but I am sure this is an IDE problem and not VirtualWire.

Which IDE do you use for the ATMEGA 168 Arduino

I am using Arduino 0012 Alpha IDE, I copied the Virtual Wire Library to

C:\SU\Arduino\arduino-0012\hardware\libraries\VirtualWire

then opened the client.pde

when i try and compile I get the following error:

(see next post for image)  -------->
Pages: [1]