A3_1_3_Part2.c - Project Title Controlling A Servo Motor Team Members Kaden Ben Jacob Date Description testing right and left motor Variables digital2

A3_1_3_Part2.c - Project Title Controlling A Servo Motor...

This preview shows page 1 out of 1 page.

/* Project Title: Controlling A Servo Motor Team Members: Kaden, Ben, Jacob Date: November 13, 2015 Description: testing right and left motor Variables: digital2: bumpSwitch, port2: rightMotor Psuedocode: Wait for the bumper switch to be bumped. Note that a bump occurs when a switch is pressed and released and not simply pressed and held. Both motors turn on at half power until the sensor is bumped again. Both motors should then move in reverse at half power for 3.5 seconds. Both motors will stop. */ #pragma config(Sensor, in1, lineFollower, sensorLineFollower) #pragma config(Sensor, in2, potentiometer, sensorPotentiometer) #pragma config(Sensor, in3, lightSensor, sensorReflection) #pragma config(Sensor, dgtl1, limitSwitch, sensorTouch) #pragma config(Sensor, dgtl2, bumpSwitch, sensorTouch) #pragma config(Sensor, dgtl3, quad, sensorQuadEncoder) #pragma config(Sensor, dgtl5, sonar, sensorSONAR_inch) #pragma config(Sensor, dgtl12, green, sensorLEDtoVCC) #pragma config(Motor,
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Spring '16
  • Moon
  • It, Electric motor, in2, Servomechanism, pragma config, Kaden

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors