DRV8830/Texas Instruments H-Bridge Voltage-Controlled Motor Driver library for Brushed DC Motor
Dependents: NucleoF401_motor_test_simple Frequency_Counter_w_GPS_1PPS Nucleo_ACM1602_I2C_DC_Angle Frequency_Cntr_1PPS_F746ZG
Diff: DRV8830.h
- Revision:
- 1:a9b58bc85be0
- Parent:
- 0:05db098cf4f8
- Child:
- 2:fa7da669c1aa
--- a/DRV8830.h Sat Aug 23 11:18:06 2014 +0000 +++ b/DRV8830.h Thu Nov 27 21:25:10 2014 +0000 @@ -7,7 +7,7 @@ * http://www.page.sannet.ne.jp/kenjia/index.html * http://mbed.org/users/kenjiArai/ * Created: August 6th, 2014 - * Revised: August 16th, 2014 + * Revised: November 24th, 2014 * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE @@ -91,7 +91,13 @@ * @return none */ void speed(float speed); - + + /** Set motor speed + * @param speed (Range 0 to 1.0 or 0 to -1.0) + * @return none + */ + void set_voltage(float volt); + /** Read status * @param none * @return FAULT register content