Skip to content

In Which My Disappointment is Blunted By Repetition

November 23, 2014

There’s no substitute for looking at the signal. I put the output of the sharp sensor on my oscilloscope set for .2ms per horizontal division and 2v per vertical and lo and behold, there’s the noise. It’s on some multiple of one ms repetition and about .2V high for about .1 ms or so.
14-11-23 oscope

Since .1 ms is only about 25 instructions, I changed my code to take two samples and select the lower of the two. My samples will be a good 100-200 instructions apart so I should never get two with the spike. The image below shows the results in the serial terminal. This should be fine for the forward sensor if I can live with the range problem.
14-11-23 sharp blunted

Advertisements

From → Uncategorized

Leave a Comment

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: