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

Thread: Teensy 3.2 DAC output voltage issues

  1. #1

    Teensy 3.2 DAC output voltage issues

    Hi all,

    I am working on a project which uses the Teensy 3.2 to simulate the output voltage of a similar device. I have the teensy connected in the following configuration:
    Click image for larger version. 

Name:	example.png 
Views:	1 
Size:	13.6 KB 
ID:	15547

    The A14 pin in the DAC output for the Teensy 3.2 and the 5V and AGND are the Vin and AGND of the Teensy respectively. I am powering the whole system over the microUSB. When the system is powered, I observe 5V between the 5V and GND pins as is expected. Now onto the issue:

    Using the following code:
    Code:
    uint16_t minimum = 0;
    uint16_t maximum = 4095;
    
    void setup() {
      analogWriteResolution(12);
    }
    
    void loop() {
      analogWrite(A14, minimum);
      delay(2000);
      analogWrite(A14, maximum);
      delay(2000);
    }
    I would expect the voltage at the A14 pin to fluctuate between 3.3V and 0V when measured against GND every 4 second period. However, I am actually reading it fluctuate between 3.3V and 1.5V. Any idea what is going on? Is there a maximum current that the Teensy 3.2 can sink on the A14 pin or is somethings else at work here?

  2. #2
    Senior Member+ manitou's Avatar
    Join Date
    Jan 2013
    Posts
    1,791
    Quote Originally Posted by bnagelmakers View Post
    Is there a maximum current that the Teensy 3.2 can sink on the A14 pin or is somethings else at work here?
    you can check the data sheet, but I think the DAC can only source about 1 ma.

  3. #3
    I did some measurements. It looks like it is sinking 10mA when it is pulling down to 3.3V and sinking 20mA when it is pulling down to 1.5V. My guess is that the Teensy DAC can only sink 20mA.

Posting Permissions

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