![]() |
![]() |
![]() |
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#17 (permalink) | |
|
Experienced Member
Join Date: Jan 2007
Location: U.K.
Posts: 3,778
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
You have used the method I suggested, BUT you have not used the resistor values I calculated. You still have a 1K0 to +5V from the OPA ouput and the 10K adjustable is not a good idea. The 2.7V is only marginal, its not high enough for reliable operation, I would suggest at least 3V.
__________________
Eric "Good enough is Perfect" PIC tutorials: Nigel's site: http://www.winpicprog.co.uk/ Gramo's site: http://www.digital-diy.net/ |
|
|
|
|
|
|
#18 (permalink) |
|
Experienced Member
|
i see,so u mean i have to use 700 (can i really get this from the market?what i got is 680ohms) and 300 (this can be obtained)
And how could you manage to calculated those value? can u show the method to as well.From what i know is by using voltage divider but why must 700 and 300? the ratio would be 3/10 X12V =3.6V ? is this what you mean how about the LED voltage? |
|
|
|
|
|
#19 (permalink) | |
|
Experienced Member
Join Date: Jan 2007
Location: U.K.
Posts: 3,778
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
A 680R and 330R would be fine, if the PIC pin voltage is still a little too low use a 330R in place of the 270R. The original values were base on about a 10mA current from the +12V supply, this would be enough to light the LED [ I assume its a Red LED.?} The 3.6V would be acceptable Do you follow.?
__________________
Eric "Good enough is Perfect" PIC tutorials: Nigel's site: http://www.winpicprog.co.uk/ Gramo's site: http://www.digital-diy.net/ |
|
|
|
|
|
|
#20 (permalink) |
|
Experienced Member
|
ya i am using a red and a green LED,so you what you mean is 680 and 330 .And check the voltage output whether it is enough or not if not replace 330 with 270R right?hope there is no problem after this.
ya one question here,what PIC programmer do all of you using? i need a USB programmer now,and dunno which one to choose >_<" Any recommendation? |
|
|
|
|
|
#21 (permalink) | |
|
Experienced Member
Join Date: Jan 2007
Location: U.K.
Posts: 3,778
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
No, you replace the 270R with a 330R, the higher value of the bottom resistor the greater the voltage will be at the junction of the two resistors. Use Ohms law to calculate the voltages on the divider. ![]() EDIT: I use PIC Start Plus.. with MPLAB
__________________
Eric "Good enough is Perfect" PIC tutorials: Nigel's site: http://www.winpicprog.co.uk/ Gramo's site: http://www.digital-diy.net/ |
|
|
|
|
|
|
#22 (permalink) | |
|
Experienced Member
Join Date: Sep 2007
Location: Vancouver, B.C.
Posts: 900
![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
__________________
========================= Futz's Microcontrollers & Robotics ========================= |
|
|
|
|
|
|
#23 (permalink) |
|
Experienced Member
Join Date: Mar 2006
Location: Malaysia
Posts: 1,591
![]() ![]() ![]() ![]() |
Or you want the PICkit2 clone which is available locally. The price is reasonable too.
http://www.cytron.com.my/listProduct...sp?cid=81#2965 I think it programs most of the 5 V PICs.
__________________
Superman Returns.. http://www.supermanhomepage.com/imag...an-returns.gif My friend created this account for me.. LOL http://bananasiong.myminicity.com oh.. somemore ![]() http://bananasiong.myminicity.com/env Exam T_T.T |
|
|
|
|
|
#24 (permalink) |
|
Experienced Member
|
Thanks for all the replies, i am currently using EPIC Programmer which is using parallel port. It seem to not program sometimes.This is the reason why i need to find a new programmer.i'll take a look at above link and see which one is suitable for me,thanks guy! =)
|
|
|
|
|
|
#26 (permalink) | |
|
Experienced Member
Join Date: Jul 2006
Location: Montreal, Canada
Posts: 275
![]() |
Quote:
http://melabs.com/support/epicfixs.htm If using XP, do you have the printer polling patch installed? http://melabs.com/support/patches.htm#xppolling |
|
|
|
|
|
|
#27 (permalink) | |
|
Experienced Member
Join Date: Jan 2007
Location: U.K.
Posts: 3,778
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
The supply to the LM393 is +12V, I am assuming you are using a RED LED. which should have a forward voltage drop of about 2V. So that leaves about 10V across the 680R and 330R divider, the current thru the divider will be 10V/1010R = 10mA, so across the 330R there will 0.01*330R= 3.25V + the LED Vfwd = 5.25V. The LM393 has an open collector output, so as the output transistor in the LM393 is OFF, it will not sink any current and load the divider. Also the input impedance[resistance] of the PIC input is a fairly high impedance it will not load the divider. So ALL the current flowing in the resistors 680R and 330R in series will flow thru the LED, as the current is about 10mA the LED should glow.! Could you post the diagram with voltages marked at the top of the 680R, the junction of the 680R and 330R , also the voltage across the LED. You must have a fault elsewhere, are you sure that the PIC pin is set as an Input.? Lets know. ![]() EDIT: checking your figures that gave you +4V.... I suspect that the LED is blown short circuit. Assume that the LED is blown s/c... so 12V/1010 = 11.8mA... 11.8mA * 680R = 3.9V. [You measure 4V.!]
__________________
Eric "Good enough is Perfect" PIC tutorials: Nigel's site: http://www.winpicprog.co.uk/ Gramo's site: http://www.digital-diy.net/ Last edited by ericgibbs; 6th May 2008 at 07:25 AM. |
|
|
|
|
|
|
#30 (permalink) | |
|
Experienced Member
Join Date: Jan 2007
Location: U.K.
Posts: 3,778
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
I'll look thru the circuit.
__________________
Eric "Good enough is Perfect" PIC tutorials: Nigel's site: http://www.winpicprog.co.uk/ Gramo's site: http://www.digital-diy.net/ |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| LCD Display | karenhornby | Electronic Projects Design/Ideas/Reviews | 27 | 22nd February 2008 07:42 PM |
| Using Oscilloscopes | mechie | Electronic Theory | 9 | 29th November 2007 09:49 PM |
| Output = Input - Problems | adamthole | Micro Controllers | 20 | 24th April 2007 04:09 AM |
| uuffff how doess this stupid ting work lol | cyprio7 | General Electronics Chat | 7 | 9th October 2005 06:56 PM |
| convert input resistance to different output, but how?! | pcoghlan | Electronic Projects Design/Ideas/Reviews | 7 | 9th July 2004 10:00 PM |