Arduino with L2C LCD and Piezo element

I want to make the Lcd, display step and value via piezo

Hi rencerexxx,

After you got circuito.io test code and tested that everything works, you need to modify the code in order to print real time data on the the LCD.
To do so you can:

  1. locate the Piezo test code section.
  2. replace ‘Serial.print’ with ‘lcdI2c.print’ - to be in same format as the LCD test code structure.
  3. after doing so, run the Piezo test code - you should see the data printed on the LCD.
  4. play around and modify the code some more to match your needs. you can use the LCD test code as a good reference.

Enjoy Making

1 Like

Thank you for your help.