2844 views|6 replies

197

Posts

0

Resources
The OP
 

Level reading problem [Copy link]

IO is the input read level value
This post is from Analog electronics

Latest reply

I think this circuit is great. It's pretty good. You should test it. Looking forward to your test results.  Details Published on 2018-10-17 17:12

2w

Posts

0

Resources
2
 
I don't know why the original poster wants to use such a circuit. The IO port of the microcontroller can only read high and low levels, in other words, it can only read digital quantities, so P9 must also be digital quantities (high and low levels). P9 may be a dry contact (no power supply, just a contact), relying on the 3.3V power supply to determine whether the contact is closed. If so, there is no need to use a transistor, a resistor is enough. If you are afraid of interference, you can add a capacitor to form a first-order RC low-pass.
This post is from Analog electronics
 
 

197

Posts

0

Resources
3
 
At that time, I didn't know how serious the interference was, and I didn't know whether the capacitors were clean enough. I wanted to use the unidirectional conduction of the PN junction to prevent the interference source from burning the microcontroller.
This post is from Analog electronics

Comments

How severe the interference is can be estimated from the source of the input signal, the type and length of the wire, the surrounding electromagnetic environment, etc.  Details Published on 2018-10-17 10:24
 
 
 
 

2w

Posts

0

Resources
4
 
tangwei8802429 posted on 2018-10-17 10:07 At that time, I didn’t know how strong the interference was, and I didn’t know if the capacitors were clean; I wanted to use the unidirectional conduction of the PN junction to prevent the interference source from burning the microcontroller.
How strong the interference is can be estimated from the source of the input signal, the type and length of the wire, the surrounding electromagnetic environment, etc.
This post is from Analog electronics
 
 
 
 

875

Posts

1

Resources
5
 
This circuit is designed so that the transistor is always turned on. In principle, the voltage of P9 is always measured. However, this is an ideal situation because the transistor has a voltage drop. Therefore, what you actually measure is not the voltage of P9.
This post is from Analog electronics
 
 
 
 

1w

Posts

142

Resources
6
 
Circuit design error, what function do you want to achieve? First figure out the function and make the correct design. For interference problem, first figure out the nature, intensity, spectrum, etc. of the interference, and then take targeted measures.
This post is from Analog electronics
 
Personal signature上传了一些书籍资料,也许有你想要的:http://download.eeworld.com.cn/user/chunyang
 
 
 

18

Posts

0

Resources
7
 
I think this circuit is great. It's pretty good. You should test it. Looking forward to your test results.
This post is from Analog electronics
 
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list