I have a weird problem. I am using a seeeduino MEGA, which is functioning as it should as far as I know.
When I toggle pin 52 up and down using direct writes to PORTB, I get a nice and clean signal out of my DSO nano (square wave at some frequency).
When I run the program below, the waveform on the nano has a frequency of 977Hz (as expected), but the signal has a very sharp rising edge, and a very slow exponential delay. So far so good, but the real problem is that the peak of the waveform is over 85Vpp!! (I can’t zoom out more than 10V/Div).
I am using firmware 2.21 (the original one gave the same signature), teh gnd connection of the nano is connected to the Seeeduino gnd, and the signal is connected to pin 52. There is no difference whether the nano runs on USB power or on batteries.
Here’s the program. It uses the library from arduino.cc/playground/Learning/TLC5940
#include “Tlc5940.h”
void setup() {
Tlc.init();
Tlc.clear();
}
void loop() {
Tlc.set(4,0);
Tlc.update();
}
=========================================