KlausST
Advanced Member level 7
- Joined
- Apr 17, 2014
- Messages
- 26,277
- Helped
- 4,926
- Reputation
- 9,875
- Reaction score
- 5,796
- Trophy points
- 1,393
- Activity points
- 176,822
Hi,
Please take a photo of your circuit, where we can see the wiring.
Klaus
I think you have answered your own question with that photograph.
Where are the resistors on the schematics you gave us? You only showed the IC but clearly there are some other components on the board and I strongly suspect one of those resistors is a 'pull-up' on the DI pin and that is the source of your current.
Brian.
Hi,
On the PCBs you bought ... there is not only the bare MAX485 IC, there additionally are at least 7 resistors, 2 capacitors and a LED.
Klaus
Don't refer to the datasheet, look at your real hardware.are you referring below schematics from the data sheet? so what is the solution for this? all my pins are occupied.
yes it seems like that. i have added a LED on PIR output and one on receiver end. if i understand correctly both should turn on and off in sync based on the motion detected. but in pic if you see only receiver LED is on. just to let you know if i test PIR as a standalone unit attached with LED (using TTL signal) it works properly which mean my PIR unit is proper.O.K., you have 10k pull-up at DI. But what's the problem with it? Doesn't HC-SR501 provide a push-pull output?
Hi,
Inputs must not kept floating.
Unused outputs: leave unconnected
I assume your LED connection is not correct - but as so often - your photo does not match your given schematic.
This makes helping difficult.
It seems your LED is connected in series. This is wrong. And every LED needs a current limiting resistor. I don´t see it.
Just connect the LED to DI as you connect the LED to DO.
Klaus
so what should be my correct schematics? please advice.Connecting R2 and LED this way makes no sense. In combination with pull-up on RS-485 module, the input will be permanently high. No way to signal a state change of PIR sensor.
The LED and it's current limiting resistor are to monitor for the presence of a voltage. If a voltage above the forward voltage of the LED is present it will let current flow and it will light up. To check for the voltage it needs to be across that voltage, you have it wired in series and probably the wrong way around too.
It should be wired with the sensor output directly connected to DI and the resistor and LED wired in series from that connection to ground. The cathode end of the LED (the end the arrow points towards) should be the grounded end.
If your schematic is accurate and the sensor produces a 3.3V output, check what its maximum supply voltage should be. It is unusual for a 5v operated device to have a 3.3V output, usually it is the same as the supply.
Brian.
Read post#34so what should be my correct schematics? please advice.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?