Cheapest way to communicate


Closed Thread
Results 1 to 23 of 23

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    From what I have read, RS-422 or RS-485 can handle about 4000 feet on cat-5 network cable, which is pretty cheap. Sounds like even RS-232 will get close to the distance you want, but you would need good cable, and a low com rate, (and very low noise in your environment). So cheapest sounds like RS-485 or RS-422.
    http://www.scalerobotics.com

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default

    This a philosophic discussion.

    If you want to find the cost of each solution, you have to mke a market research based on the distance and speed of your connection.

    Then choose the one that is right from the possible solution (either RF, IR, cable, fiber etc) and compare the cost for your case.

    You have to do your homework. No other way.... sorry.

    Ioannis

  3. #3
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default My vote

    My vote goes to RS-485 using a CAT-5 network cable. In this cable we have 8 wires so we can use 3 for GND, 3 for 12V and one for 'A' and one for 'B'. Or if you want to have a full duplex you can get that too and still have 2 wires each for + and -. Cheap standard connectors and a very common cable.

    And because it is RS-485 you can hook up a PC to the system using a USB-RS485 converter which also is a very standard component.

    Now we have power and communication. Just slap on a suitable max chip and a power-regulator on each slave and off you go. MAX3072E is one but there are plenty more...

    Stable, quite cheap and very very standard. This combined with a PIC having a hardware usart and some DT instant interupts and you are up and running in notime.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Hi Jumper!

    Thank you very much for your reply, I will go for the RS 485 then!!!

  5. #5
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Duh... so RS-485 is cheaper (Post #1) than good old RS-232 running in junk Telephone or Burglar Alarm cable? Two tin cans and a bit of taught string does 100m...

  6. #6
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default hmm

    Why not use TTL levels and connect the pic and hope for the best.

    Since TTL might be a bad idea we can probably assume that we need to use a communication chip and here we can choose MAX232 (the old favorite) or a 422/485 chip. RS-232 in a CAT-5 cable at 19200 will give you the maximum length according to the standard of 147 feet (44.8m) but we all know that standards are for the weak, sick and cowardly.

    The thing that makes me choose RS-422/485 is that is supports multiple slaves on the same bus. It is possible to have up to 256 units connected to the same 2 bus lines. How many units per bus is stated in the datasheet for the RS-422/485 chip.

    RS-232, RS-423, RS-422, RS-485 they are all relatives but some of them are the poor cousin from the contryside. RS-422 and RS-485 is electrically the same they just have a different protocol to allow for multiple drivers for the 485.

    read the links below and you can compare the different standards.

    http://www.rs485.com/rs485spec.html

    http://www.lammertbies.nl/comm/info/RS-232_specs.html


    But Melanie is right as always, what ever that can be found in the trash-pile will probably do the job best now now now and the cable will probably be the biggest cost anyway.
    Last edited by Jumper; - 18th May 2009 at 12:08.

Similar Threads

  1. Communicate PC-to-PC using PIC
    By aje_azam in forum USB
    Replies: 3
    Last Post: - 16th March 2009, 07:35
  2. Making the Lab X1 communicate with the Lab X2
    By MatthewM in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 19th June 2008, 22:26
  3. Replies: 14
    Last Post: - 20th March 2008, 13:54
  4. Cheapest mobile with AT Commands
    By frank small in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th December 2004, 08:20
  5. pc communicate with pic16f877
    By meyou in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th August 2004, 23:26

Members who have read this thread : 0

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