- Netduino Forums
- → Viewing Profile: Posts: alhardy
Community Stats
- Group Members
- Active Posts 8
- Profile Views 4928
- Member Title New Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Male
-
Location
Sydney, Australia
User Tools
Friends
alhardy hasn't added any friends yet.
Posts I've Made
In Topic: HBridge SN754410
29 May 2012 - 07:35 AM
In Topic: Stefans Toolbox and MotorShield. Does not run!
29 May 2012 - 06:22 AM
Yep.
I once made a list for myself which I believe is correct;
internal const Cpu.PWMChannel GPIO_PIN_D3 = (Cpu.PWMChannel)0x04; internal const Cpu.PWMChannel GPIO_PIN_D5 = (Cpu.PWMChannel)0x00; internal const Cpu.PWMChannel GPIO_PIN_D6 = (Cpu.PWMChannel)0x01; internal const Cpu.PWMChannel GPIO_PIN_D9 = (Cpu.PWMChannel)0x02; internal const Cpu.PWMChannel GPIO_PIN_D10 = (Cpu.PWMChannel)0x03; internal const Cpu.PWMChannel GPIO_PIN_D11 = (Cpu.PWMChannel)0x05;
Nice, thanks again.
In Topic: Stefans Toolbox and MotorShield. Does not run!
29 May 2012 - 03:57 AM
Thanks for the replies guys, I didn't expect such quick response, nice to have an active forum!
Stefan, by saying
sb.PWMChannels.PWM_4 == Pin D3
sb.PWMChannels.PWM_3 == Pin D10
are you saying that sb.PWMChannels.PWM_4 = pin 3 in the digital io part on the netduino shieldbase? How do I tell which can be used for PWM?
In Topic: NetduinoGo deployment issue
28 May 2012 - 08:54 PM
Hi alhardy,
It looks like there's either flash corruption or the app failed to deploy (but looks like it did anyway). Very strange. If you can consistently reproduce this, we'd love to dig in and take a look at what's going on.
In the meantime, let's get you up and running. The first thing to do is to completely erase your board. Reflashing it may only write over existing regions, leaving corrupted data in application regions intact.
Instructions to completely erase a Netduino Go mainboard:
- Install ST's DFUSE app if you haven't already done so
- Unplug your Netduino Go from the PC
- Hold down the pushbutton on your Netduino Go and plug its USB connection into your PC
- Run the "STDFU Tester" app
- Click the "Protocol" tab up top
- Select the "Erase" option in the "Operation" box on left
- Press the "Create from Map" button
- Press Go
Once the board is erased, you can reflash it via the DFUSE Demonstrator app.
Does this get you back up and running?
Chris
Hi Chris,
Thanks for the prompt reply, yes that got me back up and running! Cheers.
I'll let you know if it happens again and give you more details steps to reproduce.
Thanks again.
Allan
In Topic: Stefans Toolbox and MotorShield. Does not run!
28 May 2012 - 10:28 AM
Indeed
Glad I could help you come this far though!
Hi Stephen,
First of thanks for providing the samples you have, helpful for someone starting out like myself.
I'm also attempting to get the HBridge Motor driver working and am having issues but with the NetduinoGo shield base. I'm using an H-Bridge SN754410 and have copied the schematics you have provided on my bread board connecting it to my shield base. Nothing seems to happen at all
Here's my app modified slightly from your sample attempting to get it to work with the netduino go.
public static void Main()
{
var sb = new ShieldBase(GoSockets.Socket5);
// Defines the H-Bridge IC on the correct pins
var motorDriver = new HBridge(sb.PWMChannels.PWM_4, sb.Pins.GPIO_PIN_D5, sb.PWMChannels.PWM_3, sb.Pins.GPIO_PIN_D2);
// Motor 1 half speed backward
motorDriver.SetState(HBridge.Motors.Motor1, -50);
// Motor 2 half speed forward
motorDriver.SetState(HBridge.Motors.Motor2, 50);
// Lets run for 5 seconds
Thread.Sleep(5000);
// Motor 1 full speed backward
motorDriver.SetState(HBridge.Motors.Motor1, -100);
// Motor 2 full speed forward
motorDriver.SetState(HBridge.Motors.Motor2, 100);
// Lets run for 5 seconds
Thread.Sleep(5000);
// Stops both motors
motorDriver.SetState(HBridge.Motors.Motor1, 0);
motorDriver.SetState(HBridge.Motors.Motor2, 0);
}
Anything incorrect stand out and should it work with the shield base? Any help would be much appreciated.
Allan
- Netduino Forums
- → Viewing Profile: Posts: alhardy
- Privacy Policy