You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi thanks for amazing project , am working with stepper motors , so can i control stepper motors with it ? if not how can we add stepper motor support to it
Look in program.cs in the method SimpelTest on how to use the firmata class to control a servo on an arduino board.
firmata.SetDigitalPinMode(11, PinMode.ServoControl);
firmata.SetDigitalPin(11, 90);
Thread.Sleep(500);
int hi = 0;
for (int a = 0; a <= 179; a += 1)
{
firmata.SetDigitalPin(11, a);
Thread.Sleep(100);
firmata.SetDigitalPort(1, hi);
hi ^= 4;
Console.Write("{0};", a);
}
Of course, you'll need an arduino with a firmata sketch and a servo connected to pin 11.
Activity
jeroenwalter commentedon Jul 5, 2019
Look in program.cs in the method SimpelTest on how to use the firmata class to control a servo on an arduino board.
Of course, you'll need an arduino with a firmata sketch and a servo connected to pin 11.