HW8 – State machine

I used a servo motor, IR sensor and switch to create a machine that takes an object and throws it over a table.

State 1 waits for an object to trigger the IR sensor and moves the servo to load an object.
State 2 waits for a switch and throws the object.
State 3 waits 3 seconds then returns the servo to its State 1 position.

Video

Circuit Diagram
Circuit Diagram

Arduino Sketch: HW8

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

%d bloggers like this: