Hi, I'm making a tachometer with infrared sensor and ultrasonic sensor to calculate the distance of a thing using one arduino and a push button. It shows no error, but when I uploaded it, both the serial monitor and the LCD (i2c) wont turn on and shows nothing. Is there anything wrong with the code? or is it with the circuit?
I tried using the default code for the LCD but it won't show up aswell. But I don't think there's a problem with the wiring.... maybe? Or can you help them check it out in case I missed something?
Please do not duplicate your questions as doing so wastes the time and effort of the volunteers trying to help you as they are then answering the same thing in different places.
Please create one topic only for your question and choose the forum category carefully. If you have multiple questions about the same project then please ask your questions in the one topic as the answers to one question provide useful context for the others, and also you won’t have to keep explaining your project repeatedly.
Repeated duplicate posting could result in a temporary or permanent ban from the forum.
Could you take a few moments to Learn How To Use The Forum
It will help you get the best out of the forum in the future.
In this situation, there is no point continuing with your own code. If the example code does not work, then it must be that either your wiring is incorrect or the LCD is faulty. Don't waste your time or the forum's time reviewing your own code. If the LCD will not work with the example code, it will not work with your code either.
Disconnect everything except the Arduino and the LCD and go back to the example code from the LiquidCrystal_I2C.h library and get that working. The forum can help you with that if you are not successful.