Forums

It is currently Tue May 21, 2013 3:32 pm

All times are UTC




Post new topic Reply to topic  [ 102 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
 Post subject:
PostPosted: Sun Oct 11, 2009 12:50 am 
Offline
PyroElectro Admin

Joined: Mon Nov 12, 2007 9:24 pm
Posts: 940
Location: Earth
@solidus I'll upload the .hex file for the ir radar project however I have a concern that if you can't even compile the project on your own having the hex file may not be very helpful to you as you'll run into other problems.

IR Hex Download:
http://www.pyroelectro.com/files/ir.hex

@bigass77 This project can be run on the 18f4520 you just need to change the header file and some of the A/D conversion routines.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 11, 2009 9:01 am 
Offline
Newbie Pyro

Joined: Sat Oct 10, 2009 5:35 am
Posts: 2
i try to simulate with Proteus7.5 but servo doesn't working and can you send some of change A/D conversion plz


Top
 Profile  
 
PostPosted: Sun Jan 10, 2010 8:58 am 
Offline
Newbie Pyro

Joined: Sun Jan 10, 2010 8:42 am
Posts: 1
can u show me more detail how to calculator value ADC convert?i do not really understand it?
IF Vref=5V, convert ADC 10bit, so we have 5/1024=4.9mv/bit
and valueADC=Vref/1024*Vinput


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 14, 2010 8:03 am 
Offline
PyroElectro Admin

Joined: Mon Nov 12, 2007 9:24 pm
Posts: 940
Location: Earth
For 10bit ADC and Vref = 5v

if the ADC input is 5.0v the 10bit ADC value result is 1024
if the ADC input is 4.0v the 10bit ADC value result is 819
if the ADC input is 2.5v the 10bit ADC value result is 512
if the ADC input is 1.0v the 10bit ADC value result is 102

The resultant value is proportional to the Vref....

Vref = 5v
Vin = 3.5v

ADC Value = (Vref / Vin) * 1024
(3.5v/5v) * 1024 = 716.8


Top
 Profile  
 
 Post subject: Laser Range Finder
PostPosted: Tue Mar 23, 2010 7:16 pm 
Offline
Newbie Pyro

Joined: Tue Mar 23, 2010 7:06 pm
Posts: 1
First off, thanks for the project. This setup is pretty sweet. I was just curious to know if it was possible to use a laser range finder? Like out of a laser tape measure. I was thinking of increasing the range to 100'+. This would be an excellent tool for anyone driving a long vehicle, like a 1 ton truck and horse trailer.

I'd also like to know if anyone has gotten this to display on a computer. It'd be pretty sweet to have an old school sweep screen mounted on the dash.


Top
 Profile  
 
PostPosted: Wed Mar 24, 2010 6:22 am 
Offline
Newbie Pyro

Joined: Tue Aug 18, 2009 7:53 am
Posts: 3
I'm interested in using Sharp IR range finder sensor in my robot. Is there any C programming example as reference?
Because i'm new in writting ADC in C programming for my microcontroller PIC18F452. Meanwhile, i'm not very understand the code's comment admin post in range finder tutorial.
If there has any simple ADC C programming code in interfacing SHARP IR range finder sensor with microcontroller PIC18F452 as reference, i would very appreciate it. :D


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 10, 2010 7:51 am 
Offline
Newbie Pyro

Joined: Mon Sep 07, 2009 7:08 pm
Posts: 7
ISIS simulates the program and LEDs are not ok.LE signal is coming to all 373's pin 11 but nothing happen. RD0...RD7 is always low. RB0..RB4 logic states changing every 1 sec. (1sec high,1sec low), but nothing happen. Help me !!!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 11, 2010 6:41 am 
Offline
PyroElectro Admin

Joined: Mon Nov 12, 2007 9:24 pm
Posts: 940
Location: Earth
Simulators are only so good....things work differently in the real world. Haha, sorry it's just I have no experience with ISIS so I'm not sure how to reply.

I would say, try to program the PIC with your code and slowly build the project until it all works. Simulators are only so helpful, especially with a small project like this.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 11, 2010 5:23 pm 
Offline
Newbie Pyro

Joined: Mon Sep 07, 2009 7:08 pm
Posts: 7
Ok Pyro.. I'll do it. How am I calibrate the sensor ?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 13, 2010 12:24 am 
Offline
PyroElectro Admin

Joined: Mon Nov 12, 2007 9:24 pm
Posts: 940
Location: Earth
The datasheet for the GP2D120 or whatever IR proximity sensor you are using tells you how it operates.

Since the sensor detects reflected Infrared Light, you will only need to calibrate the sensor when you are using it where other sources of infrared light are present (like from the sun). If you connect the V_output from the sensor to a DMM voltmeter and test the sensor in different places and conditions you will see when calibration is necessary (usually if operating outdoors or around bright incandescent light).


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 18, 2010 10:43 pm 
Offline
Newbie Pyro

Joined: Mon Sep 07, 2009 7:08 pm
Posts: 7
Hello again Pyro..
I built the circuit an programmed chip..Everything is controlled but, when I aplly the power all the leds are ON and servomotor does nothing.Just LEDs are lit. Suggest me something to do. if not I'll be a personal radar!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 18, 2010 11:34 pm 
Offline
PyroElectro Admin

Joined: Mon Nov 12, 2007 9:24 pm
Posts: 940
Location: Earth
Quote:
@solidus I'll upload the .hex file for the ir radar project however I have a concern that if you can't even compile the project on your own having the hex file may not be very helpful to you as you'll run into other problems.

IR Hex Download:
http://www.pyroelectro.com/files/ir.hex


It sounds like either (a) you're going to need to go through the code and change something so that your setup works or (b) the led drivers (74_373) are not wired up correctly, and never change their output state.

It really just sounds like the PIC isn't doing anything, some leds should be turning off and on. I would look around the PIC's pins (look for state changes) as well, and make sure it is on and executing instructions.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 30, 2010 9:55 am 
Offline
Newbie Pyro

Joined: Thu Dec 30, 2010 9:43 am
Posts: 2
hello! thanks a lot for the concept. i am new in using pic mc. how can i convert given source code for this project to hex.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 30, 2010 6:14 pm 
Offline
PyroElectro Admin

Joined: Mon Nov 12, 2007 9:24 pm
Posts: 940
Location: Earth
The hex file can be found here:
http://forums.pyroelectro.com/viewtopic.php?t=42&postdays=0&postorder=asc&start=41

As I've warned other users. Simply programming the PIC without getting everything to compile yourself through MPLAB is a recipe for disaster if you eventually have to debug the project. I strongly urge you to try to get the project to compile inside MPLAB and use the hex file from there to program the pic.

Best of luck.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 01, 2011 3:53 pm 
Offline
Newbie Pyro

Joined: Thu Dec 30, 2010 9:43 am
Posts: 2
thank you very much admin.
can i use p18f4520 for this project. if yes would you please provide me the hex file. and what does 6pin header do in the circuit can we replace it with something else and if you dont mind please help me.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 102 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group