RoboidControl for Arduino
Loading...
Searching...
No Matches
DRV8833.h
Go to the documentation of this file.
1#pragma once
2
3#include <Arduino.h>
4#include "Motor.h"
5
6namespace Passer {
7namespace RoboidControl {
8
10class DRV8833Motor : public Motor {
11 public:
18 byte pinIn2,
20
21 void SetSpeed(float speed) override;
22
23 protected:
25 byte pinIn1 = 0;
27 byte pinIn2 = 0;
28};
29
31class DRV8833 {
32 public:
33 DRV8833();
43 DRV8833(byte pinAIn1,
44 byte pinAIn2,
45 byte pinBIn1,
46 byte pinBIn2,
47 byte pinStandby = 255,
50
53
54 protected:
57};
58
59} // namespace RoboidControl
60} // namespace Passer
61using namespace Passer::RoboidControl;
Support for a DRV8833 motor controller.
Definition DRV8833.h:31
DRV8833()
Definition DRV8833.cpp:37
byte pinStandby
The pin number for the standby signal.
Definition DRV8833.h:56
DRV8833Motor motorA
Definition DRV8833.h:51
DRV8833Motor motorB
Definition DRV8833.h:52
One motor port on the DRV8833 motor controller.
Definition DRV8833.h:10
byte pinIn1
The pin number for the in1 signal.
Definition DRV8833.h:25
byte pinIn2
The pin number for the in2 signal.
Definition DRV8833.h:27
void SetSpeed(float speed) override
Set the motor speed.
Definition DRV8833.cpp:19
DRV8833Motor()
Definition DRV8833.cpp:3
A Motor is a Thing which can move parts of the Roboid.
Definition Motor.h:11
Direction
Motor turning direction.
Definition Motor.h:17
Direction direction
The forward turning direction of the motor.
Definition Motor.h:19
Definition DRV8833.h:7
Definition DRV8833.h:6