[AVR] Generate timer intrup on external intrup

Status
Not open for further replies.

ANS HAFEEZ

Advanced Member level 4
Joined
Jul 25, 2013
Messages
101
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,298
Location
LAHORE,PAKISTAN
Visit site
Activity points
1,911
SALAM
i have to interface 6 ULTRASONIC sensor with ATtiny 85 in my Project on ROBOTIC CAR..
i want to Generate an timer intrup when external intrupt comes (ULTRASONIC ECHO COMES)..
and measure the distance ...
and show the result on 16x2 LCD...
So i need some code examples to show variable values on lcd and measure distance
 

You can look at the NewPing library of Arduino and modify that C++ code into C code and use it with your ATTiny chip.
 
Download and install Arduino IDE from arduino.cc and then google for and install NewPing.zip library. Go to library folder and study the .cpp and .h files.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…