Cheapest way to communicate


Closed Thread
Results 1 to 23 of 23
  1. #1

    Talking Cheapest way to communicate

    Good day Picers

    What is the cheapest way to communicate between pics at a distance of 100 meters?

    Thank you!

  2. #2
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Smile

    Smoke signals?

  3. #3
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    Pics get pretty expensive once they let out a puff or two of smoke...

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


    Did you find this post helpful? Yes | No

    Default 433 Mhz modules

    There are plenty of 433 Mhz modules you can use for this. Pick the right one and you can have up to 500m.

    One way or 2 way communication?

    Cable? fiber optics...

    Usually the communication part is not the problem, it is to provide power to all units without having to change batteries every day.

    /me

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Is wireless cheaper than RS485?

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


    Did you find this post helpful? Yes | No

    Default

    Depends on what type of cable you run...........
    http://www.scalerobotics.com

  7. #7


    Did you find this post helpful? Yes | No

    Default

    So, If I'm going for a cheap cable then RS485 is cheaper than wireless.
    Is there anything cheaper than RS485?

  8. #8
    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

  9. #9
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,807


    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

  10. #10
    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.

  11. #11


    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!!!

  12. #12
    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...

  13. #13
    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.

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


    Did you find this post helpful? Yes | No

    Default

    If it's just two PICs, Point-to-Point, proper RS232 will easilly work down 100m of junk Telephone or Burglar Alarm cable. It should have a range of about 1km without Repeaters (using decent screened Cable).

  15. #15
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by tenaja View Post
    Pics get pretty expensive once they let out a puff or two of smoke...
    But that might be a one-time expense. The OP really hasn't provided sufficient detail. Even Melanie's educated string probably cannot hazard an educated guess. What's the duration of the communications link? Is it one-to-one or one-to-many? What type of messages? What's the terrain? Is the path horizontal or vertical? Is it level or does it span a canyon? How can a wire be routed? Stapled to tree trunks or utility poles, buried in a trench? Must it be taut or can it sag? Etc., etc.,...

  16. #16


    Did you find this post helpful? Yes | No

    Default

    What's the duration of the communications link?
    it is a 24/7 communication link, every second.

    Is it one-to-one or one-to-many?
    one-to-many

    What type of messages?
    short, status monitoring

    What's the terrain?
    Horizontal, maximum of 1 meter difference in elevation

    Stapled to tree trunks or utility poles, buried in a trench?
    Buried in a trench

    Must it be taut or can it sag?
    Can be sag

    Thank you!!

  17. #17
    Join Date
    Feb 2009
    Location
    Southern California
    Posts
    86


    Did you find this post helpful? Yes | No

    Default

    Probably the cheapest solution would be a 20 ma current loop circuit. 1 transistor (PN2222A), 1 opto-coupler (we use a 4n26) and a few resistors and you are set. I think I remember something about that being good for around 2000 feet, especially if you can go with a lower baud rate. Having said that, I would probably still go with RS422/485 just because it is more of a standard these days.

    David

  18. #18
    Join Date
    Apr 2009
    Posts
    24


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by koossa View Post
    Good day Picers

    What is the cheapest way to communicate between pics at a distance of 100 meters?

    Thank you!
    laser pointers might work

  19. #19
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by koossa View Post
    one-to-many
    If you have to have a two-way communication with more than one node, I think RS-485 is the best choice. Two way wireless gets complcated and expensive rather quickly. Also, most jurisdictions have limts on how often a wireless node can transmit. B&B Electronics has an excellent whitepaper on RS-485.
    Last edited by dhouston; - 18th May 2009 at 21:49. Reason: added the wireless time limits

  20. #20
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Here's another helpful article on RS-485.Also, even if buried in a trench, you will need to protect against lightning by opto-isolating the nodes. See the ISOLATED LINK section of the Axelson article. You can use direct burial CAT5 cable to avoid the need for conduit.

    If you can provide more detail about the number of nodes and the nature of the messages we might be able to suggest less costly methods. It might be less costly to use WiFi which can be done for under $60 per node. It's inherently isolated and you can use serial communications.

  21. #21
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    One caveat on the WiFi module. Its range is specified as up to 200m. That is in a straight, unobstructed line. YMWV

  22. #22


    Did you find this post helpful? Yes | No

    Default

    Hi Dave

    Thank you very much for the info and links!!!

  23. #23
    imjames407's Avatar
    imjames407 Guest


    Did you find this post helpful? Yes | No

    Default Walkie talkie

    i think Walkie talkie is the best option.

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 : 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