Friday, December 1, 2017

Dec 1, 2017 - C++ Coding and Fex Factor

Entrance Ticket - Get a bigger Box
  • Find your "small" project box
  • Make sure you still have an Arduino
  • Get your "bigger" box.  If you need to, get a new bigger box
  • Put your small project box in your bigger box
  • Find your sticker with your names.... place on the front and right side... Make sure you do this right.... as I will take points off if you do it wrong
  • Pull off the manufacture sticker
  • Put your project box in the big student cabinet on the 3nd shelf.
Class Agenda:

  • 7:30-7:40 - Entry Ticket - 10 min (see top of Blog for today)
//This is how to start the motor "left" or CCW. 
    analogWrite(motorDriveSpeedPin, 100);//Sets speed variable via PWM
    digitalWrite(motorDirectionPin1, LOW);
    digitalWrite(motorDirectionPin2, HIGH);
    Serial.println("Motor 1 Left"); // Prints out “Motor 1 Forward” on the serial monitor
    //Serial.println("   "); // Creates a blank line printed on the serial monitor



//This is how to stop the motor
    analogWrite(motorDriveSpeedPin, 0);//Sets speed variable via PWM
    digitalWrite(motorDirectionPin1, LOW);
    digitalWrite(motorDirectionPin2, LOW);
    Serial.println("Motor 1 STOPPED");
    Serial.println("   ");

  • 9:20 - 9:30 - Cleanup

No comments:

Post a Comment