element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum How  to read data from RS485 port of a device using raspberry pi
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 5 replies
  • Answers 2 answers
  • Subscribers 672 subscribers
  • Views 5100 views
  • Users 0 members are here
  • raspberry_pi
Related

How  to read data from RS485 port of a device using raspberry pi

profravisaxena
profravisaxena over 9 years ago

I need to get data from RS485 port of a transducer in to raspberry pi to connect it to IOT. Any suggestions

  • Sign in to reply
  • Cancel
Parents
  • balearicdynamics
    0 balearicdynamics over 9 years ago

    Hello Ravi,

     

    PI3 has a good support for the UART serial connection. If I am not wrong the difference between the RS232 and RS485 is that the second is based on differential currents on the signals to compensate / avoid some kind of external interferences and work with higher currents than the 5V of the 232. What you need I think it is a small circuit to convert the 485 industrial serial connection to the TTL level of the UART in the PI, as well as you should do if you will use a 232, with a Max chip (just for an example).

    Accordingly with these notes:

    serial - Difference between UART and RS232? - Electrical Engineering Stack Exchange

     

    In my opinion, also to avoid to spend a lot of time to make a conversion circuit by yourself, FTDI already provide USB to 485 adapters together with the USB to 232 based on their FTDI232 and FTDI485 chips. You can get the chip specifications to integrate the conversion circuit in your own project or just buy an adapter (at least to test the prototyping phase and develop proper software on the Raspberry PI).

    Below are the links:

     

    https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&sqi=2&ved=0ahUKEwj4u-ey-7DNAhVKL8AKHU7EB-…

    https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&cad=rja&uact=8&sqi=2&ved=0ahUKEwj4u-ey-7DNAhVKL8AKHU7EB-… 

    The FTDI converter datasheet (pdf) : http://www.ftdichip.com/Support/Documents/DataSheets/Cables/DS_USB_RS485_PCB.pdf

     

    Depending on the quality and current range of your RS485 source I suggest to evaluate to eventually optoisolate the signals.

     

    Enrico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • balearicdynamics
    0 balearicdynamics over 9 years ago

    Hello Ravi,

     

    PI3 has a good support for the UART serial connection. If I am not wrong the difference between the RS232 and RS485 is that the second is based on differential currents on the signals to compensate / avoid some kind of external interferences and work with higher currents than the 5V of the 232. What you need I think it is a small circuit to convert the 485 industrial serial connection to the TTL level of the UART in the PI, as well as you should do if you will use a 232, with a Max chip (just for an example).

    Accordingly with these notes:

    serial - Difference between UART and RS232? - Electrical Engineering Stack Exchange

     

    In my opinion, also to avoid to spend a lot of time to make a conversion circuit by yourself, FTDI already provide USB to 485 adapters together with the USB to 232 based on their FTDI232 and FTDI485 chips. You can get the chip specifications to integrate the conversion circuit in your own project or just buy an adapter (at least to test the prototyping phase and develop proper software on the Raspberry PI).

    Below are the links:

     

    https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&sqi=2&ved=0ahUKEwj4u-ey-7DNAhVKL8AKHU7EB-…

    https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&cad=rja&uact=8&sqi=2&ved=0ahUKEwj4u-ey-7DNAhVKL8AKHU7EB-… 

    The FTDI converter datasheet (pdf) : http://www.ftdichip.com/Support/Documents/DataSheets/Cables/DS_USB_RS485_PCB.pdf

     

    Depending on the quality and current range of your RS485 source I suggest to evaluate to eventually optoisolate the signals.

     

    Enrico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube