That would be great!.... I can provide an Arduino sketch to do this.
That would be great!.... I can provide an Arduino sketch to do this.
I've just realised that the scope agrees with my definition - the trigger is set to 'falling edge'.A rising edge is representing an increasing voltage.
I'm not sure what the designers meant in that document meant because they don't show a waveform.That would be great!
#include <TimerOne.h>
//UNO only
void setup()
{
pinMode(9,OUTPUT);
pinMode(10,OUTPUT);
Timer1.initialize(100); // Frequency, 100us = 10khz
Timer1.pwm(9,512); // 50% DC on pin 9
//Timer1.pwm(10,255); // 25% DC on pin 10
// D.C.
// 10KHz
// You can use 2 to 1023
// 0 & 1 gives a constant LOW
// 1024 gives a constant HIGH
// 2 gives ~125ns HIGH pulses
// 1023 gives ~125ns low pulses
// 512 gives 50us
}
void loop()
{
}
How is the signal being generated? Can you take two photos of the same signal with trigger on rising vs falling edge?I've just realised that the scope agrees with my definition - the trigger is set to 'falling edge'.
#include <TimerOne.h>
void setup() {
pinMode(9, OUTPUT);
// Set Timer1 to generate interrupts every 222,717 microseconds (4.49 Hz)
Timer1.initialize(222717);
// Configure PWM on pin 9 with a 100 microseconds pulse (duty cycle: 100/222,717)
Timer1.pwm(9, 23); // Adjust this value for the desired duty cycle
}
void loop() {
// Your main code (if needed)
}
Hahah, my source is my ancient homebrew TCXO, all I have to hand as I have moved house and everything is packed away who-knows-where, so making do with a limited collection of stuff I have dug out. A simple decade divider to give me a range of frequencies. I've meant to update it for years, but it works....How is the signal being generated? Can you take two photos of the same signal with trigger on rising vs falling edge?


What is the min-max voltage? It looks like the signal is 0-5V with your scale offset +2.5V.Hahah, my source is my ancient homebrew TCXO, all I have to hand as I have moved house and everything is packed away who-knows-where, so making do with a limited collection of stuff I have dug out. A simple decade divider to give me a range of frequencies. I've meant to update it for years, but it works....
View attachment 312789
Trigger, no surprises:
View attachment 312787 View attachment 312788