TUTORIAL: How To Use RS-485 TTL MODBUS - Arduino Controller Module (Part 2/2 - Wire Up) Solar

TUTORIAL: How To Use RS-485 TTL MODBUS - Arduino Controller Module (Part 2/2 - Wire Up) Solar

Antony Cartwright

6 лет назад

109,505 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@user-tx7sm1vq9p
@user-tx7sm1vq9p - 09.11.2023 09:47

@antony in the code it seems like you did not define Rx and Tx. can you please explain Why?

Ответить
@kavansketcher3214
@kavansketcher3214 - 15.07.2023 11:48

sir i want a code to read data from secure elite 300 can you plzzz help me with itt

Ответить
@AAAAAA-ny4ib
@AAAAAA-ny4ib - 05.06.2023 23:16

Hello! I send a data packet "slave func data srs16", but the result is this signal "00 slave func data srs16". Why do two zeros appear?

Ответить
@prateeksingh8460
@prateeksingh8460 - 31.05.2023 10:35

Where is code attatched?????

Ответить
@mareksdunkurs3991
@mareksdunkurs3991 - 08.03.2023 16:41

Can you help me with some modbus device? I would pay you for sure.

Ответить
@hybrid.domotic
@hybrid.domotic - 24.12.2022 20:09

Thank's a lot for the simple and easy understanding video, please kindly : could you do another video using dixell controller like dixell XR10CX , this controller is used anywhere and no one has already did a video and explain the sketch , on the net you can find the user manuel with ful doc about modbus . thank's again even if not possible.

Ответить
@ssscorpionnn35
@ssscorpionnn35 - 27.08.2022 14:40

GREAT EXAMPLE FOR MODBUS_MASTER LIB. OTHERWISE YOU CAN NOT USE SIMPLE 485 TTL CONVERTORS WITH THIS MODBUS LIB. THANKS.

Ответить
@derrickpresley8708
@derrickpresley8708 - 25.08.2022 16:20

Hey, how can I implement the same on a pressure sensor

Ответить
@jacopo.scarpellini
@jacopo.scarpellini - 28.06.2022 18:39

Hi, I've been trying this with an electricity meter that supports RS-485, but keep getting result = 226...

Ответить
@hichamtech7913
@hichamtech7913 - 11.05.2022 03:48

Hello Antony,thank you for this great video
can i get your Email please

Ответить
@famprins
@famprins - 23.01.2022 19:14

i ment adres 0x0500

Ответить
@famprins
@famprins - 23.01.2022 19:12

i use a eastron smd72d. when i try to read Watts (0x500) i get a value like 17200 and it should be like 40 Watts. please can you help me.

Ответить
@hungdang6333
@hungdang6333 - 20.12.2021 20:28

How to use software serial for project?

Ответить
@ameyapawar7672
@ameyapawar7672 - 17.12.2021 14:52

hello, Antony I am current working on same project but I am not being able to established communication between meter an arduino can you please guide on the same.

Ответить
@dimitrikravtsov4798
@dimitrikravtsov4798 - 02.11.2021 20:09

Great work, thank you a lot.

Ответить
@redmeeko
@redmeeko - 17.10.2021 04:17

Where I can download code?

Ответить
@envirozoneinstrumentsequip8681
@envirozoneinstrumentsequip8681 - 28.04.2021 11:10

Hii sir,
I have a device that Supports RS485. Its Absolute address is 30001, length is 1, and type int. How I can read it in Arduino. Plz help me.

Ответить
@shivsekhon4868
@shivsekhon4868 - 02.03.2021 00:11

Hello Anthony Cartwright, I got the controller ID#, serial communication parameters, and register addresses from the manufacture and followed your code and pinout using my Arduino mega 2560. But when I go to serial monitor I get "uz" repeatedly so the 'if' statement is not working. I'm not sure how to fix this issue. Please give me some feedback, this is for a college project.

Ответить
@prasunbiswas8025
@prasunbiswas8025 - 25.02.2021 13:46

in my case, i am working with 40000 address which is why i have taken readHoldingregisters command instead of readinputregisters. but still the data is not showing on monitor
why?

Ответить
@shivsekhon4868
@shivsekhon4868 - 21.02.2021 11:17

Antony Cartwright, I am using an iSunery 10A MPPT controller but I can not find the Modbus protocol documentation for it anywhere. I tried to use your code and it didn't work, do you know how I can find the register cells?

Ответить
@aravavenkateshreddy63
@aravavenkateshreddy63 - 24.11.2020 15:46

hi sir we need a help for these project pls send the link hardware circuit of these project

Ответить
@TheSeptuple
@TheSeptuple - 23.11.2020 07:34

Wow you use pin2, pin3 To communicate rs485 modbus, Thanks

Ответить
@syselec1215
@syselec1215 - 10.11.2020 11:34

works fin thanks man!!

Ответить
@GreenTechValidation
@GreenTechValidation - 29.09.2020 08:36

hi,why you don't have the communicate format setting for modbus library

Ответить
@qzorn4440
@qzorn4440 - 14.09.2020 23:35

this is a great example in C-code and makes sense how thing happen in the logic... thanks...:)

Ответить
@txonso1194
@txonso1194 - 24.07.2020 11:01

Good video, but this library is only for arduino as a teacher, do you know any library that is for master and slave and multiple slaves because I think it is only for one slave right?
i test yout proyect with serial port monitor in the other side and i cant see data, can be my max485 broken?

Ответить
@electronicprojectspune3523
@electronicprojectspune3523 - 21.07.2020 17:40

Please provide code

Ответить
@dwalden74
@dwalden74 - 30.05.2020 04:48

Is the code available for download?

Ответить
@hellosensors1395
@hellosensors1395 - 01.05.2020 19:51

Hi Antony, How to modify the code to use hardware serial on Arduino MEGA board?

Ответить
@cristiantache4283
@cristiantache4283 - 07.04.2020 13:00

Hi Antony
In my case, have an energy meter with register address: 0x0000,.....0x000E,. Who can be implemented in Ardunino ?
According to your code link the outcome is " a"

Ответить
@mrstifler4047
@mrstifler4047 - 06.04.2020 06:34

What if we want to read multiple slave devices with arduino using modbus?

Ответить
@A_Zex
@A_Zex - 23.02.2020 08:30

sir I have a similar project, but I use schneider PM2100 as the slave, can your programming be used too?

Ответить
@SteveHartmanVideos
@SteveHartmanVideos - 20.02.2020 04:21

I have the same charge controller, how do you know what the mod bus command are in your chart? Is there a standard or is that a manual of some kind that comes with it, I will look online.

Ответить
@joshuaavila1085
@joshuaavila1085 - 24.01.2020 07:55

Can you upload your code?

Ответить
@NooLivO
@NooLivO - 20.12.2019 18:38

Thank you for the video. Coud you explain how you can get both Tx/Rx modbus acquisition and Serial monitor at the same time? When the serial monitor is in use (such as in your video), no other serial communication should be possible. Unless you have two serial ports available which I do not think is the case for Arduino Nano.

Ответить
@yilmazaslan422
@yilmazaslan422 - 29.11.2019 19:41

Is there anyway to get rid of this silly message at the beginning of each loop.( °°°°~o)

Ответить
@pujanagarkar9583
@pujanagarkar9583 - 03.10.2019 12:43

HI Antony,Awesome explaination.I did the same setup. But the part of (If result ==Ku8MBsuccess )is not getting true .What must be the cause?It will really be helpful if you reply

Ответить
@smitamohanty6386
@smitamohanty6386 - 08.09.2019 12:57

Thank you sir.... Awesome. I got the result. But can't we remove the boxes on serial monitor

Ответить
@titodanianta6054
@titodanianta6054 - 15.08.2019 09:21

Awesome dude, good job

Ответить
@ced_ak
@ced_ak - 08.08.2019 00:26

Great video

Ответить
@cristobalsanchezromero6219
@cristobalsanchezromero6219 - 22.07.2019 16:58

Hola, muy bueno. Me puedes compartir el codigo, por favor,...

Ответить
@MrNeomod
@MrNeomod - 25.06.2019 15:43

Sample Code?

Ответить
@warfery
@warfery - 19.06.2019 13:56

For those who had issue with nonworking connection or stability like me: add few milisecods (3-15ms) delay at the end of preTransmission() and few ms at the start of postTransmission() functions. It gives MAX485 some time for proper switching from reading/writing state.

Ответить
@mrstifler4047
@mrstifler4047 - 08.06.2019 00:16

Resultmain =Node.ku8MBSUCCESS what
This line means? Can anyone explain?

Ответить
@lrhpro688
@lrhpro688 - 02.05.2019 01:20

Thanks for this video ,
I have a case wich is quite close to this , I have a device HPMA115S0 it has UART communication and I want it to work with a plc over modbus serial rtu protocl I bought the same UART TTL TO RS485 you have , but I don't know how to implement the modbus rtu on this device without Arduino , is there anyway ?

Ответить
@lucamozzinivellen8016
@lucamozzinivellen8016 - 09.04.2019 10:48

Good evening, my name is Luca Mozzini Vellen and I study at the HES-SO Haute école spécialisée de Suisse occidentale. I am doing a batchlor project on energy consumption and distribution in Switzerland. I've seen that you, like me, use a Tracer-BN Series with Rs-485 TTL MODBUS. I'd like to kindly ask if it's possible to have the code and the libraries you use in your video. This information will not be used for profit but only for school use. I'm at your disposal for further information, waiting for your answer and wish you a good evening. Best regards Luca Mozzini vellen

Ответить
@naveensubramani2335
@naveensubramani2335 - 28.03.2019 13:38

HOW TO SEND THE COMMANDS LIKE 12,04,00,10,00,0C,F3,69

Ответить