Varying the speed of a motor with k8055

Hi, I am using a mosfet to try drive a motor from the PWM1 channel… just wondering if anyone knows how this could be done… I would like to have a scrollbar and if i change the value the speed either increases or decreases

how wd i wire it up or any code tht might help

You may use this VB 2008 Express demo project as an example: box.net/shared/euf9bd2rc4

Here is a snippet of the code:

Private Sub VScrollBar1_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles VScrollBar1.Scroll Label4.Text = CStr(255 - VScrollBar1.Value) OutputAnalogChannel(1, 255 - VScrollBar1.Value) End Sub

is that not just the sample program?

Yes it is a working sample to test all the features of the K8055 card.