sending/receiving data to rfm12b through TX/RX pin on atmega

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello, I am trying to send/receive data to rfm12b module using atmega8 RX/TX (uart). there are two modules, one as a transmitter and one as a receiver. I've gotten them to work using SPI and now I'm trying to do the same via uart(RX/TX pins on atmega8).

What I'm doing now is connecting TX pin on atmega8 to DATA pin on rfm12b for transmission and RX pin on atmega8 to DATA pin on rfm12 for reception.

is it possible to do so/?

thank you.

Last Edited: Fri. Oct 16, 2015 - 12:32 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

rfm12b is SPI only... using Tx and Rx will get you nowhere.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

can you please tell me that 

after giving RFM12B configuring command through the microcontroller how we can check that is configured or not

if it gets configured , then how we can test that is it transmitting the data or notwithout using the other RFM12B.

 

 

regards

<p>mukul</p>

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

mukul11 wrote:
how we can test that is it transmitting the data or not without using the other RFM12B.

If a tree falls in the forest, and there's nobody there to hear it, does it make a sound...?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ohpark0119 wrote:

Hello, I am trying to send/receive data to rfm12b module using atmega8 RX/TX (uart). there are two modules, one as a transmitter and one as a receiver. I've gotten them to work using SPI and now I'm trying to do the same via uart(RX/TX pins on atmega8).

What I'm doing now is connecting TX pin on atmega8 to DATA pin on rfm12b for transmission and RX pin on atmega8 to DATA pin on rfm12 for reception.

is it possible to do so/?

thank you.

 

You know about this, right?

http://www.airspayce.com/mikem/a...

 

If you're trying to use a UART's TX/RX in lieu of SPI, it can't work.

 

Last Edited: Thu. Mar 5, 2015 - 03:06 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

then how we can verify the data which is transmitted is ok or not?

 

*Do not ask this same question in multiple threads. Moderator*

<p>mukul</p>

Last Edited: Thu. Mar 5, 2015 - 11:38 PM