Forums > MaxMSP

Multiple AC Dimmer

April 4, 2013 | 9:05 pm

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!

http://arduino.cc/forum/index.php?PHPSESSID=05564072839c556a041a82ad9af27269&topic=22512.45

[attachment=220099,5375]

Attachments:
  1. testonline.png

April 4, 2013 | 9:08 pm

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!!!!! :)


April 4, 2013 | 9:27 pm

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.


Viewing 3 posts - 1 through 3 (of 3 total)