hello everyone, how to make, when the relay is LOW, it will display writing on the lcd, I love you, while when the relay is HIGH, it will display, I don't love you
We’ll love you, and be more likely to help if you read the forum notes, and move your post to the more appropriate categories.
Thread moved as requested. Thank you for the .
@fluks perhaps start by looking into how to read a digital input. Look at the built-in IDE examples.
Decide which type of LCD interface you are going to use (depends on the LCD you want to use)- direct wiring to the LCD or via I2C. Then install the appropriate library and try the examples that are likely included.
Once you become familiar with how both parts work, you can combine them to achieve your project aim.
Give a schematic. How is the relay being set to high or low. If you are controlling the relay from the arduino then it is trivial to also insert the code for the display in the same place. If the relay is a completely separate thing then you need to sense the voltage of the relay at the switches contact. When it it high the arduino pin will be brought HIGH etc as above
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.