Enthernet Code
DIIDevHeads IoT Integration Server
•Created by Enthernet Code on 10/2/2024 in #firmware-and-baremetal
Error: 'PWM' Object Has No Attribute 'duty' in Motor Control Code Using MicroPython
Am working on a smart car automation system using MicroPython, the system include various functionalities such as
obstacle detection
, line following
, speed control
, and environmental monitoring
. Am currently trying to implement basic motor control using PWM
signals and adjust motor speed using a potentiometer
or set values, am working with the motor driver module L298N
But am getting the error prompt PWM object has no attribute 'duty'
here's my code
2 replies