Photon and Modbus 485 RTU - Connections & interface requirements

Well If you can get there (RTU on the tx/rx pins) we can run a TCP stack on this…

https://gridconnect.com/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/x/p/xportmodbus_1500x1500.jpg

that would be wonderful…only a library port for the RTU lib…now where did put those??? I’ll be runing TCP with a GREEN breather…

Actually MODBUS ASCII would be a whole lot less taxing on the particle…

AnywayI did hook up the grid connect and get it up wit the rest of my application. I now have a HARDWIRED MODBUS TCP port on a photon. Like this

GC xport to photon
pin1 to gnd photon
pin2 to 3.3 photon
pin3 to rst photon
pin4 to rx photon
pin5 to tx photon
pin 6 to D4 photon ((CTS)
pin7 to D3 photon (DCD)
pin8 to D2 photon (RTS)

I built

this test bed yesterday and loaded it…it runs my sequence code scheduler and these peripherals just fine…with a blue light breathing…

Particle Electron WIFI “bidiot”
This afternoon i did…
List of peripherals:
Sparkun 7 Segment i2c 4 digit display I2C Address 0x
AVIA HX711 PGA onewire A1,A0
Digole I2C displaytouch I2c Slave address 0x027
Thermistor TC A3 pin
Matek WS1228B Lightstack/Buzzer D6 pin
ABS4988i2cN I2C triple stepper slave I2C address 0x08
with slidewire feedback/ModbusRTU
GridConnect XPORT-MBTCP Modbus TCP to Modbus Ascii converter TX/RX

todo:
Adafruit ADS1115 16bitx4ch ADC i2c slave addr TBD
MCP4728 quad DAC i2c slave Address TBD

I got my electron yesterday (2 day delivery)

I need it for another serial port for another 485 network to my analyzers that this unit communicates with…

Cheers! Now off to play with the Teensy and the Electron…and SPI knitting project…JFL