Society of Robots - Robot Forum

Software => Software => Topic started by: sebastian on November 25, 2012, 10:27:54 AM

Title: arduino and ultrasonic
Post by: sebastian on November 25, 2012, 10:27:54 AM
I am using a hr-04 4 pin ultrasonic and I want to print the result on an lcd using arduino and this is not working

int distance

distance = so and so

serial.print(distance) // this worked perfectly

lcd.print(distance) // not working
Title: Re: arduino and ultrasonic
Post by: Gertlex on November 26, 2012, 03:12:01 PM
Does not working mean your code doesn't compile, or just that nothing happens with the hardware when  running the code?

Posting full code will help others diagnose the problem, as well.  You can use [ code ] [ /code ] tags (without the spaces inside the brackets) to make the code easier to read in your post.