Weird input situation in a PIC circuit

AI Thread Summary
A PIC circuit was initially functioning correctly, activating output pins when a magnetic reed switch received a logic 1. However, the output pins began activating even when the switch was open, and checking the input pin voltage caused the outputs to stop. The issue was identified as a broken link between the switch and a pull-up resistor, which resulted in a floating input situation. Once the link was repaired, the circuit operated as intended. Proper connections and resistor values are crucial for stable circuit performance.
Zalajbeg
Messages
77
Reaction score
3
Hey everyone,

I have built a circuit which includes a PIC. The logic is that if a specific pin gets a logic 1, the output pins will be activated and LED lights will flash. I am controlling the input pin with a magnetic reed switch.

It was working great few days ago. However today the output pins are activated even if the reed switch is open. The weird thing is that when I want to check the voltage in the input pin (I am linking one prob to the pin and the other one to the ground) the output pins stop.

What can be the issue? I don't know why linking a theoretically infinitive resistance parallel to the circuit cause this stop. Could you please help me?

Additional information: I plugged out the switch but it still activates the output pins. I broke the link and it still activates when I touch pin.
 
Last edited:
Engineering news on Phys.org
You probably need a pull-up/down resistor on your switch input pin. 10-100K oughta do the trick.

If you already have that in place, then we need a lot more information about your circuit and software.
 
schip666! said:
You probably need a pull-up/down resistor on your switch input pin. 10-100K oughta do the trick.

If you already have that in place, then we need a lot more information about your circuit and software.

First of all I thank you very much for your reply. There had already been a resistor (4.7k) however I find out that the link was broken. When I fixed the link between the switch and the resistor it worked great. When I was a newbie to the topic someone mentioned about the floating situation and I experienced it with this broken link.
 
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I have recently moved into a new (rather ancient) house and had a few trips of my Residual Current breaker. I dug out my old Socket tester which tell me the three pins are correct. But then the Red warning light tells me my socket(s) fail the loop test. I never had this before but my last house had an overhead supply with no Earth from the company. The tester said "get this checked" and the man said the (high but not ridiculous) earth resistance was acceptable. I stuck a new copper earth...
I am not an electrical engineering student, but a lowly apprentice electrician. I learn both on the job and also take classes for my apprenticeship. I recently wired my first transformer and I understand that the neutral and ground are bonded together in the transformer or in the service. What I don't understand is, if the neutral is a current carrying conductor, which is then bonded to the ground conductor, why does current only flow back to its source and not on the ground path...
Back
Top