Maker Pro
Maker Pro

Differences between LTSpice and Real circuit and why?

chopnhack

Apr 28, 2014
1,576
Joined
Apr 28, 2014
Messages
1,576
Maybe someone can attempt to help on this question.

As you can see below in the waveform, the circuit works as expected. I added C3 to smooth out the transitions between the oscillations. The value was derived by watching the output until it was clean. D3 is an LED that in real life shows only 4.4mA running through it while in the sim it shows a little over 10mA. Is there a reason why? Maybe one of our experts on Spice can assist. @Harald Kapp - I think you assisted me before with spice and would greatly appreciate any further help.

upload_2015-6-16_14-55-18.png

upload_2015-6-16_14-57-22.png
 

chopnhack

Apr 28, 2014
1,576
Joined
Apr 28, 2014
Messages
1,576
Hi John
You using the same LED?
Adam

Bingo, Bravo Adam!!!

No, I used a generic LED and now that you mention it, I was curious as to why when I selected different LED's from spice I ended up having different current values across the LED. I can only guess that this is because of an internal resistance inside the LED?

If I wanted more current across the LED, is there a way to achieve this? Notice that the current reducing resistor is set to 1Ω and in the real life circuit there is no resistor.
 

chopnhack

Apr 28, 2014
1,576
Joined
Apr 28, 2014
Messages
1,576
Do you think 100k resistor is too high to saturate the base? I am trying to limit the current to the base to the least allowable. While playing with spice, I went up as high as 20MΩ before I started to see a drop in current across the LED. At 100k resistance to the base, the base current on Spice shows to be 15uA. In the real life circuit I am using 100k resistor and it is functioning.
 

Arouse1973

Adam
Dec 18, 2013
5,178
Joined
Dec 18, 2013
Messages
5,178
This LED has a max 3.5 Vf. It's a white LED. Also are your transistor suppose to be configured as Darlington arrangement?
Adam
 

chopnhack

Apr 28, 2014
1,576
Joined
Apr 28, 2014
Messages
1,576
This LED has a max 3.5 Vf. It's a white LED. Also are your transistor suppose to be configured as Darlington arrangement?
Adam
The current real circuit is using green, I assume at around 2.2Vf. The transistors - well, I was just messing around with them to see if I could get them to function the way I was thinking they would. In this case, I was thinking to save power in the system. Instead of relying on the 555 to drive the led's, I thought I could use the transistors. By limiting the current out of the 555 with the large R3 value. I could then pickup the weak signal, amplify through one Q then pass that to the next Q.

The real circuit worked before with the transistors, I was just looking for other ways to improve power consumption with minimal part addition/expense.

I mean to integrate the LDR dark switch to this circuit. Can you make a suggestion as to the best location to interface the two?
 

Arouse1973

Adam
Dec 18, 2013
5,178
Joined
Dec 18, 2013
Messages
5,178
I am not that familiar with 555 timers as you know :) I guess you could look at using the reset pin. If you are worried about current drain and require the power to be switched you could use an LDR power switch. What current does the whole circuit draw when on, do you know?
Adam
 

Arouse1973

Adam
Dec 18, 2013
5,178
Joined
Dec 18, 2013
Messages
5,178
I will review the datasheet and see if that reset pin can be tapped. The pin is kept high currently. What do you mean by an LDR power switch? This is the current LDR switch I have been working on.

Ammeter in series between the battery and circuit shows 3.4mA

I mean design a low power circuit which draws virtually no current when off but can supply 3.4 mA when the LDR triggers it. Maybe a low power comparator or Schmitt trigger.
Adam
 

Arouse1973

Adam
Dec 18, 2013
5,178
Joined
Dec 18, 2013
Messages
5,178
I have always found photo diodes or photo transistor good for this sort of thing.
Adam
 

davenn

Moderator
Sep 5, 2009
14,254
Joined
Sep 5, 2009
Messages
14,254
also, above all ....
Don't forget that all circuit simulators assume ideal components
real life doesn't have ideal components
 

chopnhack

Apr 28, 2014
1,576
Joined
Apr 28, 2014
Messages
1,576
Harald had mentioned the Schmitt trigger as well as comparator but I was trying to avoid many more components. I thought I could simply arrange the LDR to give me an on/off, but as he explained there won't be a clean on off unless the Scmitt trigger is used. I need to work on this some more. I appreciate the input and quick replies and thoughts. The photo diode/transistor - I would need to reverse its function - it allows current to flow when light falls on it. I need current to flow when dark. Could a PNP be coupled to the emitter of the phototransistor to act as an inverter?

Good point Dave ;-)
 

Arouse1973

Adam
Dec 18, 2013
5,178
Joined
Dec 18, 2013
Messages
5,178
Yes you can use a phototransistor to switch another transistor. You could use a MOSFET for this. But it won't be a clean switch unless it goes from dark to light quickly. If your talking about daylight going to dark then you need a faster switch really. You can make Schmitt triggers from transistors.
Adam
 
Top