0leee
Member level 2
- Joined
- Aug 23, 2011
- Messages
- 42
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,608
definately workI just need how to send logic"1" prom 1microcontroler to another,not with wire or microstrip,i would like to send it via some anthen,not to far only 10-30meters
***************************************
***************************************
question:-for example on 1microcontroler output i connect little fm transmitter,on second microcontroler input i connect fm reciver;
-when i send logic "1" to the transmitter,will be there on reciver logic "1" which could turn on LED on that second microcontrolers output?would this work?
Hi,
Usually when you have a radio or IR link you never send a single bit, because it could be easily lost in the noise and it is a not good way to build communication protocol. Most protocols send a byte or several bytes to build a reliable protocol, i.e. your receiver will want to know who send the data, how much is the data that need to receive in order to reserve a buffer for it, some kind of protection to check that the data is received correctly, i.e. CRC or parity.
I would recommend you to find Rx and Tx pairs which have good documentation and application data. Good enough so that you can easy and well understand it. then you can try to build your software. The modules I tried were build by Radiometrix. Keep in mind that those modules usually need a kind of burst signal in the beginning to start receiving, I tried with 30 times "10101010" or similar before I really start to transmit the signal. This might look strange, but it is normal if you know how the rf superheat receiver and data slicer works.
Well, I think your application is very simple, so you can try without coding and to see how it will work. I was using a ready library for asynchronous communication over Rf links. I will try to find the name and to post it here ... but later. Such library however is not for free ...
In any case having the transmitter operational all the time is not a good practice because :
1. Rf modules are working on the same frequency, and many share the same channel. If you transmit continuously you will occupy the channel.
2. The transmitter will require power to operate, if you are battery operated, your battery will go out very soon.
First try to operate it continuously to see how it is working, Than you can add more complexity by coding the signal and making it to transmit only when you press the button.
I will propose that you start with UART communication and transmitting 11001100 as 1 and 11110000 as 0 or opposite - it does not really matter. This is already a simple coding.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?