Page 1 of 2

Arduino modbus control panel project

PostPosted: Sat Aug 18, 2018 4:53 pm
by Battwell
F9193430-4349-4A0E-A5A0-582B69E184AB.jpeg


Arduino modbus io panel
5v LEDs in each button
Fun project for the week ahead

Engraved and cut on the router for the mill conversion

Re: Arduino modbus control panel project

PostPosted: Sat Aug 18, 2018 9:30 pm
by kawarider
Tell us more please! Very nice!

Re: Arduino modbus control panel project

PostPosted: Sun Aug 19, 2018 6:09 pm
by A_Camera
Looks very nice.

Re: Arduino modbus control panel project

PostPosted: Tue Aug 21, 2018 11:26 am
by alex_s
very nice can't wait to see more :)

Re: Arduino modbus control panel project

PostPosted: Wed Sep 19, 2018 5:41 pm
by Battwell
Work got in the way of this
But did a bit more to it today
https://youtu.be/6QUOmCKuJHQ

Re: Arduino modbus control panel project

PostPosted: Wed Sep 19, 2018 6:17 pm
by Robertspark
Looks good

Bit late now but ... :roll: .... Did you consider wiring the switches up as a matrix keypad..... Less wires

I know I keep advertising it but visuino is so easy to use for this sort of thing including setting up modbus

Re: Arduino modbus control panel project

PostPosted: Thu Sep 20, 2018 12:17 am
by Battwell
I’ve looked at visuino but I’ve already got the modbus sketch done and long term tested.

Each switch has to be wired even as a matrix and as I have 36 in / 32 out I have plenty of pins
Easier to do them separate ( to keep track of)
I used to design fruit machines so know how to matrix. But in this case I can’t see the need
Hopefully have it up and running tomorrow - but then have a bit of scripting to finish up on uccnc side.
Il be using the LEDs as see/confirm from uccnc, not just seen at arduino.
I think I’ve finally worked out how to run it all 2 wire now too :-)

Re: Arduino modbus control panel project

PostPosted: Thu Sep 20, 2018 12:57 pm
by A_Camera
The advantage of matrix wiring is not the number of wires but it reqires less inputs. I see no other reason for matrix connections. Of course, even less inputs are needed if analogue inputs are used, but otherwise if there are enough inputs are available then wiring each button to a dedicated input is the best solution even firmware wise because it results in more optimised and efficient firmware.

Re: Arduino modbus control panel project

PostPosted: Thu Sep 20, 2018 3:59 pm
by Battwell
I’m happy!
Worked first time :-)

https://youtu.be/MyeXwe-75gk

Re: Arduino modbus control panel project

PostPosted: Fri Sep 21, 2018 4:30 pm
by Battwell
macroloop-done (needs a bit more work. analogues next)
controls uccnc and reports back :-)
https://youtu.be/1ZgtuUYOtaY