phettme
Posts: 5
Joined: Thu Mar 22, 2018 8:52 am

How to do connect rs485 or max485 shield ??

Thu Mar 22, 2018 9:12 am

Asking for advice please

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23682
Joined: Sat Jul 30, 2011 7:41 pm

Re: How to do connect rs485 or max485 shield ??

Thu Mar 22, 2018 9:25 am

Not enough information to really answer the question. Do you have a particular HW adaptor you are trying to connect?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

phettme
Posts: 5
Joined: Thu Mar 22, 2018 8:52 am

Re: How to do connect rs485 or max485 shield ??

Thu Mar 22, 2018 9:31 am

rs485 of Power Meter and max485 Shield

scotty101
Posts: 3720
Joined: Fri Jun 08, 2012 6:03 pm

Re: How to do connect rs485 or max485 shield ??

Thu Mar 22, 2018 9:39 am

Even more specific please.

Give links to the products that you have. Datasheets would be even better.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

phettme
Posts: 5
Joined: Thu Mar 22, 2018 8:52 am

Re: How to do connect rs485 or max485 shield ??

Thu Mar 22, 2018 9:52 am

sorry .connect and python code
Attachments
sku_163849_3.jpg
sku_163849_3.jpg (31.22 KiB) Viewed 933 times

scotty101
Posts: 3720
Joined: Fri Jun 08, 2012 6:03 pm

Re: How to do connect rs485 or max485 shield ??

Thu Mar 22, 2018 10:09 am

You still haven't given a link or datasheet!

Some detective work (google image search) suggests that it is one of these
http://www.dx.com/p/ttl-to-rs485-module ... rN_4vnFLcs

This is a 5V device. The Pi can only deal with 3.3v devices unless you buy an additional logic level converter (or easier buy a 3.3V RS485 module).

Generally speaking, you should connect these modules to the TX and RX pins on your Pi.
https://pinout.xyz/pinout/uart
However given that you aren't giving much information, it is impossible to tell you how to connect it.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

phettme
Posts: 5
Joined: Thu Mar 22, 2018 8:52 am

Re: How to do connect rs485 or max485 shield ??

Thu Mar 22, 2018 6:09 pm

Help about Code python
Attachments
Inked29572412_1554688327976880_5163073194038394880_o (2)_LI.jpg
Inked29572412_1554688327976880_5163073194038394880_o (2)_LI.jpg (106.37 KiB) Viewed 900 times

scotty101
Posts: 3720
Joined: Fri Jun 08, 2012 6:03 pm

Re: How to do connect rs485 or max485 shield ??

Thu Mar 22, 2018 9:55 pm

You still haven't shared a datasheet!

Look up pyserial and figure it out yourself.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

moksha29
Posts: 9
Joined: Mon Oct 01, 2018 6:32 am

Re: How to do connect rs485 or max485 shield ??

Thu Oct 11, 2018 6:01 am

@ phettme

Hello,

Can you give any python code which works for this module(max485)? Because am unable to get any data on UART of python.

Return to “Beginners”