Potentiometer control AC Dimmer by ELECTRONOOB

(Read 1574 times)
Potentiometer control AC Dimmer by ELECTRONOOB on: October 03, 2019, 03:32:42 PM
You might watched Potentiometer AC Dimmer by ELECTRONOOB. It's great but I want to make the same project with ESP8266. what do I need to change in the code to make It work. I have some problem understanding this following parts of the code.

  PCICR |= (1 << PCIE0);    //enable PCMSK0 scan                                                 
  PCMSK0 |= (1 << PCINT0);  //Set pin D8 trigger an interrupt on state change. Input from optocoupler

&

ISR(PCINT0_vect){
  /////////////////////////////////////               //Input from optocoupler
  if(PINB & B00000001){                               //We make an AND with the pin state register, We verify if pin 8 is HIGH???
    if(last_CH1_state == 0){                          //If the last state was 0, then we have a state change...
      detectado=1;                                    //We haev detected a state change!
    }
  }
  else if(last_CH1_state == 1){                       //If pin 8 is LOW and the last state was HIGH then we have a state change     
    detectado=1;                                      //We haev detected a state change!
    last_CH1_state = 0;                               //Store the current state into the last state for the next loop
    }
}



Re: Potentiometer control AC Dimmer by ELECTRONOOB Reply #1 on: October 15, 2019, 11:45:13 PM
With this line PCMSK0 |= (1 << PCINT0);  / we make D8 to be able to generate an interrumption. Each time D8 will cahneg its state from H to L or from L to H we go to the interrumption vecttor which is that ISR routine. And there we detect the state of D8 and set the detected variable to 1 or 0. That's it.



Re: Potentiometer control AC Dimmer by ELECTRONOOB Reply #2 on: February 09, 2024, 07:57:27 PM
Please try <a href=https://www.google.com/>Google</a> before asking about <a href=http://junlinro520.gain.tw/viewthread.php?tid=377248&pid=1283900&page=1&extra=#pid1283900>Best Product Info</a> a023d94



Re: Potentiometer control AC Dimmer by ELECTRONOOB Reply #3 on: February 22, 2024, 02:31:26 PM
W legalnych kasynach online w Polsce możesz spędzić czas na relaksie i jednocześnie zarabiać pieniądze. Kluczowa fraza 'legalne kasyna online - https://onlinecasinopolski.pl/licensed-casinos ' otwiera drzwi do rozrywki i możliwości zarobku. Dołącz już teraz i zacznij wygrywać!



Awesome Best Energy Healing In NYC Guide Reply #4 on: February 24, 2024, 10:06:54 PM
To the people asking about shiki ryoho reiki, certified reiki courses, energetic healing, energy healing sessions near me, benefits reiki healing, reiki master classes, distance reiki, usui ryoho reiki master,  I highly suggest this breaking news about Multi Vibrational Healing url or reiki help with anxiety, difference between reiki and meditation, energy healing what to expect, reiki m, usui reiki healing, energy healing treatment, natural energy healing, reiki master what is it, alongside all this cool training for Spiritual Healing  info and don't forget reiki healing master, reiki healing how to, reiki iii, tranquility healing, shiki ryoho reiki, reiki master book, new reiki, reiki m, alongside all this look what i found on Energy Healing NYC tips which is also great. Also, have a look at this website about Reiki Near Me info and don't forget reiki sound healing near me, reiki anxiety, reiki iii, reiki energy healing nyc, reiki from distance, reiki energy session, energy healing book, reiki healing, on top of this top rated Sound Healing In Manhattan details with reiki energy healing, certified reiki master near me, in focus reiki, reiki master, sound reiki, reiki healing treatment, reiki healing at a distance, reiki healing practitioner,  for good measure. Check more @ Great Green Home Builder In Toronto Blog aa023d9



Re: Potentiometer control AC Dimmer by ELECTRONOOB Reply #5 on: February 26, 2024, 02:04:55 PM
we’re examining an unconventional combination – tears, heartbreak, and calories. does crying burn calories



Re: Potentiometer control AC Dimmer by ELECTRONOOB Reply #6 on: March 01, 2024, 02:43:50 PM
The Copper conceal is generally on pattern and loans appeal, warmth and energy to any object. copper cutlery



Re: Potentiometer control AC Dimmer by ELECTRONOOB Reply #7 on: March 17, 2024, 07:10:30 PM
Furthermore Dashing Stuff gives top notch custom cowhide suits and gloves including airbag similarity. plus racing suit



Re: Potentiometer control AC Dimmer by ELECTRONOOB Reply #8 on: March 19, 2024, 09:26:32 PM
This leather motorcycle jacket is designed with CE-supported body protective layer (elbows and shoulders), back covering pockets, intelligent enumerating, and a jeans interfacing . harley davidson brawler jacket



Re: Potentiometer control AC Dimmer by ELECTRONOOB Reply #9 on: April 07, 2024, 02:17:58 AM
you can download any youtube video with this tool from any part of the world. youtubeconverter



Re: Potentiometer control AC Dimmer by ELECTRONOOB Reply #10 on: April 09, 2024, 07:02:35 PM
like many others, sought a quality leather jacket without breaking the bank. sybocleather.com



New Product Info Reply #11 on: April 12, 2024, 01:41:46 AM
Please try Google before asking about Updated Product Site 7988_59



Re: Potentiometer control AC Dimmer by ELECTRONOOB Reply #12 on: April 29, 2024, 01:43:23 AM
The job market in Pakistan is ever-changing, and this can make it challenging to stay up to date on the latest opportunities. sindh public service commission