I know that there is a thread here about a port of a manchester encoding library to Spark, but it would be really nice if someone could port the official VirtualWire library from Arduino to Spark. There are a number of interesting Arduino/AVR-based modules out there that use VirtualWire to communicate over cheap 315MHz and 433MHz transmitters/receivers. It sure would be nice to be able to talk to these modules using VirtualWire on Spark Core/Photon. Any takers?
@BobG, if you are referring to the RadioHead library, that is a big mofo to port! Lots of platform-specific compiler directives. The hardware timer could be done with SparkIntervalTimer or discreet code but not sure. Which modules are you looking at specifically?
I can see that VirtualWire has been superceded by RadioHead, so yes, this is what I was referring to. Sad to hear that it is not easy to port. I was looking at cheap, Arduino based sensors from Sensible Living LLC (https://www.tindie.com/stores/Michael_Phillips/), but there are also weather stations and other such stuff that uses VirtualWire. But if the library can’t be ported, I can always use an ATTiny or such at my end of things to support the wireless protocol and interact with the Spark Core via serial or I2C or some such mutually supported means of wired communication. Thanks for getting back so quickly, even if the answer is not what I would have liked.
@BobG difficult bot not impossible! I’lol take a crack but it will take some time
@peekay123: thanks for the offer. If you are so inclined, this would be great. However, please keep in mind that there is a simple alternative: use VirtualWire on a $2 ATtinyXX and pass through communication to the Spark via serial I/O or I2C. I’m planning on taking this latter route and I wouldn’t want someone to go ahead and try to basically reinvent VirtualWire, unless you were particularly inclined to do so for personal reasons.