![]() |
Re: Photosensor as encoder for bang bang.
i have it hooked up and i had just hooked it up to the solenoid breakout card. but not there is no power to the photosensor
|
Re: Photosensor as encoder for bang bang.
NOw i got it to work at 24 volts. Now i need the code to work
|
Re: Photosensor as encoder for bang bang.
I am getting a reeding now of Rpms between 500 to about 3000. But still my motor keeps going very fast
|
Re: Photosensor as encoder for bang bang.
1 Attachment(s)
Quote:
With a 20ms execution rate using counts to read a one-per-rev sensor on a wheel spinning at 2000 rpm, you're going to see a *lot* of noise. |
Re: Photosensor as encoder for bang bang.
The value (10) you put underneath the indicator, what does that number mean exactly.
|
Re: Photosensor as encoder for bang bang.
1 Attachment(s)
here
|
Re: Photosensor as encoder for bang bang.
Quote:
@ Bunniy: Many folks don't use the threaded display and can't tell who you are talking to if you just use the pronoun "you". |
Re: Photosensor as encoder for bang bang.
Quote:
|
Re: Photosensor as encoder for bang bang.
@ Ether: Thank you, im new to chief delphi so i dont know this
|
Re: Photosensor as encoder for bang bang.
Quote:
That will provide sufficient context. |
Re: Photosensor as encoder for bang bang.
Quote:
|
Re: Photosensor as encoder for bang bang.
Quote:
|
Re: Photosensor as encoder for bang bang.
Quote:
|
Re: Photosensor as encoder for bang bang.
Quote:
|
Re: Photosensor as encoder for bang bang.
2 Attachment(s)
Quote:
Using the "period" method, like Mark posted earlier in this thread, the FPGA samples the sensor at 153KHz and records the elapsed time between pulses with a 1MHz clock. For a one-per-rev sensor (like yours) on a wheel spinning at, say, 2000 rpm, that gives you a very accurate and hi resolution signal. See attachment. The "count" method is very accurate for high speeds with high counts-per-rev sensors like a 360CPR encoder. But for a one-per-rev sensor like yours, it's not very good. At a wheel speed of 2000 rpm and sampling every 20ms, you don't get enough counts to accurately determine what the speed is. Sometimes you'll get 1 count, and sometimes you'll get *no* counts. You can't convert that into a useable speed signal. See attachment. |
| All times are GMT -5. The time now is 22:48. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi