抽油烟机自己开是咋回事?

本帖于 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

请您先登陆,再发跟帖!