How to transfer data from 3 micro to 1


Closed Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Aug 2006
    Location
    Iran
    Posts
    94

    Default How to transfer data from 3 micro to 1

    Hi, i want to transfer some data from 3 micro controllers to one micro. i don't want to use wireless transmission. the distance between micro controllers are at least 10 meter. i use PIC16F877A and picbasic pro 2.43, could you help me?

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by amindzo View Post
    Hi, i want to transfer some data from 3 micro controllers to one micro. i don't want to use wireless transmission. the distance between micro controllers are at least 10 meter.
    That's some long wire.
    i use PIC16F877A and picbasic pro 2.43,
    Upgrade. Easily done you know...(or is it?)
    could you help me?
    Define.......HELP......

    Hey, D_T!!! Could I hotlink your ROFL.GIF here?

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    Hey, D_T!!! Could I hotlink your ROFL.GIF here?
    You could, I don't mind. But it wouldn't be very nice to laugh at him.

    amindzo,

    Without more information, all I can say is ... RS485, 1 master/3 slave.
    <br>
    DT

  4. #4
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hi amindzo,
    look at this link, I bought several of this authors books, and would again.
    http://www.lvr.com/serport.htm#my_example_code
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  5. #5
    Join Date
    Aug 2006
    Location
    Iran
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    Hi,my friend suggest that you use a multi cable to connect one port to another port of main micro(8 wire,for example PORTB of micro 1 to PORTC of main micro) and use PEEK and POKE instruction. you put one byte on a port and read it from main micro and you should make a time program to read data on time.
    but it is not a good method. it's need a lot of wire and the distance can effect on the voltage,current and also we have noise.

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by amindzo View Post
    Hi,my friend suggest that you use a multi cable to connect one port to another port of main micro(8 wire,for example PORTB of micro 1 to PORTC of main micro) and use PEEK and POKE instruction. you put one byte on a port and read it from main micro and you should make a time program to read data on time.
    but it is not a good method. it's need a lot of wire and the distance can effect on the voltage,current and also we have noise.
    See Post #3!

  7. #7
    Join Date
    Aug 2006
    Location
    Iran
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    what about using serin and serout instructions and a shield cable?

  8. #8
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by amindzo View Post
    what about using serin and serout instructions and a shield cable?
    That'll work great...

    http://en.wikipedia.org/wiki/EIA-485

  9. #9
    Join Date
    Aug 2006
    Location
    Iran
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    if i want to use serin and serout instructions, can i connect(for example) PORTB.0 of micro 1 to PORTC.1 of main micro with wire directly?(with 10 to 20 meter distance)

  10. #10
    Join Date
    Aug 2006
    Location
    Iran
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    Hi, which cable i should use for this application to avoid noise problems and if i want to use MAX232 how should i connect it to microcontroller ? could you show me the diagram and the code in picbasic pro with serin and serout instructions?

  11. #11
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by amindzo View Post
    could you show me the diagram and the code in picbasic pro with serin and serout instructions?
    Anything else?
    http://www.picbasic.co.uk/forum/showthread.php?t=1498

Similar Threads

  1. Free Project - 245 LED Display
    By T.Jackson in forum Code Examples
    Replies: 221
    Last Post: - 16th August 2009, 04:59
  2. first project, and yes, doesn`t work
    By bogdan in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 28th April 2009, 06:13
  3. DS2760 Thermocouple Kit from Parallax in PicBasicPro
    By seanharmon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th July 2008, 23:19
  4. one line led light make image
    By bioul in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th February 2008, 12:19
  5. New member
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 28th February 2004, 22:44

Members who have read this thread : 1

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