Lab 7: DC & Stepper Motors

Materials:

  • Arduino Uno
  • Solderless breadboard
  • Hookup wire
  • 10KΩ resistor
  • Pushbutton switch
  • H-bridge
  • DC motor
  • Stepper motor

DC Motor Circuit:

I struggled to complete this circuit originally, I believe because of differences between the SparkFun RedBoard and the Arduino Uno. Once I switched my circuit over to the Uno, I encountered no issue and was able to get the DC motor to spin different directions according to the position of the momentary switch.

DC motor code.png

IMG_2821.JPG

Throughout this lab, I have been trying to better conceptualize when it would be best to use a servo versus a DC versus a stepper motor.

Stepper Motor Circuit:

lab7_stepperpt1

 

stepperpt2

For whatever reason, the above code only worked to get the stepper to complete a full turn by changing the RPM to 10.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s