Department of Mechanical Engineering, UCSB
ME170C/ECE181C: Introduction to Robotics: Robot Control
Summer 2010

ME170C/ECE181C Home
(Course Description)

Course Schedule and Assignments

Getting Started
(or PDF)

Arduino and Hardware
(or PDF)

Structure and Motion
(or PDF)

Sensor Wiring and Data Sheets

Example Code

Lecture Slides


ME Home



Example Code

Read and Write Digital Pins (Digital_In_N_Out.pde)

Run a Motor Forward, Backward, and Stop It (MotorTest.pde)

Display Text on LCD (SimpleDisplay.pde)

Interrupt Driven Hammerhead Robot

Analog Test Example (Analog_Test_Example.pde)

Read and Display All Six Analog Pins (AnaPinRead.pde)

Count up in deciseconds from zero (SimpleTimer.pde)

Stopwatch and count-down timer with big custom digits (Timer.pde)

Demonstrates controlling a servo and doing so through a serial connection from a computer (SerialServo.pde)

Demonstrates reading beacon signals (Beacon_Sense.pde) (Overview Document)

Demonstrates reading beacon with master(I2C_Master_Beac1.pde) (Overview Document)

Demonstrates reading beacon through slave (I2C_Slave_Beac1.pde) (Overview Document)