Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/22/09 16:16
Modified:
  10/22/09 17:12

Read: times


 
Msg Score: -1
 -1 Answer is Wrong
#169981 - The first obvious sign of failure
Responding to: ???'s previous message
The MCU has an external interrupt pin. How is that pin configured in software? For example, that little guy can be edge triggered or it can always trigger when at a level meaning you could get multiple interrupts. Secondly, humidity/temperature will cause a change in your oscillator depending on how it is constructed. This being said, if you configured your MCU to work where the thing is always interrupting at a level, well it could have worked for a while until the oscillator degraded due to environmental conditions because your code could be perfectly timed to only show one interrupt. In reality, it is not a stable system. If you only want one interrupt configure for edge trigger only and this would be regardless of how you made your oscillator. On top of this, you should have a buffer chip utilizing a Schmitt trigger with distinct levels as mentioned before that reads high or low regardless if it is digital or analog just to protect the input circuitry of the MCU. To go further, anything from the outside world needs to have a default (high or low) set by hardware protection. This is just common practice that not many engineers invoke. Regarding your optocoupler, just because you use a logic level optocoupler does not necessarily mean that you will get a distinct output (unless the input or output is dictated by a Schmitt trigger). Using a buffer chip utilizing a Schmitt trigger right after the sensor and tying into the optocoupler will insure a non-floating signal. I take it the proximity sensor is analog, of course, meaning you will have to have hardware protection before the buffer chip. Since youve used a new proximity sensor, the doubt is in your circuitry and programming.

List of 25 messages in thread
TopicAuthorDate
External interrupt problem.            01/01/70 00:00      
   Clarify            01/01/70 00:00      
      Noise? Analog processing?            01/01/70 00:00      
      Inductive proximity switch            01/01/70 00:00      
         Looked at the signal?            01/01/70 00:00      
            air humidity and external interrupt pin            01/01/70 00:00      
               No, the interrupt line isn't affected by air humidity            01/01/70 00:00      
                  air humidity can affect - also temperature, etc            01/01/70 00:00      
   May be the proximity switch not working properly            01/01/70 00:00      
      Indication is not proof            01/01/70 00:00      
      using new proximity switch            01/01/70 00:00      
         Are you using it correctly?            01/01/70 00:00      
            i am using proximity switch correctly            01/01/70 00:00      
      Not necessarily true            01/01/70 00:00      
   The first obvious sign of failure            01/01/70 00:00      
      Try this            01/01/70 00:00      
         by my best guess ....            01/01/70 00:00      
   Some ideas            01/01/70 00:00      
      Inductive Proximity Sensors            01/01/70 00:00      
   Who mentioned "inductive"?            01/01/70 00:00      
      Fourth one down            01/01/70 00:00      
         Oh yes!            01/01/70 00:00      
   Can you post the schematic ?            01/01/70 00:00      
   Problem solved            01/01/70 00:00      
      Thus proving the point...            01/01/70 00:00      

Back to Subject List