Skip to content

Intermediate programming - leveraging libraries to control the position of a laser pointer with servos

License

Notifications You must be signed in to change notification settings

techshop/EEE-201-Arduino-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EEE-201: Arduino 2

In this class, you will learn how to use an Arduino in a more advanced way: you will be building a servo-controlled laser pointer. The three hours will switch between instruction, hands-on and some free time. Example programs will be provided. You can cut and paste from the examples to start writing your own programs.

The class fee includes the servos and the laser diode. Please bring a laptop with the Arduino software and drivers pre-installed as well as your Arduino compatible board. The software may be downloaded online.

If you bring your own laptop, you MUST pre-download and install the Arduino software and drivers.

You must make arrangements for a computer before signing up for the class - either be able to bring a laptop, or call the shop for assistance.

A GitHub repo has been created which houses all of the course material including a course document PDF as well as a ZIP with all the course material including code.

Course Supplies

You will be working with and given all the supplies listed below; please note you must supply your own Arduino

In the Arduino 1 class, we covered the topic of pulse width modulation (PWM); we will revisit that concept in this chapter and see how it is used to control servos. We'll be covering the following concepts:

  • pulse width, voltage and period
  • duty cycle
  • servo control

We're now going to look into the basics of controlling a servo with the Arduino as well as how to use a library to make this task a lot easier. We'll be covering the following concepts:

  • Servo library
  • for() loop
  • while() loop

In this final chapter we will be using a simple 2-axis joystick to control our servos; we'll be covering the following concepts:

  • potentiometers as joysticks
  • smoothing arrays

About

Intermediate programming - leveraging libraries to control the position of a laser pointer with servos

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Other 100.0%