Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: Teensy 3.6 ADC data sheet / setting a static sampling rate

  1. #1
    Junior Member
    Join Date
    Nov 2017
    Posts
    1

    Teensy 3.6 ADC data sheet / setting a static sampling rate

    Hey.
    I bought the teensy 3.6 to measure the voltage of a three phase AC system, it’s a project for work.
    The Input Signal is 100 V by 50 Hz, so nothing real spectacular but still the first time I work with a microcontroller.

    The idea is to use a voltage divider, then adding an offset with an operational amplifier, using lowpass to get rid of frequency’s higher than 2 kHZ.

    1. My first question is, which ADC are used on the teensy. It would be great if anyone has seen the data sheet for the ADC’s.
    I actually need some info about the ESD protection and the data of the internal diodes for protecting the ADC.
    Besides that, I’m planning to protect the ADC with external diodes…

    2. Using the analog read() works so far. I would like to know if there is an easy way to set a static sampling rate other than using the delay.
    Maybe similar to the analogReadResolution() function.

    Thanks.

  2. #2
    Senior Member manitou's Avatar
    Join Date
    Jan 2013
    Posts
    1,269
    Quote Originally Posted by matze View Post
    I would like to know if there is an easy way to set a static sampling rate other than using the delay.
    Maybe similar to the analogReadResolution() function.

    Thanks.
    This post https://forum.pjrc.com/threads/24492...l=1#post140847
    describes using the PDB timer and DMA to read the ADC.

    also visit https://github.com/pedvide/ADC

Posting Permissions

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