Welcome, Guest
Username: Password: Remember me

TOPIC: ring modulator

ring modulator 1 year 6 months ago #1357

  • freddylamenace
  • freddylamenace's Avatar
  • OFFLINE
  • New Member
  • Posts: 13
  • Thank you received: 5
  • Karma: 2
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!
Last Edit: 1 year 6 months ago by freddylamenace.
The administrator has disabled public write access.

ring modulator 1 year 6 months ago #1360

  • Ray
  • Ray's Avatar
  • OFFLINE
  • Moderator
  • Posts: 695
  • Thank you received: 146
  • Karma: 41
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.
The administrator has disabled public write access.

ring modulator 1 year 2 months ago #1493

  • sarahkatezm254
  • sarahkatezm254's Avatar
  • OFFLINE
  • New Member
  • Posts: 5
  • Thank you received: 2
  • Karma: 0
Ya, I did the thing as Ray said n it works well. Thank you :whistle:
Every children grow up except one gmail
The administrator has disabled public write access.
Time to create page: 0.161 seconds
Powered by Kunena Forum
Joomla SEF URLs by Artio