IPIA Senior Project V2.0
Spring-Fall 2020
Loading...
Searching...
No Matches
SG90.h File Reference

SG90 Driver. More...

#include <unistd.h>
#include <stdint.h>
#include <stddef.h>
#include <ti/drivers/PWM.h>
#include "ti_drivers_config.h"
Include dependency graph for SG90.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SERVO_MIN   12000
 
#define SERVO_MAX   24000
 

Functions

void SG90_init (uint_least8_t index, PWM_Handle *motorHandle)
 SG90 Initialize. More...
 
void SG90_setDuty (PWM_Handle motor, uint32_t duty)
 SG90 set duty. More...
 
void SG90_start (PWM_Handle motorHandle)
 SG90 start. More...
 

Detailed Description

SG90 Driver.

Author
Jesus Minjares
See also
https://github.com/jminjares4
Author
Erick A. Baca
See also
https://github.com/eabaca2419
Version
0.1
Date
2022-05-20

Macro Definition Documentation

◆ SERVO_MAX

#define SERVO_MAX   24000

Servo Max Value

◆ SERVO_MIN

#define SERVO_MIN   12000

Servo Min Value

Function Documentation

◆ SG90_init()

void SG90_init ( uint_least8_t  index,
PWM_Handle *  motorHandle 
)

SG90 Initialize.

Detailed description starts here

Parameters
indexSG90 index value
motorHandlePWM_handle reference
Returns
None

◆ SG90_setDuty()

void SG90_setDuty ( PWM_Handle  motor,
uint32_t  duty 
)

SG90 set duty.

Detailed description starts here

Parameters
motorPWM_Handle value
dutymotor duty value
Returns
None

◆ SG90_start()

void SG90_start ( PWM_Handle  motorHandle)

SG90 start.

Detailed description starts here

Parameters
motorPWM_Handle value
Returns
None