Hello
in my project, I need to use an oscillator. and because of covid19 pandemic, I am no longer able to command the tools I need, I was obliged to use carte Arduino DUE
to extract rectangular signals of magnitude 1.5v , frequency 32.768 kHz
and duty ratio 0.5 I used this program
255 = 5v so 1.5v= 76.5 and T=0.0152587891 secondes
so I used this program and I don't know what's going wrong
int LED_pin =11; // Brancher votre oscilloscope avec pin = 11 sur la carte arduino
int level = 76.5; //PWM_out_level : cela signifie le rapport cyclique
void setup() {
pinMode(LED_pin, OUTPUT);
}
void loop() {
analogWrite(LED_pin, level);
delay(0.0152587891);
analogWrite(LED_pin,0);
delay(0.0152587891);
}
I think that the problem in the oscilloscope
cordially,
in my project, I need to use an oscillator. and because of covid19 pandemic, I am no longer able to command the tools I need, I was obliged to use carte Arduino DUE
to extract rectangular signals of magnitude 1.5v , frequency 32.768 kHz
and duty ratio 0.5 I used this program
255 = 5v so 1.5v= 76.5 and T=0.0152587891 secondes
so I used this program and I don't know what's going wrong
int LED_pin =11; // Brancher votre oscilloscope avec pin = 11 sur la carte arduino
int level = 76.5; //PWM_out_level : cela signifie le rapport cyclique
void setup() {
pinMode(LED_pin, OUTPUT);
}
void loop() {
analogWrite(LED_pin, level);
delay(0.0152587891);
analogWrite(LED_pin,0);
delay(0.0152587891);
}
I think that the problem in the oscilloscope
cordially,