文学城论坛
+A-

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

chinomango 2022-01-31 22:36:03 ( reads)

电脑控制按钮是微动开关不是薄膜开关,有行程的,那种小的微动开关弹性很好的,一直工作正常。

最近就是随机自己亮,严重时开关多次,不是过热,有时早晨起来发现亮了。严重的时候风扇自己反复开关。平时功能正常。电源继电器板电容没有鼓起,开关板要全拆才看得见。

国产的仿欧式:

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);
}

跟帖(36)

bushihandyman

2022-02-01 10:03:11

进蟑螂了吧?以前读书时租房,半夜经常电话自己叮咚,后来拆开发现很多蟑螂在里面作怪, 哈哈

chinomango

2022-02-01 15:01:01

没见过蟑螂,就是uP控制的继电器自己噼啪的吸和。5V及电容正常,12V因无稳压有18V.

PrimeryColor

2022-02-01 18:35:28

小心啊。 你的开关会不会和伊朗离心泵里的是同一型号?

PrimeryColor

2022-02-01 18:33:09

你的是bug. 他的可能是virus.

chinomango

2022-02-01 18:46:07

是uP输出自变,接不接输入9针电缆都一样。现产品要800刀。

chinomango

2022-02-01 21:21:09

有人会PIC16吗?我20年前用过想捡起来

xia23

2022-02-02 04:42:42

I have used PIC12, 16 and 18.

iGarage

2022-02-02 06:59:30

20年前用过多款PIC, 用assemble写。

原上草2017

2022-02-02 09:31:56

MPLAB ?

tomcat801

2022-02-02 16:17:59

我用的也是马屁Lab .当时奇怪为什么叫这个名字

chinomango

2022-02-02 17:40:30

选定16F1847 DIP18,想找免费C编译,XIDE、MPLAB还没入门,希望懂的提示几下

xia23

2022-02-03 04:46:34

MPLAB ide has free editor, compiler and programming tool (you ha

xia23

2022-02-03 10:29:18

Introduction of MPLAB ide and X ide: Web Links.

chinomango

2022-02-03 11:11:21

IDE,XIDE,IPE, ICD有啥差别?XC编译器如何为啥大家都不用?

xia23

2022-02-03 13:59:02

IDE, XIDE and ICD.

chinomango

2022-02-03 17:11:02

看了video笑死我了,我之前说他们的新MCC是把黄金变成狗屎!

xia23

2022-02-04 04:08:50

They also have ICE.

chinomango

2022-02-04 14:19:13

当年用过x51的IDE,1万多新币一台,因为程序大(256KB按32KB分段)

xia23

2022-02-03 10:51:24

Two development boards from Microchip.

chinomango

2022-02-03 11:05:38

不知道kit3还带PCB,残货价翻倍,可能会买snap;多谢了

xia23

2022-02-03 14:09:18

Check on eBay.

chinomango

2022-02-03 17:14:11

snap $31-35加$10+运费,pickit3卖到白多刀了,kit4反而70刀;现在啥都要翻倍;山寨的太多的不知固件兼容否

xia23

2022-02-04 03:56:17

I bought Snap several years ago,

xia23

2022-02-04 04:04:32

If the 山寨的 programmer has

chinomango

2022-02-04 14:05:11

山寨无正式软件无支持,不知是否兼容后期片子;snap加芯片和运费近50刀,还得学tool;可能会改用arduino

xia23

2022-02-05 09:10:22

Don't be rushed, do homework first please.

xia23

2022-02-04 08:16:01

Microchip has discount for universities.

chinomango

2022-02-04 14:21:12

I went to line to order, clicked samples and got normal price, n

xia23

2022-02-05 08:56:38

Did you log in? You might need an account to get free samples.

xia23

2022-02-04 08:55:08

In Youtube:

chinomango

2022-02-04 20:20:56

谢谢找到一个 https://www.youtube.com/watch?v=nbSd0FlJh0I,再请教

xia23

2022-02-05 05:05:42

Check inside please

chinomango

2022-02-05 13:43:18

many thanks! I wonder debug because I only have the bad board an

bushihandyman

2022-02-02 09:42:33

在面板再加个电源开关,用时按一下

tomcat801

2022-02-02 16:19:19

嗯,简单易行的方法!

chinomango

2022-02-03 11:04:41

谢了,这个昨晚做了;在此前LP把没板子的电源插上结果跳闸了