Author Topic: arduino and ultrasonic  (Read 1835 times)

0 Members and 1 Guest are viewing this topic.

Offline sebastianTopic starter

  • Beginner
  • *
  • Posts: 6
  • Helpful? 0
arduino and ultrasonic
« 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

Offline Gertlex

  • Supreme Robot
  • *****
  • Posts: 763
  • Helpful? 24
  • Nuclear Engineer ยท Roboticist
    • Index of Oddities
Re: arduino and ultrasonic
« Reply #1 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.
I

 


Get Your Ad Here