Again LED dimming and fading on

cmartinez

Joined Jan 17, 2007
8,789
ok now what, I've got a grey screen with black cross, *new schematic* shows Draft1, Draft2
I still have to build the circuit suggested by #12, I'll do that later today.
In the meantime, I suggest you explore the examples and tutorials included with LTspice
 

cmartinez

Joined Jan 17, 2007
8,789
Open one of them, and run the sim by pressing the running man button on top left of the menu.
Then place a probe at any node of the circuit to see what happens.
 

cmartinez

Joined Jan 17, 2007
8,789
For instance, there's a file named astable.asc, open that one, run it and place the probe in several places... see what happens..
 

Thread Starter

Chillum

Joined Nov 13, 2014
546
Another very interesting file is 160.asc
just run it and it'll automatically show you what's happening
Absolutely beautiful, was thinking of investing in a oscilloscope, but that will eat most all of my savings, I've got about 3000 ZAR saved up for when I need to buy R30 a piece jfets, I'm very careful with my money, I might really need it, for if my motherboard acts up or something... not your worries
 

Thread Starter

Chillum

Joined Nov 13, 2014
546
Sounds like you want the monostable configuration - it ramps one way or the other, then stops till it gets another trig.
NOPE, that's what cmartinez thought aswell: time x axis; brightness y axis

farts.png

both slopes should be adjustable indepentantly, and the distance between led1 (blue) and led2 (red) starting time should be adjustable, so led 1 starts lighting up and a (adjustable) moment later led 2 starts lighting up, both at their own speed
 

ian field

Joined Oct 27, 2012
6,536
excuse the fact that I'm still very noob, but what part of the circuit is that, and how does it work, I don't see the diodes working? does this circuit fade the diodes? how will base be controlled by the resistor and potentiometer? should this be obvious?
The normal astable has a top resistor from pin 7 to Vcc, that limits the collector current when the Disch' transistor is conducting.

The next resistor between pin 7 and 2-6 is the timing resistor, when the timing capacitor is charging the current is flowing from Vcc to charge the capacitor. In the other phase of the astable, the Disch transistor conducts and the current discharging the capacitor flows in the opposite direction.

Clearly; you can use a pair of steering diodes to separate the charge and discharge paths - then you can have 2 different resistors, one for charge and one for discharge, from that point on its easy to manipulate the relative charge and discharge time periods.

Just replace the 2 resistors with a single pot and you can sweep the common point to favour one diode or the other.
 

Thread Starter

Chillum

Joined Nov 13, 2014
546
The normal astable has a top resistor from pin 7 to Vcc, that limits the collector current when the Disch' transistor is conducting.

The next resistor between pin 7 and 2-6 is the timing resistor, when the timing capacitor is charging the current is flowing from Vcc to charge the capacitor. In the other phase of the astable, the Disch transistor conducts and the current discharging the capacitor flows in the opposite direction.

Clearly; you can use a pair of steering diodes to separate the charge and discharge paths - then you can have 2 different resistors, one for charge and one for discharge, from that point on its easy to manipulate the relative charge and discharge time periods.

Just replace the 2 resistors with a single pot and you can sweep the common point to favour one diode or the other.
OK, have no idea what you just said, but in the end I can't use a pot (can use it to determine what the set value should be), but I'm making 8 different keys of fart sounds, it should in the end be as simple as pressing the (available SPDT) buttons/keys
 

cmartinez

Joined Jan 17, 2007
8,789
Sounds like you want the monostable configuration - it ramps one way or the other, then stops till it gets another trig.
Yes, that's what I want... and I've seen monostable configurations, but not one that behaves the way I want. That is, press the trigger, ramp the voltage up, and stay at maximum voltage until the trigger button is released.
 

Thread Starter

Chillum

Joined Nov 13, 2014
546
Yes, that's what I want... and I've seen monostable configurations, but not one that behaves the way I want. That is, press the trigger, ramp the voltage up, and stay at maximum voltage until the trigger button is released.
sorry, misunderstood... mono is 1 so ofcourse monostable and yes, none I've seen either does what we need
 

cmartinez

Joined Jan 17, 2007
8,789
NOPE, that's what cmartinez thought aswell: time x axis; brightness y axis

View attachment 82928

both slopes should be adjustable indepentantly, and the distance between led1 (blue) and led2 (red) starting time should be adjustable, so led 1 starts lighting up and a (adjustable) moment later led 2 starts lighting up, both at their own speed
Chillum, generating the ramp and discharging on release is the tricky part. Triggering the second led with an adjustable delay will be a piece of cake after that.
 

Thread Starter

Chillum

Joined Nov 13, 2014
546
Chillum, generating the ramp and discharging on release is the tricky part. Triggering the second led with an adjustable delay will be a piece of cake after that.
I thought that it should be simple to do the delay, my guess was a simple capacitor to reset?
 
Top