loading
2Comments

Tell us about yourself!

Complete Your Profile
  • JanainaF commented on nikoala3's instructable Arduino Guitar Tuner7 months ago
    Arduino Guitar Tuner

    I'm trying to adapt a lcd screen to this project but I cant seem to figure the code out.I have checked everything multiple times but wasn't able to find whats wrong and why isn't this working. Everythig seems to be working fine with the leds but when I try to use the lcd screen it shows nothing.I have included the LiquidCrystal on the begining of the code and lcd.begin(16,2); in the setup, this was the other change I did in the code:"void stringCheck(){if(frequency>70&frequency<90){lcd.print("E");correctFrequency = 82.4;}if(frequency>100&frequency<120){lcd.print("A");correctFrequency = 110;}if(frequency>135&frequency<155){lcd.print("D");correctFrequency = 146.8;}if(frequency>186&frequency<205){lcd.print("G&q...see more »I'm trying to adapt a lcd screen to this project but I cant seem to figure the code out.I have checked everything multiple times but wasn't able to find whats wrong and why isn't this working. Everythig seems to be working fine with the leds but when I try to use the lcd screen it shows nothing.I have included the LiquidCrystal on the begining of the code and lcd.begin(16,2); in the setup, this was the other change I did in the code:"void stringCheck(){if(frequency>70&frequency<90){lcd.print("E");correctFrequency = 82.4;}if(frequency>100&frequency<120){lcd.print("A");correctFrequency = 110;}if(frequency>135&frequency<155){lcd.print("D");correctFrequency = 146.8;}if(frequency>186&frequency<205){lcd.print("G");correctFrequency = 196;}if(frequency>235&frequency<255){lcd.print("B");correctFrequency = 246.9;}if(frequency>320&frequency<340){lcd.print("e");correctFrequency = 329.6;}}//Compare the frequency input to the correct//frequency and light up the appropriate LEDSvoid frequencyCheck(){if(frequency>correctFrequency+1){lcd.setCursor(0,1);lcd.print(">");}if(frequency>correctFrequency+4){lcd.setCursor(0,1);lcd.print(">>");}if(frequency>correctFrequency+6){lcd.setCursor(0,1);lcd.print(">>>");}if(frequency<correctFrequency-1){lcd.setCursor(0,1);lcd.print("<");}if(frequency<correctFrequency-4){lcd.setCursor(0,1);lcd.print("<<");}if(frequency<correctFrequency-6){lcd.setCursor(0,1);lcd.print("<<<");}if(frequency>correctFrequency-1&frequency<correctFrequency+1){lcd.setCursor(0,1);lcd.print("OK!");}}void loop(){lcd.clear();"Thanks for the project! If someone could help me it would be awesome =)

    I'm trying to adapt a lcd screen to this project but I cant seem to figure the code out. I have checked everything multiple times but wasn't able to find whats wrong and why isn't this working."void stringCheck(){ if(frequency>70&frequency<90){ lcd.print("E"); correctFrequency = 82.4; } if(frequency>100&frequency<120){ lcd.print("A"); correctFrequency = 110; } if(frequency>135&frequency<155){ lcd.print("D"); correctFrequency = 146.8; } if(frequency>186&frequency<205){ lcd.print("G"); correctFrequency = 196; } if(frequency>235&frequency<255){ lcd.print("B"); correctFrequency = 246.9; } if(frequency>320&frequency<340){ lcd.print("...see more »I'm trying to adapt a lcd screen to this project but I cant seem to figure the code out. I have checked everything multiple times but wasn't able to find whats wrong and why isn't this working."void stringCheck(){ if(frequency>70&frequency<90){ lcd.print("E"); correctFrequency = 82.4; } if(frequency>100&frequency<120){ lcd.print("A"); correctFrequency = 110; } if(frequency>135&frequency<155){ lcd.print("D"); correctFrequency = 146.8; } if(frequency>186&frequency<205){ lcd.print("G"); correctFrequency = 196; } if(frequency>235&frequency<255){ lcd.print("B"); correctFrequency = 246.9; } if(frequency>320&frequency<340){ lcd.print("e"); correctFrequency = 329.6; }}//Compare the frequency input to the correct //frequency and light up the appropriate LEDSvoid frequencyCheck(){ if(frequency>correctFrequency+1){ lcd.setCursor(0,1); lcd.print(">"); } if(frequency>correctFrequency+4){ lcd.setCursor(0,1); lcd.print(">>"); } if(frequency>correctFrequency+6){ lcd.setCursor(0,1); lcd.print(">>>"); } if(frequency<correctFrequency-1){ lcd.setCursor(0,1); lcd.print("<"); } if(frequency<correctFrequency-4){ lcd.setCursor(0,1); lcd.print("<<"); } if(frequency<correctFrequency-6){ lcd.setCursor(0,1); lcd.print("<<<"); } if(frequency>correctFrequency-1&frequency<correctFrequency+1){ lcd.setCursor(0,1); lcd.print("OK!"); }}void loop(){ lcd.clear();"

    View Instructable »