Not able to make two Hall Sensor work as Generic Pulse Sensors

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
ciscomike
Normal user
Posts: 28
Joined: 20 Jan 2021, 10:07

Not able to make two Hall Sensor work as Generic Pulse Sensors

#1 Post by ciscomike » 06 Feb 2021, 10:39

Hi everyone and thanks for the great work,
I made a weather station including:
1X DHT 22 sensor
1X BMP180
1X BH150
2X Hall Effect Sensor TLE4906L
All binding together to a NodeMCU ESP8266 with the latest easpeasy.bin firmware.
Everything works fine except when I am going to add the last Hall Sensor. And wanted to ask if there is any limit regarding the GPIO used ports?
or I am missing something?
I have already change the hall sensors between the two ports as well as tried to change the last hall sensor GPIO with another free one with no luck.
I would appreciate your thoughts.

Thank you in advance,

MIke

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Not able to make two Hall Sensor work as Generic Pulse Sensors

#2 Post by Ath » 06 Feb 2021, 11:40

Pulse counters have to be used on Tasks 1..4, higher task IDs are not supported for this plugin. That's most likely the issue you're facing here. (There is a message in the log when configuring a Pulse counter on an unsupported task ID, but that's easy to overlook, I guess)
And on ESP8266 you can't use GPIO16, as that doesn't support interrupts AFAIK, and the Pulse counter plugin relies on interrupts.

With 'Latest ESPEasy .bin' you mean you got it from here: https://github.com/letscontrolit/ESPEasy/releases ?
/Ton (PayPal.me)

ciscomike
Normal user
Posts: 28
Joined: 20 Jan 2021, 10:07

Re: Not able to make two Hall Sensor work as Generic Pulse Sensors

#3 Post by ciscomike » 06 Feb 2021, 12:01

Thank you for your reply!!

I’ll test it out, I will try to move down the other sensors and give priority to pulse sensor first.
I’ll get back with tests results.

Thanks again @Ath

ciscomike
Normal user
Posts: 28
Joined: 20 Jan 2021, 10:07

Re: Not able to make two Hall Sensor work as Generic Pulse Sensors

#4 Post by ciscomike » 06 Feb 2021, 19:15

That was it! You were right!!
I changed the order of the sensors and both Pulse sensors worked fine.
Thank you for the time spending @Ath

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Not able to make two Hall Sensor work as Generic Pulse Sensors

#5 Post by Ath » 06 Feb 2021, 19:18

You're welcome, glad you got it working ;)
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests