Closed markrusciano closed 9 years ago
Using the mbed PwmOut library (http://developer.mbed.org/handbook/PwmOut), create a PwmOut object for every PWM device we will have connected to the MAVRIC_Arm Board
Example: PwmOut arm_elbow(PA_7);
PWM Connections
If the mbed stuff is confusing, I'd recommend going through this tutorial here: https://learn.sparkfun.com/tutorials/mbed-starter-kit-experiment-guide/experiment-2-buttons-and-pwm Make sure to type the code, don't just copy paste. It has helped me a lot.
Use the old mbed code for reference if you'd like https://github.com/ISU-MAVRIC/MAVRIC_Main/blob/master/Firmware/MAVRIC_Main/main.cpp
http://developer.mbed.org/users/zadanger/code/arm_control_pwm/rev/0f3b03031f63
Using the mbed PwmOut library (http://developer.mbed.org/handbook/PwmOut), create a PwmOut object for every PWM device we will have connected to the MAVRIC_Arm Board
Example: PwmOut arm_elbow(PA_7);
PWM Connections
If the mbed stuff is confusing, I'd recommend going through this tutorial here: https://learn.sparkfun.com/tutorials/mbed-starter-kit-experiment-guide/experiment-2-buttons-and-pwm Make sure to type the code, don't just copy paste. It has helped me a lot.
Use the old mbed code for reference if you'd like https://github.com/ISU-MAVRIC/MAVRIC_Main/blob/master/Firmware/MAVRIC_Main/main.cpp