the Arduino Mega has 6 timer as shown below..
now the purposed switching strategy is given below.
Now the arduino pins is assigned to switches... as shown below..
now 8 bit register is given below
to creat PWM we have this bits to control as shown in below
we get output as shown below..

the complete link video about PWM and Inverse of PWM is shown below
8. Arduino Timers and Counters - YouTube
now in coding by using four if statements, we can control the switching strategy.
in each if statement the 10 switches can be controlled in which 6 pins are PWM ...
I know only that further about programming...
a simple body is shown below..
while(1)
{
If(opto_coupler==1)
{
6 out of 10 switches we operate 5 timers pin 13, 12, 10, 5, 6, 7;
and other switches are simply turned on or off;
}
If(opto_coupler==2)
{
6 out of 10 switches we operate 5 timers pin 13, 12, 10, 5, 6, 7;
and other switches are simply turned on or off;
}
If(opto_coupler==3)
{
6 out of 10 switches we operate 5 timers pin 13, 12, 10, 5, 6, 7;
and other switches are simply turned on or off;
}
If(opto_coupler==4)
{
6 out of 10 switches we operate 5 timers pin 13, 12, 10, 5, 6, 7;
and other switches are simply turned on or off;
}
}
please i know that far.. if i missed any information.. please ask..
