Programming RFM radio modules in Basic


Closed Thread
Results 1 to 40 of 45

Hybrid View

  1. #1
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Programming RFM radio modules in Basic

    yes i have noticed. I will use the trusted 18F26K22 you have suggested for my project last time.

    Is there any quick way to check whether the RFM module is powered up? Like to send a signal from the Master (PIC18F26K22) and at G0 of the modules port to connect and LED indicator. How may i know that the module is powered up?
    Last edited by astanapane; - 30th August 2018 at 10:12.

  2. #2
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Programming RFM radio modules in Basic

    I did the simplest configuration connection between the PIC and the RFM69HCW.

    Both of the boards are exactly the same. One will be the TX and the other will be the RX.

    Still in a very early stage, and keep reading the SPI protocol.
    Attached Images Attached Images  

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,636


    Did you find this post helpful? Yes | No

    Default Re: Programming RFM radio modules in Basic

    Is there any quick way to check whether the RFM module is powered up?

    read a register on the module . write a new value to that register read the register again and confirm the new value


    looking at your picture there are two wires missing on each module , that's never going to work
    Warning I'm not a teacher

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default Re: Programming RFM radio modules in Basic

    SPI is not RS232. Sure Richard spot it. You need to revise your connections.

    Also, your caps around the crystal, what values are?

    Ioannis

  5. #5
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Programming RFM radio modules in Basic

    Hi Richard and Ioannis, sorry for the bad quality of the picture.

    Connections i believe are ok. But two wires werent visible on the first pic.

    Capacitors are 22p and crystal is at 16Mhz. This combination seems to work just fine on my previous circuits.
    Attached Images Attached Images   

  6. #6
    Join Date
    May 2013
    Location
    australia
    Posts
    2,636


    Did you find this post helpful? Yes | No

    Default Re: Programming RFM radio modules in Basic

    Also, your caps around the crystal, what values are?
    on that subject why even use a crystal


    Connections i believe are ok. But two wires weren't visible on the first pic.
    wrong , did you even look at the schematic I provided ?

    there are 5 connections needed
    Warning I'm not a teacher

  7. #7
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Programming RFM radio modules in Basic

    Richard why do we need to 5th connection? i See there is a DIO pin.

    EDIT POST: ok found that here:

    https://learn.adafruit.com/adafruit-...akouts/pinouts

    G0 - the radio's "GPIO 0" pin, also known as the IRQ pin, used for interrupt request notification from the radio to the microcontroller, 3.3V logic level

    I still do not fully understand it but will be the reason.
    Last edited by astanapane; - 31st August 2018 at 10:56.

  8. #8
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: Programming RFM radio modules in Basic

    I'm confused about the SPI connection.

    In the manual of the PIC18F26K22 this is how do they have it Master and Slave.

    The MOSI from Master goes to MISO on slave and the MISO from master goes to MOSI on slave. Which it seems for me to be the right connection.

    Name:  spi1.png
Views: 7817
Size:  39.6 KB

    But everywhere else on the NET i find it as following. MISO on Master goes to MISO on slave and MOSI on Master goes to MOSI on slave.
    Name:  spi2.png
Views: 7868
Size:  58.5 KB
    https://www.google.gr/search?q=spi+c...w=1422&bih=701
    Last edited by astanapane; - 31st August 2018 at 10:47.

Similar Threads

  1. basic pic programming
    By sshanmugapriya in forum mel PIC BASIC
    Replies: 0
    Last Post: - 25th February 2010, 05:02
  2. Car radio (Car radio and electronics support forum)
    By freewillover in forum Forum Requests
    Replies: 1
    Last Post: - 1st July 2009, 19:41
  3. Smart Radio RF620A and RF620RA modules
    By Colin612 in forum Serial
    Replies: 0
    Last Post: - 8th May 2008, 15:47
  4. LPRS/miniature radio modules
    By fowardbias in forum Off Topic
    Replies: 1
    Last Post: - 20th September 2005, 01:03
  5. Help With Easy Radio Modules
    By hughgoodbody in forum General
    Replies: 5
    Last Post: - 25th May 2005, 09:14

Members who have read this thread : 2

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts