logo elektroda
logo elektroda
X
logo elektroda

Want to operate a relay from a change in input; hi to lo or lo to hi

69 21
ADVERTISEMENT
  • #1 21665245
    Bill Blesbok
    Anonymous  
  • ADVERTISEMENT
  • #2 21665246
    Stephen Van Buskirk
    Anonymous  
  • ADVERTISEMENT
  • #3 21665247
    Steve Lawson
    Anonymous  
  • #4 21665248
    Bill Blesbok
    Anonymous  
  • ADVERTISEMENT
  • #5 21665249
    Bill Blesbok
    Anonymous  
  • ADVERTISEMENT
  • #6 21665250
    Stephen Van Buskirk
    Anonymous  
  • #7 21665251
    Steve Lawson
    Anonymous  
  • #8 21665252
    Steve Lawson
    Anonymous  
  • #9 21665253
    Mark Harrington
    Anonymous  
  • #10 21665254
    Bill Blesbok
    Anonymous  
  • #11 21665255
    Steve Lawson
    Anonymous  
  • #12 21665256
    Bill Blesbok
    Anonymous  
  • #13 21665257
    Steve Lawson
    Anonymous  
  • #14 21665258
    Mark Harrington
    Anonymous  
  • #15 21665259
    Mark Harrington
    Anonymous  
  • #16 21665260
    Mark Harrington
    Anonymous  
  • #17 21665261
    Bill Blesbok
    Anonymous  
  • #18 21665262
    Mark Harrington
    Anonymous  
  • #20 21665264
    Bill Blesbok
    Anonymous  
  • #21 21665265
    Mark Harrington
    Anonymous  
  • #22 21665266
    Bill Blesbok
    Anonymous  

Topic summary

The discussion centers on designing a simple circuit to operate a relay triggered by a change in input state from a limit switch activated by a rotary cam. The relay should respond only to the first input transition (high-to-low or low-to-high) and ignore subsequent changes until reset. Key considerations include how to reset or turn off the relay, with suggestions for a manual pushbutton reset. Various solutions were proposed: using a single relay with additional logic, employing logic gates such as CD4013B flip-flops and CD4093B NAND gates, or opting for embedded microcontrollers like PIC microcontrollers or Arduino for edge detection and relay control. The PIC microcontroller approach is favored for its flexibility, lower cost, and ease of programming, despite requiring some learning and hardware setup. Flowcharts and example code were shared to illustrate interrupt-driven edge detection and relay control using PIC12F675 or PIC16F628. The use of PLCs was mentioned but considered overkill and more expensive. Component cost and availability were discussed, with clarification that CD4093B ICs are inexpensive when sourced from reputable suppliers. The conversation also touched on programming tools such as MPLAB X IDE and PIC programmers like PICKIT2 or PICKIT3, with some users exploring programming PICs via Arduino on Linux systems. Overall, the thread guides toward a microcontroller-based edge-triggered relay control circuit with manual reset, supported by example flowcharts and code.
Summary generated by the language model.
ADVERTISEMENT