SMS/WhatsApp: 08564-999-1225
buka Senin-Jumat 08-00 - 17.00
(datang ke lokasi diluar jam kerja mohon konfirmasi terlebih dahulu)
kunjungi juga web resmi kami di sarpinto.com

dimmer ac lamp arduino zero crossing

modul / kit / rangkaian dapat dibeli melalui tokopedia di ling berikut:
https://www.tokopedia.com/sarpinto/kit-zero-crossing-dimmer-ac-pengatur-redup-terang-lampu-ac-motor-ac

atau juga bisa via japri di contact kami klik disini

video pengujian:

video pengujiannya gan


gambar keseluruhan dimmer ac lamp zero crossing

gambar pinout dimmer ac lamp zero crossing


progam / script / coding dimmer ac lamp zero crossing menggunakan arduino uno/nano/mega/micro/mini



int AC_LOAD = 3;    // Output to Opto Triac pin
int dimming=38;  // Dimming level (0-128)  0 = ON, 128 = OFF

void setup()
{
  Serial.begin(9600);
  pinMode(AC_LOAD, OUTPUT);// Set AC Load pin as output //pwm
  attachInterrupt(0, zero_crosss_int, RISING); //pin d2
}


void zero_crosss_int()
{
 
  int dimtime = (75*dimming);    // For 60Hz =>65  
  delayMicroseconds(dimtime);    // Off cycle
  digitalWrite(AC_LOAD, HIGH);   // triac firing
  delayMicroseconds(10);         // triac On propogation delay
                                 //(for 60Hz use 8.33)
  digitalWrite(AC_LOAD, LOW);    // triac Off


}
void loop()  {
  for(int x=1 ; x<128;x++){
    delay(100);
  dimming = x;
Serial.println(dimming);
}
 }

1 komentar:

  1. How To Bet On Sports Toto in Arizona - Sporting100
    Sports betting can be done in Arizona. But it's not just about the NBA and MLB, they also sports that can be done in Arizona. We have 사설 토토 사이트 a list of

    BalasHapus