phreakre wrote: |
Abso-freakin-lutely brilliant.
That's awesome, M3Dz! |
phreakre wrote: |
Sorry for the long delay in replies, as you can probably tell from the frequency of my posts, I've been busy this week and haven't had much time for the internet, sadly. |
phreakre wrote: |
First, thanks again for the lengthy reply to my earlier statements. I've been thinking about this project a lot the last few days and I was wondering if you thought a 2.4ghz [ the wifi b/g band in the US ] application of this would be hard [ especially w/ regards to interference ] or defeat the purpose of the pieces you chose? Tagging along with my last question about 433 vs 418 mhz, I know that the 2.4ghz range is completely unregulated right now in the US [thus everything seems to operate there in the US ] and I thought maybe all that traffic would mask the presence of a bug like this to a site survey. |
alt.don wrote: |
Cool beans M3Dz. The whole line of sight issue with some of the bugs due to their RF allocation does pose some interesting problems for those tyring to monitor them. |
Code: |
#include <16F84A.h>
#use delay(clock=10000000) #fuses NOWDT,HS, NOPUT, NOPROTECT #use rs232(baud=1200,parity=N,xmit=PIN_A2,rcv=PIN_A3,bits=9) void clockwait(void); void main() { unsigned char byt; // Holds each byte received setup_counters(RTCC_INTERNAL,RTCC_DIV_1); while(1) // Loop forever... { byt=0; // Starting a new data frame clockwait(); // Ignore start bit for(t=0;t<8;t++) // Grab eight bits of data... { clockwait(); byt|=input(PIN_A0)<<t; } clockwait(); // Ignore parity bit clockwait(); // Ignore stop bit putc(byt); // Send byte to the transmitter } // ... rinse and repeat :) } clockwait() { // Waits for the next clock cycle... while(!input(PIN_A1)); // Wait for clock to go HI while(input(PIN_A1)); // Wait for clock to go LO } |
Code: |
while(1) // Loop forever...
{ byt=0; // Starting a new data frame clockwait(); // Ignore start bit unsigned char t ; // VARIABLE DECLARATION for(t=0; t<8; t++) // Grab eight bits of data... { clockwait(); byt|=input(PIN_A0)<<t; |
Code: |
----code snip---- void clockwait(void); void main() { unsigned char byt; // Holds each byte received unsigned char t; // declaration of variable t ----code snip--- |
output generated using printer-friendly topic mod, All times are GMT + 2 Hours