ring modulator

6 años 4 días antes - 6 años 4 días antes #1357 por freddylamenace
Hi,

Is it possible do a ring modulator by this operation :

OUT(n) = IN(n) * SIN(t)

I tried with the sinus generator and it doesn't work!

Por favor, Identificarse para unirse a la conversación.

6 años 4 días antes #1360 por Ray
Respuesta de Ray sobre el tema ring modulator
Hi, have a look at this:
www.arduino.cc/reference/en/language/str...tors/multiplication/

I usually don't the multiply operator (*) because it uses a lot of resources, although the DUE capable to do that. This is the reason I use the "map" function.

The main problem with this operations is that the variables are the wrong type, make sure that OUT, IN and SIN are Long and after the multiplication, you can transform the long OUT into an int.

The best way to troubleshoot this is to output to the serial monitor port the 3 variables, so you can see what is going wrong.

Por favor, Identificarse para unirse a la conversación.

5 años 8 meses antes #1493 por sarahkatezm254
Respuesta de sarahkatezm254 sobre el tema ring modulator
Ya, I did the thing as Ray said n it works well. Thank you :whistle:

Every children grow up except one gmail

Por favor, Identificarse para unirse a la conversación.

Tiempo de carga de la página: 0.094 segundos
Gracias a Foro Kunena
Joomla SEF URLs by Artio