Hi. I’m using a TIC 36v4 to control a stepper motor that drives my dome around. I use the limit switch reverse function on SDA to allow the dome to find Home. The snag arrives if I want to travel beyond the switch position as of course a dome can continuously rotate. So I decided I could maybe use the set_sda_pin_mode function to turn SDA off as a limit switch after the homing had been done and turn it back on as a limit switch when I need it for homing. I only use the home function at most once per evening viewing, and often not even then !
However try as I might I cannot get this switching to actually happen. I’m verifying the pin status by using the Pololu Tic control center having run code to change the pin mode. The pin mode never changes. I’ve also tried using
bool v = m_tic.set_setting_byte(61, 9);
to set it as a limit switch and then
bool v = m_tic.set_setting_byte(61, 2);
to disable the limit switch
and again nothing changes when I check in the control center. I’m using C# in Microsoft Visual Studio
Any suggestions
Thanks
Tim