Let's Make Robots!

Sending a int using VirtualWire

I've got the basic examples reciever and transmitter working sending the default "hello" message.

But I really want to send a int, for example 45 or another value over RF links. Can't understand how to rewrite it to do so!

 

Anyone care to help me out?

 

Reciever code:

 

#include <VirtualWire.h>

#undef int

#undef abs

#undef double

#undef float

#undef round

void setup()

{

    Serial.begin(9600); // Debugging only

ATM it only wanders around avoids objects with it's IR
Using a
Botty 3! Updates: * 16x2 Serial LCD * Two Sharp-IRs * Temp Sensor & Light Sensor * Driving light, turns on when low light 3 Buttons for menu on lcd … Read more
Simple and yet fun to make arduino bot. Just follows the strongest light source. Using two LDRs, a modified pico and 1xAA and 2xAA battery packs, to give out 4,5 … Read more
Converts the servo for use as a geared motor
It’s always good to have servos that works like a geared motor. That also can go in both direction and speed is adjustable, it’s very handy in robotic project … Read more
Searches for light, and at same time avoids objects.
Using a
My first bot ever, before my Botty 2. This one wanders around, and scans for places with the most light. and avoids objects. It's a very slow bot, so video is … Read more
Price: $24 USD
 http://www.modifiedelectronics.com/mp-01.php  Overview Read more