Page 1 of 1

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!

Motor ON/OFF Trigge...
Clear all

Motor ON/OFF Trigger to Arduino UNO

2 Posts
2 Users
Joined: 1 second ago
Posts: 0
Topic starter  


I am a beginner at using Arduino.

I wish to do a very simple project.

If a user turns ON a water motor pump, it should give a trigger to my Arduino UNO.

Arduino will note the Motor ON time and date.

If a user turns OFF a water motor pump, it should again give a trigger to my Arduino UNO.

Arduino will note the Motor OFF time and date.

Please help me how can I detect motor ON/OFF and save the data using Arduino.

Famed Member Admin
Joined: 10 years ago
Posts: 2507

Hello Nikhil_m,

Well, the simplest way would be to utilize the switch used to turn the motor on or off.
This could be, for example, be a simple witch, opening/closing one of the wires to power the motor.
There are plenty of switches out there that are "double" switches and basically have 2 switches in one case - the second one could be used for the Arduino.

Another option is to have a relay (or a solid state alternative) in series with the motor. So when the motor is switched on, the relay is enabled as well, of which the switch is connected to your Arduino. This could even be an opto-coupler.

I guess it also matters what kind of motor this is and at what voltage it is running.

nikhil_m reacted

Like what you see and you'd like to help out? 

The best way to help is of course by assisting others with their questions here in the forum, but you can also help us out in other ways:

- Do your shopping at Amazon, it will not cost you anything extra but may generate a small commission for us,
- send a cup of coffee through PayPal ($5, $10, $20, or custom amount),
- become a Patreon,
- donate BitCoin (BTC), or BitCoinCash (BCH).