fitri WROTE:i want to control AC dimming light using digital button on arduino
In the circuit that I posted, you can replace the PIC with the Arduino. GP2 is a digital input, GP4 is analog input and GP5 is digital output. You can add 2 more buttons on the arduion as digital inputs for UP and DOWN function. So the rest are just software. Once your software is working, you can always remove the analog input.
The assembly program for PIC is included in the website and you have to understand it and convert it to the Arduion C for it to work.
OR Google search again for one that work with arduino with the HW similar to the one that I posted. Knowing just one programming language would be tough to get things done even with internet.
Allen