Skip to content

Commit fbaeaa8

Browse files
committed
Adjust frequency of the Artemis PWM signal
- The DA7280 appears to not like the PWM signal being set so close to the boundary (i.e. 10kHz). Adjusting the value so that it is just a bit higher than 10kHz on the Artemis for a smoother transition as we increase the applied power. Otherwise, the DA7280 will throw a fault and stop vibrating the motor making it very choppy as we the PWM signal is increased.
1 parent e74a53d commit fbaeaa8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/PWM_Mode_Teensy_Artemis/PWM_Mode_Teensy_Artemis.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ void setup(){
3030

3131
//When using Teensy***************************************
3232
//analogWriteFrequency(pwmPin, 10000); // Set to 10kHz
33-
//When usign Artemis***************************************
34-
analogWriteFrameWidth(1200); //Set to 10kHz
33+
//When using Artemis***************************************
34+
analogWriteFrameWidth(1100); //Set to 10kHz (e.g. 10909Hz = 12000000/1100); too close to the boundary and the DA7280 will fault
3535

3636
Wire.begin();
3737
Serial.begin(115200);

0 commit comments

Comments
 (0)