element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Sine Wave Generation Using A raspberry Pi
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 3 replies
  • Subscribers 663 subscribers
  • Views 3508 views
  • Users 0 members are here
  • rasberry_pi_3_b_plus
Related

Sine Wave Generation Using A raspberry Pi

amiranghi
amiranghi over 5 years ago

Hello,

 

For my project, I am trying to generate a Sine wave of two different frequencies, 28125Hz and 37500Hz to be fed into an op amp and then switched between using a multiplexor. I have not worked with an rpi much before but I know that it is not a good sine wave generator on its own so I need some help to determine if there is any intermediate hardware I can use to achieve this and how to code that up. What kind of rpi pin would I have to use and what is the maximum voltage/current output this pin would provide? The amplified sine wave is to be fed into ultrasonic transducers.

 

 

Thank you very much in advance,

Antony

  • Sign in to reply
  • Cancel
  • shabaz
    shabaz over 5 years ago

    Hi Antony,

     

    You're using the wrong device.. it's like asking, "I'm baking a cake and I've not read the recipe to see what ingredients are required either. Help me to do it with a Pi, even though I know the Pi isn't great at making cakes".

    That's not being rude, I'm afraid that's expressing the reality.

     

    Once you have read up on your transducer and how they are driven, then you can decide on the best part for generating any driving waveforms, whether they are sine waves (sounds unlikely) or square waves. You will likely find that you use a different part or microcontroller. Then, there's nothing stopping you from switching on or off that part or microcontroller from the Pi, but I doubt the Pi will need to generate the signals, sine waves or not. This isn't a Pi topic (yet) basically..

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • dougw
    dougw over 5 years ago

    There are lots of ways to achieve your goal. I am not sure what is best in your application, but if you want do it with an RPI, you could store the waveforms as sampled waveforms in the RPI. The RPI can send the samples to a DAC to create the desired sine waves and switch between them as needed. The DAC may need to feed a power amp depending on the DAC and how much power you need.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Cancel
  • michaelkellett
    michaelkellett over 5 years ago

    Perhaps you could explain your project in more detail - then we could make some better suggestions.

     

    I certainly agree with Shabaz - this doesn't sound like a good fit for an RPI.

     

    MK

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube