CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Digital pot for vrf drive

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
aaronik19



Joined: 25 Apr 2011
Posts: 297

View user's profile Send private message

Digital pot for vrf drive
PostPosted: Sat Feb 09, 2019 4:55 am     Reply with quote

Dear All,

Is it possible to drive a vrf inverter and interface a digital pot such as mcp4313 to 0-10vdc input to control the speed?
Ttelmah



Joined: 11 Mar 2010
Posts: 19552

View user's profile Send private message

PostPosted: Sat Feb 09, 2019 5:40 am     Reply with quote

Yes, and no.

You can't control 0-10v directly with a pot like this. They are rated for
operation between Vss & Vdd, so off a 5v supply, 0 to 5v.
You can generate a 0-5v output (though with slightly more noise, and lower
accuracy), simply using a PWM output from the PIC.
Whatever method you use to generate the voltage output, you are gong to
have to simply amplify this to get 0-10v.
Alternatively, you could use an isolated MOSFET drive to give a PWM between 0 and 10v.
temtronic



Joined: 01 Jul 2010
Posts: 9246
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Feb 09, 2019 5:48 am     Reply with quote

A 3rd possiible option is to use a voltage doubler on the output of a PWM pin. I've done this for years to power 5V LCD modules from 3V PICs. You'd have to experiment with cap values, frequency and duty cycle but it should be easy enough to breadboard and test.
Jay
smee



Joined: 16 Jan 2014
Posts: 24

View user's profile Send private message

PostPosted: Sat Feb 09, 2019 8:24 am     Reply with quote

Perhaps even a digital pot, in the feedback/sense line of an adjustable voltage regulator.
Ttelmah



Joined: 11 Mar 2010
Posts: 19552

View user's profile Send private message

PostPosted: Sat Feb 09, 2019 8:47 am     Reply with quote

That's just an amplifier.
How best to amplify would depend on the load current, but most control
inputs of this sort are quite high impedance, so almost anything can do
it. However key thing is stability...
dluu13



Joined: 28 Sep 2018
Posts: 395
Location: Toronto, ON

View user's profile Send private message Visit poster's website

PostPosted: Sat Feb 09, 2019 9:34 am     Reply with quote

I am a fan of using the PWM. But my requirements are not exactly tight, with
a ~100 mV resolution required. This is an analog control signal for a bench
power supply.

I use the PWM fed through a passive low pass filter into a non-inverting
opamp with gain 3 to get 0-10V from my 3v3 pwm.
temtronic



Joined: 01 Jul 2010
Posts: 9246
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Feb 09, 2019 9:46 am     Reply with quote

Yes, opamp amp will work as well. I use a discrete one here to allow PIC to send +-40v signals on my energy control systems.
I'm currently looking at the LTC6090 to replace the 25+ parts with 1 !

Jay
dluu13



Joined: 28 Sep 2018
Posts: 395
Location: Toronto, ON

View user's profile Send private message Visit poster's website

PostPosted: Sat Feb 09, 2019 9:55 am     Reply with quote

Opamps are great! temtronic's post just reminded me that if you do use an
opamp and you are powering from a single supply (V+ to GND rather than
V+ to V-) then you need to make sure that it's a rail-to-rail type or else you
won't be able to hit 0V.

Both the one temtronic mentioned (LTC6090) and the one I use (LT1784) are
rail-to-rail.
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Sat Feb 09, 2019 11:13 am     Reply with quote

The circuit that Linear shows in the datasheet with the opamp being driven by
a DAC is a pretty elegant solution in my view. Allows controlling the VRF via
SPI or MicroWire... This would result in better stability, a finer range of
control and a set it and forget it circuit which would simplify the code.
_________________
Google and Forum Search are some of your best tools!!!!


Last edited by dyeatman on Sat Feb 09, 2019 11:14 am; edited 1 time in total
Ttelmah



Joined: 11 Mar 2010
Posts: 19552

View user's profile Send private message

PostPosted: Sat Feb 09, 2019 11:13 am     Reply with quote

and, if you are a little careful with the design, it is amazing just how good both
the linearity and resolution can be.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group