Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Data Transmission project

Status
Not open for further replies.

Eplanet

New Member
hello
recently i make a simple project with FSK module for transmission data from PC to LCD.
if you look at this picture you understand me.
in this project i have a problem.
when i connecting enable pin (Receiver) for input data my LCD getting unwanted data from air and showing on my LCD very fast and i cant see correct data transmitted.
 

Attachments

  • 12.JPG
    12.JPG
    31.1 KB · Views: 188
I think you have problem setting up the serial port parameters. Is the receiver supposed to produce data continuously? Are you correctly setting the cursor address on the LCD after displaying a certain amount of data?
 
Maybe the receiver have an open collector output as well. Is there any protocol in use now?

Direct connection work (without RF modules)?

Any link/datasheet for those modules?
 
You can't just send plain RS232 over a radio link, you need Manchester coding or similar - you can buy (or create) micro-controllers to do this for you, or buy radio modules with them built-in.

Check here for examples
 
this is my program from receiver(PIC16F84A)

include"modedefs.bas"
lcdout 254,1
B0 var word
I VAR BYTE
H var byte
high portB.2

main:
for I=0 to 15
serin portB.0,T2400,B0
pause 100
lcdout B0
next I

lcdout 254,$C0

for H=0 to 15
serin portB.0,T2400,B0
pause 100
lcdout B0
next H

lcdout 254,1
lcdout 254,128

goto main


direct connection work

and you can see data sheet in this attachment
even disconnecting transmitter getting noise and show On LCD for example if i sending double A character "AA" you will see "A je S A 4 i "
 

Attachments

  • HM-T_EN.pdf
    266.1 KB · Views: 179
Last edited:
hi
i read your previous post but please tell me other method because i cant find RF600 in our market.
thanks
 
If you can change the PC software, life is good. And YES communication protocol is important. Manchester is simple and work great.

In your current example, between each Byte, you don't want to wait 100mSec + LCDOUT execution time... Grandpa 16F84 don't have any USART buffer, SERIN is a bit-banging solution.

If you send 2 character, use 2 BYTEs on the PIC side.

For testing purpose only, you could try to send this string
UUUUU~AB
from your PC to your PIC. On the PIC side try the following

Code:
        B0 VAR BYTE
        B1 VAR BYTE
        LCDOUT $FE,1

START:
        serin portB.0,T2400,["~"],B0,B1
        lcdout $FE,1,B0,B1
        GOTO Start

You LCD should display AB
 
Last edited:
hi
thanks for replay but i dont want to send "~" before any data how about enable time in rf module you think enable pin should be always on?
i dont use PIC in transmitter rf module connecting to max232 directly and when dont send any data from pc data pin is 5v and when sending data increase to 2.70 - 2.60 - 2.90 ...
and how can calibrate send time with receive time fore eliminate any unwanted data ?
and please tell me how can i use manchester codes in pic programming?
 
Last edited:
hi friends
do you know how can i use with this data transmitter and receiver with PIC micro because this device have 4bit for data how can i use it ?
HM-EP is transmitter
HM-D is receiver
thanks
 

Attachments

  • HM-D_EN.pdf
    136 KB · Views: 281
  • HM-EP_EN.pdf
    123.3 KB · Views: 248
all post specially first post is totally my project
send serially data from PC to microcontroller board over LCD in 250meteres
thanks
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top