Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIR to Arduino to BD437g

Status
Not open for further replies.

AllenPitts

Newbie level 4
Joined
Jan 30, 2021
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
107
Hello EDABoard forum,

Trying to keep this simple because I think I make things to complex.

PIR_Arduino_BD437g_protoype_210219.jpg



This configuration works as designed. That is when the PIR goes high output from the Arduino activates the transistor
and turns on the indicator LED on the transistor board on the left and the six more display LEDs. (The big picture is there
will be seven PIR boards and seven transistor boards that will cause the display LEDs to light according to logic on the Arduino. Presently this represents one of the PIR to LED display channels. When one channel works six more will be added.)

The question is about the transistor board. The transistor board is based on the excellent schematic that d123 offered recently in a thread called 'BD437g Transistor Checker'.

Transistor_Checker_One_210202.gif



After I got the circuit working, the transistor to prototype board in the diagram marked PIR Arduino BD437g
the board was compared to D123's schematic to document the result. It was noticed that R2 and the capacitor (just noticed mistake on prototype diagram: the cap is shown as a polarized cap when it is really a small unpolarized cap) are connected to the BD427g base. And that R2 and the capacitor are not connected to ground as shown in the schematic.

So a jumper wire was placed on the proto board between the pads marked N1 and N2. N1 is connected to
R2 and the capacitor in parallel and N2 is connected to ground. Thus connecting R2 and C1 to ground.

When the jumper was soldered in the transistor board stopped working. And when the jumper was removed
between N1 and N2 the circuit worked again.

So without the jumper R2 and the capacitor are connected to each other but they are not connected to ground as shown in the schematic.

Question One
So why does the circuit work when it is not configured as shown in the schematic and work when it is hooked up 'incorrectly'?

Question Two
If I may be allowed a second question please: What is the function of C1 in the schematic? It is known that a capacitor stores a charge until it reaches its capacity and then releases the charge. What is C1 doing in the circuit?

Thanks for your time, knowledge and experience,

Allen Pitts, Dallas TX
 
Last edited:

C1 and R2 are not needed if you drive it from logic voltage source like an MCU.

R2 is there to ensure that if the +5V source is removed, the base doesn't just 'float' but has a weak connection to ground. The logic voltage from the MCU will ensure that happens anyway. Its easy to think of the MCU as providing 5V or 0V but in reality it either sources current when at 5V (high) or sinks current from outside when at 0V (low). This means R1 itself would ensure the base had no residual voltage on it.

C1 is just to ensure no AC is picked up on the wiring. AC could be from many electrical sources including nearby radio stations, WiFi or mobile phones. Again it isn't needed when you drive the transistor from a logic level source. You can leave it in if you like but it will do very little.

I would guess the reason it doesn't work when you add the link is that the potential divider of R1 and R2 drop the voltage too low to bias the transistor into conduction, it would depend on the actual logic voltage feeding it.

Brian.
 

    AllenPitts

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top