Author Topic: Need help in a simple seemingly simple RC Circuit  (Read 787 times)

0 Members and 1 Guest are viewing this topic.

Offline Sultanpepper123Topic starter

  • Regular Contributor
  • *
  • Posts: 50
  • Country: eg
Need help in a simple seemingly simple RC Circuit
« on: September 16, 2022, 03:33:03 pm »
Hello everyone,

It's me again  ;D , I've been struggling in getting this circuit working in my work and again I'm really embarrassed to say I spent a considerable amount of time trying to get it working. My objective to try to use low power (3.3V/μA), low cost and jellybean components. The idea of this circuit is we have six latching buttons for tamper detection connected to one single dedicated pin while in a battery operated backup mode , In a tamper situation the button toggles the inputs state from O/C to ground which generates a single sharp drop of capacitor charge down to zero, the reason for using this RC circuit is that I need to be able to manipulate my 1 interrupt pin (dedicated) to get an interrupt from all six switches without having a single switch to latch the pin to ground indefinitely, making it impossible to detect any further tamper switching events .

Now this circuit works if implemented with one switch and the output works like shown below without problems.

Blue trace = Switch (pressed = 0V)
Green trace = RC Circuit output

The problem starts to happen when making another 5 similar circuits and joining them at the same output, the voltage drop now does not drop to zero , drops down from 3.2V maybe to around 2.44V(low) which is far the region to be recognized by the microcontroller as a zero (low). I've tried using series diodes at the output of each circuit but it did not help ( tried using MMBD4148 and 1N4007) .

I would really appreciate it if someone would share his thoughts on how to make this work  and what may be the culprit ? . If anyone needs more information, please let me know, and thanks to everyone for taking the time to read this thread.

BR
SP
« Last Edit: September 16, 2022, 03:35:24 pm by Sultanpepper123 »
 

Offline pcprogrammer

  • Super Contributor
  • ***
  • Posts: 4411
  • Country: nl
Re: Need help in a simple seemingly simple RC Circuit
« Reply #1 on: September 16, 2022, 03:53:19 pm »
You might give this a try.

I did not do calculations on the resistors nor capacitors. The diode is to suppress the positive spikes.

Edit: it might need a single pull up resistor instead of the pull down resistor after the capacitors.
« Last Edit: September 16, 2022, 03:57:38 pm by pcprogrammer »
 
The following users thanked this post: Sultanpepper123

Offline Sultanpepper123Topic starter

  • Regular Contributor
  • *
  • Posts: 50
  • Country: eg
Re: Need help in a simple seemingly simple RC Circuit
« Reply #2 on: September 16, 2022, 04:41:50 pm »
Thank you sir for sharing the circuit and for taking the time to share your thoughts.

From the looks of it this circuit seems to be quite similar to what I'm working with but the last resistor is shared at the output , correct ?

Best regards
SP
 

Offline pcprogrammer

  • Super Contributor
  • ***
  • Posts: 4411
  • Country: nl
Re: Need help in a simple seemingly simple RC Circuit
« Reply #3 on: September 16, 2022, 05:17:30 pm »
Yes the resistor is shared, but it might have a problem with the pulse only being positive. This kind of circuit has been used in early day's drum machines and electric pianos to make the attack/decay envelope.

Offline eugene

  • Frequent Contributor
  • **
  • Posts: 496
  • Country: us
Re: Need help in a simple seemingly simple RC Circuit
« Reply #4 on: September 16, 2022, 05:23:25 pm »
Why not use a single circuit with multiple switches in parallel?
90% of quoted statistics are fictional
 

Offline Sultanpepper123Topic starter

  • Regular Contributor
  • *
  • Posts: 50
  • Country: eg
Re: Need help in a simple seemingly simple RC Circuit
« Reply #5 on: September 16, 2022, 05:55:02 pm »
Why not use a single circuit with multiple switches in parallel?

Thank you sir for the suggestion. Unfortunately as soon as one switch is triggered(released since it is a tamper switch) it will stay latching the line to ground, I think any further triggering from other switches will not be possible .

The device is intended to have several lines of tamper switches so the first accessible location when tripped it will stay tripped till the device gets assembled back together again.

Best regards
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf