Author Topic: arduino and ultrasonic  (Read 434 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: 714
  • Helpful? 23
  • Nuclear Engineer · Roboticist
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

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
920 Views
Last post December 16, 2009, 07:35:26 AM
by karmax
9 Replies
652 Views
Last post June 24, 2011, 08:44:50 AM
by garrettg84
3 Replies
304 Views
Last post October 12, 2011, 07:39:51 AM
by Soeren
1 Replies
290 Views
Last post March 06, 2013, 04:01:30 PM
by srayner


Get Your Ad Here