Multiple AC Dimmer
Hey guys, So i am working on a multiple AC dimmer that incorperates the control of two light bulbs right now. I am trying to have a ton of them but for now just two channels is what i am working with. I am having trouble sending multiple messages to the arduino at the same time over the serial port. Is there a way to send two messages at once? or even up to 8? Or set up a metro that it constantly fires messages into it? basically I need to have a constant flow of messages for each one so the light bulbs can update in real time. attached is my max patcher and here is a link to the arduino code but idk how much that will help. any questions or feedback would be much appreciated!
the message input reads as:
AD/1/50/F
AD - start input
1- channel
50 - percent dim
F - end input
that message goes straight into the serial monitor, i need that and the other one next to it to be firing into the serial monitor at the same time or at a pace where it seems they are going in at the same time. ANY HELP WOULD BE AMAZING!!!!! :)
sorry to keep blabbering, im wondering if there could be some changing in the arduino code to get the input of the serial monitor to have the flexibility of having multiple channels posted.