Electronic – 555 timer to control a servo with 2 variable positions

555servo

If possible, I'd like a circuit with a 555 timer, 2 potentiometers and I want to control the circuit with 1 digital input (5V / 0V).

With the 2 potentiometers, I want to fine tune two fixed positions. With a digital input line (coming from an CMOS NAND gate) I want to steer the motor to one of these two positions.

Is such a circuit even possible with a 555 timer?

And if so, how would it look like?

__________________________________

Background:

I know that a uController is cheaper and better.
I can program attiny chips, but the people for who I am developing for cannot.
They can solder a circuit, and that's it. That is why I am also "researching" an analog solution.

Best Answer

Here is an analog solution using two separate astable oscillators, based on a single package of 6 x Schmitt inverters. The same concept may be used using 2 x 555s - but at probably higher cost as gating is still needed.

This has the advantage that the frequency and mark-space ratio of each oscillator are able to be adjusted completely independently.
Disadvantages include

  • A single 'glitch' at each transition as the oscillators are not synchronised,

  • Accuracy of timing without calibration depends on gate hysteresis which is more variable than may be tolerable in some applications.

schematic

simulate this circuit – Schematic created using CircuitLab

NOT3 and NOT2 form independent astable oscillators.
Considering NOT3 - When the output is high capacitor C1 charges via R1 and when the output is low the capacitor discharges via R1 in parallel with R3 + D2 in series.
If desired an additional diode can be added in series with R1 with opposite polarity to D2 so that charge and discharge paths are then wholly independent.
If calibration is acceptable (2 or more trim-pots) then accuracy may be tolerable depending on how critical the application is.

R5, R6 and D3 form a "gate".
When NOT1 output is low, diode D3 clamps the R4-R5 junction and prevents NOT3 signal reaching NOT4 input. When NOT1 output is high D3 is reverse biased and NOT3 can drive NOT4 input.

As shown the R6 & R8 resistor values are problematic due to loading and Schmitt trigger levels. As 6 gates total are available a final circuit could use say 2 extra gates to overcome this issue. As this is a demonstration of concept I've not worked on this detail.


Costs:

What product volume is anticipated?

A 74HC14 costs from around $US0.04 in thousands in China.
An LM555 / NE555 costs less than a cent more (or 3.8655c/5000 from one source).
1N4148 diodes cost from around $0.005/1000+
100 nF mylar capacitor maybe $0.03 Panasonic SMD trimpot from about $0.035
(Aluminium electrolytic from about $0.005 but accuracy rather low) So the cost of two trimpots would probably tend to dominate component cost.

.