How to generate data to follow a sinusoidal trend


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Pinckney, Michigan
    Posts
    91


    Did you find this post helpful? Yes | No

    Default Re: How to generate data to follow a sinusoidal trend

    I used a DAC (digital to analog converter) formed with an R2R ladder on a PIC port, to generate a near perfect sine wave.

    Generate the values you need with a spreadsheet using the Excel SIN function, put them in a software table, then periodically go get the values from the table one at a time, and write them to the port, with appropriate delays between writes.

    You might add a capacitor to the output of the ladder for smoothing.
    Last edited by J. Mark Wolf; - 18th December 2012 at 13:41.

  2. #2
    Join Date
    Jun 2005
    Location
    West Australia
    Posts
    116


    Did you find this post helpful? Yes | No

    Default Re: How to generate data to follow a sinusoidal trend

    Thanks J. I'm not interested in the analog voltages only sending serial values - but the Excel idea is a good one. I'm no guru with Excel but will learn from this and give it a go.

    Regards,
    Bill

Similar Threads

  1. how can i follow the execution of my program?
    By reda89 in forum mel PIC BASIC
    Replies: 1
    Last Post: - 22nd August 2012, 16:09
  2. sinusoidal PWM
    By bwaxing in forum mel PIC BASIC Pro
    Replies: 83
    Last Post: - 25th February 2012, 19:33
  3. sinusoidal pwm
    By bwaxing in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 1st May 2011, 16:00
  4. Displaying Trend Information
    By Mike M. in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd November 2005, 04:21
  5. Follow-on To Caps-lock Post
    By languer in forum General
    Replies: 2
    Last Post: - 2nd March 2004, 09:52

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts