when I deploy to the Hydra I get this error
An unhandled exception of type ‘Gadgeteer.Socket.PinConflictException’ occurred in Gadgeteer.dll
Additional information:
Unable to configure the MotorControllerL298 module using socket 7 (pin 7). There is a conflict with the MotorControllerL298 module using socket 7 (pin 7). Please try using a different combination of sockets.
I Think I am using the most up to date firmware and drivers I am using the sample code from the help file on the L298
using System;
using System.Collections;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;
using Microsoft.SPOT.Presentation.Media;
using Microsoft.SPOT.Touch;
using Gadgeteer.Networking;
using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;
using Gadgeteer.Modules.GHIElectronics;
namespace HydraBot1
{
public partial class Program
{
MotorControllerL298 motorController = new MotorControllerL298(7);
//MotorControllerL298 motorController = new MotorControllerL298(11);
// This method is run when the mainboard is powered up or reset.
void ProgramStarted()
{
// Set the motor speeds to 0
motorController.MoveMotor(MotorControllerL298.Motor.Motor1, 0);
motorController.MoveMotor(MotorControllerL298.Motor.Motor2, 0);
// Switch this to test the threaded movement
// true = threaded
bool bThreaded = false;
if (bThreaded)
{
// Start one motor on its own thread
motorController.MoveMotorRampNB(MotorControllerL298.Motor.Motor1, 100, 5000);
// Wait so we can see the other start
Thread.Sleep(500);
// Start the other motor on its own thread
motorController.MoveMotorRampNB(MotorControllerL298.Motor.Motor2, -100, 5000);
}
else
{
motorController.MoveMotorRamp(MotorControllerL298.Motor.Motor1, 100, 5000);
Debug.Print("going down");
motorController.MoveMotorRamp(MotorControllerL298.Motor.Motor1, 0, 5000);
Debug.Print("going more down");
motorController.MoveMotorRamp(MotorControllerL298.Motor.Motor1, -100, 5000);
Debug.Print("going up");
motorController.MoveMotorRamp(MotorControllerL298.Motor.Motor1, 0, 5000);
Debug.Print("more up");
motorController.MoveMotorRamp(MotorControllerL298.Motor.Motor1, 100, 5000);
Debug.Print("OTHER SIDE");
motorController.MoveMotorRamp(MotorControllerL298.Motor.Motor2, 100, 5000);
Debug.Print("going down");
motorController.MoveMotorRamp(MotorControllerL298.Motor.Motor2, 0, 5000);
Debug.Print("going more down");
motorController.MoveMotorRamp(MotorControllerL298.Motor.Motor2, -100, 5000);
Debug.Print("going up");
motorController.MoveMotorRamp(MotorControllerL298.Motor.Motor2, 0, 5000);
Debug.Print("more up");
motorController.MoveMotorRamp(MotorControllerL298.Motor.Motor2, 100, 5000);
Debug.Print("Program Started");
}
}
}
}
I have been away from this for a while so most likely it is something stupid