Hi all, I'm new here.
Ok.. before the obvious question of "there has been many topics on that, just do a search"... I have to say I did, and my whole day was spent debugging why it is not working, but the other people using the same method is working....
So basically.... I'm now calling for help.. desperate.
1.What I want to do. -Get RSSI values from XBee for Localization. 2. Why use PWM, rather than the ATDB method? - I want more resolution... ATDB command returns range of 256 values only. 3. What have I tried - pulseIn fucntion... and it is causing me much headache as to WHY hasn't it work.
The pulsein function gets the duration.. it is NOT working.... returns 0 values... when I get like a room far.. only it returned 100+- value... when I close in, it suddenly jumps to 0 again.
I thought it's because of pulseIn can't detect the pulses?
From Xbee datasheet,
PWM operates at 12MHz, period is 200us...
This is another baffling stuff to me.. Period according to frequency... 1/12M=0.08333us, Period according to statemet is 200us.. @@