Stepped sine wave

SRS770.http://imageshack.us/photo/my-images/7/vco2.png/

Not yet. But I did get both kinds of Zatarain's Crab & Shrimp Boil and a bottle of Arnaud's remoulade.

Cheers

Phil Hobbs

--
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics

160 North State Road #203
Briarcliff Manor NY 10510
845-480-2058

hobbs at electrooptical dot net
http://electrooptical.net
Reply to
Phil Hobbs
Loading thread data ...

e:

te:

=A0I measured

DMM. =A0The

dB! =A0I

in a few

the

ges/7/vco2.png/

he cost

s, one

f those

aving

peak

it

wed

illar

ms

's

ample,

memade

then

as many

l's

are

f

ram

1

s to

s is

ms

ill

Mmmm, I was there several years ago for a March APS meeting... slurping oysters at some fine dining establishemnt (not Felix's). When we came back for the third night we were 'regulars' and 'our' waitress brought us a few raw ones each as soon as we sat down... to tide us over until she could take our order. Nothing beats a mug of beer, a plate of oysters and some of those little salty potatoes, after a long day at a trade show.

George H.

Reply to
George Herold

measured

M. =A0The

! =A0I

a few

he

s/7/vco2.png/

cost

one

hose

ng

k

le,

ade

n

many

That's the "another possibility" I meant, above. The DAC only has to cover 1/4 of a sinewave, and you get the remaining wave portions by manipulating that.

To wit, the external logic walks the DAC up, then down, then kicks on the analog invert (x -1) function and cycles up, then down again. Then, back to the beginning.

That, here, would take about 5 chips & get you 32 samples per sinewave.

So, we've got several versions: 10 steps with one chip, 16 steps with three chips, or 32 steps for five chips. Or, as always, you could use a PIC :-)

I'm not sure what capacitance you're concerned about. The CMOS doesn't care--it's fast. Stray loading on the DAC? That should be pretty trivial at these frequencies. Besides, it works in your favor, filtering out the higher-harmonics.

-- Cheers, James Arthur

Reply to
dagmargoodboat

:

=A0I measured

DMM. =A0The

dB! =A0I

in a few

the

ges/7/vco2.png/

e cost

, one

those

ving

eak

t

ar

s

mple,

emade

hen

s many

's

e
o
s

Well if it wasn't, for heaven's sake don't post that here!

"To our wives and our girlfriends ... may they never meet."(*) --Old bachelor party toast.

(*)(P.S. I first typed that as "girlfiends" -- may those especially never meet!)

-- Cheers, James Arthur

Reply to
dagmargoodboat

SRS770.http://imageshack.us/photo/my-images/7/vco2.png/

Or an 8-bit counter (e.g. '579), ROM, and DAC. 256 steps, three chips. ;-)

The synchronous counter is the limitation, here.

Reply to
krw

:

=A0I measured

DMM. =A0The

dB! =A0I

in a few

the

ges/7/vco2.png/

e cost

, one

those

ving

eak

t

ar

s

mple,

emade

hen

s many

's

e
o
s

Hmm I'm not sure either, now you mention it. I guess I'm (half) thinking of the output of the summing opamp. But, that's perhaps more a slew rate issue.

Anyway thanks for all the fun ideas!

George H.

Reply to
George Herold

e:

=A0I measured

DMM. =A0The

0dB! =A0I

in a few

m the

ages/7/vco2.png/

he cost

s, one

f those

aving

peak

it

d

lar

's

ample,

memade

then

as many

l's

re

;-)

Hey, how about two 'HC4017's, driven out-of-phase. Clock one rising, one falling. That's 20 steps, two chips, dirt-simple.

-- Cheers, James Arthur

Reply to
dagmargoodboat

to

is

l
,

Of course. Thanks be to you for the fun puzzle, for actually doing it, and then posting back. That's fun for everyone.

-- Cheers, James Arthur

Reply to
dagmargoodboat
[about making a sine with steps set by resistor values]

Manufacturers, take note! If one can build/sell a RAMDAC ( old video part, intended to encode colors), how about a sine-table ROMDAC? Can you beat the price of ten $2 resistors, with 8-bit output converter?

Reply to
whit3rd

measured

 The
 I

few

SRS770.http://imageshack.us/photo/my-images/7/vco2.png/

one

homemade

An FPGA. Hundreds of steps, one chip. Pick your poison. ;-)

Reply to
krw

last week. =A0I

and Phil

sine wave at

through

opamp.

a sine

at each new

R2=3DR8=3D28.9k, R3=3DR7=3D15.3k,

analyzer.

understand why it=92s so

and 11th

be due to

VDD? =A0If so,

looked at

voltage the

down. =A0I

everything

time, except

values)

the

=A0Might wanna

measured

=A0The

=A0I

few

SRS770.http://imageshack.us/photo/my-images/7/vco2.png/

cost

those

The way i see it matching will impact even more than odd and absolute value will impact odd more than even. But each will impact both. It is = a small enough dft that it is worth cranking it up in a spreadsheet.

many

Reply to
josephkk

te:

ps. ;-)

Come to think of it, I suspect staggered 'HC4017's doesn't work. Each output of "B" would straddle (be active during) two output states of "A", and the simultaneous equations fail. You'd need to buffer 'em so you could enable just one 'HC4017 at a time, which is messy & takes more chips.

So, it's either one 'HC4017, or a PIC. (Or a 555, details left as an exercise for the student.)

-- Cheers, James Arthur

Reply to
dagmargoodboat

We really need a 4017 with tri-state outputs. ;)

You could take advantage of the particular phase choice that George used, i.e. one phase is disconnected, and use a bunch of SIPO shift registers. Do a synchronous reset of all of them when the last stage goes high, and use an R-S flipflop to inject a 1 into the first stage when that happens, reset from the output of the first stage.

It would also need a missing pulse detector or something like that to make sure that it doesn't just sit there producing all zeros forever. You could get 8N+1 phases for about N+2 packages and 8N resistors.

Alternatively, adapting your folding trick, it might be possible to use a bunch of universal shift registers and just shuttle the 1-state back and forth from end to end, by changing the shift direction when it hits the end. That way you'd get 16N or maybe 16N-1 codes for N + 3ish packages and 8N resistors.

Fun.

Cheers

Phil Hobbs

--
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics

160 North State Road #203
Briarcliff Manor NY 10510
845-480-2058

hobbs at electrooptical dot net
http://electrooptical.net
Reply to
Phil Hobbs

e

art,

Hi Whit3rd, Are you making fun of me?

You can get 0.1% resostors from Sussumu for ~$0.20 each. George H.

Reply to
George Herold

e:

rote:

th

se

hips. ;-)

,

Dat's OK James, I'm still pondering your idea of multiple switching... using each resistor four times during a cycle. (I'm a bit slow so it takes me a while to digest what you are suggesting.) I must admit that the symmetry is appealing.

George H.

Reply to
George Herold

the

part,

?

resistors Susumu

Geesh, be nice if I could spell say every other word correctly.

Reply to
George Herold

with

use

chips. ;-)

rising,

Got me to thimkin'. Two 74hc374 in a Johnson twisted ring counter with

16 resistors will get you 32 steps. Can get 16 steps with a single '374 and 8 resistors. Have to pay attention to initialization though. Calcs for the resistors will be a little different though, may be a problem if the High and Low drive strengths are different. Don't see one in 4000 style cmos.

?-)

Reply to
josephkk

y the

e

eo part,

er?

The Apple start-up sound is called Sosumi- a legacy of the legal troubles between Apple and the Beatles. It was thought by their legal beagles to be a better choice than "Let it beep".

--sp

Reply to
speff

;-)

The problem is that there's no linear mapping from that to a sine wave--for 2**N states you need 2**N outputs in order to be able to solve the linear system.

Cheers

Phil Hobbs

--
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics

160 North State Road #203
Briarcliff Manor NY 10510
845-480-2058

hobbs at electrooptical dot net
http://electrooptical.net
Reply to
Phil Hobbs

rote:

with

use

chips. ;-)

ing,

ach

so

s

an

e
e
s

ith

374

Calcs

f
0

This doesn't seem to be a sensible approach. My feeling is that the obvious way to synthesise a staircase approximation to a sine wave is with roughly equal amplitude steps, not that this saves you that many steps - the ratio is pi/2 to one. You design for an N-step approximation to a single quadrant, with N resistors and N SPST switches plus one SPDT - the extra switch changes the polarity of the source voltage from 180 dgrees to 360 degrees - and drive the switches from a programmable logic device which can count up to roughly 2.pi.N and decodes the counter output to drive the N+1 switches. The resistors wouldn't be identical, but their resistances won't be wildly different either.

-- Bill Sloman, Nijmegen

Reply to
Bill Sloman

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.