Hi
Although I've been making PC-software for quite some years now, I'm just at the beginning of my journey into the world of microcontrollers. I'm trying to figure out how I can build a computer controlled audio mixer. (8 inputs 16 individually stereo outs)
To build this mixer, I plan to divide it into 9 "boxes": 1 "master" box and 8 identically "slave" boxes.
Now, the master box receives a command from my PC via USB, like:
SET VOLUME TO 188 AT SLAVE 4 CHANNEL 6
The PIC16F628 within the master, sends (the same) command via uart to the first slave connected:
SET VOLUME TO 188 AT SLAVE 4 CHANNEL 6
The first slave checks the slave number if it is zero, if not it sends the command to the next slave (decreasing the slave number by one)
SET VOLUME TO 188 AT SLAVE 3 CHANNEL 6
This is repeated in slave 2 ect.
SET VOLUME TO 188 AT SLAVE 0 CHANNEL 6
SET VOLUME TO 188 AT SLAVE 2 CHANNEL 6
SET VOLUME TO 188 AT SLAVE 1 CHANNEL 6
Now slave 4 (number 5) evaluate SlaveNO==0 and thus sets the volume for channel 6 to 188.
I was thinking of connections like this (uart Daisy chain) (Only showing 2 slaves)
The devices will be placed in the same rack, so 1 feet of cable is needed to connect the devices.
I don't need light speed.
1. Is this possible ?
2. Is there a better solution ?
3. Do I need extra components or can I just connect Tx to Rx directly ?
4. Any thoughts/ideas ?
Any comments are greatly appreciated.
regards