Menu

fake higher sampling

2017-07-21
2017-07-21
  • stan cartwright

    stan cartwright - 2017-07-21

    I found I could take 60 readad samples and store them then display the points joined with lines on a glcd.
    Thing was 1KHz displayed ok, 2KHz was half resolution and 3KHz was not a sine wave,just 6 samples.
    Well I couldn't increase sample rate but I stored the samples after an increasing delay.
    It's a repetative wave form so it appears to have more detail..please see video.
    Not scientific but interesting. https://www.youtube.com/watch?v=nyCjT879oZk&feature=youtu.be

    for ptr1=1 to xsamples ;get new samples
      wait until portc.0 off
      wait until portc.0 on ;trigger
      for tmp = 1 to ptr1
      next tmp ;delay
      volt = READAD (an0)
      buffer2 (ptr1)=buffer1 (ptr1) ;new data to old data
      buffer1 (ptr1)=255-volt ;set 0,0 top left screen and update new data
    next ptr1
    
     
  • stan cartwright

    stan cartwright - 2017-07-21

    50 and 30 KHz and no x axis expand. How's it work? Luck? https://youtu.be/M-yyBtpA2sY
    With a freq meter maybe actual basis of something useful project.

     

    Last edit: stan cartwright 2017-07-21
  • stan cartwright

    stan cartwright - 2017-07-21

    I'm posting more in projects although working on if that's ok. I am liking this idea,hope others to.

     

Log in to post a comment.