LCD Keypad Shield

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
rieders
Normal user
Posts: 10
Joined: 13 May 2018, 09:09

LCD Keypad Shield

#1 Post by rieders » 27 Sep 2020, 18:57

Hello

I have several questions for the Espeasy community.
I would like to take a flow measurement for a canister to be filled.
For this I got myself a solenoid valve and a flow meter.
I still have an LCD Keypad Shield with me, which would be perfect.
When the first canister is filled, I would like to receive a notification by email and then fill the next canister.
So I need a button to reset the measurement.
I would also be happy if you could still adjust the liters.
Here are the parts I have.
https://www.amazon.de/SainSmart-Keypad- ... B00760RLRM

https://www.amazon.de/HALJIA-YF-S401-0- ... 175&sr=8-1

https://www.amazon.de/Magnetventil-Wass ... NrPXRydWU=


I would be happy if it somehow works via ESPEASY.


Best regards
André

TD-er
Core team member
Posts: 3394
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: LCD Keypad Shield

#2 Post by TD-er » 27 Sep 2020, 22:21

Well the flow meter and the valve shouldn't be a problem (as long as you can switch the 12V valve with something as low powered as a GPIO pin of the ESP, so use some transistors and maybe an optocoupler)

But I don't see what chip is used on the keypad used along the LCD you linked.
The LCD is probably going to work, but I don't know what chip is used to read the keys.

rieders
Normal user
Posts: 10
Joined: 13 May 2018, 09:09

Re: LCD Keypad Shield

#3 Post by rieders » 28 Sep 2020, 07:43

Hello TD-er

Many thanks for the answer. I would like to switch the valve with a solid-state relay.
I found something else for the LCD screen.
The keys are queried with A0.
Different resistors go to GND are installed for each button.
Down 580
Up 230
Left 900
Right 0
Select 1200

Could the analog input of the ESP be used for evaluation?

https://create.arduino.cc/projecthub/el ... les-e02d95

Many thanks for the help

André

TD-er
Core team member
Posts: 3394
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: LCD Keypad Shield

#4 Post by TD-er » 28 Sep 2020, 09:04

You could use the ADC for that but I think it will be rather complex in rules and quite slow.
The rules usually act on events, but the ADC plugin doesn't send out events.

You could try to poll using the (rather new) msec timer, but I guess that would give quite a significant load on the ESP as rules parsing takes some time and doing it several times a second is quite a hit on the ESP.
If you don't poll with high frequency, then you need to keep a button pressed for quite some time to make sure it is polled.

This means that either the ADC plugin must be adapted to send out events when the value is between some set values, or if the value changed N steps.
Or you could use a different keypad that's already supported in a plugin.

rieders
Normal user
Posts: 10
Joined: 13 May 2018, 09:09

Re: LCD Keypad Shield

#5 Post by rieders » 28 Sep 2020, 10:42

Thanks for the information.

I'd rather use the buttons right away. I will also install an LCD I2C module to save connections.
I'm trying to build it today and then send a few pictures.

Many thanks for the help.

greetings
André

rieders
Normal user
Posts: 10
Joined: 13 May 2018, 09:09

Re: LCD Keypad Shield

#6 Post by rieders » 01 Oct 2020, 09:15

Hello

I rebuilt the LCD screen and placed the buttons on the A outputs.

Unfortunately I still have 2 problems.
1. If I have connected the flow sensor to the ESP, it does not boot.
The sensor is connected to the GPIO o.
". Problem.
When I switch the solid state relay it opens, but when I switch the relay off, the relay does not close.
When I briefly pull the cable off the valve and keep it closed until I turn it on again.


greetings
André
Attachments
20200928_154741.jpg
20200928_154741.jpg (2.74 MiB) Viewed 889 times
20200928_121559.jpg
20200928_121559.jpg (2.68 MiB) Viewed 889 times
20200928_121542.jpg
20200928_121542.jpg (2.73 MiB) Viewed 889 times
20200928_105726.jpg
20200928_105726.jpg (2.94 MiB) Viewed 889 times
20200928_124456.jpg
20200928_124456.jpg (3.37 MiB) Viewed 889 times

martinus
Normal user
Posts: 101
Joined: 15 Feb 2020, 16:57

Re: LCD Keypad Shield

#7 Post by martinus » 01 Oct 2020, 10:04

rieders wrote: 01 Oct 2020, 09:15 When I switch the solid state relay it opens, but when I switch the relay off, the relay does not close.
Just wondering: i guess most Solid State relays use a triac circuit to switch AC loads only. Looks like you are switching a 12V DC load.

TD-er
Core team member
Posts: 3394
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: LCD Keypad Shield

#8 Post by TD-er » 01 Oct 2020, 13:01

Don't connect a sensor to GPIO-0.
See the documentation: https://espeasy.readthedocs.io/en/lates ... on-esp8266

In short, some pins (GPIO 0, 2 & 15) need to be at a very specific state during boot, or else it will enter the flash mode at boot.

(And also what Martinus said :) )

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests