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 8th February 2019, 03:06 PM   #361
raymondo is offline raymondo  United Kingdom
diyAudio Member
 
Join Date: Feb 2004
Location: manchester
Quote:
Originally Posted by Pyramid View Post
It should display the title on the top line of the LCD and "RPM: --.---" on the bottom line.

Does the tach sketch use the same LCD initialization and configuration commands as your Hello World sketch?
i've attached the sketch hopefully

probably easier than me relaying the information

thanks
Attached Files
File Type: txt hw.txt (1.7 KB, 6 views)

Last edited by raymondo; 8th February 2019 at 03:23 PM.
  Reply With Quote
Old 8th February 2019, 05:00 PM   #362
Pyramid is offline Pyramid  United States
diyAudio Member
 
Pyramid's Avatar
 
Join Date: May 2006
Location: Behind the Cheddar Curtain
Please post the exact tach sketch you are using (there are quite a few floating around).
  Reply With Quote
Old 8th February 2019, 05:17 PM   #363
raymondo is offline raymondo  United Kingdom
diyAudio Member
 
Join Date: Feb 2004
Location: manchester
Quote:
Originally Posted by Pyramid View Post
Please post the exact tach sketch you are using (there are quite a few floating around).
attached

thanks
Attached Files
File Type: txt tacho.txt (4.8 KB, 5 views)
  Reply With Quote
Old 8th February 2019, 05:45 PM   #364
Pyramid is offline Pyramid  United States
diyAudio Member
 
Pyramid's Avatar
 
Join Date: May 2006
Location: Behind the Cheddar Curtain
You are mixing libraries and function calls into them. If your LCD has a PCF8754 or PCF8754A I2C chip, you should be able to use the tach scketch as it was originally written:

#include <LiquidCrystal_PCF8574.h>

LiquidCrystal_PCF8574 lcd(0x27);

The function calls in the void setup() will then be correct.

If you are going to use your library:

#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);

Then you need to replace:

lcd.begin(16,2) ;

with

lcd(init);

The syntax for function calls between the two libraries may differ for the other commands:
lcd.createChar(0,DISC);
lcd.home();
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Arduino Uno Tach");
lcd.setCursor(0,1);
lcd.print("RPM: --.---");
lcd.setBacklight(255);


You will have to look at the on-line reference for LiquidCrystal_I2C.h and translate if necessary.

Probably easiest to get your module working with LiquidCrystal_PCF8574.h if possible.
  Reply With Quote
Old 8th February 2019, 06:17 PM   #365
raymondo is offline raymondo  United Kingdom
diyAudio Member
 
Join Date: Feb 2004
Location: manchester
Quote:
Originally Posted by Pyramid View Post
You are mixing libraries and function calls into them. If your LCD has a PCF8754 or PCF8754A I2C chip, you should be able to use the tach scketch as it was originally written:

#include <LiquidCrystal_PCF8574.h>

LiquidCrystal_PCF8574 lcd(0x27);

The function calls in the void setup() will then be correct.

If you are going to use your library:

#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);

Then you need to replace:

lcd.begin(16,2) ;

with

lcd(init);

The syntax for function calls between the two libraries may differ for the other commands:
lcd.createChar(0,DISC);
lcd.home();
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Arduino Uno Tach");
lcd.setCursor(0,1);
lcd.print("RPM: --.---");
lcd.setBacklight(255);


You will have to look at the on-line reference for LiquidCrystal_I2C.h and translate if necessary.

Probably easiest to get your module working with LiquidCrystal_PCF8574.h if possible.
Its now working - thanks Bill - time to build the sensor !
  Reply With Quote
Old 11th February 2019, 11:47 AM   #366
raymondo is offline raymondo  United Kingdom
diyAudio Member
 
Join Date: Feb 2004
Location: manchester
Quote:
Originally Posted by Pyramid View Post
You are mixing libraries and function calls into them. If your LCD has a PCF8754 or PCF8754A I2C chip, you should be able to use the tach scketch as it was originally written:

#include <LiquidCrystal_PCF8574.h>

LiquidCrystal_PCF8574 lcd(0x27);

The function calls in the void setup() will then be correct.

If you are going to use your library:

#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);

Then you need to replace:

lcd.begin(16,2) ;

with

lcd(init);

The syntax for function calls between the two libraries may differ for the other commands:
lcd.createChar(0,DISC);
lcd.home();
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Arduino Uno Tach");
lcd.setCursor(0,1);
lcd.print("RPM: --.---");
lcd.setBacklight(255);


You will have to look at the on-line reference for LiquidCrystal_I2C.h and translate if necessary.

Probably easiest to get your module working with LiquidCrystal_PCF8574.h if possible.
This is now working perfectly - many thanks for your help Bill - i'd buy you a beer if you were not 5000 miles away !

I've set the CALIBRATE value to 1873680 as pin 2 measured 15.614KHz using my fluke (which is very accurate)

I take it that's right ?

Thanks again - collaboration on here is better than with my global work colleagues :-)
  Reply With Quote
Old 11th February 2019, 12:32 PM   #367
Pyramid is offline Pyramid  United States
diyAudio Member
 
Pyramid's Avatar
 
Join Date: May 2006
Location: Behind the Cheddar Curtain
Quote:
Originally Posted by raymondo View Post
I've set the CALIBRATE value to 1873680 as pin 2 measured 15.614KHz using my fluke (which is very accurate)

I take it that's right ?
That should be correct.


Quote:
Originally Posted by raymondo View Post
This is now working perfectly - many thanks for your help Bill - i'd buy you a beer if you were not 5000 miles away !
  Reply With Quote
Old 12th February 2019, 06:46 AM   #368
Rajkumar_ is offline Rajkumar_  India
diyAudio Member
 
Join Date: Jan 2010
Location: India
Hi Bill, I have try to connect Arduino Nano V3 with Serial module LCD 1602 16X2, I was try to uploading sketch file tahco.txt which one used on Arduino Uno, not able to loading file. Is it there any other sketch file required for Nano? Thanks Rajkumar
  Reply With Quote
Old 12th February 2019, 01:05 PM   #369
Pyramid is offline Pyramid  United States
diyAudio Member
 
Pyramid's Avatar
 
Join Date: May 2006
Location: Behind the Cheddar Curtain
I've not used a Nano. Maybe someone else has done this?
  Reply With Quote
Old 12th February 2019, 01:09 PM   #370
alexandro is offline alexandro  Bulgaria
diyAudio Member
 
Join Date: Oct 2006
Hi Rajkumar,
Have you renamed the .txt file to .ino?
You cannot load a .txt sketch to Arduino IDE.
Please try to rename the file extension and load it again to the program.
Hope that helps.
  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 01:57 AM
The new Ģ5-Record-Player.... M_Balou The Lounge 5 18th October 2016 11:38 PM
Old record player Rucyrius Everything Else 0 24th March 2011 03:35 PM
Change old cd player display to LCD, easy? Tubeee Digital Source 0 7th December 2003 12:03 PM


New To Site? Need Help?

All times are GMT. The time now is 07:46 AM.


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