Hi!
Anybody has experience SB with DFRobot L298P using HBridge, no errors motor doesn't rotate
Here the code
![]() |
  | |||||||||||||
![]() |
|
![]() |
||||||||||||
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.
eplaksienko's ContentThere have been 107 items by eplaksienko (Search limited from 24-June 23) #47714 Toolbox HBridge with SB
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) ; } } }
#47723 Toolbox HBridge with SB
Thanks Stefan, I found the solution from absolutely different angle
Actually is there class to control stepper with it? #47467 Longer Go Cables
There are on ghi electronics site, sound like they are compatible #47337 Need heeeeelp, Something Wrong when restart With SB
Chris, could you please look at this issue, need help #47225 Need heeeeelp, Something Wrong when restart With SB
Hi!
When I create app, for example blinking led, it works, then switch off and switch on, it doesn't sounds it doesn't keep program there. It's started after new firmware flashed
Heeeeeeelp please
Thanks Eugene #47426 Need heeeeelp, Something Wrong when restart With SB
Disregard, solved by
Thread.Sleep(1000); NetduinoGo.ShieldBase sb = new NetduinoGo.ShieldBase((GoBus.GoSocket)4);
#49346 Netduino Go with battery pack, any ready inexpensive ideas
Hi!
Anybody aware Netduino Go with AA battery pack, any ready inexpensive ideas?
#47846 Wrong numbers when working with sonar sensor
Chris, I see incremental number while moving things further and excremental when going closer, but I can not tune exact number, I didn't yet figured out dependencies experimentally, but the same sonic sensor works great and gives exact calculated numbers with Arduino #47188 Wrong numbers when working with sonar sensor
Chris 1 question related to SB
I try to play with sonic distance sensor, one of the guys shared the code http://forums.netdui...ic-rangefinder/
I didn't try it with Netduino, but combination of NGO and SB doesn't give correct numbers, is there any specific delays or other could be the reson
PS: I tried the module with Arduino it works #47698 Wrong numbers when working with sonar sensor
No, was busy with other staff, I think Secret Labs staff help would be very useful, since it's 99.99% lateness issue, not sure if it because NGO connectivity or SB itself or both. But we should be able to get from them numbers to make calculations better #47291 Wrong numbers when working with sonar sensor
What I can definitely see after investigation playing with stepping motor, there are delays in either changing status on pin or code interpretation #47359 Wrong numbers when working with sonar sensor
I was able to find delay I see progression, but it's definitely not enough #47253 Wrong numbers when working with sonar sensor
I am still working on shaman-ning it, I am almost there, If folks around will not find scientific solution, hopefully I would be able to give different delays and conversions #47336 Wrong numbers when working with sonar sensor
I am working right now with idea to figure out what's the real delay between NGO and SB I believe if this one solved we almost there #48930 TristatePort through exception while construct via SB
Hi!
TristatePort throw exception while construct via SB
here the code
ShieldBase sb = new ShieldBase((GoBus.GoSocket)1); TristatePort p1 = new TristatePort(sb.Pins.GPIO_PIN_D2, false, true, Port.ResistorMode.PullUp); here the exception A first chance exception of type 'System.Exception' occurred in GoBusSerialTransport.dll An unhandled exception of type 'System.Exception' occurred in GoBusSerialTransport.dll Here the trace GoBusSerialTransport.dll!GoBus.GoBusSerialTransport.CallFunction(byte profile, byte instance, byte function, byte[] parameters, bool waitForResponse) Line 1101 + 0xcf bytes C# NetduinoGo.ShieldBase.dll!NetduinoGo.ShieldBase.CreateTristatePort(Microsoft.SPOT.Hardware.Cpu.Pin portId, bool initialState, bool glitchFilter, Microsoft.SPOT.Hardware.Port.ResistorMode resistor) Line 461 + 0x5d bytes C# [External Code] > Charlie6.exe!Charlie6.Program.Main() Line 17 + 0x1d bytes C# z` Any ideas what's wrong? #48985 TristatePort through exception while construct via SB
Thx Lunddahl, but no solution there yet #47888 Analog Output for SB
Thx guys, It was just a little bit confusing no having yet analog output for SB #47852 Analog Output for SB
Thx Already have solution with PWM #47847 Analog Output for SB
Hi!
Does it exist Analog Output for SB? #47853 Serial port on SB
Hi!
Question, how to use, code example any?
Thanks #47862 Serial port on SB
Doesn't matter found #47306 SB with NGO much slower then Arduino
Chris, in additional is there any hacks to send some more native way? #47286 SB with NGO much slower then Arduino
Hi!
may be I misunderstand something, but it seems me processing NGO with SB much slower then with Arduino, I am playing with step motor and I can see difference, I made everything easy, but still I can not get rotate it quicker, and signal lamps are just visible much slower then with arduino, may be there is any hack or anything I am doing wrong, the same code with arduino just fly. Any advise really appreciated
PS: I use Stepper Motor+ Driver Board ULN2003 5V 4-phase 5 line
public class Program { public static void Main() { // write your code here NetduinoGo.ShieldBase sb = new NetduinoGo.ShieldBase((GoBus.GoSocket)4); OutputPort op1 = new OutputPort(sb.Pins.GPIO_PIN_D8, false); OutputPort op2 = new OutputPort(sb.Pins.GPIO_PIN_D9, false); OutputPort op3 = new OutputPort(sb.Pins.GPIO_PIN_D10, false); OutputPort op4 = new OutputPort(sb.Pins.GPIO_PIN_D11, false); bool[][] positions = { new bool[] { false, false, false, true }, new bool[] { false, false, true, true }, new bool[] { false, false, true, false }, new bool[] { false, true, true, false }, new bool[] { false, true, false, false }, new bool[] { true, true, false, false }, new bool[] { true, false, false, false }, new bool[] { false, false, false, false } }; Debug.Print("started"); while (true) { op1.Write(positions[0][0]); op2.Write(positions[0][1]); op3.Write(positions[0][2]); op4.Write(positions[0][3]); op1.Write(positions[1][0]); op2.Write(positions[1][1]); op3.Write(positions[1][2]); op4.Write(positions[1][3]); op1.Write(positions[2][0]); op2.Write(positions[2][1]); op3.Write(positions[2][2]); op4.Write(positions[2][3]); op1.Write(positions[3][0]); op2.Write(positions[3][1]); op3.Write(positions[3][2]); op4.Write(positions[3][3]); op1.Write(positions[4][0]); op2.Write(positions[4][1]); op3.Write(positions[4][2]); op4.Write(positions[4][3]); op1.Write(positions[5][0]); op2.Write(positions[5][1]); op3.Write(positions[5][2]); op4.Write(positions[5][3]); op1.Write(positions[6][0]); op2.Write(positions[6][1]); op3.Write(positions[6][2]); op4.Write(positions[6][3]); op1.Write(positions[7][0]); op2.Write(positions[7][1]); op3.Write(positions[7][2]); op4.Write(positions[7][3]); Thread.Sleep(1); } } }
#47305 SB with NGO much slower then Arduino
Chris, do you mean to send all 4 channels the same time, use 255 bit pwm to split, then I win x4? #53006 Netduino Plus vs Netduino Go
NGO, despite it is a great idea of plug and play modules looks like abandoned due lack of resources Secret Labs has, unfortunately I wouldn't suggest to go with this platform yet
| ||||||||||||||
![]() |
||||||||||||||
![]() |
|
![]() |
||||||||||||
![]() |
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ![]() |
||||||||||||
![]() |