Distance Sensor A02YYUW

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Wolvie
Normal user
Posts: 4
Joined: 01 Jun 2020, 20:55

Distance Sensor A02YYUW

#1 Post by Wolvie » 01 Jun 2020, 21:14

Hi all, :D

I'm new, so please forgive me the probably bad question. :roll:

I would like to use this Sensor (https://wiki.dfrobot.com/A02YYUW%20Wate ... 1#target_0) (waterresistant and short minimal range) with ESP Easy on a WEMOS D1 Mini.

Since I have not found a similar sensor in the list of supported devices, is there an other possibility to connect this sensor?

Thanks

Wolvie
Normal user
Posts: 4
Joined: 01 Jun 2020, 20:55

Re: Distance Sensor A02YYUW

#2 Post by Wolvie » 03 Jun 2020, 19:42

Nobody can help me?

No one got experience with this sensor?

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

Re: Distance Sensor A02YYUW

#3 Post by TD-er » 03 Jun 2020, 20:48

I haven't seen that sensor before, but it doesn't look like a very complicated one to support in ESPEasy.

Right now there is no plugin supporting that sensor.

Wolvie
Normal user
Posts: 4
Joined: 01 Jun 2020, 20:55

Re: Distance Sensor A02YYUW

#4 Post by Wolvie » 05 Jun 2020, 06:52

Thanks for the reply,

but what can I do now?

Since I'm new to this...

Wait until somebody create a plugin...
or
do it myself... but how? :?:

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

Re: Distance Sensor A02YYUW

#5 Post by TD-er » 05 Jun 2020, 11:10

Reading of that sensor is quite simple.

So you may want to start by looking into a very simple plugin like this one: https://github.com/letscontrolit/ESPEas ... 8_Dust.ino
It is about the most simple plugin I could find.

Only you need to read from the serial port.
So first you need to add code to read it from Serial as described on the dfRobot site.
Then later on we can make it more generic by using the ESPEasySerial wrapper, so it can work on any serial port for ESP8266 or ESP32.

For a first attempt, you can use the reading code listed on the dfRobot site and run it in the PLUGIN_READ case of the switch statement.

Wolvie
Normal user
Posts: 4
Joined: 01 Jun 2020, 20:55

Re: Distance Sensor A02YYUW

#6 Post by Wolvie » 06 Jun 2020, 09:31

Great!

Let's see if I get it...

I'm learning with every project and new idea... :D

Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests