Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx

Sponsor

controlSUITE™ software
Comprehensive.
Intuitive.
Optimized.

Real-world software for real-time control. Details Here!

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | Piclist | Re: 12v to 5v

A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.

Re: 12v to 5v - "Kenneth (K) Macrae" - Sep 18 3:08:41 2008

For the binary parts, what about an opto-coupler?
Kenneth

2008/9/14 liquias

> hi guys ,
> lately i have a few project i work on that operate only on 12V supplies
> (car batteries)...
> i need to add some good old PIC control to these systems.
> in some cases i only need a binary input (go, no go, on 12v) (i was
> thinking lm78L05 for these jobs... but what if i need 10 parallel
> lines ?) and in some cases i need to 'convert' the analogue range of
> 0to12v into 0to5v and vise versa (no idea how to do it ...)
> i am wondering what is the best way to go about in these cases?
>
>
>



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )


Re: 12v to 5v - Harold Hallikainen - Sep 18 10:57:43 2008


> For the binary parts, what about an opto-coupler?
> Kenneth

If the ground is the same, an opto seems like a waste. For 12V to 5V, I'd
just use a voltage divider, perhaps with a clamp diode. Going back the
other way, if you want to turn on a 12V load, it's easiest to ground
switch. Either an NPN transistor or an N channel FET with the PIC driving
the base (through a current limit resistor) or driving the gate directly
should work. If you need a high side switch, there ARE various high side
switch chips available. Failing that, the low side switch described above
could pull down the base or gate of a PNP or P channel device to turn it
on.

For 5V analog to 12V analog, I'd use an op amp with feedback to set the
gain appropriately.

Good luck!

Harold

--
FCC Rules Updated Daily at http://www.hallikainen.com - Advertising
opportunities available!

------------------------------------

to unsubscribe, go to http://www.yahoogroups.com and follow the instructions



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )