Float switch control

I was wondering if there was a way to install a float switch that will turn off the pins i am using to control 2 perstaltic pumps.

efore creating the topic

  1. Search forum for similar topics
  2. Check http://docs.blynk.cc and http://help.blynk.cc/
  3. Add details :
    • Hardware model + communication type. For example: Arduino UNO with Ethernet Shield
    • Smartphone OS (iOS or Android) + version
    • Blynk server or local server
    • Blynk Library version
    • Add your sketch code. :point_up:Code should be formatted as example below.

Simply paste your code between ``` If you don’t format your code, your topic can be deleted by moderators.

void loop()

How does Blynk relate to this?

What code do you have so far?


Well I want to know if there is an input button or feature with in blynk to add this command? I’m not a coder so I’ve managed to get the pumps running on, on off button along with timers and speed control, but if I wanted to add this command function how would I do it? Excuse my ignorance

Hi, Yes, Blynk provides a range of widgets, including buttons that can control GPIO pins on MCUs.

You’ll need to follow the Getting Started guide . . . start with very basic sketches, turn LED on/off . . . then slowly add features as you gain experience.


At least he kept his void loop clean! :stuck_out_tongue_winking_eye:

Well… Have you read any of the docs? I’m not sure you understand how Blynk is meant to be used?!

1 Like

This is a basic microcontroller question, and not related to Blynk in any way.
Do some research about connecting switches to GPIO pins on whatever type of board you are using. Go for a solution which uses a timer to ‘poll’ the pins on a regular basis to see if the switch is open or closed.