ARDUINO Projects

  • AC DIMMER

    easy and simple ac dimmer for the normal bulb or a halogen lamp less than 100 watts, I have been tested this circuit and I found it works without any problems but it not working with led bulb because the led have author technology.
    you can control it also with potentiometer 10k ohm and with 555 ic, I but a simple Arduino code to control the brightness of the light by writing the value in the serial port.

    Demonstration

    The elements you need
    • 4 pieces Diode number 1N5408
    • resistors: 220 , 22k , 33k /1 watt, 33k /1 watt
    • Zener diode 10 V / 1.4 watt
    • capacitors: 220nf / 275V , 2.2uf / 36V
    • N-Channel MOSFET BUZ91
    • Very High Isolation Voltage Optocoupler CNY65
    Now solder a circuit like the photo below and it's ready to go.

    Warning

    This voltage level is lethal so please wear protective gloves and don't but the circuit on a contact surface.
    The circuit works with a low current application like a light so it will be not working with an AC motor ... may it work with a motor but not for a long time either the circuit damage or the motor.

    Post

    Arduino code
    int dim=0;
    String converter;
    void setup() {
      Serial.begin(9600);
      pinMode(3,OUTPUT);
    }
    
    void loop() {
      while(Serial.available()==0);
         converter=Serial.readString();
         Serial.println(converter);
         dim=converter.toInt();
         analogWrite(3,dim);
    }