ΣSigmaStudio Ask AI Русский Log in

Relay With 1701

SigmaDSP & SigmaStudio piero Jan 29, 2013 00:00 9 replies Original on forum ↗
Subscribe
piero Question
Jan 29, 2013 00:00

Hi to everybody

I need to realize with 1701 a relay audio, as in figure.

Pressing a button I have to effect the commutation and to maintain her for the whole time in which the button stays pressed, to the release of the button the state has to return as before.

Someone knows how to recommend me

Thanks

Audio Signal Processors

sigmastudio

SigmaDSP Audio Processors

gpio

evaluationboard

frequency

SigmaDSP

audio

adau1701

Show More

1691f14d45f9ff99ccf3dca942ea26eb.jpg
1691f14d45f9ff99ccf3dca942ea26eb.jpg
1691f14d45f9ff99ccf3dca942ea26eb.jpg-450x271.jpg
1691f14d45f9ff99ccf3dca942ea26eb.jpg-450x271.jpg
piero Reply
Jan 29, 2013 00:00

Does this solution work well, that seems of it?

3c13df419902861727ff3f76a6d1e6ac.jpg
3c13df419902861727ff3f76a6d1e6ac.jpg
3c13df419902861727ff3f76a6d1e6ac.jpg-450x226.jpg
3c13df419902861727ff3f76a6d1e6ac.jpg-450x226.jpg
piero Reply
Jan 29, 2013 00:00

hi Miguel, I have looked but I have not found anything.

If you know me to say where I find it the thing it is pleasant

Thanks

piero Reply
Jan 29, 2013 00:00

Miguel, perhaps I will be stupid but I don't understand as I can use Toggle OnOff to build my relays

piero Reply
Jan 29, 2013 00:00

Thanks Bob,

works very well however he uses a lot of instructions in more than mine.

It has of positive that doesn't attenuate the signal mine him.

I will see which of the 2 to use

Piero

ADIApproved Reply
Jan 29, 2013 00:00

Hi Piero:

I believe there is a Toggle switch built into SigmaStudio for the 1701.

Regards

Miguel

ADIApproved Reply
Jan 29, 2013 00:00

HI Piero,

Toggle OnOff switch is under GPIO conditioning. You will have to use 2 of them to switch between oscilators.

Miguel

62ae5165897e771268bb915687aa9ef6.jpg
62ae5165897e771268bb915687aa9ef6.jpg
62ae5165897e771268bb915687aa9ef6.jpg-103x104.jpg
62ae5165897e771268bb915687aa9ef6.jpg-103x104.jpg
KJBob Reply
Jan 29, 2013 00:00

Hi piero,

A multiplexer ("mux") can perform your desired function similar to a relay. Please see below:

The mux selects which source appears at its output, according to your control signal at its red pin. This control input must be an integer -- in SigmaDSP, an integer starts at Bit 0, the least significant bit. The easiest way to make an integer from a 5.23 variable is to use the Buffer Gate (as shown above) or Zero Comparator (which also performs a logic negation).

Bob

60049c8037b81cafad217a4e013016fb.jpg
60049c8037b81cafad217a4e013016fb.jpg
60049c8037b81cafad217a4e013016fb.jpg-450x296.jpg
60049c8037b81cafad217a4e013016fb.jpg-450x296.jpg
piero Reply
Feb 2, 2013 00:00

Thanks Bob,

The solutions are very interesting, you are genial.

Piero

KJBob Reply
Feb 2, 2013 00:00

Hi Piero,

The ABCD Comparator block is very handy. You can use it as a mux, and for some reason it uses way fewer instructions than a mux (even the non-slew mux):

If your goal is to select between two sine-wave frequencies, you can do even better with a VCO;

Best regards.

Bob

8b776fc10d2e2b08b3b1d1f8a9e8cd62.jpg
8b776fc10d2e2b08b3b1d1f8a9e8cd62.jpg
8b776fc10d2e2b08b3b1d1f8a9e8cd62.jpg-450x326.jpg
8b776fc10d2e2b08b3b1d1f8a9e8cd62.jpg-450x326.jpg
32c2e0b4c1334c6b4b1d8c318cf00746.jpg
32c2e0b4c1334c6b4b1d8c318cf00746.jpg
32c2e0b4c1334c6b4b1d8c318cf00746.jpg-445x231.jpg
32c2e0b4c1334c6b4b1d8c318cf00746.jpg-445x231.jpg