Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 16th April 2008, 10:01 PM   (permalink)
Default Data Transmission project

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.
Attached Images
File Type: jpg 12.JPG (31.1 KB, 53 views)
__________________
Take Locally Start Globally
Eplanet is offline  
Old 16th April 2008, 11:33 PM   (permalink)
Default

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?
__________________
We never have time to do it right; but we always have time to do it over.
Papabravo is offline  
Old 17th April 2008, 12:46 AM   (permalink)
Default

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?
__________________
Steve
mister_e is offline  
Old 17th April 2008, 07:43 AM   (permalink)
Default

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

http://www.rfsolutions.co.uk/acatalo...ceiver_IC.html
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 17th April 2008, 09:41 AM   (permalink)
Default

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 "
Attached Files
File Type: pdf HM-T_EN.pdf (266.1 KB, 13 views)
__________________
Take Locally Start Globally

Last edited by Eplanet; 17th April 2008 at 09:45 AM.
Eplanet is offline  
Old 17th April 2008, 03:53 PM   (permalink)
Default

Read my previous post!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 17th April 2008, 06:14 PM   (permalink)
Default

hi
i read your previous post but please tell me other method because i cant find RF600 in our market.
thanks
__________________
Take Locally Start Globally
Eplanet is offline  
Old 17th April 2008, 08:04 PM   (permalink)
Default

Quote:
Originally Posted by Eplanet
hi
i read your previous post but please tell me other method because i cant find RF600 in our market.
thanks
Use a PIC to do the Manchester conversion then, my tutorials include examples.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 17th April 2008, 11:23 PM   (permalink)
Default

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
__________________
Steve

Last edited by mister_e; 17th April 2008 at 11:25 PM.
mister_e is offline  
Old 18th April 2008, 06:47 PM   (permalink)
Default

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?
__________________
Take Locally Start Globally

Last edited by Eplanet; 18th April 2008 at 08:56 PM.
Eplanet is offline  
Old 21st April 2008, 06:19 AM   (permalink)
Default

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
Attached Files
File Type: pdf HM-D_EN.pdf (136.0 KB, 13 views)
File Type: pdf HM-EP_EN.pdf (123.3 KB, 11 views)
__________________
Take Locally Start Globally
Eplanet is offline  
Old 21st April 2008, 01:01 PM   (permalink)
Default

can sent me your project
corabeca is offline  
Old 21st April 2008, 03:46 PM   (permalink)
Default

all post specially first post is totally my project
send serially data from PC to microcontroller board over LCD in 250meteres
thanks
__________________
Take Locally Start Globally
Eplanet is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Urgent Help Needed... MIMO PC based data acquisition system bennyriang Electronic Projects Design/Ideas/Reviews 2 20th January 2007 12:56 AM
Timestamping data on data aquisition project Flamer1 Micro Controllers 6 4th December 2003 05:58 AM
pc keyboard interfacing problem econsyst Micro Controllers 0 8th November 2003 09:28 PM
Transmission of Data from Car to Desktop Computer gurp Electronic Projects Design/Ideas/Reviews 12 23rd October 2003 09:41 AM
wireless transmission of serial data elegeek Electronic Projects Design/Ideas/Reviews 2 22nd October 2003 07:05 AM



All times are GMT. The time now is 09:18 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker