Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Toolbox HBridge with SB


  • Please log in to reply
2 replies to this topic

#1 eplaksienko

eplaksienko

    Advanced Member

  • Members
  • PipPipPip
  • 112 posts

Posted 29 March 2013 - 02:30 AM

Hi!

 

Anybody has experience SB with DFRobot L298P using HBridge, no errors motor doesn't rotate

 

Here the code

 

 

using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using NetduinoGo;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoGo;
using Toolbox.NETMF.Hardware;
 
namespace DFRobotMShield
{
    public class Program
    {
        public static void Main()
        {
            // write your code here
            Thread.Sleep(5000);
            NetduinoGo.ShieldBase sb = new NetduinoGo.ShieldBase((GoBus.GoSocket)4);
 
            HBridge MotorDriver = new HBridge(sb.PWMChannels.PWM_PIN_D6, sb.Pins.GPIO_PIN_D7, sb.PWMChannels.PWM_PIN_D5, sb.Pins.GPIO_PIN_D4);
 
            MotorDriver.SetState(HBridge.Motors.Motor1, -50);
         
            //Thread.Sleep(Timeout.Infinite);
            while (true) ;
 
        }
 
    }
}


#2 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 29 March 2013 - 08:03 AM

Hi,

 

From the manual; http://www.dfrobot.c...N)_(SKU:DRI0009)

You can select PWM and PPL mode with jumpers. The only supported mode with this class is PWM. Could you check if you have your jumpers set correctly?

 

Also, what are the specifications of your motors and power supply? Do the motors make a sound? It can be that they just won't get enough power.


"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#3 eplaksienko

eplaksienko

    Advanced Member

  • Members
  • PipPipPip
  • 112 posts

Posted 29 March 2013 - 12:23 PM

Thanks Stefan, I found the solution from absolutely different angle :D, but without your tip :D I wouldn't get it, it's somehow different MS, no PWM/PLL switch, and what happened it was different pins :D I will post later today pic of the shield, but it was shipped by robotshop.com in dfrobot wrappinf with df robot logo on it :D

 

Actually  is there class to control stepper with it?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.