Click here to Skip to main content
15,926,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalsort item in tree control Pin
kendao27-Jan-04 16:21
kendao27-Jan-04 16:21 
GeneralRe: sort item in tree control Pin
Prakash Nadar27-Jan-04 18:55
Prakash Nadar27-Jan-04 18:55 
GeneralLVN_GETDISPINFO Using SendMessage Pin
fordge27-Jan-04 16:05
fordge27-Jan-04 16:05 
GeneralRe: LVN_GETDISPINFO Using SendMessage Pin
Mike Nordell28-Jan-04 0:35
Mike Nordell28-Jan-04 0:35 
Generalparallel port Pin
Member 64882827-Jan-04 15:10
Member 64882827-Jan-04 15:10 
GeneralRe: parallel port Pin
Antti Keskinen27-Jan-04 19:35
Antti Keskinen27-Jan-04 19:35 
GeneralRe: parallel port Pin
Member 64882828-Jan-04 5:33
Member 64882828-Jan-04 5:33 
GeneralRe: parallel port Pin
Antti Keskinen28-Jan-04 6:42
Antti Keskinen28-Jan-04 6:42 
The D/A converter cannot run the DC motor alone; it needs input signals to determine the output. These input signals (TTL-level) are provided by the pareller port's pins.

I won't start explaining in detail how the converter works here, that's a job for an electronics teacher. Instead, in a glance, let's say that the converter is able to convert a digital word into an analogue signal: the amplitude of the signal is determined by the digital input.

So, in the logic example, we had three digital pins, D1-D3. If you have a maximum input of +12 V DC for the converter, then an input of 111 would cause it to output +12V. The other levels of voltage can be directly calculated.

This means that depending on the output of the digital pins, the DC motor is fed with more voltage, thus resulting in greater RPM of the rotor. However, as I do not know how the motor is constructed, this might not be the correct approach. Some motors have seperate input pins for seperate drive levels, for example, feeding it 5V + 5V + 5V would result in full speed, where as 0V + 5V + 5V would stand for medium level drive. You must consult the motor's documentation and schematics for these details.

The basic idea is that whatever the way in which the motor is controlled, you MUST have some-sort of a voltage-level seperation between the pareller port and the motor. This means that you cannot feed the inputs of the motor from the pins directly. Doing so would break the port most certainly, and might even damage your computer seriously.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: parallel port Pin
Member 64882829-Jan-04 15:34
Member 64882829-Jan-04 15:34 
GeneralRe: parallel port Pin
Antti Keskinen30-Jan-04 6:30
Antti Keskinen30-Jan-04 6:30 
GeneralDetecting UPS State Pin
Blake Miller27-Jan-04 15:01
Blake Miller27-Jan-04 15:01 
GeneralRe: Detecting UPS State Pin
David Crow28-Jan-04 2:33
David Crow28-Jan-04 2:33 
GeneralWierd thing with caption... Pin
Snyp27-Jan-04 14:44
Snyp27-Jan-04 14:44 
GeneralRe: Wierd thing with caption... Pin
alex.barylski27-Jan-04 18:33
alex.barylski27-Jan-04 18:33 
GeneralRe: Wierd thing with caption... Pin
Antti Keskinen27-Jan-04 21:50
Antti Keskinen27-Jan-04 21:50 
GeneralRe: Wierd thing with caption... Pin
Snyp28-Jan-04 12:15
Snyp28-Jan-04 12:15 
QuestionHow to hide a dialog temporarily and go to CView to pick a point? Pin
lxy27-Jan-04 14:25
lxy27-Jan-04 14:25 
AnswerRe: How to hide a dialog temporarily and go to CView to pick a point? Pin
Antti Keskinen27-Jan-04 21:36
Antti Keskinen27-Jan-04 21:36 
GeneralRe: How to hide a dialog temporarily and go to CView to pick a point? Pin
Anonymous28-Jan-04 16:44
Anonymous28-Jan-04 16:44 
QuestionHow can I get the file size of a file Pin
nachilau27-Jan-04 14:14
nachilau27-Jan-04 14:14 
AnswerRe: How can I get the file size of a file Pin
Brad Bruce27-Jan-04 14:43
Brad Bruce27-Jan-04 14:43 
AnswerRe: How can I get the file size of a file Pin
Michael Gunlock27-Jan-04 17:14
Michael Gunlock27-Jan-04 17:14 
AnswerRe: How can I get the file size of a file Pin
Mukkie28-Jan-04 9:19
Mukkie28-Jan-04 9:19 
GeneralDate format in a List Control Pin
Ger Hayden27-Jan-04 13:20
Ger Hayden27-Jan-04 13:20 
GeneralRe: Date format in a List Control Pin
David Crow27-Jan-04 13:40
David Crow27-Jan-04 13:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.