久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開(kāi)始

搜索

arduino+moc33021+bta16為什么啥只有半波控制,求大佬解疑

查看數(shù): 2688 | 評(píng)論數(shù): 10 | 收藏 0
關(guān)燈 | 提示:支持鍵盤(pán)翻頁(yè)<-左 右->
    組圖打開(kāi)中,請(qǐng)稍候......
發(fā)布時(shí)間: 2019-11-1 17:54

正文摘要:

void up() {   digitalWrite(12, HIGH);   delayMicroseconds(5000);   digitalWrite(12, LOW);   delayMicroseconds(1000);   digitalWrite(12, HIGH); ...

回復(fù)

ID:342822 發(fā)表于 2019-11-5 13:01
jzli2019 發(fā)表于 2019-11-4 18:03
你用的是哪個(gè)版本,我感覺(jué)就是版本不對(duì)導(dǎo)致的。。。

呵呵8.8
ID:633947 發(fā)表于 2019-11-4 18:03
taotie 發(fā)表于 2019-11-4 17:12
按你的程序仿真沒(méi)得問(wèn)題。。

你用的是哪個(gè)版本,我感覺(jué)就是版本不對(duì)導(dǎo)致的。。。
ID:633947 發(fā)表于 2019-11-4 18:02
taotie 發(fā)表于 2019-11-4 17:12
按你的程序仿真沒(méi)得問(wèn)題。。

大佬,我把proteus8.7卸載了重新裝了proteus8.9,現(xiàn)在模擬也沒(méi)問(wèn)題了。。。很莫名其妙啊
ID:342822 發(fā)表于 2019-11-4 17:12
按你的程序仿真沒(méi)得問(wèn)題。。


ID:342822 發(fā)表于 2019-11-4 16:24
jzli2019 發(fā)表于 2019-11-4 14:33
這個(gè)例子名稱(chēng)叫什么,我想看看完整項(xiàng)目

Arduino Dimming 230V AC
ID:633947 發(fā)表于 2019-11-4 14:33
taotie 發(fā)表于 2019-11-4 10:31
這是Proteus 8 中的例程看一看吧
/* Main.ino file generated by New Project wizard
*

這個(gè)例子名稱(chēng)叫什么,我想看看完整項(xiàng)目
ID:342822 發(fā)表于 2019-11-4 10:51
檢測(cè)到過(guò)零后延時(shí)5ms控制moc3021開(kāi)通????
用10ms試一試~~
ID:342822 發(fā)表于 2019-11-4 10:31

這是Proteus 8 中的例程看一看吧
/* Main.ino file generated by New Project wizard
*
* Created:   mer ago 22 2018
* Processor: Arduino Uno
* Compiler:  Arduino AVR
*/

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

void setup()
{
  pinMode(AC_LOAD, OUTPUT);// Set AC Load pin as output
  attachInterrupt(0, zero_crosss_int, RISING);  // Choose the zero cross interrupt # from the table above
}

//the interrupt function must take no parameters and return nothing
void zero_crosss_int()  //function to be fired at the zero crossing to dim the light
{
  // Firing angle calculation : 1 full 50Hz wave =1/50=20ms
  // Every zerocrossing thus: (50Hz)-> 10ms (1/2 Cycle)
  // For 60Hz => 8.33ms (10.000/120)
  // 10ms=10000us
  // (10000us - 10us) / 128 = 75 (Approx) For 60Hz =>65

  int dimtime = (75*dimming);    // For 60Hz =>65   
  delayMicroseconds(dimtime);    // Wait till firing the TRIAC
  digitalWrite(AC_LOAD, HIGH);   // Fire the TRIAC
  delayMicroseconds(10);         // triac On propogation delay (for 60Hz use 8.33)
  digitalWrite(AC_LOAD, LOW);    // No longer trigger the TRIAC (the next zero crossing will swith it off) TRIAC
}

void loop()  {
  for (int i=5; i <= 128; i++){
    dimming=i;
    delay(10);
   }
}
ID:633947 發(fā)表于 2019-11-4 09:37
沒(méi)有人嗎?

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表
主站蜘蛛池模板: 中国大陆高清aⅴ毛片 | 黄色一级片视频 | 中文字幕免费在线 | 国产精品亚洲成在人线 | 成人欧美一区二区 | 久在线观看 | 中文字幕国产精品 | 一区二区三区视频在线 | 欧美xxxx色视频在线观看免费 | 久久久噜噜噜久久中文字幕色伊伊 | 免费观看成人性生生活片 | 青青久久久 | 日本在线视频一区二区 | 精品国产欧美一区二区三区成人 | 欧美视频精品 | 午夜一区| 国产一级片免费在线观看 | 国产精品久久久久无码av | 成年人在线观看视频 | 欧美日韩三级视频 | 精品网 | 欧美日韩福利视频 | 亚洲精品永久免费 | 精品国产乱码久久久久久图片 | 国产999精品久久久久久 | 国产免费一区二区 | 午夜精品一区二区三区在线观看 | 蜜桃视频麻豆 | 亚洲国产精品99久久久久久久久 | 久久久黑人 | 日韩一区二区在线视频 | 久久久精品国产 | 欧美自拍一区 | 五月槐花香 | 欧美性一级 | 久久国产精品视频观看 | 亚洲一区二区 | av在线视 | 国产精品一区在线 | 国产午夜影院 | 精品久久久久一区二区国产 |