corpsrelop.blogg.se

How to add virtual wire library to arduino
How to add virtual wire library to arduino





It should blink and print the "hello" message via serial but its not doing that. Though I still don't know if the transmitter is acutally sending something, I have my ADK hooked up to the reciever and its running the reciever example from the VirtualWire libary.

how to add virtual wire library to arduino

Ok so the LED problem was super simple, I just didn't specified PIN13 as output. Vw_wait_tx() // Wait until the whole message is goneĪnd here two pictures of the hook up to the arduino: vw_set_ptt_inverted(true) // Required for DR3100ĭigitalWrite(13, HIGH) // Flash a light to show transmitting This is the code of the transmitter example from the VirtualWire libary #include The model name of the transmitter is QAM-TX2-433-ND but I guess this is more of a code than a hardware problem? Though here is the datasheet of the transmitter if thats of any help: I have honestly no idea why this isn't working. When I reset the Arduino UNO I can see the TX LED blink once for a very short amount of time (which is the serial.print I guess) and after that the onboard LED is just constantly glowing.

how to add virtual wire library to arduino how to add virtual wire library to arduino

Now when I understand the sketch correctly this should send "hello" in an infinite loop and blink the onboard LED everytime. I'm using Arduino IDE 1.0.1 with VirtualWire 1.9 (the one coming with 1.0.1 didn't compile). I'm trying to get an RF transmitter/receiver pair from digikey to work with my Arduino Uno/Mega ADK.īut it seems neither the transmitter nor the receiver example are working with any of my Arduinos.Īt the moment I focused on the transmitter for now (hooked up the UNO) as its more obvious to tell when its working or not.







How to add virtual wire library to arduino