![]() | ![]() | ![]() |
| | |||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Hi all I can measure DC voltages from 0v to 5v using PICS analog input. Now I need to measure the voltages above 5V which means 0V to 30V maximum. I don’t know how to scale the OP AMP to my needs, if any method easy to understand it will be great. I need the hardware part not the software. Thanks | |
| |
| | (permalink) |
| Google: resistive voltage divider Ken
__________________ "To invent, you need a good imagination and a pile of junk." Thomas A. Edison (1847 - 1931) | |
| |
| | (permalink) |
| Easy to understand. OK you need an amplifier that attenuates a 0-30V signal into a 0 to 5V signal. This corresponds to a gain of 1/6 = 0.16666.... Are you with me so far? A non-inverting stage must have a gain greater than or equal to one so you will need to use an inverting stage. OOOPS you only have a single supply so there will be a problem. RESET. Use a gain of 1 voltage follower and drive a voltage divider with a gain of 1/6 = 0.16666.... You must use an amplifier that can withstand 30V on the input. Start your search with an LM324. There may be other requirements, that you have not articulated, that will dictate an alternate choice. The voltage follower will prevent the divider from loading the source and you should be able to conver the 0-5V output.
__________________ We never have time to do it right; but we always have time to do it over. | |
| |
| | (permalink) | ||
| Quote:
Quote:
Those items very new to me.I don't know what they are. *A non-inverting stage *voltage follower *drive a voltage divider For the time being I'll use resister voltage divider.Thanks for the support. | |||
| |
| | (permalink) | |
| Quote:
When you calculate your resistive divider, dont forget to keep the divider impedance seen by the PIC's ADC <= 10K0.
__________________ Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ | ||
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| Even better, include the PIC's input impedance in the voltage divider calculation. If the PIC has an exact inpedance then you won't need another resistor, just one series resistor will do.
__________________ I also post at the following sites: http://www.stop-microsoft.org http://www.heated-debates.com Screen name: Aloone_Jonez | |
| |
| | (permalink) | |
| Quote:
Essentially you really need a buffer, except for very rare occasions - which is why my tutorials use an opamp, with the attenuator at it's input (not feeding the PIC). | ||
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| controll ing dc motor need help | norms09 | General Electronics Chat | 14 | 5th August 2008 01:37 PM |