MAKECourse
  • Home
  • About
  • Course Materials
    • Software
    • Course Kits
    • TA hours
  • Videos
    • Intro to Programming Videos
    • Advanced Topics >
      • DAC and ADC Tutorial
      • SD Card Data Logging
      • DC Motor Control
  • Schedule
    • Syllabus
  • Student Projects
    • Awesome Prizes
    • Fall 2020 Projects
    • Fall 2016 Awesome Prize Winners
    • Fall 2016 Projects
    • Spring 2016 Awesome Prize Winners
    • Spring 2016 Projects
    • Fall 2015 Awesome Prize Winners
    • Fall 2015 Projects
    • Spring 2015 Awesome Prize Winners
    • Spring 2015 Projects
    • Fall 2014 Projects
    • Spring 2014 Projects

Lesson Plan: Week 8

In Week 8 we will do the following (please, click on the Segment links below to access the course materials):
Segment 1:
  • Learn to use servo motors and analog pins with the Arduino.
  • Build a control system for a servo motor based on the proximity sensor.
Segment 2:
  • Learn to use a stepper motor with the Arduino.
  • Understand the driving circuitry for stepper motors.
  • Use a Stepper motor with control buttons.


Homework 7: Build a setup that combines the stepper motor with the potentiometer, and that uses the LCD display to show the motor RPM.

Goal: Understand how to use the stepper motor and the potentiometer as an 'analog user interface'

Set-up: Connect the potentiometer swiper (middle contact) to an analog pin. Connect the outer contacts of the pot to 5V and GND. Connect the stepper motor and the LCD display to the Arduino.

Programming: Program the Arduino that it reads out the voltage on the swiper of the potentiometer. Use this voltage reading to set the speed of the stepper motor. Calibrate the stepper motor RPM by counting the rounds per time at a given motor setting. Use this calibration value to calculate the actual RPM. Display the RPM on the LCD display including units. Make sure that the LCD display is updated periodically to show an up-to-date RPM value.

Helpful info:
Stepper motor: Watch our stepper motor video. It will show you how to use the stepper motor driver board and how to program the motor. Make sure you use the stepper motor library (and experience the awesome power of OOP!) provided with the video and do not use the example code that was used to demonstrate the stepper functionality in the video.
Potentiometer: A potentiometer is a voltage divider that can be adjusted smoothly, i.e. the voltage at the swiper corresponds linearly (in most pots at least - there are some that give you a logarithmic dependency) with the angular position of the shaft. If voltage dividers are still a mystery, watch our EEawesome videos 7-9 at eeawesome.com.

To get credit: Come to class on the due date and present your working set-up to one of the TAs or Instructors.
[Home] [Course Materials] [Syllabus] [Student Projects] [Contact]
Powered by Create your own unique website with customizable templates.