Arduino AC Power Shield!

Hi koyaanisqatsi,

I took some time to update my arduino software from 0012 to 0015 and read codes. These codes have been compiled now. I have learned new functions after 0012. :wink:

After read codes, I have two points. (If I misunderstand it, please let me know.)

  1. Digital pin 02 is used for interrupt. Therefore,digital pin 02 has to be connect with the zero crossing detector.

  2. For this lines "FireTriac[1]=(DimRes*analogRead(1))/1024", the reading value of Analog Pin 01 is used to set when triac is triggered. This is a great ideal. Therefore,we can use 4 potentiometers or 4 different values to get 4 different power outputs at the same time. ;D

Only one small problem is here. DimRes is 256. When the value of analogread is 0, the value of firetriac is 0. When the value of analogread is 512, the value of firetriac is 128. Trigger level is from 0 to 128. Therefore, total trigger level is 129.

For next step, I will try these codes with my circuit and let you know what result I get.

Cheers :sunglasses: