Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi sir ,
I attached my circuit n the code below. Any idea about how can I change to 3 different LED to output signal depending on distance(voltage)?
Please kindly advice. Thanks in advanced..
Thanks Sir,I will try it. BTW, i read from this Linearizing Sharp Ranger Data about sharp sensor calculation. R = (2914 / (V + 5)) - 1
But another formula is R = (2194 / (V + 5)) - 1
I do not know which cal data is right. Anyway , I did calculation for 3 V, 2 V and 1V. 3V=313 .., 2v=365 and...
Hi btbass,
I just try with this code , but LED blink alternatively instead of on one only9in terms of distance) although I did not place any object in fornt of sensor.Any advice Sir?
Thanks.
Clovis
---------- Post added at 07:30 ---------- Previous post was at 07:29 ----------
void main(void)...
Dear btbass,
Thanks for your advice. I tried all possible value 10 to 500 with different sign ( < or > ) but keep blinking Red LED. I do not know what wrongs. I will try to study how to convert analog Voltage to mm/cm (may be there got maths formula) and will let you know and discuss again...
Hi Sir btbass,
I will change and tried.But my Blue , Red and Green LED all OFF.
Is there any things wrong with my value? I just want to measure the distance.
Please advice. Thanks.
/*============================================================================
INCLUDE...
Dear Sir,
Yes. I edit " volatile bit GODONE @ (unsigned)&ADCON0*8+2; '
this line in my code and I can build sucessfully.Thanks. But I still can't get the output from my code.RED LED at RC5 got blink although object is not infront of the sensor.Is there anything wrong with my code. By right, I...
Hi All Guru,
I am very new in PIC and still learning stage.I have some error encountered while building with hi-tech C. I have posted in related forum as well
https://www.edaboard.com/threads/206107/#post890663
I could not find the solution for GODONE??
Error [192] undefined identifier...
Hi Sir btbass,
I am new in pic and I use 16F877A ,MPLAB and Hi-tech C compiler,
I read about ADC for one month plus & try those who master in this code but does not work for me. Especially ADGO or GODONE always give me compiler error.
---
undefined identifier "ADGO"--
Any advice form you Sir...
Hi All,
I am quite nwe to pic and I try ADC conversion code (stated above) but I found one error can't solved. Please help me .Thanks a lot..
undefined identifier "ADGO".I GOOGLE also could not find solution.
Great - seadolphine2000
Hi all,
I am new here and can anyone help to translate this code to mikroC Pro as well.
Advance thanks.
-------------------------------------------
INCLUDE "16F84A.INC"
RAM_START EQU 0000Ch
RAM_END EQU 0004Fh
RAM_BANKS EQU 00001h
BANK0_START...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.