抽油煙機自己開是咋回事?

本帖於 2022-01-31 23:39:39 時間, 由普通用戶 chinomango 編輯

電腦控製按鈕是微動開關不是薄膜開關,有行程的,那種小的微動開關彈性很好的,一直工作正常。

最近就是隨機自己亮,嚴重時開關多次,不是過熱,有時早晨起來發現亮了。嚴重的時候風扇自己反複開關。平時功能正常。電源繼電器板電容沒有鼓起,開關板要全拆才看得見。

國產的仿歐式:

10年前買,現在3倍價格。哪裏有單片機的開源碼?fan control:

#include <EEPROM.h>

#define FAN_PIN 3;
#define FS_ADDR 0x01
int fanSpeed;

void setup() {
  // put your setup code here, to run once:
  pinMode(3, OUTPUT);
  EEPROM.get(FS_ADDR, fanSpeed);
  if(fanSpeed < 1) fanSpeed = 255;
  analogWrite(FAN_PIN, fanSpeed);
  Serial.begin(9600);

}
char rx_byte = 0;
String input = "";

void loop() {
  if (Serial.available() > 0) {    // is a character available?
    rx_byte = Serial.read();       // get the character
  
    // check if a number was received
    if ((rx_byte >= '0') && (rx_byte <= '9')) {
      input.concat(rx_byte);
      
    }
    else if (rx_byte == '\n') {
      Serial.print("Received: ");
      Serial.println(input);
      if(input.toInt() < 256) {
        fanSpeed = input.toInt();
        EEPROM.put(FS_ADDR, fanSpeed);
      } else {
        Serial.println("Invalid Number");
      }
      input = "";
    }
    else {
      Serial.println("Not a number.");
    }
  } // end: if (Serial.available() > 0)
  analogWrite(FAN_PIN, fanSpeed);
}

所有跟帖: 

進蟑螂了吧?以前讀書時租房,半夜經常電話自己叮咚,後來拆開發現很多蟑螂在裏麵作怪, 哈哈 -bushihandyman- 給 bushihandyman 發送悄悄話 bushihandyman 的博客首頁 (0 bytes) () 02/01/2022 postreply 10:03:11

沒見過蟑螂,就是uP控製的繼電器自己劈啪的吸和。5V及電容正常,12V因無穩壓有18V. -chinomango- 給 chinomango 發送悄悄話 chinomango 的博客首頁 (0 bytes) () 02/01/2022 postreply 15:01:01

小心啊。 你的開關會不會和伊朗離心泵裏的是同一型號? -PrimeryColor- 給 PrimeryColor 發送悄悄話 (0 bytes) () 02/01/2022 postreply 18:35:28

你的是bug. 他的可能是virus. -PrimeryColor- 給 PrimeryColor 發送悄悄話 (0 bytes) () 02/01/2022 postreply 18:33:09

是uP輸出自變,接不接輸入9針電纜都一樣。現產品要800刀。 -chinomango- 給 chinomango 發送悄悄話 chinomango 的博客首頁 (170 bytes) () 02/01/2022 postreply 18:46:07

有人會PIC16嗎?我20年前用過想撿起來 -chinomango- 給 chinomango 發送悄悄話 chinomango 的博客首頁 (0 bytes) () 02/01/2022 postreply 21:21:09

I have used PIC12, 16 and 18. -xia23- 給 xia23 發送悄悄話 xia23 的博客首頁 (0 bytes) () 02/02/2022 postreply 04:42:42

20年前用過多款PIC, 用assemble寫。 -iGarage- 給 iGarage 發送悄悄話 iGarage 的博客首頁 (0 bytes) () 02/02/2022 postreply 06:59:30

MPLAB ? -原上草2017- 給 原上草2017 發送悄悄話 原上草2017 的博客首頁 (0 bytes) () 02/02/2022 postreply 09:31:56

我用的也是馬屁Lab .當時奇怪為什麽叫這個名字 -tomcat801- 給 tomcat801 發送悄悄話 (408 bytes) () 02/02/2022 postreply 16:17:59

選定16F1847 DIP18,想找免費C編譯,XIDE、MPLAB還沒入門,希望懂的提示幾下 -chinomango- 給 chinomango 發送悄悄話 chinomango 的博客首頁 (422 bytes) () 02/02/2022 postreply 17:40:30

MPLAB ide has free editor, compiler and programming tool (you ha -xia23- 給 xia23 發送悄悄話 xia23 的博客首頁 (561 bytes) () 02/03/2022 postreply 04:46:34

Introduction of MPLAB ide and X ide: Web Links. -xia23- 給 xia23 發送悄悄話 xia23 的博客首頁 (456 bytes) () 02/03/2022 postreply 10:29:18

IDE,XIDE,IPE, ICD有啥差別?XC編譯器如何為啥大家都不用? -chinomango- 給 chinomango 發送悄悄話 chinomango 的博客首頁 (0 bytes) () 02/03/2022 postreply 11:11:21

IDE, XIDE and ICD. -xia23- 給 xia23 發送悄悄話 xia23 的博客首頁 (1636 bytes) () 02/03/2022 postreply 13:59:02

看了video笑死我了,我之前說他們的新MCC是把黃金變成狗屎! -chinomango- 給 chinomango 發送悄悄話 chinomango 的博客首頁 (0 bytes) () 02/03/2022 postreply 17:11:02

They also have ICE. -xia23- 給 xia23 發送悄悄話 xia23 的博客首頁 (83 bytes) () 02/04/2022 postreply 04:08:50

當年用過x51的IDE,1萬多新幣一台,因為程序大(256KB按32KB分段) -chinomango- 給 chinomango 發送悄悄話 chinomango 的博客首頁 (0 bytes) () 02/04/2022 postreply 14:19:13

Two development boards from Microchip. -xia23- 給 xia23 發送悄悄話 xia23 的博客首頁 (315 bytes) () 02/03/2022 postreply 10:51:24

不知道kit3還帶PCB,殘貨價翻倍,可能會買snap;多謝了 -chinomango- 給 chinomango 發送悄悄話 chinomango 的博客首頁 (0 bytes) () 02/03/2022 postreply 11:05:38

Check on eBay. -xia23- 給 xia23 發送悄悄話 xia23 的博客首頁 (511 bytes) () 02/03/2022 postreply 14:09:18

snap $31-35加$10+運費,pickit3賣到白多刀了,kit4反而70刀;現在啥都要翻倍;山寨的太多的不知固件兼容否 -chinomango- 給 chinomango 發送悄悄話 chinomango 的博客首頁 (0 bytes) () 02/03/2022 postreply 17:14:11

I bought Snap several years ago, -xia23- 給 xia23 發送悄悄話 xia23 的博客首頁 (105 bytes) () 02/04/2022 postreply 03:56:17

If the 山寨的 programmer has -xia23- 給 xia23 發送悄悄話 xia23 的博客首頁 (216 bytes) () 02/04/2022 postreply 04:04:32

山寨無正式軟件無支持,不知是否兼容後期片子;snap加芯片和運費近50刀,還得學tool;可能會改用arduino -chinomango- 給 chinomango 發送悄悄話 chinomango 的博客首頁 (0 bytes) () 02/04/2022 postreply 14:05:11

Don't be rushed, do homework first please. -xia23- 給 xia23 發送悄悄話 xia23 的博客首頁 (1095 bytes) () 02/05/2022 postreply 09:10:22

Microchip has discount for universities. -xia23- 給 xia23 發送悄悄話 xia23 的博客首頁 (197 bytes) () 02/04/2022 postreply 08:16:01

I went to line to order, clicked samples and got normal price, n -chinomango- 給 chinomango 發送悄悄話 chinomango 的博客首頁 (0 bytes) () 02/04/2022 postreply 14:21:12

Did you log in? You might need an account to get free samples. -xia23- 給 xia23 發送悄悄話 xia23 的博客首頁 (226 bytes) () 02/05/2022 postreply 08:56:38

In Youtube: -xia23- 給 xia23 發送悄悄話 xia23 的博客首頁 (87 bytes) () 02/04/2022 postreply 08:55:08

謝謝找到一個 https://www.youtube.com/watch?v=nbSd0FlJh0I,再請教 -chinomango- 給 chinomango 發送悄悄話 chinomango 的博客首頁 (294 bytes) () 02/04/2022 postreply 20:20:56

Check inside please -xia23- 給 xia23 發送悄悄話 xia23 的博客首頁 (2994 bytes) () 02/05/2022 postreply 05:05:42

many thanks! I wonder debug because I only have the bad board an -chinomango- 給 chinomango 發送悄悄話 chinomango 的博客首頁 (359 bytes) () 02/05/2022 postreply 13:43:18

在麵板再加個電源開關,用時按一下 -bushihandyman- 給 bushihandyman 發送悄悄話 bushihandyman 的博客首頁 (0 bytes) () 02/02/2022 postreply 09:42:33

嗯,簡單易行的方法! -tomcat801- 給 tomcat801 發送悄悄話 (343 bytes) () 02/02/2022 postreply 16:19:19

謝了,這個昨晚做了;在此前LP把沒板子的電源插上結果跳閘了 -chinomango- 給 chinomango 發送悄悄話 chinomango 的博客首頁 (107 bytes) () 02/03/2022 postreply 11:04:41

請您先登陸,再發跟帖!