DIYbanter

DIYbanter (https://www.diybanter.com/)
-   Electronic Schematics (https://www.diybanter.com/electronic-schematics/)
-   -   Digital step generator (https://www.diybanter.com/electronic-schematics/209457-digital-step-generator.html)

Lewis Carson March 30th 07 10:30 PM

Digital step generator
 
I found this circuit online.

http://members.ozemail.com.au/~bisagoma/step_sine.jpg
I found this circuit online.

http://members.ozemail.com.au/~bisagoma/step_sine.jpg

And re-drew it as follows.

http://members.ozemail.com.au/~bisagoma/step_gen.jpg

But ... it does not appear to work as described. The input is a 512 Hz
clock pulse. The output on pin 3 of the CD4051 is a slightly noisey
plain squarewave divided by 32 (16Hz). IOW no steps.

Can anyone point out a design fault in this circuit or other reason
why it might not work?

Lewis

Fred Bartoli March 30th 07 11:10 PM

Digital step generator
 
Lewis Carson a écrit :
I found this circuit online.

http://members.ozemail.com.au/~bisagoma/step_sine.jpg
I found this circuit online.

http://members.ozemail.com.au/~bisagoma/step_sine.jpg

And re-drew it as follows.

http://members.ozemail.com.au/~bisagoma/step_gen.jpg

But ... it does not appear to work as described. The input is a 512 Hz
clock pulse. The output on pin 3 of the CD4051 is a slightly noisey
plain squarewave divided by 32 (16Hz). IOW no steps.

Can anyone point out a design fault in this circuit or other reason
why it might not work?


Sure. You need the opamp stage at the 4051 output.
A small cap (1n or so) across the 1K feedback resistor will be welcomed too.

--
Thanks,
Fred.

Joel Kolstad March 31st 07 12:05 AM

Digital step generator
 
"Fred Bartoli" r_AndThisToo
wrote in message ...
A small cap (1n or so) across the 1K feedback resistor will be welcomed too.


Is that meant to surpress any spikes when the '4051 switches (i.e,. if it
"breaks" before it "makes")?

It's kind of a clever circuit, IMO. What do the circuit design gurus think of
it?

I'm waiting to hear someone suggest you could do this with an 8 pin PIC or
AVR... 4 lines to the '4051, and another one to receive frequency commands
over, e.g., RS-232. :-)



john jardine March 31st 07 12:31 AM

Digital step generator
 

"Lewis Carson" wrote in message
...
I found this circuit online.

http://members.ozemail.com.au/~bisagoma/step_sine.jpg
I found this circuit online.

http://members.ozemail.com.au/~bisagoma/step_sine.jpg

And re-drew it as follows.

http://members.ozemail.com.au/~bisagoma/step_gen.jpg

But ... it does not appear to work as described. The input is a 512 Hz
clock pulse. The output on pin 3 of the CD4051 is a slightly noisey
plain squarewave divided by 32 (16Hz). IOW no steps.

Can anyone point out a design fault in this circuit or other reason
why it might not work?

Lewis


And pin 7 of the 4051 need to go to 0V



--
Posted via a free Usenet account from http://www.teranews.com


John Larkin March 31st 07 12:33 AM

Digital step generator
 
On Fri, 30 Mar 2007 16:05:14 -0700, "Joel Kolstad"
wrote:

"Fred Bartoli" r_AndThisToo
wrote in message ...
A small cap (1n or so) across the 1K feedback resistor will be welcomed too.


Is that meant to surpress any spikes when the '4051 switches (i.e,. if it
"breaks" before it "makes")?

It's kind of a clever circuit, IMO. What do the circuit design gurus think of
it?

I'm waiting to hear someone suggest you could do this with an 8 pin PIC or
AVR... 4 lines to the '4051, and another one to receive frequency commands
over, e.g., RS-232. :-)


Just connect four pic pins to an output node with 1k, 2k, 4k, and 8k
resistors, and you're done.

John


john jardine March 31st 07 02:18 AM

Digital step generator
 

"John Larkin" wrote in message
...
On Fri, 30 Mar 2007 16:05:14 -0700, "Joel Kolstad"
wrote:

"Fred Bartoli"

r_AndThisToo
wrote in message ...
A small cap (1n or so) across the 1K feedback resistor will be welcomed

too.

Is that meant to surpress any spikes when the '4051 switches (i.e,. if it
"breaks" before it "makes")?

It's kind of a clever circuit, IMO. What do the circuit design gurus

think of
it?

I'm waiting to hear someone suggest you could do this with an 8 pin PIC

or
AVR... 4 lines to the '4051, and another one to receive frequency

commands
over, e.g., RS-232. :-)


Just connect four pic pins to an output node with 1k, 2k, 4k, and 8k
resistors, and you're done.

John


Seems about 30% THD?.



--
Posted via a free Usenet account from http://www.teranews.com


John Larkin March 31st 07 04:08 AM

Digital step generator
 
On Sat, 31 Mar 2007 02:18:09 +0100, "john jardine"
wrote:


"John Larkin" wrote in message
.. .
On Fri, 30 Mar 2007 16:05:14 -0700, "Joel Kolstad"
wrote:

"Fred Bartoli"

fred._canxxxel_this_bartoli@RemoveThatAlso_free. fr_AndThisToo
wrote in message ...
A small cap (1n or so) across the 1K feedback resistor will be welcomed

too.

Is that meant to surpress any spikes when the '4051 switches (i.e,. if it
"breaks" before it "makes")?

It's kind of a clever circuit, IMO. What do the circuit design gurus

think of
it?

I'm waiting to hear someone suggest you could do this with an 8 pin PIC

or
AVR... 4 lines to the '4051, and another one to receive frequency

commands
over, e.g., RS-232. :-)


Just connect four pic pins to an output node with 1k, 2k, 4k, and 8k
resistors, and you're done.

John


Seems about 30% THD?.


Is that what you get with 16 amplitude levels spaced, presumably, at
16 even time intervals? I'd guess somewhat better than 30%; a square
wave is only 43. Possibly you could make a better sine wave if the
resistors weren't binary weighted. More math than I care to sign up
for!

We just did a homebrew 8-channel DDS waveform generator, with 16-bit
math and 14-bit dacs, 2048 point sine lookup table. Sinewaves look
pretty good.

John


john jardine March 31st 07 03:39 PM

Digital step generator
 

"John Larkin" wrote in message
...
[...]
Seems about 30% THD?.


Is that what you get with 16 amplitude levels spaced, presumably, at
16 even time intervals? I'd guess somewhat better than 30%; a square
wave is only 43. Possibly you could make a better sine wave if the
resistors weren't binary weighted. More math than I care to sign up
for!


I'd envisioned a clean triangle. (3rd harmonic at 1/3rd of primary).

We just did a homebrew 8-channel DDS waveform generator, with 16-bit
math and 14-bit dacs, 2048 point sine lookup table. Sinewaves look
pretty good.

John


Nice!.
Sounds like you've been disenchanted with the performance of the AD chips.



--
Posted via a free Usenet account from http://www.teranews.com


Lewis Carson April 1st 07 01:57 AM

Digital step generator
 
Thank you all for the responses. But to clarify my original question,
is there anything wrong with the circuit below or not? Is the design
flawed or incorrectly implemented?

Thanks,

Lewis


On Sat, 31 Mar 2007 07:30:53 +1000, Lewis Carson
wrote:

I found this circuit online.

http://members.ozemail.com.au/~bisagoma/step_sine.jpg
I found this circuit online.

http://members.ozemail.com.au/~bisagoma/step_sine.jpg

And re-drew it as follows.

http://members.ozemail.com.au/~bisagoma/step_gen.jpg

But ... it does not appear to work as described. The input is a 512 Hz
clock pulse. The output on pin 3 of the CD4051 is a slightly noisey
plain squarewave divided by 32 (16Hz). IOW no steps.

Can anyone point out a design fault in this circuit or other reason
why it might not work?

Lewis



DaveM April 1st 07 04:32 AM

Digital step generator
 
"Lewis Carson" wrote in message
...
Thank you all for the responses. But to clarify my original question,
is there anything wrong with the circuit below or not? Is the design
flawed or incorrectly implemented?

Thanks,

Lewis


On Sat, 31 Mar 2007 07:30:53 +1000, Lewis Carson
wrote:

I found this circuit online.

http://members.ozemail.com.au/~bisagoma/step_sine.jpg
I found this circuit online.

http://members.ozemail.com.au/~bisagoma/step_sine.jpg

And re-drew it as follows.

http://members.ozemail.com.au/~bisagoma/step_gen.jpg

But ... it does not appear to work as described. The input is a 512 Hz
clock pulse. The output on pin 3 of the CD4051 is a slightly noisey
plain squarewave divided by 32 (16Hz). IOW no steps.

Can anyone point out a design fault in this circuit or other reason
why it might not work?

Lewis



Someone already told you how to fix your drawing. You need to put the opamp, or
at least a load resistance, on the output of the mux. Otherwise, the resistor
chain is open-ended, no current is being passed through them, therefore, you're
seeing only the sum of the 4040 outputs, which are all CMOS level square waves.
Remember, the 4040 is an analog switch. It only makes a path from input to
output, it doesn't source or sink anything at the output except what is applied
to the inputs.

--
Dave M
MasonDG44 at comcast dot net (Just substitute the appropriate characters in the
address)

Life is like a roll of toilet paper; the closer to the end, the faster it goes.



John Larkin April 2nd 07 08:47 PM

Digital step generator
 
On Sat, 31 Mar 2007 15:39:19 +0100, "john jardine"
wrote:


"John Larkin" wrote in message
.. .
[...]
Seems about 30% THD?.


Is that what you get with 16 amplitude levels spaced, presumably, at
16 even time intervals? I'd guess somewhat better than 30%; a square
wave is only 43. Possibly you could make a better sine wave if the
resistors weren't binary weighted. More math than I care to sign up
for!


I'd envisioned a clean triangle. (3rd harmonic at 1/3rd of primary).

We just did a homebrew 8-channel DDS waveform generator, with 16-bit
math and 14-bit dacs, 2048 point sine lookup table. Sinewaves look
pretty good.

John


Nice!.
Sounds like you've been disenchanted with the performance of the AD chips.


We wanted the flexibility to do other/arbitrary waveforms, pulses,
modulation, and channel-channel phase shifts on later versions. And to
program amplitude. And it was fun to roll our own DDS.

John





All times are GMT +1. The time now is 02:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2014 DIYbanter