So as a rookie who just started playing with the arduino, I setup an ultrasonic range finder with LCD display. Although now I can read the distance off from the LCD on the breadboard, I want to know if there is a way for the arduino to communicate with the computer.
In another word, when the ultrasonic sensor detects an object, I should be able to see a text such as “yes, there is an object” or “no, there is nothing”. But how do I do that?
I have also attached the code. I appreciate any help on how to achieve the effect I want.
PS: Don’t know why but the LCD on the breadboard is so dim and I could barely read the numbers off it. Is it the display or does it indicate a mistake I made when setting things up?
sketch_feb02a.ino (644 Bytes)