Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Analogue Source Turntables, Tonearms, Cartridges, Phono Stages, Tuners, Tape Recorders, etc.

Digital Tachometer for record player (LCD display)
Digital Tachometer for record player (LCD display)
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 5th January 2017, 04:22 PM   #11
Pyramid is offline Pyramid  United States
diyAudio Member
 
Pyramid's Avatar
 
Join Date: May 2006
Location: Behind the Cheddar Curtain
What's the resolution of your timer?
  Reply With Quote
Old 5th January 2017, 05:52 PM   #12
tauro0221 is offline tauro0221  United States
diyAudio Member
 
Join Date: Nov 2008
Location: Victoria,TX
Hi,
I do not know if this will answer your question since in my program I used the function timer() to get the time of one revolution. Here it is the description for the function.

Type Function returning Single
Invocation Timer()

This function returns the current RTC time represented as the number of seconds since midnight with a best-case resolution of 1/F_RTC_TICK. Note that Register.RTCTick gives you the equivalent information albeit in the form of a 32-bit value representing the number of RTC ticks (increments of
1/F_RTC_TICK) since midnight. Depending on your needs, one or the other may be more efficient to
use.

Here it is the link for Zbasic web side for those interesting in more details pf the Zbasic software.

link: ZBasic Microcontrollers for Automation, Control, Robotics and other Embedded Systems
  Reply With Quote
Old 5th January 2017, 06:12 PM   #13
tauro0221 is offline tauro0221  United States
diyAudio Member
 
Join Date: Nov 2008
Location: Victoria,TX
Hi,
To Pyramid.

Correction the answered post was the function I used while doing the development. The following it is the final for more accuracy.

GetElapsedMicroTime(timeBuf)
GetElapsedMicroTime(timeBuf, timeBuf2)


The return value has units of the period of the frequency at which the TCNT register of the RTC timer changes, i.e. 1/F_RTC_TIMER (typically about 4.34uS for ZX devices). The value of Register.RTCTimer Frequency may be useful for converting the return value to seconds. The array must contain at least 5 bytes (6 bytes for xmega devices), populated by a previous call to
GetMicroTime(). The return value will range from 0 to the equivalent of about 15,000 seconds. A return value of &HFFFFFFFF indicates that an overflow has occurred, i.e. an elapsed time that is too large to represent.

Please accept my apologies for the wrong answered.
  Reply With Quote
Old 5th January 2017, 06:23 PM   #14
Pyramid is offline Pyramid  United States
diyAudio Member
 
Pyramid's Avatar
 
Join Date: May 2006
Location: Behind the Cheddar Curtain
According to the ZBasic manual:

"If the RTC is not enabled in your application, the resolution of the delay period is 1mS. If the RTC is enabled, the resolution is the same as an RTC tick period, i.e. 1/F_RTC_TICK (typically 1.95mS for ZX devices)."

I'm assuming you don't have the RTC enabled so the resolution is 1mS; that seems to be the only way you would get a reading of 33.33334 (RTC ticks=1800). That would make your resolution ~0.0185 RPM (next highest reading is 33.3518, next lowest is 33.3148)?

If RTC is enabled, then the resolution is 1.95mS. Your readings would be 33.3913 / 33.3550 / 33.3188 for RTC counts of 920 /921 /922.

Edit after your last post: Using RTC_TIMER would definitely give you better resolution (~0.00008 RPM).

Last edited by Pyramid; 5th January 2017 at 06:32 PM.
  Reply With Quote
Old 5th January 2017, 07:30 PM   #15
tauro0221 is offline tauro0221  United States
diyAudio Member
 
Join Date: Nov 2008
Location: Victoria,TX
Hi,
It is possible that the reading of 33.3333 was because I was adjusting the rpm to 33.3333 rpm by increasing /decreasing the pwd frequency. By controlling the rpm I was able to get the reading. I double check the reading with a tachometer and it was betting the of reading 33.333 since the meter just has 5 digits. Also when I reached the 33.3333 the neon strobe was locked showing that I was at 33.3333. I am not trying to show that your are wrong I just reporting the readings. Now, It is too late to try your suggestion since I dumped the turntable in the trash. I still have all the parts less the display in case somebody it is interesting to use it.
  Reply With Quote
Old 5th January 2017, 07:40 PM   #16
Pyramid is offline Pyramid  United States
diyAudio Member
 
Pyramid's Avatar
 
Join Date: May 2006
Location: Behind the Cheddar Curtain
If you used the GetMicroTime() function (resolution of 4.34uS) you could definitely get a reading of 33.3333. Per my edit above, the resolution is ~0.00008 RPM.

Your readings would be 33.333413 / 33.333333 / 33.333250 for counts of 414719 / 414720 / 414721.
  Reply With Quote
Old 5th January 2017, 07:51 PM   #17
tauro0221 is offline tauro0221  United States
diyAudio Member
 
Join Date: Nov 2008
Location: Victoria,TX
Hi,

While program was controlling the rpm I was getting the reading like you said 33.333413 / 33.333333 / 33.333250.
  Reply With Quote
Old 5th January 2017, 08:00 PM   #18
tauro0221 is offline tauro0221  United States
diyAudio Member
 
Join Date: Nov 2008
Location: Victoria,TX
Hi,

To JOHNNYCR100 :
If you want I canl try to convert it from Zbasic to Arduino. So everybody can use it. I used optical sensor instead the hall effect.
  Reply With Quote
Old 5th January 2017, 09:25 PM   #19
JOHNNYCR100 is offline JOHNNYCR100  Abu Dhabi
diyAudio Member
 
Join Date: Jul 2010
Location: Middle East someware!
Default hi Taru

Hi Taru0221,

Thanks, i have been watching but a bit passive as i know nothing linux/C+ or what ever code is required, but i dont want to be a drain on those who do know, if you could show us a code and let me know what discplay(led/lcd)
it would work with and how to make the sensor (optical/hallefect?) that would make more sense to me.

Pictures are good

thanks
Johnny
  Reply With Quote
Old 8th January 2017, 05:45 PM   #20
tauro0221 is offline tauro0221  United States
diyAudio Member
 
Join Date: Nov 2008
Location: Victoria,TX
Hi,
This is to let you that I converted my Turntable rpm display to run from Zbasic to Arduino UNO. For the sensor I used the TCRT5000 Single Channel Line Tracking Sensor Module and for the display from Mouser part number : 763-0216K3ZNSWBBW-V3. It is a 2 lines 16 character serial interface display. You can use any display since the display output can be modify/customize for the desire output message format. To get the pulse from the platen it require a reflective strip stick to the platen.

Attached are some pictures show my test jig using a Pioneer Turntable.
If your are still interesting please send me a PM so I can email the program.
Attached Images
File Type: jpg DSCF2979.jpg (960.2 KB, 669 views)
File Type: jpg DSCF2980.jpg (418.8 KB, 644 views)
  Reply With Quote

Reply


Digital Tachometer for record player (LCD display)Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Digital Turntable Tachometer and DDS based PSU Pyramid Vendor's Bazaar 234 6th November 2017 12:57 AM
The new Ģ5-Record-Player.... M_Balou The Lounge 5 18th October 2016 10:38 PM
Old record player Rucyrius Everything Else 0 24th March 2011 02:35 PM
Change old cd player display to LCD, easy? Tubeee Digital Source 0 7th December 2003 11:03 AM


New To Site? Need Help?

All times are GMT. The time now is 02:54 PM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 15.00%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Copyright ©1999-2018 diyAudio
Wiki