DMX machine control

Job ID: 34213197

Budget: $2 – $8 USD

It is an art installation that involves different elements...the most urgent help i need is about the sewing machines part, i need to control them through a dimmer and score a midi in (logic) and I would like to test the operation of the sewing machines in different modes - long sound at slow speed, long sound at high speed, acceleration and deceleration, short sounds, etc.
this is an example for such operation:
https://www.youtube.com/watch?v=HlH7ue8nUbY&t=155s

I have the Dimmer in the photos and the DMX-usb interface. I have also a couple of sewing machines.


I need to know first how to do the wiring of sewing machines.
how to control the machines through logic.

thanks a lot, and hope to hear from you :)