Lawn irrigation with pop up sprinklers controlled with Arduino/Blynk

hi @Jamin - cool project ; how did you get the cool icons in the water readout and temperature ? Is it available for iOS or just Android

@mars, He’s using the labelled value indicator widget, and entered an emoticon :bulb: :slight_smile: . That’s a neat workaround @jasmin !

1 Like

very cool !

To Jamin.
Hi. Very good project.
I have one question: how You inserted pictograms of the thermometer and drops onto widgets TEMP,
HUMIDITY and WATER USAGE TODAY?
Thank You.

Hello @Jamin
Really awesome project.
I am working on similar project .i have used water flow sensor as you shown in pics.
Have you got good accuracy for counting
Water usage with this sensore??
From where you buy this solenoid valves??

Use emojis from your smartphone keyboard.
For labeling widget.
Like this :droplet::sweat_drops:

Hi, I found this and had it working on my UNO (+ ESP Serial). Yet to get it working on the ESP standalone.


http://diyhacking.com/projects/FlowMeterDIY.ino

Bingo!

Hello, Great project! It is possible that you generate QR Code for this project?
Thanks
Maciej

1 Like

Thank you @Jamin for the great project.
I’m having problems compiling. Can you help me.
I am using Arduino IDE 1.8.1 Install, library Blynk 0.4.7, NodeMCU 8266 v1

In file included from C:\Users\GioLangLe\Documents\Arduino\libraries\Blynk\src/WidgetLED.h:13:0,

                 from C:\Users\GioLangLe\Documents\Arduino\libraries\Blynk\src/BlynkWidgets.h:10,

                 from C:\Users\GioLangLe\Documents\Arduino\libraries\Blynk\src/BlynkSimpleEsp8266.h:94,

                 from C:\Users\GioLangLe\Desktop\SPI\SPI.ino:41:

C:\Users\GioLangLe\Desktop\SPI\SPI.ino: In function 'void BlynkWidgetWrite1(BlynkReq&, const BlynkParam&)':

C:\Users\GioLangLe\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkWidgetBase.h:50:33: error: 'class WidgetRTC' has no member named 'onWrite'

     BLYNK_WRITE(pin) { (widget).onWrite(request, param); }

                                 ^

C:\Users\GioLangLe\Desktop\SPI\SPI.ino:83:1: note: in expansion of macro 'BLYNK_ATTACH_WIDGET'

 BLYNK_ATTACH_WIDGET(rtc, RTC_vPIN);

 ^

C:\Users\GioLangLe\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkWidgetBase.h: In instantiation of 'BlynkAttachWidgetHelper::BlynkAttachWidgetHelper(T&, uint8_t) [with T = WidgetRTC; uint8_t = unsigned char]':

C:\Users\GioLangLe\Desktop\SPI\SPI.ino:83:1:   required from here

C:\Users\GioLangLe\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkWidgetBase.h:43:9: error: 'class WidgetRTC' has no member named 'setVPin'

         widget.setVPin(vPin);

         ^

exit status 1

Those errors are not related to my project, but instead your local setup.

Check all your libraries are correct and up to date. You also need to troubleshoot in steps by removing portions until it works.

Sorry I cant help more.

1 Like

What versions are you using?

Not latest… haha – actually not sure what I have installed at home.

However the code you would have copied above is quite old… back when I had only been writing arduino/c++ a few months.

Check out my Github repo for the project that the above code evolved in to. Its more complete but might be slightly different to whats you’re wanting. Either way its probably a better stating point.

and here is the community thread:

1 Like

Dear Jamin,
please explain to me if you want what does the simpletimer shorthand, like this:

timer.setInterval( 1000, []() { ... } )

Thanks a lot

It’s the same as using simpletimer but without the hassle of having to write a callback function.

Thanks a lot for your answer.
So to ensure that I understood your reply, that means that we can have ( using the shorthand way ) at setup section, both the simpletimer definition as well as the required function ( the callback function ). Is that correct.

Thanks and Best regards,
Mike Kranidis

For a little light reading :stuck_out_tongue: Google “Lambda Expressions C++

2 Likes

Thanks a lot dear Gunner. You are always a helping hand at most of us.
I will do the Google searching to possibly learn something new to me.

Best Regards,
Mike Kranidis

Correct. Once you get used to it, you will never look back! Makes for less coding and messy callbacks. It also means you can pass in arguments or use it as a non-blocking delay in-line.

1 Like

can you provide the circuit diagram