Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 20046

Re: VirtualWire/RadioHead - Libraries for Arduino IDE & Breakout Board - Boat load of compile errors.

$
0
0

Hey All,

So after a day of hacking up the library, I arrived at a somewhat premature conclusion... I got the sketch to compile without errors, but I'm not convinced it's working properly (more accurately, I get no response from transmission). I still have some variables in my set up, that deviate from the known working version (ie with the Edison, I'm using a level shifter from 1.8V to 5V, but in other, more simple sketches, like simple LED blinks, it seem to work fine.)

 

Conclusion:

Removing the CRC error checking from the library, guts the functionality of the receiver somewhat heavily. CRC is the main way they do error checking in data packets received with ASK protocols.

I posted a thread on the forum for the library, and hopefully they have some useful info. No reply's yet.

 

What I'm trying to accomplish:

I have a remote sensor. When the sensor is activated, it samples the load voltage from its battery, and then sends that value 10 times over 315Mhz packet radio. The receiver is supposed to listen for those packets, and then print them to the serial monitor. (Using CRC... sending the voltage 10 times. It seems triple redundant, but I likes to play it safe!)

 

*** I have 3 options right now.

 

1. Keep focusing on the library, and hope I can figure out why it's not reacting to transmissions. Try porting the hacked library to my UNO and see if I get similar behavior (or lack of).

2. Create my own CRC algorithm and functionality (simplified, of course) which doesn't need any library or special functionality. (sounds difficult but I can mimic CRC with some lazy coding)

3. Use an embedded tiny85 as the receiver micro controller, with full library support, and send that data to the Edison, in some form or an other (spi, Morse code, what ever!). This would also save me from needing a level shifter. I can use a PWM to clamp the output voltage to something the Edison can handle.

 

I'll keep you posted with what I try.

Cheers,


Viewing all articles
Browse latest Browse all 20046

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>