180 likes | 479 Views
BEST Robotics easyC Overview. Courtney Pinnell and Brina Saldivar AWEE (Association of Women in Electrical Engineering). Download the Software. easyC for Cortex Microcontroller. Free 7 day trial software. http://www.intelitekdownloads.com/easyCV4/. Creating a New Project.
E N D
BEST Robotics easyC Overview Courtney Pinnell and BrinaSaldivar AWEE (Association of Women in Electrical Engineering)
easyC for Cortex Microcontroller Free 7 day trial software http://www.intelitekdownloads.com/easyCV4/
Creating a New Project Select Joystick Project
Main Interface Automatically configures files Main code block with configurables Function block provides program logic and joystick interfacing
Configuring Input/Outputs Double Click Config to get Wizard Click to change input or output
Assigning a Motor Assign motors to proper pin here Input Output
Creating Variables Various Data Types
Drag and Drop Programming Grab While Loop Here Drag Structure onto program flow
While Loop Creates and infinite loop
Adding Tank-2 Motor Control Drag into while loop for continuous control Tank Motor Control
Setup Tank-2 Motor Control Channel Denotes which button or joystick on controller Can find our assigned motor here
Tips • Remember to NEVER plug a motor directly into the microcontroller, they need to be plugged into the motor controller adapter first! • Servos are best suited for buttons instead of joystick control to prevent oversampling which can wear out a servo • Most actions need to be continuously repeated (ex: driving robot) to do this use an infinite while loop (ex: while(1){ ..blah..} or while(true){..blah..} • If, else if, and else statements are really usefully for all situations
References • http://www.vexrobotics.com/products/accessories/logic/276-2194.html