Pages: [1]   Go Down
Author Topic: simple way to transmit data with virtualwire (433mhz transmitters)  (Read 505 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Sr. Member
****
Karma: 0
Posts: 255
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm trying to figure out how to do this but it's not clicking for some reason, maybe because of all the extra code or whatnot, but I am looking for a simple way to transmit data, namely numbers from variables, through virtualwire. I have no clue how to set it up though, especially on the receiving side.
Logged

Australia Mate!
Offline Offline
Sr. Member
****
Karma: 2
Posts: 269
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The Teensy examples are easy to follow;
http://www.pjrc.com/teensy/td_libs_VirtualWire.html
Logged

Offline Offline
Sr. Member
****
Karma: 0
Posts: 255
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The Teensy examples are easy to follow;
http://www.pjrc.com/teensy/td_libs_VirtualWire.html

thatis helpful, however, how do I decode what is being received into the actual letters/numbers and put them in a variable so I could just say Serial.print(message) and it would work?
Logged

Offline Offline
Edison Member
*
Karma: 57
Posts: 2078
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you take a look at the examples ?
http://www.airspayce.com/mikem/arduino/
Logged

Australia Mate!
Offline Offline
Sr. Member
****
Karma: 2
Posts: 269
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The received data is already in the variable buf & is being printed in HEX

I'm sure you can work it out since you now know why you are receiving numerals instead of characters.

Experiment!
Logged

Kuala Lumpur, Malaysia
Offline Offline
Full Member
***
Karma: 4
Posts: 175
Anything is possible
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm trying to figure out how to do this but it's not clicking for some reason, maybe because of all the extra code or whatnot, but I am looking for a simple way to transmit data, namely numbers from variables, through virtualwire. I have no clue how to set it up though, especially on the receiving side.

Hi, why don't you try using Nordic nRF24L01+ radios, they are really cheap but powerful ... and lots of h/w support / drivers / libs :- 2 libs for arduino, a few for AVR & RPi, and I read there r drivers for the MSP430 Launchpad from TI too..

My initial idea was also to use these 433Mhz radio one way transmission commonly used in auto-gate / garage door... but find it too hard to use and wasted too much of my time... and it is only one TX to one RX only...

Logged

Australia Mate!
Offline Offline
Sr. Member
****
Karma: 2
Posts: 269
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The transmit code is sending hello & a count for every line.
Code:
char msg[7] = {'h','e','l','l','o',' ','#'};
The msg is 7 bits long.

We are receiving, h e l l o  +1 in hexadecimal from msg that is now in buf.
Quote
Serial.print(buf, HEX);

We could just print what's in buf & quote out the counting of lines.
Quote
Serial.print(buf)

Stanley the nrf modules are much harder to work with, i last counted 6 different libraries, they are harder to use unless you are just copying the hardware & software setups.
Logged

Pages: [1]   Go Up
Jump to: