Thanks for your huge effort in creating this great focuser!
I have connected up a Minimal version of the focuser using following:
Arduino Nano
ULN2003 driver board
28YBJ-48 stepper motor
No input buttons,
No buzzer
No temperature probe
Connected according to myFP2_v200_ULN2003_M_Schem.png (but the two output LED's and the buzzer are not connected)
The problem is that the stepper motor does not move at all.
I have done a lot of fault finding, but cannot find the issue.
As far as I can see, there must be a setting in the software that prevents the motor from moving. Hardware and connection between app and Nano works OK.
I am using the following firmware / software:
Arduino IDE 2.2.1 (have also tried v. 1.8.13) Software compiles and loads OK with both versions.
myFP2F_ULN2003_330
myFocuserPro2_2_5_1_1.zip (tried both main and mini app versions, same problem in both versions)
Following is defined in focuserconfig.h file:
define DRVBRD ULN2003
All other focuser options are commented out.
The Windows app connects just fine to the arduino Nano.
I'm also connecting OK to the MyFocuserpro2 from NINA / Ascom.
I connected a USB-serial device to Tx pin on the Nano, and get following response when I click "Connect" in the Windows App:
When I click any of the focus+ or focus- buttons in the App, the motor is supposed to move. It does not.
When I click on one of these buttons, for example +10, the controller goes into a loop, and I see activity on the Nano Tx pin. The controller sends this on the Tx (in a endless loop):
I1#P5000#I1#P5000#I1#P5000#I1#P5000#I1#P5000#I1#P5000#I1#P5000#I1#P5000#I1#P5000#I1#P5000#I1#P5000#I1#P5000#I0#I0#P5000#
Only way to stop this is to click "HALT" in the Windows app.
The ULN2003 board is connected to Nano pins D4,D5,D6,D7, which are defined in the myBoards.h file:
define IN1ULN 4
define IN2ULN 5
define IN3ULN 6
define IN4ULN 7
I connected oscilloscope probes to these pins on the Nano, and there is no activity on any of these output pins. (To be sure, I check all output pins : D2 to D13,no activity on any pins)
I am using 12v to drive the ULN2003 board, but the input signals to the board coming from the Nano are missing.
To be sure the hardware worked, I loaded a simple stepper motor test sketch to the Nano, driving the motor using the same pins as Myfocuserpro2 Sketch (D4,D5,D6,D7)
This works fine, motor runs correctly, both directions.
Today I also tried using a A4998 driver board for the stepper motor, with the arduino code: myFP2F_A4998_330.ino
Exactly same problem here: the motor does not move. No activity on the A4998STEP pin (4) on the Nano when using an oscilloscope.
For fun, I also tried a older version of the Windows software: myFocuserPro2_2_4_3_0
This has exactly same problems as the 2.5.1.1 version. Motor does not move and no activity on any of the driving pins from the Nano to the stepper driver board.
So, I can't find any faults in the hardware, and that's why I think it is a setting in the software preventing the motor from moving.
I read in the MyFocuserpro2 FAQ document about Motor not moving:
• Did you enable temperature compensation? If temperature compensation is enabled, a move command is ignored
• Have you enabled the STEPPERPOWER but do not have the hardware in place?
I have not enabled any of these two in the focuserconfig.h file.
Can you help me out, any idea why the motor is not running?
Any help is greatly appreciated :)
Best regards,
Geir V.
Norway
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
if I did not apolgies. Lets start with the ULN2003 and stick with that
because it then rules out all the other things if using A4998 and DRV/TMC chips
TRY THIS FIRST
Attached if a library. Add this to the Arduino library. Do not let Arduino to update this
file if you start Arduino again it make ask to update libraries, and if you say yes, then it will update this library and try to replace it, do not let that happen.
if I did not apolgies. Lets start with the ULN2003 and stick with that
because it then rules out all the other things if using A4998 and DRV/TMC
chips
TRY THIS FIRST
Attached if a library. Add this to the Arduino library. Do not let Arduino
to update this
file if you start Arduino again it make ask to update libraries, and if
you say yes, then it will update this library and try to replace it, do not
let that happen.
Hello Roger,
Thanks for your huge effort in creating this great focuser!
I have connected up a Minimal version of the focuser using following:
Arduino Nano
ULN2003 driver board
28YBJ-48 stepper motor
No input buttons,
No buzzer
No temperature probe
Connected according to myFP2_v200_ULN2003_M_Schem.png (but the two output LED's and the buzzer are not connected)
The problem is that the stepper motor does not move at all.
I have done a lot of fault finding, but cannot find the issue.
As far as I can see, there must be a setting in the software that prevents the motor from moving. Hardware and connection between app and Nano works OK.
I am using the following firmware / software:
Arduino IDE 2.2.1 (have also tried v. 1.8.13) Software compiles and loads OK with both versions.
myFP2F_ULN2003_330
myFocuserPro2_2_5_1_1.zip (tried both main and mini app versions, same problem in both versions)
Following is defined in focuserconfig.h file:
define DRVBRD ULN2003
All other focuser options are commented out.
The Windows app connects just fine to the arduino Nano.
I'm also connecting OK to the MyFocuserpro2 from NINA / Ascom.
I connected a USB-serial device to Tx pin on the Nano, and get following response when I click "Connect" in the Windows App:
EOK#FmyFP2ULN2003
330#c0#P5000#M10000#40#50#60#70#O1#30#D1#l0#X2000#n0#L0#C2#05000#R0#S1#91#U0#T50.00#?1#B0#Q10#k1#10#c0#b1#Z20.00#
When I click any of the focus+ or focus- buttons in the App, the motor is supposed to move. It does not.
When I click on one of these buttons, for example +10, the controller goes into a loop, and I see activity on the Nano Tx pin. The controller sends this on the Tx (in a endless loop):
I1#P5000#I1#P5000#I1#P5000#I1#P5000#I1#P5000#I1#P5000#I1#P5000#I1#P5000#I1#P5000#I1#P5000#I1#P5000#I1#P5000#I0#I0#P5000#
Only way to stop this is to click "HALT" in the Windows app.
The ULN2003 board is connected to Nano pins D4,D5,D6,D7, which are defined in the myBoards.h file:
define IN1ULN 4
define IN2ULN 5
define IN3ULN 6
define IN4ULN 7
I connected oscilloscope probes to these pins on the Nano, and there is no activity on any of these output pins. (To be sure, I check all output pins : D2 to D13,no activity on any pins)
I am using 12v to drive the ULN2003 board, but the input signals to the board coming from the Nano are missing.
To be sure the hardware worked, I loaded a simple stepper motor test sketch to the Nano, driving the motor using the same pins as Myfocuserpro2 Sketch (D4,D5,D6,D7)
This works fine, motor runs correctly, both directions.
Today I also tried using a A4998 driver board for the stepper motor, with the arduino code: myFP2F_A4998_330.ino
Exactly same problem here: the motor does not move. No activity on the A4998STEP pin (4) on the Nano when using an oscilloscope.
For fun, I also tried a older version of the Windows software: myFocuserPro2_2_4_3_0
This has exactly same problems as the 2.5.1.1 version. Motor does not move and no activity on any of the driving pins from the Nano to the stepper driver board.
So, I can't find any faults in the hardware, and that's why I think it is a setting in the software preventing the motor from moving.
I read in the MyFocuserpro2 FAQ document about Motor not moving:
• Did you enable temperature compensation? If temperature compensation is enabled, a move command is ignored
• Have you enabled the STEPPERPOWER but do not have the hardware in place?
I have not enabled any of these two in the focuserconfig.h file.
Can you help me out, any idea why the motor is not running?
Any help is greatly appreciated :)
Best regards,
Geir V.
Norway
Did I respond to this already? Was it via email?
if I did not apolgies. Lets start with the ULN2003 and stick with that
because it then rules out all the other things if using A4998 and DRV/TMC chips
TRY THIS FIRST
Attached if a library. Add this to the Arduino library. Do not let Arduino to update this
file if you start Arduino again it make ask to update libraries, and if you say yes, then it will update this library and try to replace it, do not let that happen.
Then try again,
Regards
Robert
Hello Robert,
Yes, you helped me out very good with this issue. It turned out it was an
old library I used for the TimerOne.
Thanks again for the help :)
Best regards,
Geir.
ons. 28. feb. 2024 kl. 13:15 skrev brownrb brownrb@users.sourceforge.net: