jaelost.blogg.se

Mastercam forum
Mastercam forum









mastercam forum

I haven’t connect all the pushbuttons and displays, because firstly I want succesfully establish communication betwen arduinos using ModBus protocol. įor the beginning I’m trying to establish communication only between master and one slave device. For RS485 transceiver I choose SN65HVD75D from Texas Instruments, which is working at 3.3V, just like DUE and Leonardo. The whole library project can be found here: SimpleModbus.įor my master device I choose Arduino Due, and for the slaves Arduino Leonardo. I have found a ModBus library for arduino, called SimpleModbus, that contains master and slave example code. I’m still at the begining phase of programming this. Since ModBus is a little complicated for me and my knowledge I’m asking here for help. After some time investigating communication between arduinos I decided to stick with the ModBus protocol. I’m a little afraid, that these libraries aren’t really bulletproof + many of them uses delay function that is not helpful at all for my main code. There is a lot of libraries on the web for arduino that implement RS485 communication into arduino. On top of that I need a protocol for communication. Real time in my case means up to 1sec to address all slaves and get response from them.įor the communication standard I choosed RS485, which is the best option for my project, I suppose, and have few advantages over CAN, SPI, Ethernet, I2C. Display will show only numbers and maybe few signs. Also master device can send information to the slaves, so slaves can change information on display. When the pushbutton is pressed on slave, the information of that pushbutton has to be transmited to the master. In project each slave will have few pushbuttons and an display (7-segment or graphic display). The master can send information-data, to the slaves, or read info-data from them. I have one master device, that is communicating with few slaves. I’m working on an arduino project that require bulletproof communication between few arduinos (up to 30 or more, up to 100m) in disruptive environment (like near frequency inverter).











Mastercam forum