Go to Post Pulling off an off season during a hurricane isn't easy. - Arefin Bari [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-12-2007, 16:01
engkhlaif engkhlaif is offline
Registered User
no team
 
Join Date: Dec 2007
Location: Palestine
Posts: 4
engkhlaif is an unknown quantity at this point
urgent help

dear all,
i have and gp2d12 ir sensor in my project
i need a help in writing a code that operate this sensor
the idia is to interface the GP2D12 sensor with PIC16F877A and the sensor will detect the object (moving on a line) and then display the distance on an LCD 16*2
note:
this sensor gives analog output and then we need to convert it to digital through PIC A/D pins
plz any one can give me help as i need it as soon as he can
thanx
  #2   Spotlight this post!  
Unread 14-12-2007, 17:23
dtengineering's Avatar
dtengineering dtengineering is offline
Teaching Teachers to Teach Tech
AKA: Jason Brett
no team (British Columbia FRC teams)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Vancouver, BC
Posts: 1,832
dtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond repute
Re: urgent help

What language are you programming in?

What is the interface to your LCD display? (is it an RS-232 serial connection or something else?)

You may find that PIC Basic Pro has all the functions that you need. Read the manual and download the demo version from the page I have linked to and you could have your problem solved pretty quickly.

Jason
  #3   Spotlight this post!  
Unread 15-12-2007, 10:50
engkhlaif engkhlaif is offline
Registered User
no team
 
Join Date: Dec 2007
Location: Palestine
Posts: 4
engkhlaif is an unknown quantity at this point
Re: urgent help

Quote:
Originally Posted by dtengineering View Post
What language are you programming in?

What is the interface to your LCD display? (is it an RS-232 serial connection or something else?)

You may find that PIC Basic Pro has all the functions that you need. Read the manual and download the demo version from the page I have linked to and you could have your problem solved pretty quickly.

Jason
thanx for care
the language that i need is c language and it will be compiled on pic c compiler and the used pic is pic16f877a
about the LCD it will be interfaced surly with the pic also
thanx again Jason
  #4   Spotlight this post!  
Unread 15-12-2007, 12:26
Ken Leedle Ken Leedle is offline
College Student
FRC #0706 (CyberHawks)
Team Role: Alumni
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Wisconsin
Posts: 37
Ken Leedle will become famous soon enoughKen Leedle will become famous soon enough
Re: urgent help

Do you have access to a PIC programmer? Are you doing this on a dev board or a circuit that you designed? What type of LCD are you using? Is it a parallel or serial (SPI, UART, I2C, etc) interface? This is a description of a fairly common parallel LCD interface. It also has a PIC assembly example.
-Ken
  #5   Spotlight this post!  
Unread 15-12-2007, 14:09
engkhlaif engkhlaif is offline
Registered User
no team
 
Join Date: Dec 2007
Location: Palestine
Posts: 4
engkhlaif is an unknown quantity at this point
Re: urgent help

Quote:
Originally Posted by Ken Leedle View Post
Do you have access to a PIC programmer? Are you doing this on a dev board or a circuit that you designed? What type of LCD are you using? Is it a parallel or serial (SPI, UART, I2C, etc) interface? This is a description of a fairly common parallel LCD interface. It also has a PIC assembly example.
-Ken
dear
i have pic16f877a and i need sample code written in c language to operate this type of sensors
about the lcd it is 16*2 and it is usual lcd
any way any one can help me iam glad to him
  #6   Spotlight this post!  
Unread 15-12-2007, 15:26
3dude_2231's Avatar
3dude_2231 3dude_2231 is offline
no one messes with a Thingy =|
AKA: Menscher,Ran Menscher =]
FRC #2231 (Onyxtronix)
Team Role: Leadership
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Shoham, Israel
Posts: 233
3dude_2231 is a jewel in the rough3dude_2231 is a jewel in the rough3dude_2231 is a jewel in the rough
Send a message via MSN to 3dude_2231
Re: urgent help

Hi Jason,
first of all, are you a member of a FIRST team, or just got here by chance? =]

now..
*read your datasheet to this sensor, check to see what king of output does it give.
*read PIC's datasheet as well, to see what do you need in order to operate
the PIC's ADC, it shouldn't be hard, but educational.
-if you are pressed with time, I could assist you, but studying the PIC's
architecture would be of much greater value to you.

do you have any former experience with PICs?

Ran.
__________________
Redefining the word "Rookie". (for 2 years now..)


Israeli Off Season Games: WINNERS!
check out this cool project I'm into..

  #7   Spotlight this post!  
Unread 16-12-2007, 02:38
engkhlaif engkhlaif is offline
Registered User
no team
 
Join Date: Dec 2007
Location: Palestine
Posts: 4
engkhlaif is an unknown quantity at this point
Re: urgent help

Quote:
Originally Posted by 3dude_2231 View Post
Hi Jason,
first of all, are you a member of a FIRST team, or just got here by chance? =]

now..
*read your datasheet to this sensor, check to see what king of output does it give.
*read PIC's datasheet as well, to see what do you need in order to operate
the PIC's ADC, it shouldn't be hard, but educational.
-if you are pressed with time, I could assist you, but studying the PIC's
architecture would be of much greater value to you.

do you have any former experience with PICs?

Ran.
first of all
Ran iam engkhlaif who need the help
any way
about me i dont know what is FIRST but iam a student in my last year and ,ofcourse i had experience witth PIC's
i have read the sensor datasheet the type of my sensor if GP2D12 wich gives analog output so i need to configure them (ADC's pins)
i need sample code that will read the sensor output then convert it to digital and then display the distance on LCD
the programm iam using is MPlab v7.31
please any one can help
thanx to all
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP-URGENT PROGRAMMING HELP NEEDED Rohith Surampudi Lego Mindstorm Discussion 1 24-03-2006 23:05
urgent help hiimcristhian Technical Discussion 3 16-02-2006 19:10
URgent Programming Help needed rcubes85 Programming 4 15-02-2005 23:21
Gear Help Needed- Urgent psychoCHIPMUNKK Technical Discussion 6 05-02-2004 13:44
URGENT: i need help!!! Ydnar 3D Animation and Competition 4 14-03-2002 22:37


All times are GMT -5. The time now is 19:50.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi