View previous topic :: View next topic |
Author |
Message |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun May 29, 2011 11:48 pm |
|
|
Your schematic doesn't show any circuits connected to the Opamp pins.
It doesn't show power and ground on the Opamps.
Post a new schematic that shows all the Opamp connections, including
resistors, capacitors, and the sensors. Post the manufacturer and part
number of the sensors that you have connected to the Opamps.
What voltages do you measure on the pins of Port B with an oscilloscope ?
Is it a continuous steady voltage level on each pin ? |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19612
|
|
Posted: Mon May 30, 2011 2:00 am |
|
|
Also, the MCLR switch connection seems to be designed to blow the power supply.
Include the circuit of the oscillator, power supply, and what smoothing capacitors are round the PIC itself.
Best Wishes |
|
|
amir6682
Joined: 23 May 2011 Posts: 14
|
|
Posted: Mon May 30, 2011 3:44 am |
|
|
can i separate output of opamp and test circuit with 5v out of supply??? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon May 30, 2011 11:28 am |
|
|
Disconnect all Opamps, and put this circuit on pin B0 of the PIC:
Code: |
+5v
|
<
> 4.7K
< ___ Switch
To | _|_|_
PIC -----------------o o------
pin |
--- GND
- |
Then test it. The normal state is a logic high level on pin B0. When you
press the button, you will get a logic low level on pin B0. |
|
|
amir6682
Joined: 23 May 2011 Posts: 14
|
|
Posted: Mon May 30, 2011 10:24 pm |
|
|
I separate opamp from the circuit and it was ok so problem is about opamp. My opamp is LM358. Thank for your help. |
|
|
|