There was a problem I didn’t know how to fix no matter what.

I was trying to use analog writing to control both the speaker's tone and the light's brightness.

The analog write is working fine by looking at the serial monitor. But neither the light nor the speaker progressively change

IMG_4990.JPG

Screen Shot 2023-09-25 at 23.33.33.png

However, use the same method to control the motor is working fine

sd1695421353_2.MP4

sd1695421596_2.MP4

eb611a4394364ce583d883b38bf0ec17.MOV

Screen Shot 2023-09-26 at 10.41.44.png