p.lerolland
New member
Hi everyone,
First, thank you for this Teensy, it's a remarkable board that I really love using!
This forum also is an amazing resource when I have a problem. So for all of this, thank you!
I am posting today because I have a problem when I use both the PWM and the ADC on my Teensy 3.1. Even if I use the analog ground to connect the ground of my analog source, the PWM spreads noise on the analog signal.
It was not to much of a big deal until I started using a photodiode and an opamp. During the high period of the PWM, the noise is so important that it maxes out the value of the photodiode.
I need to be able to adjust the LED intensity (from 0 to 30mA). For now I just connected the LED to a resistor then directly to the PWM pin.
- Do you have an advice that could help prevent that noise with the current system?
- Would using a mosfet to drive the LEDs instead of driving them directly from the PWM pin reduce the noise on the Teensy?
- What do you think about digital potentiometer and a simple voltage divider instead of using the PWM? Very few people use them to control LEDs, is there a good reason for that?
Any input is very welcome!
Thanks you!
Paul
First, thank you for this Teensy, it's a remarkable board that I really love using!
This forum also is an amazing resource when I have a problem. So for all of this, thank you!
I am posting today because I have a problem when I use both the PWM and the ADC on my Teensy 3.1. Even if I use the analog ground to connect the ground of my analog source, the PWM spreads noise on the analog signal.
It was not to much of a big deal until I started using a photodiode and an opamp. During the high period of the PWM, the noise is so important that it maxes out the value of the photodiode.
I need to be able to adjust the LED intensity (from 0 to 30mA). For now I just connected the LED to a resistor then directly to the PWM pin.
- Do you have an advice that could help prevent that noise with the current system?
- Would using a mosfet to drive the LEDs instead of driving them directly from the PWM pin reduce the noise on the Teensy?
- What do you think about digital potentiometer and a simple voltage divider instead of using the PWM? Very few people use them to control LEDs, is there a good reason for that?
Any input is very welcome!
Thanks you!
Paul