Go to Post You can never have enough FIRST! :D - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-02-2013, 21:53
JohnGilb JohnGilb is offline
Programming Mentor, Drive Mentor
FRC #0488
 
Join Date: Mar 2011
Rookie Year: 2003
Location: Redmond, WA
Posts: 116
JohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura about
How to perform Digital averaging via the FPGA?

On our robot we're using a sensor to detect the presence of a disc. It's a pretty good sensor, but it will occasionally produce false positives and false negatives, as well as having a bit of a "bouncing" issue when a disc just starts to pass overhead. In each of these cases, the value is correct somewhere between 75%-98% of the time.

Due to some time-critical mechanisms, we can't afford to read this sensor multiple times in a software. We need to make one good read and take action.

Is there a way to have the FPGA do this averaging for us? Ideally, it'd read the signal thousands of times and tell me if there were more TRUE values or FALSE values since I last called it.
  #2   Spotlight this post!  
Unread 16-02-2013, 01:15
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: How to perform Digital averaging via the FPGA?

You might try doing analog averaging of the signal. Feed your ones (5v) and zeros (0v) into an analog input configured to average a large number of samples, and see if the averaged result is closer to 0 or to 5.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:10.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi