Pages: [1]   Go Down
Author Topic: Virtual wire problem  (Read 6639 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi...
My  VirtualWire examples gives de error again and again
In file included from transmitter.cpp:11:
C:\Users\Administrator\Desktop\my project\arduino-1.0-windows\arduino-1.0\libraries\VirtualWire/VirtualWire.h:15:20: error: wiring.h: No such file or directory
In file included from transmitter.cpp:11:
VirtualWire.h:60: error: variable or field 'vw_set_tx_pin' declared void
VirtualWire.h:60: error: 'uint8_t' was not declared in this scope
VirtualWire.h:64: error: variable or field 'vw_set_rx_pin' declared void
VirtualWire.h:64: error: 'uint8_t' was not declared in this scope
VirtualWire.h:68: error: variable or field 'vw_set_ptt_pin' declared void
VirtualWire.h:68: error: 'uint8_t' was not declared in this scope
CVirtualWire.h:72: error: variable or field 'vw_set_ptt_inverted' declared void
VirtualWire.h:72: error: 'uint8_t' was not declared in this scope
VirtualWire.h:77: error: variable or field 'vw_setup' declared void
VirtualWire.h:77: error: 'uint16_t' was not declared in this scope
VirtualWire.h:91: error: 'uint8_t' does not name a type
VirtualWire.h:99: error: 'uint8_t' does not name a type
VirtualWire.h:105: error: 'uint8_t' does not name a type
VirtualWire.h:108: error: 'uint8_t' does not name a type
VirtualWire.h:113: error: 'uint8_t' does not name a type
transmitter.cpp: In function 'void setup()':
transmitter:26: error: 'vw_set_tx_pin' was not declared in this scope
transmitter:27: error: 'vw_set_rx_pin' was not declared in this scope
transmitter:28: error: 'vw_set_ptt_pin' was not declared in this scope
transmitter:29: error: 'vw_set_ptt_inverted' was not declared in this scope
transmitter:30: error: 'vw_setup' was not declared in this scope
transmitter.cpp: In function 'void loop()':
transmitter:41: error: 'vw_send' was not declared in this scope

can anyone help??




Logged

Smithfield, Rhode Island
Offline Offline
God Member
*****
Karma: 3
Posts: 843
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you include the library header? Did you select the correct board?

Post a code example that causes the errors...
Logged

Global Moderator
Melbourne, Australia
Offline Offline
Brattain Member
*****
Karma: 511
Posts: 19350
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Near the start of the VirtualWire.h file you should see this:

Code:
#include <stdlib.h>
#if ARDUINO >= 100
  #include <Arduino.h>
#else
  #include <wiring.h>
#endif

If you only see:

Code:
#include <stdlib.h>
#include <wiring.h>

Then replace that by the lines above.
Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks a lot..  wen i replaced with those lines it worked fine..
can u help me how to transmit bit by bit data that is available in my serial port to the transmitter??
i actually connected my webcam to arduino and got the digital output serially now gotta transmit through RF
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hii..
i used the following code to get digital output from my webcamera..now i need to transmit the data serially to an RF transmitter..
how to do it??


int ledPin=9;
int digPin=3;
int digiPin=10;

void setup()
{
  Serial.begin(9600);
  pinMode(ledPin,OUTPUT);
  pinMode(digPin,INPUT);
  pinMode(digiPin,OUTPUT);
}

void loop()
{
  int value;
  value= digitalRead(digPin);
  Serial.println(value);
  if(value==0)
  digitalWrite(ledPin,LOW);
  else
  digitalWrite(ledPin,HIGH);
 
}
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 639
Posts: 34725
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
used the following code to get digital output from my webcamera.
Do you!!
How does that work then?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i am getting serial data output from my digital webam.. my prob is how to transmit it to an RF transmitter?
Logged

Global Moderator
Melbourne, Australia
Offline Offline
Brattain Member
*****
Karma: 511
Posts: 19350
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Topics merged. They seem to me to be on the same subject.
Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

may i know how to transmit digital data from one arduino to another via RF??
should i store the digital values in a buffer and transmit?
if so how to do it??
Logged

Global Moderator
Melbourne, Australia
Offline Offline
Brattain Member
*****
Karma: 511
Posts: 19350
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't understand that, sorry. Perhaps if you described your hardware...
Logged

http://www.gammon.com.au/electronics

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Offline Offline
Edison Member
*
Karma: 5
Posts: 1730
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It would help to know what kind of rf module you are using, maybe with a datasheet link,
and what are you going to do with that data? It maybe a bit hard to do much with just two arduinos
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i am using RF433Mhz transmitter and receiver..

i dunno how to transmit integer values that appear in my serial port via RF..
there are many examples on how to transmit msgs only..
i think we have to store the integer values in an buffer and send it..
do we have to use a serial buffer?? if so how??
how to set the buffer size??
Logged

ਪੰਜਾਬ
Offline Offline
Edison Member
*
Karma: 12
Posts: 1619
Another year! Alone! :(
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
i dunno how to transmit integer values that appear in my serial port via RF..

one byte after byte transfer happens to whatever you write on Serial there is no special system about it.
for example when you type "Nishant" (N-i-s-h-a-n-t and not Nishant in one go)it goes through Serial RX/TX pins of your arduino to which the transmitter may be connected and if its there then information flows one by one.

Logged

"Real Men can Accomplish  Anything"
-  Website  
- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੂਂ !

Offline Offline
Full Member
***
Karma: 3
Posts: 188
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

so I was running into same problem and tried replacing said lines, however I get a new error:

Code:
error: WProgram.h: No such file or directory
Logged

for(i = 0, i < 820480075, i++){ Design(); Code(); delay(1000); } // hellowoo.com

Pages: [1]   Go Up
Jump to: