.NET Library for I2C Motor Driver 1.3

Applications/questions using Raspberry Pi with Seeed products, please post it here.

Moderators: violet, jessie, yexiaobo

Post Reply
mgrontzki
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Fri Jun 22, 2018 3:30 am

.NET Library for I2C Motor Driver 1.3

Post by mgrontzki » Fri Jun 22, 2018 3:53 am

Hello Seeed Forum,

I have a Grove – I2C Motor Driver V1.3 Board and I want to control a Stepper Motor with it. I use a Raspberry Pi 3 Board with Windows 10 IoT Core as OS and programming it with a .NET UWP App.

My Questions:
Is there any .NET NuGet package for controlling the Driver Board via I2C Bus.
Is there any possibility to detect, if the number of Steps, i send to the board, are finished or not? How did I now if the board is ready for the next number of steps?
Do you have a complete documentation of the I2C connection?

Thanks a lot.
Marco

hong.jiang
Staff
Staff
Posts: 177
Joined: Tue Apr 17, 2018 11:03 am

Re: .NET Library for I2C Motor Driver 1.3

Post by hong.jiang » Fri Jun 22, 2018 10:10 am

Dear Customer:
All the information we can provide is in the wiki(http://wiki.seeedstudio.com/Grove-I2C_M ... iver_V1.3/). I find there is no .NET NuGet package to provide for you.

mgrontzki
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Fri Jun 22, 2018 3:30 am

Re: .NET Library for I2C Motor Driver 1.3

Post by mgrontzki » Sat Jun 23, 2018 12:02 am

Thanks, but I read all these documents bevor.

I have comunication with the board now. I can change the direction and the LEDs are switching like my command.
The Problem is, that I want to control a stepper motor and there is no voltage at the output pins.

Which commands must i send to rotate a stepper motor for 100 steps in one direction?

I tried:

Code: Select all


        _Motor1.SteperStepset(100)
        _Motor1.StepperMotorEnable(0, 5)
----------------------------------------------------------------------

    Public Sub SteperStepset(stepnu As Byte)
        _i2cMotor.Write(New Byte() {STEPERNU, stepnu, &H1})
        Task.Delay(10).Wait()
    End Sub

    Public Sub StepperMotorEnable(Direction As Byte, Speed As Byte)
        _i2cMotor.Write(New Byte() {ENABLE_STEPPER, Direction, Speed})
        Task.Delay(10).Wait()
    End Sub

    Public Sub StepperMotorUnenable()
        _i2cMotor.Write(New Byte() {UNENABLE_STEPPER, &H1, &H1})
        Task.Delay(10).Wait()
    End Sub
but Nothing happend.

hong.jiang
Staff
Staff
Posts: 177
Joined: Tue Apr 17, 2018 11:03 am

Re: .NET Library for I2C Motor Driver 1.3

Post by hong.jiang » Mon Jul 02, 2018 3:27 pm

HI Marco

please use StepperRun(100); here is the cpp file https://github.com/Seeed-Studio/Grove_I ... r.cpp#L149. we tested it and it works well. please let us know if it still does not work. thanks.

Seeed techsupport team
Bill

Post Reply