Triggering from the sensor using a tilt switch.

MiniPOV4 and previous versions

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
pneumatic
 
Posts: 186
Joined: Sun Jul 26, 2009 3:59 pm

Triggering from the sensor using a tilt switch.

Post by pneumatic »

I'm trying to use the ball tilt switch as a cheap accelerometer to trigger one pass of the image.

This is a naive implementation. It does some simple hysteresis counting to debounce the very noisy input. Aside the from attached file, you only need to add this to the appropriate place in the Makefile:

program-sweep: sweep.hex

and then
$ make program-sweep
should do it.

Comments?

-- Mitch
Attachments
sweep.c
(3.98 KiB) Downloaded 366 times

Locked
Please be positive and constructive with your questions and comments.

Return to “MiniPOV”