Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - PWM Question

(you are viewing a thread; or go back to list of threads)

PWM Question (by Frank)
Hi Guys....I need to monitor the output to a buzzer at end of a cycle....At the end of a cycle it pwm,s a signal for approx 500ms twice (5v idle) .....it can also at any time send out a 50ms pwm beep whenever any button is pressed...I want to ignore the 50ms signal and trigger something on the 2 500msec signals but not sure how to do it...Any suggestions would be much appreciated..
Regards
Frank
Mon Apr 26 2021, 00:10:23
(no subject) (by MGP)
Here's an example of how it could be.

Xfreq is the input and must scan the input faster than the frequency of the buzzer, otherwise you need an RC input circuit
Mon Apr 26 2021, 04:55:49, download attachment Buzzer_detect.ld
(no subject) (by Frank )
Hi MGP
Thanks for replying , Can you give a brief explanation how I implement the piece of code you posted. Is it trying to mask the 50mSec pulse ? Thanks
Mon Apr 26 2021, 06:57:35
Pen Question (by Frank )
Hi MGP
Thanks for replying , Can you give a brief explanation how I implement the piece of code you posted. Is it trying to mask the 50mSec pulse ? Thanks
Mon Apr 26 2021, 06:59:13
(no subject) (by MGP)
Tdel = 100mS so inputsignals shorter then 100mS are not detected and longer then 100mS will be detected.

Change Tdel to 50mS or 60mS if needed.
Mon Apr 26 2021, 10:56:31
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):