K8055

I would like to know 2 things,

  1. how would I run a 12V motor with varing speed using this board. Do I simply add a transistor with a 12V power supply .
  2. how do I detect a 5 volt input as a digital input. Do I simply use a resistor on the input and if so how many ohms.

Thanks

[quote]1) how would I run a 12V motor with varing speed using this board. Do I simply add a transistor with a 12V power supply .[/quote] Please see this thread how to connect the motor: viewtopic.php?f=15&t=3721

[quote]P2) how do I detect a 5 volt input as a digital input. Do I simply use a resistor on the input and if so how many ohms.[/quote] If you mean the digital inputs of the K8055 board, there are already pull-up resistors. Just connect the digital input terminal to GND to “activate” the digital input.
If you like to use the digital outputs to control external 5V logic circuit, you have to connect pull-up resistors between the digital outputs of the K8055 and +5V external power supply. The value is not critical 1k…10k is OK.
Here is an example how to connect the K8055 outputs to an external circuit having 5V digital inputs:

Thanks,
just to clarify you say that I can put in a 5V input directly into the digital input.

Is there a way to generate a 5V outpiut directly from the board using the DAC output.and if the 5DAC can output 5V can I connect the groud from the DAC to the digital input. Ground and the output from DAC to any digital input to test this.

[quote]Is there a way to generate a 5V outpiut directly from the board using the DAC output.[/quote]Yes. The DAC output can give 0V to about +5V output.
The DAC output needs no pull-up resistor as the PWM and digital outputs need.

[quote]Ground and the output from DAC to any digital input to test this.[/quote]Yes, you can do this.
No need to connect the GND. All GND terminals on the board are connected internally together.