I've been looking for a DC Motor controller example (for nRF52840) but without luck. Some other users have referred to such an example so I figured it should exist.
Anyone knows?
Thanks!
I've been looking for a DC Motor controller example (for nRF52840) but without luck. Some other users have referred to such an example so I figured it should exist.
Anyone knows?
Thanks!
Hi,
We don't have any specific motor control example, but you can modify one of our examples and use them for controlling your motor. For ON/OFF you can use the Blinky example to drive a GPIO high/low for example. You will also need to have a driver circuit, as driving the motor directly from the GPIO pin can damage the chip, see electrical specifications for GPIO: https://infocenter.nordicsemi.com/topic/ps_nrf52840/gpio.html?cp=4_0_0_5_8_2#unique_524997740
If you need speed control and your motor can be PWM controlled there is a PWM driver, a library and a Low-power PWM example in the nRF5 SDK v17.0.2
The example is placed under the "Peripherals" examples folder and the documentation for the example can be found in the infocenter: https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/low_power_pwm_example.html
Best regards,
Marjeris
Great, thank you!
Best regards,
eh
Great, thank you!
Best regards,
eh