No idea where to place this so just put it here in the lobby
Basically it's a very small project nothing more, I want to emit a 5 MHz frequency signal after i press a button, and light the LED connected to the other PIC as shown in the diagram below
this is just part of the project obviously but need this running before i proceed,
I will need to design the emitter and the receiver myself.
I dont really know how to implement all these since all i know is theoratical but this is what i plan to do :
Emitter :
basically i will output from the pic a waveform signal, whose frequency is let's say 5 MHz and through a highpass filter and should get a sinewave, at least thats the plan.
code for the pic :
void main() {
TRISA=1;
TRISB=0;
while ( 1 ) {
if ( PORTA.F0==1){
PORTB.F0=1 ;
delay_us (12.5) ;
PORTB.F0=0 ;
delay_us (12.5) ;
}
}
}
( 12.5 microseconds is the period for a 5MHz signal )
I need help in choosing the values of R1 and C1, and before anyone saying " that is highschool level .. " , yes i know, exactly.. i forgot all these thats why im asking
Receiver :
RLC circuit whose natural raisonnance frequency is 5MHz
Thats it basically, I will input the sine wave i receive into the analogue pins of the PIC and when voltage is detected output to the other pin of the PIC.
Will this work or am i missing something or I am doing something really stupid ?
I have indeed been far from all these so excuse my mistakes if any
Thanks in advance for any help