Author Topic: usb signal to sinewave  (Read 2542 times)

0 Members and 1 Guest are viewing this topic.

Offline Alexandros81Topic starter

  • Contributor
  • Posts: 49
  • Country: gr
usb signal to sinewave
« on: November 06, 2013, 04:34:35 pm »
Hi I want to manipulate the usb voltage levels via a program written in ? language so to produce a sine wave with 5-15kHz frequency. How can it be done? I have no clue.
I would like to have a window on my laptop that manipulates the frequency and the voltage level of the sine wave.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: usb signal to sinewave
« Reply #1 on: November 06, 2013, 04:52:43 pm »
Quote
I have no clue.

I would start right there.
================================
https://dannyelectronics.wordpress.com/
 

Offline Balaur

  • Supporter
  • ****
  • Posts: 525
  • Country: fr
Re: usb signal to sinewave
« Reply #2 on: November 06, 2013, 05:02:52 pm »
Use the existing soundcard or any cheap USB one + any software that allows you to produce sounds (Audacity, SoundArb, ...)
 

Offline casinada

  • Frequent Contributor
  • **
  • Posts: 600
  • Country: us
Re: usb signal to sinewave
« Reply #3 on: November 06, 2013, 05:06:38 pm »
Please set your profile to show your country. Also post your age and what do you want to accomplish.
Use any sound producing program and use the audio output :)
a simple search found :
http://www.nch.com.au/tonegen/
or
http://www.electronics-lab.com/downloads/pc/005/

 

Offline Jon86

  • Frequent Contributor
  • **
  • Posts: 526
  • Country: gb
Re: usb signal to sinewave
« Reply #4 on: November 06, 2013, 05:34:43 pm »
It'll be difficult to filter out a squarewave to a sine wave over difference frequencies, easy at one but not so easy over a range. As suggested, use a USB sound card or just the speaker output.
Death, taxes and diode losses.
 

Offline FrankBuss

  • Supporter
  • ****
  • Posts: 2379
  • Country: de
    • Frank Buss
Re: usb signal to sinewave
« Reply #5 on: November 06, 2013, 05:48:46 pm »
Obviously Alexandros81 has no idea how USB works and that the outputs are digital, only, but nevertheless could be interesting to abuse an USB host controller to create a high frequency PWM signal, which then could be filtered to create a sine wave in the required range :)
So Long, and Thanks for All the Fish
Electronics, hiking, retro-computing, electronic music etc.: https://www.youtube.com/c/FrankBussProgrammer
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf