Help needed!!

Hi everyone! I am probably the stupidest person you will come across on this forum. I am very unsure on how to use Arduinos or how to use programming to it’s potential. i have a few problems.

  1. How to I get the Pots to work when you turn them?
  2. How do you change the analogue reference voltage to Internal?
  3. I want to display the attenuation of the potentiometers in dB. When the pots are at max, the attenuation should be 0dB and when at min it should be a large negative number. Underneatht the values of the pot on the display, calculate and display the dB attenuation.

Thank you so much for your help, much appreciated :slight_smile:

Here is the program.

#define lin_pot 5
#define log_pot 4

#include <LiquidCrystal.h>

#define rs 8
#define rw 9
#define d4 10
#define d5 11
#define d6 12
#define d7 13
#define lcd_enable 17

// define variables
LiquidCrystal lcd(rs, rw, lcd_enable, d4, d5, d6, d7);
int analog_val_lin, analog_val_log;

void setup() {
lcd.print(“Lin pot =”);
lcd.print(“Log pot =”);


void loop() {

lcd.print(" “);
lcd.print(” dB “);
lcd.print(” ");

You have to read a value with analogRead before you display it

what do you mean?

You're just printing the values for the pots, but you haven't assigned any values to them. Have a look at the language reference for analogRead.