Writing stuff to the LCD display with an Arduino

Aus DL8RDS Wiki
Wechseln zu: Navigation, Suche

Yes, and this made me curious if I can also print the digitized value of the poti voltage to my LCD screen. I modified the program a little:

#include <LiquidCrystal.h>

int potiPin = 0;

LiquidCrystal lcd(12,11,10,9,8,7,6,5,4,3,2);

void setup() {
}

void loop() {
 lcd.clear();
 int potiVal = analogRead(potiPin);
 lcd.print(potiVal);
 delay(500);
}

Here's the result. The Arduino displays the poti setting (a value between 0 and 1023) on the LCD display.

Arduino poti2lcd.jpg

This done, I'd consider myself proficient enough to start processing incoming voltages from a directional coupler. Let's no longer worry about the microcontroller. This is all under control and the program shall be written in a few moments. Now I must care for the hardware.