DAC object
So I was wondering how best to make a DAC that is able to control an outside power source I need voltages above 5V and can't use the DAC voltage class is there a chip that will be able to discern pulsetrains that are written to the pin? Also is it possible to have the pin pulse a transistor's base pin while the collector and emitter are connected to a different power source/common. Also is there any way to add IO ports to the Javelin stamp? I seem to recall an appmod for this at one point but can't find it. Thanks!-Waldo
Post Edited (WaldoDTD) : 10/9/2008 1:40:03 AM GMT
Post Edited (WaldoDTD) : 10/9/2008 1:40:03 AM GMT
Comments
a noninverting opamp (or transistor) circuitry. Resolution of course remains limited to 8bits.
For additional outputs you can use shiftregisters like HC595. For these
there are classes as well.
regards peter
use the opamp output to control the base of a power transistor which
will deliver the current.
························· +12V
PWM output o
+······ / c
(0-5V)············· >--b-| NPN transistor
··········+
·-······ \ e
··········|·············· +---[noparse][[/noparse]load]
+
··········|···············|·············· |
··········|···············+--[noparse][[/noparse]R2]-+-[noparse][[/noparse]R1]--+
··········|······················ |······ V GND
··········+
+
regards peter
Post Edited (Peter Verkaik) : 10/9/2008 7:40:30 PM GMT
Would it be possible to build a circuit where the stamp only has to write a hexadecimal number to a pin and have that number correlate to gates on an IC is this a shift register?
could you explain the above circuit a little more i assume that this is a simple opamp circuit with the gains R2/R1.
I am assuming that the shift register mentioned above would be what i am looking for where i "write a number" to an IC, I assume that I set the Javelin and the register to an external clock so that everything is synced as well.
Post Edited (WaldoDTD) : 8/16/2009 11:11:34 AM GMT
If you just need to switch power you could use
·················+12V
···················|
················[noparse][[/noparse]load]
···················|
···················/c
JavPin o---[noparse][[/noparse]1k]--b|
·················· \e
·················· |
·················· V GND
A shiftregister requires a clockpin and a datapin. The number you write (using shiftOut)
are the levels of the output pins of the shiftregister. You can cascade shiftregisters
to add more output pins. To prevent ripple across output pins you also need a
javelinpin to control the latch of the shiftregister. See datasheet of 74HC595.
regards peter
Post Edited (Prettybird) : 8/19/2009 2:21:48 PM GMT