Monday, October 3, 2016

Under & overvoltage relay for AC main power supply

   After I made a test for Measuring AC Main Supply Voltage with Arduino, now I change the sketch for made protection relay with adjustable limits for undervoltage, overvoltage and delay-off time using 3 buttons:
   After power the module, Arduino read and calculate vltage for AC main power supply and if is ok, coil relay is powered:
   If push MENU/OK button, on display is SET
after 2-3 seconds, on display is undervoltage threshold, who cand change using + & - buttons:
    After you push MENU/OK button, is displayed overvoltage thereshold, who cand change using + & - buttons:
   After you pus MENU/OK buttons on display is delay-off time for reconnect coil relay after voltage is outside good range, also you can change value form 1 tp 20 seconds using + & - buttons:
    After you push MENU/OK button, on display is main voltage:
   I write main_voltage_3.ino sketch who made exactlly in picture, but it more easy to understund cases if you see under & overvoltage relay with Arduino movie

Bibliography:

37 comments:

  1. sir can u send me the program for the delay off time of the relay

    ReplyDelete
    Replies
    1. what kind of delay off / delay on relay.. please be more clear what you need for help you

      Delete
    2. i want program for overvoltage undervoltage protection of single phase induction motor,where i want to give delay of 5seconds to restart the relay after the voltage is ok.
      please send me the program as early as possible.

      Delete
    3. which sketch?

      Delete
    4. https://github.com/tehniq3/main-supply-voltmeter/blob/master/main_voltage_3.ino

      Delete
    5. thank you for the program sir.
      can i get the detail description of the above project.i mean the signalling u did.
      how the 230V is converted to 5V supply given to arduino.

      Delete
    6. also send me the components used and the ckt diagram

      Delete
    7. see also ar=ticle from http://arduinotehniq.blogspot.ro/2016/09/measuring-ac-main-supply-voltage-with.html
      list of pieces is in diagram, in this article...
      If you canțt recognize an schematic, do not get it...

      Delete
    8. sir one more request,
      can you send me the program for above project without using TM1637.
      please...

      Delete
    9. yes, but after few days, for me is Easter and I'm in holliday

      Delete
    10. Sir i can understand..but its really urgent for me...i havr to submit my project in next week....i am requesting you...please sir

      Delete
    11. I put an simplified version for you at https://github.com/tehniq3/main-supply-voltmeter/blob/master/main-supply-relay.ino

      Delete
  2. hi do u have the code for ?

    ReplyDelete
    Replies
    1. is in article link, where is "main_voltage_3.ino"... if click the page go to https://github.com/tehniq3/main-supply-voltmeter/blob/master/main_voltage_3.ino

      Delete
  3. Sir if I want to make the frequency relay along with this voltage relay what would be the hardware and code changes that are to be done please do tell me urgently sir because the deadline is near would be very kind of you
    I'll really appreciate the previous work the code is working fine sir please tell me about the addition for frequency relay Thank you soo much

    ReplyDelete
    Replies
    1. I'm sorry... Is complicated to put frequency relay toghether with this voltage relay, must use intrerrupt and I can't made this now... I'm very busy... sorry...

      Delete
  4. Hi sir ,iwant to know how to use Arduino to protect an AC motor against over and under voltage.
    Please provide any suggestions for my project work.its really urgent.
    Mail me: geddanapallibobby@gmail.com

    ReplyDelete
  5. hello sir, have u made a project about over and under voltage protection system using arduino?

    ReplyDelete
  6. hello sir
    how to change delay time to 2 minutes when power off then on

    ReplyDelete
    Replies
    1. for 99 seconds must change line if (intarziere > 20) intarziere = 20; with if (intarziere > 99) intarziere = 99;

      Delete

  7. 'class TM1637' has no member named 'set'

    ReplyDelete
    Replies
    1. you must add library from https://github.com/tehniq3/TM1637-display

      Delete
  8. THANKS FOR REPLY
    IT IS OK WORKING BT IF U DICONNECT POWER THEN ON THE TIME FIX TO SEC
    CANNOT CHANG IT TO 99 SEC

    ReplyDelete
    Replies
    1. uhh, also, you must change 20 to 99 in setup (line 113)

      Delete
  9. I CHANGE IT BUT SORRY THE SAME

    ReplyDelete
    Replies
    1. copy here changed sketch or send to me at nicu.florica@gmail.com to check myself

      Delete
  10. is very strange.. bat if you set 98?

    ReplyDelete
  11. I think you need to add led (yellow ) for wait if power off then on suddenly can you

    ReplyDelete
    Replies
    1. for me is an old project.. I can't reproduce now the project... sorry...

      Delete
  12. could you please modify the code to work with LCD insted of the 4-digit display ? also I was trying to use this project but without the buttons, so is it possible to remove them? I will be thankful for your help

    ReplyDelete
    Replies
    1. please read part 2 (next article), at the end is a sletch for LCD1602: http://arduinotehniq.blogspot.com/2016/10/under-overvoltage-relay-for-ac-main_3.html

      Delete