== Archive of Jewel Thief Stuff == //I'm just dumping stuff here I may need later.// --- //[[honeypot@handbasket.org|David Wagner]] 2007/07/13 00:14// ===== Alternative Schematics ===== // +------+ +-------+-->|-+-----+ | | | | | | A1 UUUUU.A2 + _+-----+ | ===== C\ /E | | B2.UUUUU B1 ----- | | | | |B | +------+ +--/\/\/---+ | | | | --- +----> +1V - // +-->|--+ | | +------+ +------+->|--+--||--+ | | | | | | A1 UUUUU.A2 + _+------+ | ===== C\ /E | | B2.UUUUU B1 ----- | | | | |B | +------+ +--/\/\/--+ | | | | --- +----> +1V - L1: 200 mH +---------+--------------+ R1: 2000 Ohm | +-----|--------+ | Q1: ~2N4401? | | | P2| + | D1: ~1N4001 +-----|---|--+ | --- | C1: 0.1 uF | | | | | \ - | | | | | | \--- | | | + + + - | | | S1==== // | | | +---+ + +--->|---+ | | | LED | | | | | P1| + +--UUU+UUU--+-->|--+-----||----+ --- | ======= | D1 C1 | - | L1 | | | | + _+------------+-----+ | C\ / E | ----- S1: DPDT Switch | |B P1: 1.2V Rechargeable +---/\/\/------+ P2: 2 Solar Cells R1 (0.9V in Series) +--/\/\/--+---------+--------------+ | | | | +--/\/\/--|---+-----|--------+ | | | | | P2| + | | | | | --- | | +-------|---|--+ | \ - | | | | | | | \--- | | | | + + + - | | | | S1==== // | | | | +---+ + +--->|---+ | | | | LED | | | | | | P1| + +--UUU UUU-----+-->|--+-----||----+ --- | ======= | D1 C1 | - | L1 | | | | + _+------------+-----+ | C\ / E | ----- | |B +-----------------+ This configuration might allow the use of different base resistors for each power source. * S1: DPDT Switch * P1: 1.2V Rechargeable * P2: 2 Solar Cells (0.9V in Series) * L1: 200 mH * R1: 2000 Ohm * R2: 200 Ohm * Q1: ~2N4401? * D1: ~1N4001 * C1: 0.1 uF Maybe this is better. This one is ok if reverse current through the photocell is negligible. // +-----------------------------+-->|--+ | | | | +-------------------+-->|--+--||--+ | | | | | | ======= |/ C | | +--UUU UUU--------| | | | | B|\|E | | | | +-------------+ | | | \ | | | | +0.45V \ | | | +-+-|------------------+---||--+ | | | | | | | | | +--------/\/\/--+ | | | | | | o\ o | o\ o--/\/\/--+ | ..\.......|....\.... | | o | o | | | +-----+ | | | +-------------------------+---||--+ +1.2V | +---------+--------------+ | +-----|--------+ | | | | P2| + | +----------------|---|--+ | --- | | | | | | \ - | | L1: 200 mH | | | | \--- | | R1: 2000 Ohm | + + + - | | Q1: ~2N4401? | S1==== // | | | D1: ~1N4001 +---+ + +--->|---+ | | C1: 0.1 uF | LED | | | | | P1| + +----+ +------+-->|--+-----||----+ --- | | | | D1 C1 | - | | | | | | | A1 UUUUUU.A2 + Q1 +------------+-----+ | ====== C\ /E | B2.UUUUUU B1 ----- S1: DPDT Switch | | L1 | |B P1: 1.2V Rechargeable +----+ +--/\/\/--+ P2: 2 Solar Cells R1 (0.9V in Series) // +-->|--+ | | +->|--+--||--+ | | +------------------+ _+------+ | C \ / E | | ----- | | ======= |B | +--UUU+UUU--+--/\/\/--+ | A2 | B1 | | --- +1V - L1: 200 mH +---------+--------------+ R1: 2000 Ohm | +-----|--------+ | Q1: ~2N4401? | | | P2| + | D1: ~1N4001 +-----|---|--+ | --- | C1: 0.1 uF | | | | | \ - | | | | | | \--- | | | + + + - | | | S1==== // | | | +---+ + +--->|---+ | | | LED | | | | | P1| + +--UUU+UUU--+-->|--+-----||----+ --- | ======= | D1 C1 | - | L1 | | | | + _+------------+-----+ | C\ / E | ----- S1: DPDT Switch | |B P1: 1.2V Rechargeable +---/\/\/------+ P2: 2 Solar Cells R1 (0.9V in Series) +-/\/\/--+---------+--------------+ | | | | +-/\/\/--|---+-----|--------+ | | | | | P2| + | | +------|---|--+ | --- | | | | | | | \ - | | | | | | | \--- | | | | + + + - | | | | S1==== // | | | | +---+ + +--->|---+ | | | | LED | | | | | | P1| + +--UUU UUU----+-->|--+-----||----+ --- | ======= | D1 C1 | - | L1 | | | | + _+------------+-----+ | C\ / E | ----- | |B +----------------+ // +-->|--+ | | +->|--+--||--+ | | +------------------+ _+------+ | C \ / E | | ----- | | ======= |B | +--UUU+UUU--+--/\/\/--+ +1.2V | A2 | B1 | | +------------------+--||--+ | | | | | +->|--+--||--+ | | +------------------+ _+------+ | C \ Ge/ E | | ----- | | ======= |B | +--UUU+UUU--+--/\/\/--+ | A2 | B1 | | _____ | +--------/SC1 / | +0.45V /____/------------+ / / | --- - Using an NPN germanium. // +-->|--+ | | +--------------------------+->S--+--||--+ | | | | +--------Z<--+ | ======= 1k? B|/ C | +--UUU+UUU--+--/\/\/--+--| | A2 | B1 | |\|E | | | +------------+ | | \\ _ | | +--------\__/-----+ | | | +1.2V | | +--------------------------+--||--+ | | | | | | | +--------------------------+->S--+--||--+ | | | | +--------Z<--+ | ======= Ge|/ C | +--UUU+UUU--+--/\/\/--+--| | A2 | B1 B|\|E | | +------------+ | \ \ | | +0.45V +----+ | +----------/--- / | | +----+------------------+ | | | +------||------+ | ?? --- - Perhaps using a PNP transistor will work. FIXME It won't work as shown below. // +-->|--+ | | +--------------------------+->S--+--||--+ | | | | +--------Z<--+ | ======= 1k? B|/ C | +--UUU+UUU--+--/\/\/--+--| | A2 | B1 | |\|E | | |/ +------------+ | +----| | | | |\| | | | +-----------------+ | | | | | +--||--+ | | | +1.2V | | +---------------+----------+--||--+ | | | | | +--/\/\/--->|--+ | | | | 22k? PNP| /E | | +--|---------/\/\/-----|< | | | | B|\ | | | | |C | | | +--------------------------+->S--+--||--+ | | | | | | | | +--------Z<--+ | | ======= | |/ C | | +--UUU+UUU--+--/\/\/--+--| | | A2 | B1 B|\|E | | | +------------+ | | \ \ | | | +0.45V +----+ | +--------+----------/--- / | | +----+------------------+ | | | +------||------+ | ?? --- - Perhaps using a PNP transistor will work. FIXME It won't work as shown below. // +-->|--+ | | +--------------------------+->S--+--||--+ | | | | +--------Z<--+ | ======= 1k? B|/ C | +--UUU+UUU--+--/\/\/--+--| | A2 | B1 | |\|E | | |/ +------------+ | +----| | | | |\| | | | +-----------------+ | | | | | +--||--+ | | | +1.2V | | +---------------+----------+--||--+ | | | | | +--/\/\/--->|--+ | | | | 22k? PNP| /E | | +--|---------/\/\/-----|< | | | | B|\ | | | | |C | | | +--------------------------+->S--+--||--+ | | | | | | | | +--------Z<--+ | | ======= | |/ C | | +--UUU+UUU--+--/\/\/--+--| | | A2 | B1 B|\|E | | | +------------+ | | \ \ | | | +0.45V +----+ | +--------+----------/--- / | | +----+------------------+ | | | +------||------+ | ?? --- - +--------------------------------------------+ | | | // | | +-->|--+ | | | | | | +--------------------------+->S--+--||--+ | | | | | | | | +--------Z<--+ | | | ======= 1k? B|/ C | | | +--UUU+UUU--+--/\/\/--+--| | | | | | |\|E | | +-------+ | +------------+ | | | | | \\ _ | | +--\__/--+--------+ | | | | |+1.2V | +-----+--||-------+ |0V | | | --- | | - | | | | | | +--------------------------+-S<--+--||--+----+ | | | | +-------->Z--+ | ======= Ge|/ C | +--UUU+UUU--+--/\/\/--+--|_ PNP | | B1 B|\ E | | +------------+ | \ | | \ | | +----------||---------------------+ +1.2-0.45 = +0.75V | +--------------------------------------------+ | | | // | | +-->|--+ | | | | | | +--------------------------+->S--+--||--+ | | | | | | | | +--------Z<--+ | | | ======= 1k? B|/ C | | | +--UUU+UUU--+--/\/\/--+--| | | | | | |\|E | | +-------+ | +------------+ | | | | | | | | +--------+ | | | | | | | |+1.2V | +------||---+ | | | | +--/\/\/--|<--+ | | | | +---------+----------------+-S<--+--||--+----+ | | | | +-------->Z--+ | ======= Ge|/ C | +--UUU+UUU--+--/\/\/--+--|_ PNP | | B1 B|\ E | | +------------+ | \ | | \ | | +----------||---------------------+ +1.2-0.45= +0.75V | microcontroller power .----------. | [uC] | |___ | +--------------+RUN PWM+-+ | | | | | |Vcc GND| | | .-+------+-. | | | | | +--------------------------+----+-->|--+--||--+ | | | | | | | | | ======= | |/ -|| +--Z<--+ | +--UUU+UUU--+--/\/\/--+--| +>||| | | A2 | B1 |\| |-|||---------|---+ | Q1 | | Q2 | | +----+-------------+ | | +1V --- - Once the micro powers up, it pulls the pin labeled (invert) RUN to ground to drain the tiny current from the base of Q1, then takes over by sending a PWM signal to the low-saturation MOSFET Q2. By using a PNP for Q1, it may also be possible to shut off Q1 by sending a smoothed PWM signal to Q1. //FIXME This looks like it will short out the PWM signal.// +--||--+--/\/\/--+--|<--+-------------+------+ | | | | --- | -----+---- | - | | PWM | | | | | | | | [uC] | | | |GND Vcc| | | -+------+- | | | | | +--------------------------+----+--|<--+--||--+ | | | | | | | | | ======= | |/ |-|| +-->Z--+ | +--UUU+UUU--+--/\/\/--+--|_ +>||| | | A2 | B1 |\ -|||---------|---+ | Q1 | | Q2 | | +----+-------------+ | | --- +1V - Once the micro powers up, it pulls the pin labeled RUN high to disable the PNP transistor Q1, then takes over switching by sending a PWM signal (inverted) to the low-saturation PNP MOSFET Q2 (which maybe should be NPN). Using a germanium transistor for Q1 will allow powering the uC from a single solar cell (0.45V). A diode or resistor may be necessary to protect the RUN pin. .----------. | [uC] | | | +----------------+RUN PWM+--+ | | | | | |GND Vcc| | | .-+------+-. | | | | | | +--||--+ | | | | | +-------------------------+---+--S<--+-->Z--+ | | | | |_ | | | ======= | |/ | | | +-UUU+UUU-+-/\/\/-+-----|_ +<|| | | A2 | B1 | |\ +-||----+-----|----+ | | Q1 | | Q2 | | | | | | | | | +-/\/\/-+ +-/\/\/-+ | | | | | | +---+-------------+ | | -1V --- - // +-------------------------------------->|--+ | +--------------------------------+ | | | | | | | +----------------------+-->S--+--||--+ | | | | | | | | | = = = = |/ C +--Z<--+ | | +--UUU UUU--------+--| | | | | | | B|\|E | | | | | | +-------------+ | | | | | 20k | | | | | +--/\/\/-----------+ | | | +-------+ \ | | | | 1.4k | 500 \ | | | | +--/\/\/--+--/\/\/--+-------||--+ | | | | +0.45V| | | o o | | |...\.......\. | | o \o o \o----------------+ | | | | | +-+------------------------------||--+ +1.2V| ---- // +-------------------------------------->|--+ | +--------------------------------+ | | | | | | | +----------------------+-->S--+--||--+ | | | | | | | | | = = = = 1k |/ C +--Z<--+ | | +-UUU+UUU-+-/\/\/-+--| | | | | | B|\|E | | | | | +-------------+ | | | | | | | | +--/\/\/-----------+ | | | 10k | | o o \ | |...\.......\. \ | | o \o o \o-------||-------------------+ | | +0.45V| | | | | | +-+------------------------------||--+ +1.2V| ---- Lemon vampire // +-->|--+ | | +------------------------+-->S--+--||--+ | | | | | = = = = |/ C +--Z<--+ +--UUU+UUU---/\/\/--+--| | | | B|\|E | | | +-------------+ | | | | +-->|--+----+ | | | | | | | |/ | +------|--/\/\/--| | | | |\| | | | +----/\/\/----+ | | | | +--||--+-------------------------+ +1V| ---- // +-->S--+-------------------------------+ +-->|--+ | | | | | | | +-------------------------------+-->S--+--||--+ | | | | | | | | | | | | | \| | = = = = = | |/ | | _|--+--/\/\/--UUUU UUUU--/\/\/-+--| | | /| | | |\| | | | +--/\/\/--+-|---------+ | | | C? | | | | | | | +--||--+---||--+-----------+--/\/\/--+ | | | | | \ | | | | | \ |/ | | | | +-----/\/\/--+--|_ | | | | | | |\ C? | | | | | +--/\/\/--+ +--||--+ | | | | | | | | | | | | | | | | | +-----------+------------->S--+--||--+-------------+ | | | | +---------------------+-----------------------------------+ //This circuit, with C? in place on the left (and not on the right) and 1k resistors all around actually works in simulation.// ----