D1 Mini and TCRT5000

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mvveelen
New user
Posts: 4
Joined: 01 Oct 2016, 13:58

D1 Mini and TCRT5000

#1 Post by mvveelen » 01 Oct 2016, 14:15

Hi,

I'm very new to this, but I managed to set up my 2 D1 mini's. I flashed them with the ESPEasy_R120_4096.bin and after that I connected them to my WiFi.

Now there are 2 things I like to do:

1. connect 1 with the TCRT5000 pulse meter, but I can't find a n00b section where this is explained. I need to know which connection on the D1 mini I have to connect to the TCRT5000 exactly so I don't break the devices

2. connect the other with a BH1750 lux meter. Same applies here: what connections do I have to use on the D1 mini to connect to the BH1750

I tried searching the forum, but it looks like everybody is way ahead of me :oops:

After this I want to be able to use both in my Domoticz setup.


Edit: I've managed to get the BH1750 to work. Values are sent to Domoticz, so that's OK.

Now the TCRT5000..... I've connected it like this:

TCR5000: VCC -> ESP: 3V3
TCR5000: GND -> ESP: G
TCR5000: D0 -> ESP: D4 (=GPIO2)

Tried several other GPIO's, nothing happens.

The settings in the webgui of the ESP Easy:

Delay: 1
1st GPIO: GPIO2
Debounce Time: 1
Counter Type: Delta
Formula Count: %value%/4

Pin mode 2: default

What am I doing wrong here....?

Chris
New user
Posts: 1
Joined: 09 Jan 2017, 22:41

Re: D1 Mini and TCRT5000

#2 Post by Chris » 10 Jan 2017, 14:59

Hi M,

Do you still have problems with this?
Perhaps you can check the logging of the D1 mini for detailed info or the pulses are "seen" by the D1.
I use ( as default) a delay of 60 s and an other gpio and it works fine.
Have some issue's with dubbel counts but working on that.
Tools Log page
This page can be used for debugging issues. The debug level is set to '2' by default and will show sensor readings. Debugging levels can be changed under Tools/Advanced.
If your system runs fine, you can set the level to '0' to turn of logging. This will save valuable RAM!


Chris

User avatar
ManS-H
Normal user
Posts: 281
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Re: D1 Mini and TCRT5000

#3 Post by ManS-H » 10 Jan 2017, 17:10

mvveelen wrote:Hi,

I'm very new to this, but I managed to set up my 2 D1 mini's. I flashed them with the ESPEasy_R120_4096.bin and after that I connected them to my WiFi.

Now there are 2 things I like to do:

1. connect 1 with the TCRT5000 pulse meter, but I can't find a n00b section where this is explained. I need to know which connection on the D1 mini I have to connect to the TCRT5000 exactly so I don't break the devices

2. connect the other with a BH1750 lux meter. Same applies here: what connections do I have to use on the D1 mini to connect to the BH1750

I tried searching the forum, but it looks like everybody is way ahead of me :oops:

After this I want to be able to use both in my Domoticz setup.


Edit: I've managed to get the BH1750 to work. Values are sent to Domoticz, so that's OK.

Now the TCRT5000..... I've connected it like this:

TCR5000: VCC -> ESP: 3V3
TCR5000: GND -> ESP: G
TCR5000: D0 -> ESP: D4 (=GPIO2)

Tried several other GPIO's, nothing happens.

The settings in the webgui of the ESP Easy:

Delay: 1
1st GPIO: GPIO2
Debounce Time: 1
Counter Type: Delta
Formula Count: %value%/4

Pin mode 2: default

What am I doing wrong here....?
Did you read this?
http://www.letscontrolit.com/wiki/index.php/PulsCounter

Post Reply

Who is online

Users browsing this forum: No registered users and 122 guests