RF Transmitter and Receiver

62,433

297

53

Introduction: RF Transmitter and Receiver

About: Student of Mechatronics

In this project, I will use RF modules with Pic 16f628a. It will be a short tutorial about rf. After you learn ho rf modules communicate with each other you can use these modules with pic microcontroller, ardunio or any microcontroller. I controlled RGB LEDs but If you can control many thing motors or relays.

Step 1: Short RF Lesson

What is RF?

In short term, radio frequency (RF) refers to the rate of oscillation of electromagnetic radio waves in the range of 3 kHz to 300 GHz, as well as the alternating currents carrying the radio signals.

How does it work?

We need two modules which are transmitter and receiver. Our control our data 1 and 0(we use the microcontroller in this project) and transmitter send these data in Seri way in radio waves. After ıt started broadcasting, receiver collect these radio waves and it gives as 1 and 0 again.

Why do we use it?

If we want to communicate some devices without any wire we RF modules is one of the ways.

Step 2: Circuit Schemas

In the first circuit is the transmitter second is receiver.I controlled 3 RGB led by this modules.

Step 3: Component List

Transmitter Part:

  1. pic16f628a
  2. 18pin dip socket
  3. 1n4001 diode
  4. lm7805
  5. 220 uf 16v electrolytic cap
  6. 1 uf cap
  7. 330ohm ^1
  8. 4.7k ohm ^1
  9. Rf transmitter (433 MHZ)

  10. 10k ohm ^4
  11. 4 push button
  12. 5mm led
  13. male header

Receiver Part:

First eight is the same

9.RF receiver (433 MHZ)

10. 5mm RGB led ^3

11.led

12male header

Note:RF modules must be same frequency.

Rf modules link of rf modules

Step 4: Printed Circuit Board

I love using PCB instead of prototype PCB(including many holes), In my opinion, this way is more healthy for circuits. After designing the circuits I printed on the boards but there are some tiny nets so I needed to fix some nets. After fixing operations they go to in acid. Then they are ready for next step.

Step 5: Solder Mask !

Its optional part.

Solder mark has some difficulties but otherwise, it has some benefits.Your PCB can be healthy very long time and short circuit risks become increases.You can find many resources about how can you make solder mask at home.After the solder mask operations, PCB's go drilling operations.

Step 6: Soldering

At last, we soldering the components on PCB. My advice you should solder dip socket first but attach the pics and rf modules after soldering. You should be very careful about short circuits. Besides, rf modules can be effected static electric very easily.

Step 7: Codding

I used PIC CCS for programming. If you have any question about anything just ask it, please.

First, we choose the baudrate you should look that for rf modules datasheet then we define transmitter an receiver pins. Parity is about our data is odd or even but we don't use it in this project, at last, we choose 1 our stop bit.

Preamble Function:

If we try to use the same many RF modules in the same area it will be some provision. We prevent this problem with preamble function. We define an identification for our modules and sent it receiver module.

We can see this function on the oscilloscope.First two pic belong transmitter and second modules belong receiver circuit

Step 8: RUN!

In this project main idea was RF communication thus I did not use qualification pic or oscillator. If you want to obtain better communication you should use high-frequency crystal oscillator and high-frequency RF modules. You should use an antenna.

Be the First to Share

    Recommendations

    • The 1000th Contest

      The 1000th Contest
    • Battery Powered Contest

      Battery Powered Contest
    • Hand Tools Only Challenge

      Hand Tools Only Challenge

    53 Discussions

    0
    sanketmore164
    sanketmore164

    6 months ago

    HELLO,
    IM TRYING TO MAKE THIS PROJECT,
    BUT IT NOT WORKING
    IM USING BOTH TRANSMITER AND RECEIVER CIRCUIT IN SAME BREADBOARD,AND SAME POWER SUPPLY,PLZ HELP ME WITH THIS,,,WHAT CAN I DO,

    IMG20200424205914.jpg
    0
    OEsirik
    OEsirik

    Reply 6 months ago

    Are you sure same transmitter and receiver pinout?

    0
    sanketmore164
    sanketmore164

    Reply 6 months ago

    yes,as per your circuit diagram,i make same circuit.

    0
    sanketmore164
    sanketmore164

    Reply 6 months ago

    problem solved

    0
    sanketmore164
    sanketmore164

    Reply 6 months ago

    thanku for this project

    0
    sml.bustos
    sml.bustos

    Question 1 year ago

    Great job, man !
    But... There is not decode section of preamble in the "rf receiver.c"

    2
    NavodJ
    NavodJ

    1 year ago on Step 7

    Can you give a clear photo of circit board

    0
    mina_adel_85
    mina_adel_85

    1 year ago

    kindly advice please , can we use the above circuit for controlling DC motors

    0
    OEsirik
    OEsirik

    Reply 1 year ago

    Yes, you can use with little bit update.

    0
    MeanFacedP
    MeanFacedP

    1 year ago on Step 2

    Could this be used to repeat a control signal from a RGB LED Strip? I'm trying to think of ways to create synchronized lighting while connected to different power sources. I have been trying to check into Zigbee or Zwave, but i'm not seeing how it could be setup. From everything I have seen with RF it has been setup as a control from one to the other. Though, in simple IR usage now that I think about it the controllers aren't set to independent control and would take the same remote. So multiple IR receivers or blasters would work.

    0
    OEsirik
    OEsirik

    Reply 1 year ago

    I guess yes, it can be use for that

    0
    Umer-Ansari
    Umer-Ansari

    Question 1 year ago

    How do i upload the code?

    0
    OEsirik
    OEsirik

    Answer 1 year ago

    I use brenner8 to upload it you can use that

    0
    OEsirik
    OEsirik

    Answer 2 years ago

    It is in the receiver cod's main part.

    0
    Hans van Leijden
    Hans van Leijden

    Reply 2 years ago

    I can not find it in the downloaded version

    0
    christochandy
    christochandy

    2 years ago

    Very poor description. You didn't clearly given the component list (like IC, Resistor, Capacitor specifications)

    0
    OEsirik
    OEsirik

    Reply 2 years ago

    What part didnt understand in components?

    0
    onion2
    onion2

    2 years ago

    What do you think about the oscilloscope used in your pictures ? I hesitate to buy one

    And thank you for your article, it's very useful

    0
    AlphaOmega1
    AlphaOmega1

    Reply 2 years ago

    For a scope to keep in your pocket and for the price, they are great. BUT get an original there are many copies that don't work well.

    I was given a kit a few years back. I had a few issues, but the manufacturer was very helpful (and open to suggestions). I don't use it very often, but find it good enough that I don't bother to dust off my Philips CRT scope.

    BTW, a 'scope requires a certain level of skill and knowledge to use and get meaningful results from. But a very powerful tool.

    I also use a USB logic analyser (these are cheap from China) with software that understands many protocols including i2c, making fault finding much easier. Again, a powerful tool that requires understanding to get the most from it.