A
A
Alistair O2016-11-24 19:34:51
Arduino
Alistair O, 2016-11-24 19:34:51

Reed switch or hall sensor?

Good evening, I am making a smart home
question 1. tell me which arudino to take for my tasks:
will the sensors be connected:
temperature, gas, vibration, hall or reed switch, TCRT5000
question 2, Hall sensor or better reed switch?
Question 3, I want to use TCRT5000 as a surface tracking module, when this sensor is covered, it should signal, do you think it will be right?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
E
evgeniy_lm, 2016-11-24
@evgeniy_lm

Without knowing the task it is impossible to determine what you need. Take Due, you can't go wrong.
There is less fuss with the reed switch, the Hall sensor is almost eternal. The choice is yours

D
Dmitry, 2016-11-26
@gashopper

1. Under a smart home, IMHO, it's worth taking Mega.
2. The Hall sensor works faster, you can set the threshold, it lives for a long time. Less fuss with the reed switch.
3. Can be used if the light and temperature are stable.

A
Alister O, 2016-12-02
@box4

Dmitry evgeniy_lm
please tell me what resistors should I buy?
dht11, Reed switch 10 kOhm? and on MQ5 220 Ohm? right?

N
netW0rm, 2017-03-11
@netW0rm

If I understand the logic of the script correctly, then

var timeoutId = setTimeout(
        () => {
            getData(data.command);
        },
        data.time
    );

    if (data.command == 'exit') {
        clearTimeout(timeoutId);
    }

replace with
if (data.command == 'exit') {
        return;
    }

var timeoutId = setTimeout(
        () => {
            clearTimeout(timeoutId);
            getData(data.command);
        },
        data.time
    );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question