Hi. I'm trying to plan a quite large DIY project. I'm aware that what I'm trying to do could possible be impossible to achieve. Well here's the plan:
I want to make a circuit having TWO sinus outputs, let's call them sin1 and sin2. sin2 shall be about 90 deg after sin1.
Finally I'll use those two voltages to have very fine control of a stepper motor.
Here's how I imagine how the circuit is put together:
1* (this is where I need help)
A regular 4-bit BCD-counter turn off and on four transistors (could be H-bridges) connected to an resistor grid. This will generate an analog output voltage. Problem here is - I don't know how to get that voltage somewhere similar to a sinus - I could need some hint here.
2*
Next step (if I succed making a R-grid that can provide almost sinus output) is to connect the BCD-counter to an adder. Output from the adder shall be connected to an identically R-grid as the counter itself. This will provide an output voltage sin2 that has a phase angle with respect of sin1, where the phase angle is decided by a static bcd-value into the adder.
3*
Aditional amplifier stage will be planned only after stage 1 and 2 is being realized. Not discussed now.
To go easy and just make an easy sinus generator is not an option, because I need to be able to stop oscillation at any time, that is f=0. That could only be done by a counter and DA converter.
I also tried to figure out if this could be achieved by using a johnson "counter" and a R-grid. I didn't manage to get anywhere near sinus.
Also I tried to set up a spreadsheet to calculate different output voltages from a R-grid and BCD-counter using different values for the resistors. I managed to get triangle wave, exponential-like output, but nowhere near sinus :x
The regular R/R2 networ only allow me to make triangle-alike output. I /could/ theoretically be able to get there using only triangle wave (two, with phase angle), but the idea about having precise control of a stepper's angle is just to forget - I think.
Thanks in advance