Hi brownrb.
i have been using the first focuser i made for a few months now and it works awesome, thanks so much for doing this project. i have decided i want to make one of the smaller builds of this version because the box i currently use for the Arduino uno and LN298 is very large.
i have got myself a Arduino NANO and the DRV8825. i have wired it all up correctly as stated in the code file which i am using Focuserv258_DRV8825_M.ino and followed this skematic for the other wires.
Using the fast speed setting and full steps i set the current correctly but am still having a few odd issues. if i set the current position to 0 and max to 5000 then tell it to move 5000 it does but screams and vibrates at the end. if i go from 5000-0 it is smooth but then screams at the end as well. the main issue is that i cant get the small setp sizes to work, if i click the +500 or -500 buttons the motor moves in random directions and makes awful noises as well as not moving at all sometimes. i am not using lights in my build or a home position switch. im not sure if there is anything i need to change in the code or what could be causing this? any ideas, thanks alex
i have attached the log file of me moving the focuser in all directions with different step sizes
16/11/2017 5:10:35 PM: ResetLogFilePath(): =START=========================================================
16/11/2017 5:10:36 PM: Disconnect(): =START=========================================================
16/11/2017 5:10:36 PM: Disconnect: Serial Port is Open
16/11/2017 5:10:36 PM: Disconnect: Call GetIsMoving
16/11/2017 5:10:36 PM: GetIsMoving(): =START=========================================================
16/11/2017 5:10:36 PM: Calling CommandString(:01#)
16/11/2017 5:10:36 PM: CommandString(): =START=========================================================
16/11/2017 5:10:36 PM: CommandString: Serial Port is Open
16/11/2017 5:10:36 PM: CommandString: Try to write command: :01#
16/11/2017 5:10:36 PM: CommandString: Command was sent.
16/11/2017 5:10:36 PM: ReceiveString(): =START=========================================================
16/11/2017 5:10:36 PM: ReceiveString: Command retcmd = I
16/11/2017 5:10:36 PM: ReceiveString: Buffer recbuf = I00#
16/11/2017 5:10:36 PM: ReceiveString: Value retstr = 00
16/11/2017 5:10:36 PM: ReceiveString raw response for Ismoving is I00#
16/11/2017 5:10:36 PM: ReceiveString(): =END===========================================================
16/11/2017 5:10:36 PM: CommandString(): =END===========================================================
16/11/2017 5:10:36 PM: Back from CommandString
16/11/2017 5:10:36 PM: GetIsMoving: Success: ismoving status = 0
16/11/2017 5:10:36 PM: GetIsMoving(): =END===========================================================
16/11/2017 5:10:36 PM: Disconnect: Back from GetIsMoving
16/11/2017 5:10:36 PM: Disconnect: ismoving = 0
16/11/2017 5:10:36 PM: Disconnect: Call GetIsMoving
16/11/2017 5:10:36 PM: GetIsMoving(): =START=========================================================
16/11/2017 5:10:36 PM: Calling CommandString(:01#)
16/11/2017 5:10:36 PM: CommandString(): =START=========================================================
16/11/2017 5:10:36 PM: CommandString: Serial Port is Open
16/11/2017 5:10:36 PM: CommandString: Try to write command: :01#
16/11/2017 5:10:36 PM: CommandString: Command was sent.
16/11/2017 5:10:36 PM: ReceiveString(): =START=========================================================
16/11/2017 5:10:36 PM: ReceiveString: Command retcmd = I
16/11/2017 5:10:36 PM: ReceiveString: Buffer recbuf = I00#
16/11/2017 5:10:36 PM: ReceiveString: Value retstr = 00
16/11/2017 5:10:36 PM: ReceiveString raw response for Ismoving is I00#
16/11/2017 5:10:36 PM: ReceiveString(): =END===========================================================
16/11/2017 5:10:36 PM: CommandString(): =END===========================================================
16/11/2017 5:10:36 PM: Back from CommandString
16/11/2017 5:10:36 PM: GetIsMoving: Success: ismoving status = 0
16/11/2017 5:10:36 PM: GetIsMoving(): =END===========================================================
16/11/2017 5:10:36 PM: Disconnect: Back from GetIsMoving
16/11/2017 5:10:36 PM: Disconnect: ismoving = 0
16/11/2017 5:10:36 PM: disableall(): =START=========================================================
16/11/2017 5:10:36 PM: disableall(): =END===========================================================
16/11/2017 5:10:36 PM: DisconnectBtn_Click: Disconnecting
16/11/2017 5:10:36 PM: Disconnect(): =END===========================================================
16/11/2017 5:10:36 PM: FormClosing: Start
16/11/2017 5:10:36 PM: FormClosing: Serial port not connected
16/11/2017 5:10:36 PM: FormClosing: Save application settings
16/11/2017 5:10:36 PM: FormClosing: Stop timers
16/11/2017 5:10:36 PM: FormClosing: Finish
Hi
It is either stepper current or incorrect stepper wiring
You need to set the current for the DRV8825 first. Ensure this is done as per pdf. If that does not improve things, you must do step 2
Note1: Adjusting the Stepper Motor by Current
The best way to do this is using a multi-meter.
1. Ensure power is OFF
2. Connect a multi-meter in series with one coil of the stepper motor
3. Set the multi-meter to read current (1A)
4. The NEMA 17 recommended motor uses 400mA. We will use a setting of 350mA, so we need to set the current flowing through one coil to 0.7 * 350mA or 245mA
5. Connect the stepper motor to the controller with the multi-meter in series with one coil
6. Connect the controller to the computer using a USB cable
7. Turn on the external 12V for the stepper
8. Run the windows application for myFocuserPro2, and set the Coil Power to ON
9. With a small screwdriver, slowly turn the pot on the driver board till the current reads 245mA on the multi-meter
10. Disconnect from the controller and exit the application
11. Turn off the 12V external supply for the stepper motor
12. Unplug the USB cable connecting the controller to the computer
13. Remove the multi-meter and reconnect the coil wire as per the original wiring
Note2: Adjusting the Stepper Motor manually
It is best to use a ceramic or plastic screwdriver when adjusting the pot. I would suggest a plastic knitting needle which has the end filed down to look like a screwdriver.
1. With the controller connected via USB, and 12V power to the driver board, set the focuser position to 0 and the Motor Speed to SLOW
2. Enter a focuser position of 5000 and click the Goto button
3. Wind the pot all the way anticlockwise until the motor stops moving
4. Now very slowly turn the pot clockwise until you see the motor start to turn. If the maxSteps is reached, just reset the focuser position to 0 and then type in 5000 for the position and click Goto again
5. Slowly turning the pot, when you see the stepper start to move ok without jerking, then slowly turn no more than 1/8th clockwise from that point
6. It should now be close enough
7. If you go too far then there will be too much current and the motor will run hot. You should use no more than 12V external power
On some driver boards clockwise might be anticlockwise. Once set, then switch to 1/4 stepping and repeat the 0 then 5000 Goto. The motor should run smoothly without missing steps (a missed step will be a sudden jerk which you will be able to feel or hear). If there is any of this, you might need to ever so slightly turn it a little more. Be careful as a little turn can make significant changes in current.
===========================================================
2. After the current is set, the next step will be to ensure you have the correct stepper wires connected.
This last step will involve quite a bit of different configurations. Each time, must turn power off, then change wires, then power on, then test, then power off
For the recommended Stepper Motor, on the layout board
PG5/27-BLACK - RS232-Pin4 goes to A2 of the DRV8825
PG5/27-GREEN - RS232-Pin3 goes to A1
PG5/27-BLUE - RS232-Pin1 goes to B1
PG5/27-RED - RS232-Pin2 goes to B2
for standard NEMA
BLACK - RS232-Pin4 goes to A2 of the DRV8825
RED - RS232-Pin3 goes to A1
BLUE - RS232-Pin1 goes to B1
GREEN - RS232-Pin2 goes to B2
I have a RED/BLACK/GREEN/BLUE Wire Stepper. How do I connect it?
Now if the stepper you purchased was not the 17HS13-0404S-xxx then the wiring will be different.
There are 4 wires to the stepper motor. Normally the manufacturer posts a data sheet which describes the two coils and what color the leads are.
In general if this is missing then one uses a multimeter set to resistance to measure the coil resistance.
So in your case with one lead on black, connect the other lead to red, then green, then blue. Only one combination will have a low resistance value, all others high.
So if Black-Red have the low resistance then that also means green=blue is the the other pair.
Now the next bit might be a bit harder.
Lets assume the outputs of the DRV are A1, A2, B1 and B1. A1 is for one pair and B1 is for the other pair.
So the possible number of combinations to wire are
A1=Black, A2=Red, B1=Green, B2 = Blue
or A1=Black, A2=Red, B1=Blue, B2=Green
or A1=Red, A2=Black, B1=Green, B2=Blue
or A1=Red, A2=B;ack, B1=Blue, B2=Green
For me, the correct combination is when
Looking directly at motor shaft of the stepper
-VE (ie going IN or to lower position numbers) stepper moves CLOCKWISE
+vE (ie, going OUT or to higher position numbers) stepper moves ANTICLOCKWISE
You will need to try each of the four combinations in turn. The one that gives the smoothest motor movement and the correct direction is the one to use.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey Brownrb, i got it working :) you where correct, two wires where around the wrong way.
i am planing on making a step by step tutorial of how to do this specific build for members of my astronomy club with 0 experience in robots. i wanted to check with you if it was ok before making and posting it? it would be a video about what you need, how to asemble it, making sure the code is right ect. and i would credit you the entire way through, is that ok?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Alexander
It is ok for friends to help friends and help out their local club etc. I know of many clubs where members have grouped together and built focuser units for each of the club members as a group project. I really support this. The only restrictions are making units for commercial sale on the Internet (for obvious reasons). So what you are wanting to do is great and I look forward to seeing the result.
Regards
Robert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey Robert i finished the tutorial a while ago and had three working autofocusers. they all ended up not working how ever? i think i blew up the driver modula with incorrect polarisation so i orded new arduino and DRV8825 to re build it. used new everything except the stepper motor and followed exactly what i did last time and i just cant get a current to go into the stepper motor? i have tried a bunch of dfferent power options and with the multi meter in series there is just nothing following at all. is it possible the stepper motor is broken? i dont know what else to think
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you disconnect or reconnect the stepper when 12V is on, the DRV8825 chip will blow up.
If you reverse the 12V and GND to the DRV8825, the DRV8825 chip will blow up.
You can check the stepper motor by testing resistance of coil pairs. It should be around 3 to 4 ohms per coil. It is rare to blow up a stepper motor.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Check that you have 12V across VMOT and GND of the DRV8825. If not, fix it.
Once you have that, you need to connect the controller to the computer with USB cable and run the Windows app. Connect to controller and make sure COIL POWER ON is enabled.
You should then see current in the stepper motor coils.
If you do not - you either have
1. a wiring issue
2. a different stepper motor than we recommended.
If 2 is the case, you need to determine the coil pairs -
If the stepper you purchased was not the 17HS13-0404S-xxx then the wiring will be different.
There are 4 wires to the stepper motor. Normally the manufacturer posts a data sheet which describes the two coils and what color the leads are.
If the diagram from the manufacturer is not available, then use a multi-meter set to resistance to measure the coil resistance. Place one lead on black, connect the other lead to red, then green, then blue. Only one combination will have a low resistance value, all others high. So if Black-Red have the low resistance then that also means green=blue is the other pair.
Now the next bit might be a bit harder.
The outputs of the DRV8825 are A1, A2, B1 and B1. A1 is for one pair and B1 is for the other pair.
The possible number of combinations to wire are
A1=Black, A2=Red, B1=Green, B2 = Blue
or A1=Black, A2=Red, B1=Blue, B2=Green
or A1=Red, A2=Black, B1=Green, B2=Blue
or A1=Red, A2=Black, B1=Blue, B2=Green
For me, the correct combination is when looking directly at motor shaft of the stepper
-VE (ie going IN or to lower position numbers) stepper moves CLOCKWISE
+VE (ie, going OUT or to higher position numbers) stepper moves ANTICLOCKWISE
You will need to try each of the four combinations in turn. The one that gives the smoothest motor movement and the correct direction is the one to use.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ahhh ok got it. that fixed one of mine! thnk you. the volatage was wrong. i have just realised that i dont have the high current rated DRV8825 modules. i got some cheap ones from china. could that create a problem? they have to be high current rated correct? coz none of the ones i bought from gearbest work and i dont think they are high current rated. just trying to identify the problem coz im certain everything else is correct and working.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Alexander
I have bought a number of DRV8825's from a number of different sources. Many of them the cheapest. I thought they were all rated the same current. Have you adjusted the current on the small potentiometer on the drv8825 chip?
Hey Robert,
hmmm that concerning then. i have tried 7+ different DRV modules from different places with different nanos as well and jut cant get it to work. There is correct volatage across the power wires but when i put the multimeter in series with the stepper motor no mater how i adjust the current it always has a reading of 0 and the motor coil wont activate at all. i dont know why no power is getting across. is my schematic correct?
i install the corrent firm ware onto the nano. then wire it up with the multi meter is series.
then plug in the nano then the power.
no idea why it wont work with multiple DRV modules
To get current in the stepper motor - you have to run the windows focuser app, connect to the controller, then CHECK COIL POWER ON.
If coil power is off in the windows app then no current flows
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Alexander
It does not matter but recommended sequence is
ensure all power off
connect stepper to controller
turn on 12v
connect usb cable
run windows app and connect to controller
on shutdown just do the above in reverse order
Regards
robert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey Rob,
sorry for all the questions and thanks so much for your help.
so i have done all of that and it doesnt work. no current to motor. is there another possible explanation? im just not sure where i am going wrong. :\
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That looks fine for resistance.
What stepper motor is it?
You have loaded the firmware yes? You can connect to the focuser using the windows app yes?
Make sure the logfile is enabled. Send me the logfile after doing the tests below.
With the DRV8825 chip, the EN pin controls if current is going to the stepper motor. This pin is wired to D8 of the Nano chip.
So with everything connected, 12Vdc on and running the windows app connected to the focuser and the Coil Power checkbox ticked, select FULL steps. Then click set stepmode.
What is the voltage on D8 of the nano?
What is the voltage on the EN pin of the DRV8825? (see photo)
Click the 100+ button. What happens? Does the focuser position value change in the text window?
The close and send me the logfile.
I am using The nema 17 pg 5
yes firmware is uploaded to board. connects to the windows application.
i just measured the voltage across the enable and the circled part in the picture you sent me and i get 1.8V
and here is the log file. thank you so much.
.
.
.
.
.
.
Update: i swapped to the L298 and it works perfectly. with all the same wires and motor and arduino so it must be the DRV8825. i have tried 10 different ones. hopefully that helps narrow it down
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i think i may have broken all the DRV modules i had :\ i guess ill stick the the L298n for now. i think ill go to my local electronics club and see if someone can teach me. thank you so much for your help ill see how it goes and if i find out what the issue is ill let you know
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Alexander
The log file looked fine.
In answer to the below
You need to measure the voltage on D8 of the nano (between D8 and GND)
Then you need to measure the voltage on the EN pin (between EN and GND)
You should have measure 0V on each when connected, coil power was on and step mode set to full steps.
Troubleshooting can be problematic.
What I can tell you is that it easy to blow up a DRV8825.
I'm happy you got it going woth the L298.
Just one more question - did you use a PCB or a stripboard/breadboard?
Regards
Robert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi brownrb.
i have been using the first focuser i made for a few months now and it works awesome, thanks so much for doing this project. i have decided i want to make one of the smaller builds of this version because the box i currently use for the Arduino uno and LN298 is very large.
i have got myself a Arduino NANO and the DRV8825. i have wired it all up correctly as stated in the code file which i am using Focuserv258_DRV8825_M.ino and followed this skematic for the other wires.
Using the fast speed setting and full steps i set the current correctly but am still having a few odd issues. if i set the current position to 0 and max to 5000 then tell it to move 5000 it does but screams and vibrates at the end. if i go from 5000-0 it is smooth but then screams at the end as well. the main issue is that i cant get the small setp sizes to work, if i click the +500 or -500 buttons the motor moves in random directions and makes awful noises as well as not moving at all sometimes. i am not using lights in my build or a home position switch. im not sure if there is anything i need to change in the code or what could be causing this? any ideas, thanks alex
i have attached the log file of me moving the focuser in all directions with different step sizes
16/11/2017 5:10:35 PM: ResetLogFilePath(): =START=========================================================
16/11/2017 5:10:36 PM: Disconnect(): =START=========================================================
16/11/2017 5:10:36 PM: Disconnect: Serial Port is Open
16/11/2017 5:10:36 PM: Disconnect: Call GetIsMoving
16/11/2017 5:10:36 PM: GetIsMoving(): =START=========================================================
16/11/2017 5:10:36 PM: Calling CommandString(:01#)
16/11/2017 5:10:36 PM: CommandString(): =START=========================================================
16/11/2017 5:10:36 PM: CommandString: Serial Port is Open
16/11/2017 5:10:36 PM: CommandString: Try to write command: :01#
16/11/2017 5:10:36 PM: CommandString: Command was sent.
16/11/2017 5:10:36 PM: ReceiveString(): =START=========================================================
16/11/2017 5:10:36 PM: ReceiveString: Command retcmd = I
16/11/2017 5:10:36 PM: ReceiveString: Buffer recbuf = I00#
16/11/2017 5:10:36 PM: ReceiveString: Value retstr = 00
16/11/2017 5:10:36 PM: ReceiveString raw response for Ismoving is I00#
16/11/2017 5:10:36 PM: ReceiveString(): =END===========================================================
16/11/2017 5:10:36 PM: CommandString(): =END===========================================================
16/11/2017 5:10:36 PM: Back from CommandString
16/11/2017 5:10:36 PM: GetIsMoving: Success: ismoving status = 0
16/11/2017 5:10:36 PM: GetIsMoving(): =END===========================================================
16/11/2017 5:10:36 PM: Disconnect: Back from GetIsMoving
16/11/2017 5:10:36 PM: Disconnect: ismoving = 0
16/11/2017 5:10:36 PM: Disconnect: Call GetIsMoving
16/11/2017 5:10:36 PM: GetIsMoving(): =START=========================================================
16/11/2017 5:10:36 PM: Calling CommandString(:01#)
16/11/2017 5:10:36 PM: CommandString(): =START=========================================================
16/11/2017 5:10:36 PM: CommandString: Serial Port is Open
16/11/2017 5:10:36 PM: CommandString: Try to write command: :01#
16/11/2017 5:10:36 PM: CommandString: Command was sent.
16/11/2017 5:10:36 PM: ReceiveString(): =START=========================================================
16/11/2017 5:10:36 PM: ReceiveString: Command retcmd = I
16/11/2017 5:10:36 PM: ReceiveString: Buffer recbuf = I00#
16/11/2017 5:10:36 PM: ReceiveString: Value retstr = 00
16/11/2017 5:10:36 PM: ReceiveString raw response for Ismoving is I00#
16/11/2017 5:10:36 PM: ReceiveString(): =END===========================================================
16/11/2017 5:10:36 PM: CommandString(): =END===========================================================
16/11/2017 5:10:36 PM: Back from CommandString
16/11/2017 5:10:36 PM: GetIsMoving: Success: ismoving status = 0
16/11/2017 5:10:36 PM: GetIsMoving(): =END===========================================================
16/11/2017 5:10:36 PM: Disconnect: Back from GetIsMoving
16/11/2017 5:10:36 PM: Disconnect: ismoving = 0
16/11/2017 5:10:36 PM: disableall(): =START=========================================================
16/11/2017 5:10:36 PM: disableall(): =END===========================================================
16/11/2017 5:10:36 PM: DisconnectBtn_Click: Disconnecting
16/11/2017 5:10:36 PM: Disconnect(): =END===========================================================
16/11/2017 5:10:36 PM: FormClosing: Start
16/11/2017 5:10:36 PM: FormClosing: Serial port not connected
16/11/2017 5:10:36 PM: FormClosing: Save application settings
16/11/2017 5:10:36 PM: FormClosing: Stop timers
16/11/2017 5:10:36 PM: FormClosing: Finish
Last edit: alexander obradovic 2017-11-16
Hi
It is either stepper current or incorrect stepper wiring
Note1: Adjusting the Stepper Motor by Current
The best way to do this is using a multi-meter.
1. Ensure power is OFF
2. Connect a multi-meter in series with one coil of the stepper motor
3. Set the multi-meter to read current (1A)
4. The NEMA 17 recommended motor uses 400mA. We will use a setting of 350mA, so we need to set the current flowing through one coil to 0.7 * 350mA or 245mA
5. Connect the stepper motor to the controller with the multi-meter in series with one coil
6. Connect the controller to the computer using a USB cable
7. Turn on the external 12V for the stepper
8. Run the windows application for myFocuserPro2, and set the Coil Power to ON
9. With a small screwdriver, slowly turn the pot on the driver board till the current reads 245mA on the multi-meter
10. Disconnect from the controller and exit the application
11. Turn off the 12V external supply for the stepper motor
12. Unplug the USB cable connecting the controller to the computer
13. Remove the multi-meter and reconnect the coil wire as per the original wiring
Note2: Adjusting the Stepper Motor manually
It is best to use a ceramic or plastic screwdriver when adjusting the pot. I would suggest a plastic knitting needle which has the end filed down to look like a screwdriver.
1. With the controller connected via USB, and 12V power to the driver board, set the focuser position to 0 and the Motor Speed to SLOW
2. Enter a focuser position of 5000 and click the Goto button
3. Wind the pot all the way anticlockwise until the motor stops moving
4. Now very slowly turn the pot clockwise until you see the motor start to turn. If the maxSteps is reached, just reset the focuser position to 0 and then type in 5000 for the position and click Goto again
5. Slowly turning the pot, when you see the stepper start to move ok without jerking, then slowly turn no more than 1/8th clockwise from that point
6. It should now be close enough
7. If you go too far then there will be too much current and the motor will run hot. You should use no more than 12V external power
On some driver boards clockwise might be anticlockwise. Once set, then switch to 1/4 stepping and repeat the 0 then 5000 Goto. The motor should run smoothly without missing steps (a missed step will be a sudden jerk which you will be able to feel or hear). If there is any of this, you might need to ever so slightly turn it a little more. Be careful as a little turn can make significant changes in current.
===========================================================
2. After the current is set, the next step will be to ensure you have the correct stepper wires connected.
This last step will involve quite a bit of different configurations. Each time, must turn power off, then change wires, then power on, then test, then power off
For the recommended Stepper Motor, on the layout board
PG5/27-BLACK - RS232-Pin4 goes to A2 of the DRV8825
PG5/27-GREEN - RS232-Pin3 goes to A1
PG5/27-BLUE - RS232-Pin1 goes to B1
PG5/27-RED - RS232-Pin2 goes to B2
for standard NEMA
BLACK - RS232-Pin4 goes to A2 of the DRV8825
RED - RS232-Pin3 goes to A1
BLUE - RS232-Pin1 goes to B1
GREEN - RS232-Pin2 goes to B2
I have a RED/BLACK/GREEN/BLUE Wire Stepper. How do I connect it?
Now if the stepper you purchased was not the 17HS13-0404S-xxx then the wiring will be different.
There are 4 wires to the stepper motor. Normally the manufacturer posts a data sheet which describes the two coils and what color the leads are.
In general if this is missing then one uses a multimeter set to resistance to measure the coil resistance.
So in your case with one lead on black, connect the other lead to red, then green, then blue. Only one combination will have a low resistance value, all others high.
So if Black-Red have the low resistance then that also means green=blue is the the other pair.
Now the next bit might be a bit harder.
Lets assume the outputs of the DRV are A1, A2, B1 and B1. A1 is for one pair and B1 is for the other pair.
So the possible number of combinations to wire are
A1=Black, A2=Red, B1=Green, B2 = Blue
or A1=Black, A2=Red, B1=Blue, B2=Green
or A1=Red, A2=Black, B1=Green, B2=Blue
or A1=Red, A2=B;ack, B1=Blue, B2=Green
For me, the correct combination is when
Looking directly at motor shaft of the stepper
-VE (ie going IN or to lower position numbers) stepper moves CLOCKWISE
+vE (ie, going OUT or to higher position numbers) stepper moves ANTICLOCKWISE
You will need to try each of the four combinations in turn. The one that gives the smoothest motor movement and the correct direction is the one to use.
Hey Brownrb, i got it working :) you where correct, two wires where around the wrong way.
i am planing on making a step by step tutorial of how to do this specific build for members of my astronomy club with 0 experience in robots. i wanted to check with you if it was ok before making and posting it? it would be a video about what you need, how to asemble it, making sure the code is right ect. and i would credit you the entire way through, is that ok?
Hi Alexander
It is ok for friends to help friends and help out their local club etc. I know of many clubs where members have grouped together and built focuser units for each of the club members as a group project. I really support this. The only restrictions are making units for commercial sale on the Internet (for obvious reasons). So what you are wanting to do is great and I look forward to seeing the result.
Regards
Robert
Awesome thank you! ill post a link here when it is done :)
Hey Robert i finished the tutorial a while ago and had three working autofocusers. they all ended up not working how ever? i think i blew up the driver modula with incorrect polarisation so i orded new arduino and DRV8825 to re build it. used new everything except the stepper motor and followed exactly what i did last time and i just cant get a current to go into the stepper motor? i have tried a bunch of dfferent power options and with the multi meter in series there is just nothing following at all. is it possible the stepper motor is broken? i dont know what else to think
If you disconnect or reconnect the stepper when 12V is on, the DRV8825 chip will blow up.
If you reverse the 12V and GND to the DRV8825, the DRV8825 chip will blow up.
You can check the stepper motor by testing resistance of coil pairs. It should be around 3 to 4 ohms per coil. It is rare to blow up a stepper motor.
Check that you have 12V across VMOT and GND of the DRV8825. If not, fix it.
Once you have that, you need to connect the controller to the computer with USB cable and run the Windows app. Connect to controller and make sure COIL POWER ON is enabled.
You should then see current in the stepper motor coils.
If you do not - you either have
1. a wiring issue
2. a different stepper motor than we recommended.
if 1 see https://sourceforge.net/projects/arduinoascomfocuserpro2diy/files/Documentation/Stepper%20Wiring%20and%20DRV8825.txt/download and use the meter to trace the wiring
If 2 is the case, you need to determine the coil pairs -
If the stepper you purchased was not the 17HS13-0404S-xxx then the wiring will be different.
There are 4 wires to the stepper motor. Normally the manufacturer posts a data sheet which describes the two coils and what color the leads are.
If the diagram from the manufacturer is not available, then use a multi-meter set to resistance to measure the coil resistance. Place one lead on black, connect the other lead to red, then green, then blue. Only one combination will have a low resistance value, all others high. So if Black-Red have the low resistance then that also means green=blue is the other pair.
Now the next bit might be a bit harder.
The outputs of the DRV8825 are A1, A2, B1 and B1. A1 is for one pair and B1 is for the other pair.
The possible number of combinations to wire are
A1=Black, A2=Red, B1=Green, B2 = Blue
or A1=Black, A2=Red, B1=Blue, B2=Green
or A1=Red, A2=Black, B1=Green, B2=Blue
or A1=Red, A2=Black, B1=Blue, B2=Green
For me, the correct combination is when looking directly at motor shaft of the stepper
-VE (ie going IN or to lower position numbers) stepper moves CLOCKWISE
+VE (ie, going OUT or to higher position numbers) stepper moves ANTICLOCKWISE
You will need to try each of the four combinations in turn. The one that gives the smoothest motor movement and the correct direction is the one to use.
ahhh ok got it. that fixed one of mine! thnk you. the volatage was wrong. i have just realised that i dont have the high current rated DRV8825 modules. i got some cheap ones from china. could that create a problem? they have to be high current rated correct? coz none of the ones i bought from gearbest work and i dont think they are high current rated. just trying to identify the problem coz im certain everything else is correct and working.
Hi Alexander
I have bought a number of DRV8825's from a number of different sources. Many of them the cheapest. I thought they were all rated the same current. Have you adjusted the current on the small potentiometer on the drv8825 chip?
Regards
Robert
Last edit: brownrb 2018-01-09
Hey Robert,
hmmm that concerning then. i have tried 7+ different DRV modules from different places with different nanos as well and jut cant get it to work. There is correct volatage across the power wires but when i put the multimeter in series with the stepper motor no mater how i adjust the current it always has a reading of 0 and the motor coil wont activate at all. i dont know why no power is getting across. is my schematic correct?
i install the corrent firm ware onto the nano. then wire it up with the multi meter is series.
then plug in the nano then the power.
no idea why it wont work with multiple DRV modules
To get current in the stepper motor - you have to run the windows focuser app, connect to the controller, then CHECK COIL POWER ON.
If coil power is off in the windows app then no current flows
should i connect to windows app before plugging the power in?
Hi Alexander
It does not matter but recommended sequence is
ensure all power off
connect stepper to controller
turn on 12v
connect usb cable
run windows app and connect to controller
on shutdown just do the above in reverse order
Regards
robert
Hey Rob,
sorry for all the questions and thanks so much for your help.
so i have done all of that and it doesnt work. no current to motor. is there another possible explanation? im just not sure where i am going wrong. :\
i just tested the resistance in the stepper motor. i am getting 27 ohms per coil
That looks fine for resistance.
What stepper motor is it?
You have loaded the firmware yes? You can connect to the focuser using the windows app yes?
Make sure the logfile is enabled. Send me the logfile after doing the tests below.
With the DRV8825 chip, the EN pin controls if current is going to the stepper motor. This pin is wired to D8 of the Nano chip.
So with everything connected, 12Vdc on and running the windows app connected to the focuser and the Coil Power checkbox ticked, select FULL steps. Then click set stepmode.
What is the voltage on D8 of the nano?
What is the voltage on the EN pin of the DRV8825? (see photo)
Click the 100+ button. What happens? Does the focuser position value change in the text window?
The close and send me the logfile.
I am using The nema 17 pg 5
yes firmware is uploaded to board. connects to the windows application.
i just measured the voltage across the enable and the circled part in the picture you sent me and i get 1.8V
and here is the log file. thank you so much.
.
.
.
.
.
.
10/01/2018 4:28:51 PM: Load(): =START=========================================================
10/01/2018 4:28:52 PM: App version: myFocuserPro2 ©RB Brown 2014-2016: 2.3.7.9
10/01/2018 4:28:52 PM: setmytooltips(): =START=========================================================
10/01/2018 4:28:52 PM: setmytooltips(): =END===========================================================
10/01/2018 4:28:52 PM: Load: Adding comports to list
10/01/2018 4:28:52 PM: Load: Setting Comport speed listbox
10/01/2018 4:28:52 PM: Load: Setting Menu bar defaults
10/01/2018 4:28:52 PM: Load: Setting custom or default colors
10/01/2018 4:28:52 PM: SetCustomColors(): =START=========================================================
10/01/2018 4:28:52 PM: SetCustomColors(): Set default colors
10/01/2018 4:28:52 PM: SetCustomColors(): =END===========================================================
10/01/2018 4:28:52 PM: Load: Initialize focuser settings
10/01/2018 4:28:52 PM: TempOffsetTxtBox: = 0
10/01/2018 4:28:52 PM: Before conversion TempOffsetVal: = 0
10/01/2018 4:28:52 PM: After conversion TempOffsetVal: = 0
10/01/2018 4:28:52 PM: Before Rounding TempOffsetVal: = 0
10/01/2018 4:28:52 PM: TempOffsetVal range checked: = 0
10/01/2018 4:28:52 PM: Load: Setting stepmode listbox
10/01/2018 4:28:52 PM: Load: Setup default refresh timer settings
10/01/2018 4:28:52 PM: Load: Initialize stats
10/01/2018 4:28:52 PM: Load: Set menu defaults
10/01/2018 4:28:52 PM: disableall(): =START=========================================================
10/01/2018 4:28:52 PM: disableall(): =END===========================================================
10/01/2018 4:28:52 PM: focuserLoad(): =END===========================================================
10/01/2018 4:28:54 PM: Connect(): =START=========================================================
10/01/2018 4:28:54 PM: ======CONNECT START TIME
10/01/2018 4:28:54 PM: Windows Application Version Number: myFocuserPro2 ©RB Brown 2014-2016: 2.3.7.9
10/01/2018 4:28:54 PM: Connect: Com Port Selected = COM4
10/01/2018 4:28:54 PM: Connect: comportbaudrate: 9600
10/01/2018 4:28:54 PM: Connect: Setting readtimeout to 5000
10/01/2018 4:28:54 PM: Connect: Attempting to Open COMPORT COM4
10/01/2018 4:28:54 PM: Connect: Check if serial port opened
10/01/2018 4:28:54 PM: Connect: Comport=isOpen
10/01/2018 4:28:54 PM: Connect: Serial port COM4 opened.
10/01/2018 4:28:56 PM: Connect: Test to see if controller connected
10/01/2018 4:28:56 PM: Calling CommandString(:02#)
10/01/2018 4:28:56 PM: CommandString(): =START=========================================================
10/01/2018 4:28:56 PM: CommandString: Serial Port is Open
10/01/2018 4:28:56 PM: CommandString: Try to write command: :02#
10/01/2018 4:28:56 PM: CommandString: Command was sent.
10/01/2018 4:28:56 PM: ReceiveString(): =START=========================================================
10/01/2018 4:28:56 PM: ReceiveString: Command retcmd = E
10/01/2018 4:28:56 PM: ReceiveString: Buffer recbuf = EOK#
10/01/2018 4:28:56 PM: ReceiveString: Value retstr = OK
10/01/2018 4:28:56 PM: ReceiveString raw response for connected? was: EOK#
10/01/2018 4:28:56 PM: ReceiveString(): =END===========================================================
10/01/2018 4:28:56 PM: CommandString(): =END===========================================================
10/01/2018 4:28:56 PM: Back from CommandString
10/01/2018 4:28:56 PM: Connect: ConnectedState=true
10/01/2018 4:28:56 PM: Connect: CONNECTED get parameters from controller
10/01/2018 4:28:56 PM: Connect: Get MaxSteps
10/01/2018 4:28:56 PM: Calling CommandString(:08#)
10/01/2018 4:28:56 PM: CommandString(): =START=========================================================
10/01/2018 4:28:56 PM: CommandString: Serial Port is Open
10/01/2018 4:28:56 PM: CommandString: Try to write command: :08#
10/01/2018 4:28:56 PM: CommandString: Command was sent.
10/01/2018 4:28:56 PM: ReceiveString(): =START=========================================================
10/01/2018 4:28:56 PM: ReceiveString: Command retcmd = M
10/01/2018 4:28:56 PM: ReceiveString: Buffer recbuf = M10000#
10/01/2018 4:28:56 PM: ReceiveString: Value retstr = 10000
10/01/2018 4:28:56 PM: ReceiveString raw response for GetMaxSteps was: M10000#
10/01/2018 4:28:56 PM: ReceiveString(): =END===========================================================
10/01/2018 4:28:56 PM: CommandString(): =END===========================================================
10/01/2018 4:28:56 PM: Back from CommandString
10/01/2018 4:28:56 PM: Connect: Get MaxIncrement
10/01/2018 4:28:56 PM: Calling CommandString(:10#)
10/01/2018 4:28:56 PM: CommandString(): =START=========================================================
10/01/2018 4:28:56 PM: CommandString: Serial Port is Open
10/01/2018 4:28:56 PM: CommandString: Try to write command: :10#
10/01/2018 4:28:56 PM: CommandString: Command was sent.
10/01/2018 4:28:56 PM: ReceiveString(): =START=========================================================
10/01/2018 4:28:56 PM: ReceiveString: Command retcmd = Y
10/01/2018 4:28:56 PM: ReceiveString: Buffer recbuf = Y1024#
10/01/2018 4:28:56 PM: ReceiveString: Value retstr = 1024
10/01/2018 4:28:56 PM: ReceiveString raw response for getMaxIncrement was: Y1024#
10/01/2018 4:28:56 PM: ReceiveString(): =END===========================================================
10/01/2018 4:28:56 PM: CommandString(): =END===========================================================
10/01/2018 4:28:56 PM: Back from CommandString
10/01/2018 4:28:56 PM: Connect: Get Position
10/01/2018 4:28:56 PM: Calling CommandString(:00#)
10/01/2018 4:28:56 PM: CommandString(): =START=========================================================
10/01/2018 4:28:56 PM: CommandString: Serial Port is Open
10/01/2018 4:28:56 PM: CommandString: Try to write command: :00#
10/01/2018 4:28:56 PM: CommandString: Command was sent.
10/01/2018 4:28:56 PM: ReceiveString(): =START=========================================================
10/01/2018 4:28:56 PM: ReceiveString: Command retcmd = P
10/01/2018 4:28:56 PM: ReceiveString: Buffer recbuf = P1000#
10/01/2018 4:28:56 PM: ReceiveString: Value retstr = 1000
10/01/2018 4:28:56 PM: ReceiveString raw response for Getfocuserpos was: P1000#
10/01/2018 4:28:56 PM: ReceiveString(): =END===========================================================
10/01/2018 4:28:56 PM: CommandString(): =END===========================================================
10/01/2018 4:28:56 PM: Back from CommandString
10/01/2018 4:28:56 PM: Connect: Get CoilPower
10/01/2018 4:28:56 PM: Calling CommandString(:11#)
10/01/2018 4:28:56 PM: CommandString(): =START=========================================================
10/01/2018 4:28:56 PM: CommandString: Serial Port is Open
10/01/2018 4:28:56 PM: CommandString: Try to write command: :11#
10/01/2018 4:28:56 PM: CommandString: Command was sent.
10/01/2018 4:28:56 PM: ReceiveString(): =START=========================================================
10/01/2018 4:28:56 PM: ReceiveString: Command retcmd = O
10/01/2018 4:28:56 PM: ReceiveString: Buffer recbuf = O01#
10/01/2018 4:28:56 PM: ReceiveString: Value retstr = 01
10/01/2018 4:28:56 PM: ReceiveString raw response for getcoilpower was: O01#
10/01/2018 4:28:56 PM: ReceiveString(): =END===========================================================
10/01/2018 4:28:56 PM: CommandString(): =END===========================================================
10/01/2018 4:28:56 PM: Back from CommandString
10/01/2018 4:28:56 PM: Connect: Get ReverseDirection
10/01/2018 4:28:56 PM: Calling CommandString(:13#)
10/01/2018 4:28:56 PM: CommandString(): =START=========================================================
10/01/2018 4:28:57 PM: CommandString: Serial Port is Open
10/01/2018 4:28:57 PM: CommandString: Try to write command: :13#
10/01/2018 4:28:57 PM: CommandString: Command was sent.
10/01/2018 4:28:57 PM: ReceiveString(): =START=========================================================
10/01/2018 4:28:57 PM: ReceiveString: Command retcmd = R
10/01/2018 4:28:57 PM: ReceiveString: Buffer recbuf = R00#
10/01/2018 4:28:57 PM: ReceiveString: Value retstr = 00
10/01/2018 4:28:57 PM: ReceiveString raw response for getreversedirection was: R00#
10/01/2018 4:28:57 PM: ReceiveString raw response for getreversedirection was: R00#
10/01/2018 4:28:57 PM: ReceiveString(): =END===========================================================
10/01/2018 4:28:57 PM: CommandString(): =END===========================================================
10/01/2018 4:28:57 PM: Back from CommandString
10/01/2018 4:28:57 PM: Connect: Get StepMode
10/01/2018 4:28:57 PM: Calling CommandString(:29#)
10/01/2018 4:28:57 PM: CommandString(): =START=========================================================
10/01/2018 4:28:57 PM: CommandString: Serial Port is Open
10/01/2018 4:28:57 PM: CommandString: Try to write command: :29#
10/01/2018 4:28:57 PM: CommandString: Command was sent.
10/01/2018 4:28:57 PM: ReceiveString(): =START=========================================================
10/01/2018 4:28:57 PM: ReceiveString: Command retcmd = S
10/01/2018 4:28:57 PM: ReceiveString: Buffer recbuf = S1#
10/01/2018 4:28:57 PM: ReceiveString: Value retstr = 1
10/01/2018 4:28:57 PM: ReceiveString raw response for getstepmode was: S1#
10/01/2018 4:28:57 PM: CommandString: stepmode:1
10/01/2018 4:28:57 PM: ReceiveString(): =END===========================================================
10/01/2018 4:28:57 PM: CommandString(): =END===========================================================
10/01/2018 4:28:57 PM: Back from CommandString
10/01/2018 4:28:57 PM: Connect: Send C of F
10/01/2018 4:28:57 PM: Calling CommandString(:17#)
10/01/2018 4:28:57 PM: CommandString(): =START=========================================================
10/01/2018 4:28:57 PM: CommandString: Serial Port is Open
10/01/2018 4:28:57 PM: CommandString: Try to write command: :17#
10/01/2018 4:28:57 PM: CommandString: Command was sent.
10/01/2018 4:28:57 PM: CommandString(): =END===========================================================
10/01/2018 4:28:57 PM: Back from CommandString
10/01/2018 4:28:57 PM: Connect: Send LCD Enable/Disable
10/01/2018 4:28:57 PM: Calling CommandString(:360#)
10/01/2018 4:28:57 PM: CommandString(): =START=========================================================
10/01/2018 4:28:57 PM: CommandString: Serial Port is Open
10/01/2018 4:28:57 PM: CommandString: Try to write command: :360#
10/01/2018 4:28:57 PM: CommandString: Command was sent.
10/01/2018 4:28:57 PM: CommandString(): =END===========================================================
10/01/2018 4:28:57 PM: Back from CommandString
10/01/2018 4:28:57 PM: Connect: Get Firemware
10/01/2018 4:28:57 PM: Calling CommandString(:04#)
10/01/2018 4:28:57 PM: CommandString(): =START=========================================================
10/01/2018 4:28:57 PM: CommandString: Serial Port is Open
10/01/2018 4:28:57 PM: CommandString: Try to write command: :04#
10/01/2018 4:28:57 PM: CommandString: Command was sent.
10/01/2018 4:28:57 PM: ReceiveString(): =START=========================================================
10/01/2018 4:28:57 PM: ReceiveString: Command retcmd = F
10/01/2018 4:28:57 PM: ReceiveString: Buffer recbuf = FDRV8825_M
259#
10/01/2018 4:28:57 PM: ReceiveString: Value retstr = DRV8825_M
259
10/01/2018 4:28:57 PM: ReceiveString raw response for getfirmware was: FDRV8825_M
259#
10/01/2018 4:28:57 PM: Controller version: DRV8825_M
259
10/01/2018 4:28:57 PM: ReceiveString(): =END===========================================================
10/01/2018 4:28:57 PM: CommandString(): =END===========================================================
10/01/2018 4:28:57 PM: Back from CommandString
10/01/2018 4:28:57 PM: Connect: Get LCDPageDisplayTime
10/01/2018 4:28:57 PM: Calling CommandString(:34#)
10/01/2018 4:28:57 PM: CommandString(): =START=========================================================
10/01/2018 4:28:57 PM: CommandString: Serial Port is Open
10/01/2018 4:28:57 PM: CommandString: Try to write command: :34#
10/01/2018 4:28:57 PM: CommandString: Command was sent.
10/01/2018 4:28:57 PM: ReceiveString(): =START=========================================================
10/01/2018 4:28:57 PM: ReceiveString: Command retcmd = X
10/01/2018 4:28:57 PM: ReceiveString: Buffer recbuf = X2000#
10/01/2018 4:28:57 PM: ReceiveString: Value retstr = 2000
10/01/2018 4:28:57 PM: ReceiveString raw response for updatelcdpagetime: X2000#
10/01/2018 4:28:57 PM: ReceiveString(): =END===========================================================
10/01/2018 4:28:57 PM: CommandString(): =END===========================================================
10/01/2018 4:28:57 PM: Back from CommandString
10/01/2018 4:28:57 PM: Connect: Get TempComp Value
10/01/2018 4:28:57 PM: Calling CommandString(:26#)
10/01/2018 4:28:57 PM: CommandString(): =START=========================================================
10/01/2018 4:28:57 PM: CommandString: Serial Port is Open
10/01/2018 4:28:57 PM: CommandString: Try to write command: :26#
10/01/2018 4:28:57 PM: CommandString: Command was sent.
10/01/2018 4:28:58 PM: ReceiveString(): =START=========================================================
10/01/2018 4:28:58 PM: ReceiveString: Command retcmd = B
10/01/2018 4:28:58 PM: ReceiveString: Buffer recbuf = B0#
10/01/2018 4:28:58 PM: ReceiveString: Value retstr = 0
10/01/2018 4:28:58 PM: ReceiveString raw response for get tempcomp value was: B0#
10/01/2018 4:28:58 PM: ReceiveString(): =END===========================================================
10/01/2018 4:28:58 PM: CommandString(): =END===========================================================
10/01/2018 4:28:58 PM: Back from CommandString
10/01/2018 4:28:58 PM: Connect: Get TempPrecision
10/01/2018 4:28:58 PM: Calling CommandString(:21#)
10/01/2018 4:28:58 PM: CommandString(): =START=========================================================
10/01/2018 4:28:58 PM: CommandString: Serial Port is Open
10/01/2018 4:28:58 PM: CommandString: Try to write command: :21#
10/01/2018 4:28:58 PM: CommandString: Command was sent.
10/01/2018 4:28:58 PM: ReceiveString(): =START=========================================================
10/01/2018 4:28:58 PM: ReceiveString: Command retcmd = Q
10/01/2018 4:28:58 PM: ReceiveString: Buffer recbuf = Q9#
10/01/2018 4:28:58 PM: ReceiveString: Value retstr = 9
10/01/2018 4:28:58 PM: ReceiveString raw response for get tempresolution: Q9#
10/01/2018 4:28:58 PM: ReceiveString(): =END===========================================================
10/01/2018 4:28:58 PM: CommandString(): =END===========================================================
10/01/2018 4:28:58 PM: Back from CommandString
10/01/2018 4:28:58 PM: Connect: Get Temperature
10/01/2018 4:28:58 PM: Calling CommandString(:06#)
10/01/2018 4:28:58 PM: CommandString(): =START=========================================================
10/01/2018 4:28:58 PM: CommandString: Serial Port is Open
10/01/2018 4:28:58 PM: CommandString: Try to write command: :06#
10/01/2018 4:28:58 PM: CommandString: Command was sent.
10/01/2018 4:28:58 PM: ReceiveString(): =START=========================================================
10/01/2018 4:28:58 PM: ReceiveString: Command retcmd = Z
10/01/2018 4:28:58 PM: ReceiveString: Buffer recbuf = Z20.000#
10/01/2018 4:28:58 PM: ReceiveString: Value retstr = 20.000
10/01/2018 4:28:58 PM: ReceiveString last temp reading was 0
10/01/2018 4:28:58 PM: ReceiveString raw response for Temperature was: Z20.000#
10/01/2018 4:28:58 PM: ReceiveString new temp reading was 20
10/01/2018 4:28:58 PM: ReceiveString Before Rounding TempOffsetVal: = 0
10/01/2018 4:28:58 PM: ReceiveString After Rounding TempOffsetVal: = 0
10/01/2018 4:28:58 PM: ReceiveString tempval adjusted:20
10/01/2018 4:28:58 PM: Change in temperature from previous reading = 20
10/01/2018 4:28:58 PM: ReceiveString(): =END===========================================================
10/01/2018 4:28:58 PM: CommandString(): =END===========================================================
10/01/2018 4:28:58 PM: Back from CommandString
10/01/2018 4:28:58 PM: Calling CommandString(:62#)
10/01/2018 4:28:58 PM: CommandString(): =START=========================================================
10/01/2018 4:28:58 PM: CommandString: Serial Port is Open
10/01/2018 4:28:58 PM: CommandString: Try to write command: :62#
10/01/2018 4:28:58 PM: CommandString: Command was sent.
10/01/2018 4:28:58 PM: ReceiveString(): =START=========================================================
10/01/2018 4:28:58 PM: ReceiveString: Command retcmd = L
10/01/2018 4:28:58 PM: ReceiveString: Buffer recbuf = L01#
10/01/2018 4:28:58 PM: ReceiveString: Value retstr = 01
10/01/2018 4:28:58 PM: ReceiveString raw response for get DisplayLCDposWhenMoving status was: L01#
10/01/2018 4:28:58 PM: ReceiveString(): =END===========================================================
10/01/2018 4:28:58 PM: CommandString(): =END===========================================================
10/01/2018 4:28:58 PM: Back from CommandString
10/01/2018 4:28:58 PM: getLCDUpdateOnMoveStatus: 62 false
10/01/2018 4:28:58 PM: Connect: Set MotorSpeed
10/01/2018 4:28:58 PM: Calling CommandString(:150#)
10/01/2018 4:28:58 PM: CommandString(): =START=========================================================
10/01/2018 4:28:58 PM: CommandString: Serial Port is Open
10/01/2018 4:28:58 PM: CommandString: Try to write command: :150#
10/01/2018 4:28:58 PM: CommandString: Command was sent.
10/01/2018 4:28:58 PM: CommandString(): =END===========================================================
10/01/2018 4:28:58 PM: Back from CommandString
10/01/2018 4:28:58 PM: Connect: Get StepSize Status
10/01/2018 4:28:58 PM: Calling CommandString(:32#)
10/01/2018 4:28:58 PM: CommandString(): =START=========================================================
10/01/2018 4:28:58 PM: CommandString: Serial Port is Open
10/01/2018 4:28:58 PM: CommandString: Try to write command: :32#
10/01/2018 4:28:58 PM: CommandString: Command was sent.
10/01/2018 4:28:58 PM: ReceiveString(): =START=========================================================
10/01/2018 4:28:58 PM: ReceiveString: Command retcmd = U
10/01/2018 4:28:58 PM: ReceiveString: Buffer recbuf = U0#
10/01/2018 4:28:58 PM: ReceiveString: Value retstr = 0
10/01/2018 4:28:58 PM: ReceiveString raw response to is stepsize enabled? was: U0#
10/01/2018 4:28:58 PM: ReceiveString(): =END===========================================================
10/01/2018 4:28:58 PM: CommandString(): =END===========================================================
10/01/2018 4:28:58 PM: Back from CommandString
10/01/2018 4:28:58 PM: Connect: Get StepSize
10/01/2018 4:28:58 PM: Calling CommandString(:33#)
10/01/2018 4:28:58 PM: CommandString(): =START=========================================================
10/01/2018 4:28:58 PM: CommandString: Serial Port is Open
10/01/2018 4:28:58 PM: CommandString: Try to write command: :33#
10/01/2018 4:28:58 PM: CommandString: Command was sent.
10/01/2018 4:28:58 PM: ReceiveString(): =START=========================================================
10/01/2018 4:28:58 PM: ReceiveString: Command retcmd = T
10/01/2018 4:28:58 PM: ReceiveString: Buffer recbuf = T50.00#
10/01/2018 4:28:58 PM: ReceiveString: Value retstr = 50.00
10/01/2018 4:28:58 PM: ReceiveString raw response for getstepsize was: T50.00#
10/01/2018 4:28:58 PM: ReceiveString(): =END===========================================================
10/01/2018 4:28:58 PM: CommandString(): =END===========================================================
10/01/2018 4:28:58 PM: Back from CommandString
10/01/2018 4:28:58 PM: Connect: Send MotorSpeedChange Enable
10/01/2018 4:28:58 PM: Calling CommandString(:460#)
10/01/2018 4:28:58 PM: CommandString(): =START=========================================================
10/01/2018 4:28:58 PM: CommandString: Serial Port is Open
10/01/2018 4:28:58 PM: CommandString: Try to write command: :460#
10/01/2018 4:28:58 PM: CommandString: Command was sent.
10/01/2018 4:28:58 PM: CommandString(): =END===========================================================
10/01/2018 4:28:58 PM: Back from CommandString
10/01/2018 4:28:58 PM: Connect: Get MotorSpeedChange Threshold value
10/01/2018 4:28:58 PM: Calling CommandString(:45#)
10/01/2018 4:28:58 PM: CommandString(): =START=========================================================
10/01/2018 4:28:58 PM: CommandString: Serial Port is Open
10/01/2018 4:28:58 PM: CommandString: Try to write command: :45#
10/01/2018 4:28:58 PM: CommandString: Command was sent.
10/01/2018 4:28:58 PM: ReceiveString(): =START=========================================================
10/01/2018 4:28:58 PM: ReceiveString: Command retcmd = G
10/01/2018 4:28:58 PM: ReceiveString: Buffer recbuf = G200#
10/01/2018 4:28:59 PM: ReceiveString: Value retstr = 200
10/01/2018 4:28:59 PM: ReceiveString raw response for get motorspeedthreshold value was: G200#
10/01/2018 4:28:59 PM: ReceiveString(): =END===========================================================
10/01/2018 4:28:59 PM: CommandString(): =END===========================================================
10/01/2018 4:28:59 PM: Back from CommandString
10/01/2018 4:28:59 PM: Connect: Get MotorSpeedChange Status
10/01/2018 4:28:59 PM: Calling CommandString(:47#)
10/01/2018 4:28:59 PM: CommandString(): =START=========================================================
10/01/2018 4:28:59 PM: CommandString: Serial Port is Open
10/01/2018 4:28:59 PM: CommandString: Try to write command: :47#
10/01/2018 4:28:59 PM: CommandString: Command was sent.
10/01/2018 4:28:59 PM: ReceiveString(): =START=========================================================
10/01/2018 4:28:59 PM: ReceiveString: Command retcmd = J
10/01/2018 4:28:59 PM: ReceiveString: Buffer recbuf = J0#
10/01/2018 4:28:59 PM: ReceiveString: Value retstr = 0
10/01/2018 4:28:59 PM: ReceiveString raw response for get motorspeedchange status? was: J0#
10/01/2018 4:28:59 PM: ReceiveString(): =END===========================================================
10/01/2018 4:28:59 PM: CommandString(): =END===========================================================
10/01/2018 4:28:59 PM: Back from CommandString
10/01/2018 4:28:59 PM: enableall(): =START=========================================================
10/01/2018 4:28:59 PM: enableall(): =END===========================================================
10/01/2018 4:28:59 PM: ======CONNECT END TIME
10/01/2018 4:28:59 PM: Connect(): =END===========================================================
10/01/2018 4:29:00 PM: Plus100(): =START=========================================================
10/01/2018 4:29:00 PM: movefocusercmd(): =START=========================================================
10/01/2018 4:29:00 PM: movefocusercmd: Serial Port is Open
10/01/2018 4:29:00 PM: movefocusercmd: ConnectedState is true
10/01/2018 4:29:00 PM: movefocusercmd: temperature compensation is disabled
10/01/2018 4:29:00 PM: movefocusercmd: Call GetIsMoving
10/01/2018 4:29:00 PM: GetIsMoving(): =START=========================================================
10/01/2018 4:29:00 PM: Calling CommandString(:01#)
10/01/2018 4:29:00 PM: CommandString(): =START=========================================================
10/01/2018 4:29:00 PM: CommandString: Serial Port is Open
10/01/2018 4:29:00 PM: CommandString: Try to write command: :01#
10/01/2018 4:29:00 PM: CommandString: Command was sent.
10/01/2018 4:29:00 PM: ReceiveString(): =START=========================================================
10/01/2018 4:29:00 PM: ReceiveString: Command retcmd = I
10/01/2018 4:29:00 PM: ReceiveString: Buffer recbuf = I00#
10/01/2018 4:29:00 PM: ReceiveString: Value retstr = 00
10/01/2018 4:29:00 PM: ReceiveString raw response for Ismoving is I00#
10/01/2018 4:29:00 PM: ReceiveString(): =END===========================================================
10/01/2018 4:29:00 PM: CommandString(): =END===========================================================
10/01/2018 4:29:00 PM: Back from CommandString
10/01/2018 4:29:00 PM: GetIsMoving: Success: ismoving status = 0
10/01/2018 4:29:00 PM: GetIsMoving(): =END===========================================================
10/01/2018 4:29:00 PM: movefocusercmd: Back from GetIsMoving
10/01/2018 4:29:00 PM: movefocusercmd: ismoving = 0
10/01/2018 4:29:00 PM: movefocusercmd: cs=true, ism=0, calling GetFocusPosition()
10/01/2018 4:29:00 PM: GetFocusPosition(): =START=========================================================
10/01/2018 4:29:00 PM: GetFocusPosition: Serial Port is Open
10/01/2018 4:29:00 PM: GetFocusPosition: ConnectedState is true
10/01/2018 4:29:00 PM: Calling CommandString(:00#)
10/01/2018 4:29:00 PM: CommandString(): =START=========================================================
10/01/2018 4:29:00 PM: CommandString: Serial Port is Open
10/01/2018 4:29:00 PM: CommandString: Try to write command: :00#
10/01/2018 4:29:00 PM: CommandString: Command was sent.
10/01/2018 4:29:00 PM: ReceiveString(): =START=========================================================
10/01/2018 4:29:00 PM: ReceiveString: Command retcmd = P
10/01/2018 4:29:00 PM: ReceiveString: Buffer recbuf = P1000#
10/01/2018 4:29:00 PM: ReceiveString: Value retstr = 1000
10/01/2018 4:29:00 PM: ReceiveString raw response for Getfocuserpos was: P1000#
10/01/2018 4:29:00 PM: ReceiveString(): =END===========================================================
10/01/2018 4:29:00 PM: CommandString(): =END===========================================================
10/01/2018 4:29:00 PM: Back from CommandString
10/01/2018 4:29:00 PM: GetFocusPosition(): =END===========================================================
10/01/2018 4:29:00 PM: movefocusercmd: back from GetFocusPosition()
10/01/2018 4:29:00 PM: Calling CommandString(:051100#)
10/01/2018 4:29:00 PM: CommandString(): =START=========================================================
10/01/2018 4:29:00 PM: CommandString: Serial Port is Open
10/01/2018 4:29:00 PM: CommandString: Try to write command: :051100#
10/01/2018 4:29:00 PM: CommandString: Command was sent.
10/01/2018 4:29:00 PM: CommandString(): =END===========================================================
10/01/2018 4:29:00 PM: Back from CommandString
10/01/2018 4:29:01 PM: movefocusercmd: calling waitonfocusermove()
10/01/2018 4:29:01 PM: waitonfocusermove(): =START=========================================================
10/01/2018 4:29:01 PM: waitonfocusermove: Call GetIsMoving
10/01/2018 4:29:01 PM: GetIsMoving(): =START=========================================================
10/01/2018 4:29:01 PM: Calling CommandString(:01#)
10/01/2018 4:29:01 PM: CommandString(): =START=========================================================
10/01/2018 4:29:01 PM: CommandString: Serial Port is Open
10/01/2018 4:29:01 PM: CommandString: Try to write command: :01#
10/01/2018 4:29:01 PM: CommandString: Command was sent.
10/01/2018 4:29:01 PM: ReceiveString(): =START=========================================================
10/01/2018 4:29:01 PM: ReceiveString: Command retcmd = I
10/01/2018 4:29:01 PM: ReceiveString: Buffer recbuf = I01#
10/01/2018 4:29:01 PM: ReceiveString: Value retstr = 01
10/01/2018 4:29:01 PM: ReceiveString raw response for Ismoving is I01#
10/01/2018 4:29:01 PM: ReceiveString(): =END===========================================================
10/01/2018 4:29:01 PM: CommandString(): =END===========================================================
10/01/2018 4:29:01 PM: Back from CommandString
10/01/2018 4:29:01 PM: GetIsMoving: Success: ismoving status = 1
10/01/2018 4:29:01 PM: GetIsMoving(): =END===========================================================
10/01/2018 4:29:01 PM: waitonfocusermove: Back from GetIsMoving
10/01/2018 4:29:01 PM: waitonfocusermove: ismoving = 1
10/01/2018 4:29:02 PM: GetIsMoving(): =START=========================================================
10/01/2018 4:29:02 PM: Calling CommandString(:01#)
10/01/2018 4:29:02 PM: CommandString(): =START=========================================================
10/01/2018 4:29:02 PM: CommandString: Serial Port is Open
10/01/2018 4:29:02 PM: CommandString: Try to write command: :01#
10/01/2018 4:29:02 PM: CommandString: Command was sent.
10/01/2018 4:29:02 PM: ReceiveString(): =START=========================================================
10/01/2018 4:29:02 PM: ReceiveString: Command retcmd = I
10/01/2018 4:29:02 PM: ReceiveString: Buffer recbuf = I00#
10/01/2018 4:29:02 PM: ReceiveString: Value retstr = 00
10/01/2018 4:29:02 PM: ReceiveString raw response for Ismoving is I00#
10/01/2018 4:29:02 PM: ReceiveString(): =END===========================================================
10/01/2018 4:29:02 PM: CommandString(): =END===========================================================
10/01/2018 4:29:02 PM: Back from CommandString
10/01/2018 4:29:02 PM: GetIsMoving: Success: ismoving status = 0
10/01/2018 4:29:02 PM: GetIsMoving(): =END===========================================================
10/01/2018 4:29:02 PM: GetFocusPosition(): =START=========================================================
10/01/2018 4:29:02 PM: GetFocusPosition: Serial Port is Open
10/01/2018 4:29:02 PM: GetFocusPosition: ConnectedState is true
10/01/2018 4:29:02 PM: Calling CommandString(:00#)
10/01/2018 4:29:02 PM: CommandString(): =START=========================================================
10/01/2018 4:29:02 PM: CommandString: Serial Port is Open
10/01/2018 4:29:02 PM: CommandString: Try to write command: :00#
10/01/2018 4:29:02 PM: CommandString: Command was sent.
10/01/2018 4:29:02 PM: ReceiveString(): =START=========================================================
10/01/2018 4:29:02 PM: ReceiveString: Command retcmd = P
10/01/2018 4:29:02 PM: ReceiveString: Buffer recbuf = P1100#
10/01/2018 4:29:02 PM: ReceiveString: Value retstr = 1100
10/01/2018 4:29:02 PM: ReceiveString raw response for Getfocuserpos was: P1100#
10/01/2018 4:29:02 PM: ReceiveString(): =END===========================================================
10/01/2018 4:29:02 PM: CommandString(): =END===========================================================
10/01/2018 4:29:02 PM: Back from CommandString
10/01/2018 4:29:02 PM: GetFocusPosition(): =END===========================================================
10/01/2018 4:29:02 PM: waitonfocusermove: Move and Get Position is a Success.
10/01/2018 4:29:02 PM: waitonfocusermove(): =END===========================================================
10/01/2018 4:29:02 PM: movefocusercmd: back from waitonfocusermove()
10/01/2018 4:29:02 PM: movefocusercmd(): =END===========================================================
10/01/2018 4:29:02 PM: Plus100(): =END===========================================================
10/01/2018 4:29:03 PM: Minus100(): =START=========================================================
10/01/2018 4:29:03 PM: movefocusercmd(): =START=========================================================
10/01/2018 4:29:03 PM: movefocusercmd: Serial Port is Open
10/01/2018 4:29:03 PM: movefocusercmd: ConnectedState is true
10/01/2018 4:29:03 PM: movefocusercmd: temperature compensation is disabled
10/01/2018 4:29:03 PM: movefocusercmd: Call GetIsMoving
10/01/2018 4:29:03 PM: GetIsMoving(): =START=========================================================
10/01/2018 4:29:03 PM: Calling CommandString(:01#)
10/01/2018 4:29:03 PM: CommandString(): =START=========================================================
10/01/2018 4:29:03 PM: CommandString: Serial Port is Open
10/01/2018 4:29:03 PM: CommandString: Try to write command: :01#
10/01/2018 4:29:03 PM: CommandString: Command was sent.
10/01/2018 4:29:03 PM: ReceiveString(): =START=========================================================
10/01/2018 4:29:03 PM: ReceiveString: Command retcmd = I
10/01/2018 4:29:03 PM: ReceiveString: Buffer recbuf = I00#
10/01/2018 4:29:03 PM: ReceiveString: Value retstr = 00
10/01/2018 4:29:03 PM: ReceiveString raw response for Ismoving is I00#
10/01/2018 4:29:03 PM: ReceiveString(): =END===========================================================
10/01/2018 4:29:03 PM: CommandString(): =END===========================================================
10/01/2018 4:29:03 PM: Back from CommandString
10/01/2018 4:29:03 PM: GetIsMoving: Success: ismoving status = 0
10/01/2018 4:29:03 PM: GetIsMoving(): =END===========================================================
10/01/2018 4:29:03 PM: movefocusercmd: Back from GetIsMoving
10/01/2018 4:29:03 PM: movefocusercmd: ismoving = 0
10/01/2018 4:29:03 PM: movefocusercmd: cs=true, ism=0, calling GetFocusPosition()
10/01/2018 4:29:03 PM: GetFocusPosition(): =START=========================================================
10/01/2018 4:29:03 PM: GetFocusPosition: Serial Port is Open
10/01/2018 4:29:03 PM: GetFocusPosition: ConnectedState is true
10/01/2018 4:29:03 PM: Calling CommandString(:00#)
10/01/2018 4:29:03 PM: CommandString(): =START=========================================================
10/01/2018 4:29:03 PM: CommandString: Serial Port is Open
10/01/2018 4:29:03 PM: CommandString: Try to write command: :00#
10/01/2018 4:29:03 PM: CommandString: Command was sent.
10/01/2018 4:29:03 PM: ReceiveString(): =START=========================================================
10/01/2018 4:29:03 PM: ReceiveString: Command retcmd = P
10/01/2018 4:29:03 PM: ReceiveString: Buffer recbuf = P1100#
10/01/2018 4:29:03 PM: ReceiveString: Value retstr = 1100
10/01/2018 4:29:03 PM: ReceiveString raw response for Getfocuserpos was: P1100#
10/01/2018 4:29:03 PM: ReceiveString(): =END===========================================================
10/01/2018 4:29:03 PM: CommandString(): =END===========================================================
10/01/2018 4:29:03 PM: Back from CommandString
10/01/2018 4:29:03 PM: GetFocusPosition(): =END===========================================================
10/01/2018 4:29:03 PM: movefocusercmd: back from GetFocusPosition()
10/01/2018 4:29:03 PM: Calling CommandString(:051000#)
10/01/2018 4:29:03 PM: CommandString(): =START=========================================================
10/01/2018 4:29:03 PM: CommandString: Serial Port is Open
10/01/2018 4:29:03 PM: CommandString: Try to write command: :051000#
10/01/2018 4:29:03 PM: CommandString: Command was sent.
10/01/2018 4:29:03 PM: CommandString(): =END===========================================================
10/01/2018 4:29:03 PM: Back from CommandString
10/01/2018 4:29:04 PM: movefocusercmd: calling waitonfocusermove()
10/01/2018 4:29:04 PM: waitonfocusermove(): =START=========================================================
10/01/2018 4:29:04 PM: waitonfocusermove: Call GetIsMoving
10/01/2018 4:29:04 PM: GetIsMoving(): =START=========================================================
10/01/2018 4:29:04 PM: Calling CommandString(:01#)
10/01/2018 4:29:04 PM: CommandString(): =START=========================================================
10/01/2018 4:29:04 PM: CommandString: Serial Port is Open
10/01/2018 4:29:04 PM: CommandString: Try to write command: :01#
10/01/2018 4:29:04 PM: CommandString: Command was sent.
10/01/2018 4:29:04 PM: ReceiveString(): =START=========================================================
10/01/2018 4:29:04 PM: ReceiveString: Command retcmd = I
10/01/2018 4:29:04 PM: ReceiveString: Buffer recbuf = I01#
10/01/2018 4:29:04 PM: ReceiveString: Value retstr = 01
10/01/2018 4:29:04 PM: ReceiveString raw response for Ismoving is I01#
10/01/2018 4:29:04 PM: ReceiveString(): =END===========================================================
10/01/2018 4:29:04 PM: CommandString(): =END===========================================================
10/01/2018 4:29:04 PM: Back from CommandString
10/01/2018 4:29:04 PM: GetIsMoving: Success: ismoving status = 1
10/01/2018 4:29:04 PM: GetIsMoving(): =END===========================================================
10/01/2018 4:29:04 PM: waitonfocusermove: Back from GetIsMoving
10/01/2018 4:29:04 PM: waitonfocusermove: ismoving = 1
10/01/2018 4:29:05 PM: GetIsMoving(): =START=========================================================
10/01/2018 4:29:05 PM: Calling CommandString(:01#)
10/01/2018 4:29:05 PM: CommandString(): =START=========================================================
10/01/2018 4:29:05 PM: CommandString: Serial Port is Open
10/01/2018 4:29:05 PM: CommandString: Try to write command: :01#
10/01/2018 4:29:05 PM: CommandString: Command was sent.
10/01/2018 4:29:05 PM: ReceiveString(): =START=========================================================
10/01/2018 4:29:05 PM: ReceiveString: Command retcmd = I
10/01/2018 4:29:05 PM: ReceiveString: Buffer recbuf = I00#
10/01/2018 4:29:05 PM: ReceiveString: Value retstr = 00
10/01/2018 4:29:05 PM: ReceiveString raw response for Ismoving is I00#
10/01/2018 4:29:05 PM: ReceiveString(): =END===========================================================
10/01/2018 4:29:05 PM: CommandString(): =END===========================================================
10/01/2018 4:29:05 PM: Back from CommandString
10/01/2018 4:29:05 PM: GetIsMoving: Success: ismoving status = 0
10/01/2018 4:29:05 PM: GetIsMoving(): =END===========================================================
10/01/2018 4:29:05 PM: GetFocusPosition(): =START=========================================================
10/01/2018 4:29:05 PM: GetFocusPosition: Serial Port is Open
10/01/2018 4:29:05 PM: GetFocusPosition: ConnectedState is true
10/01/2018 4:29:05 PM: Calling CommandString(:00#)
10/01/2018 4:29:05 PM: CommandString(): =START=========================================================
10/01/2018 4:29:05 PM: CommandString: Serial Port is Open
10/01/2018 4:29:05 PM: CommandString: Try to write command: :00#
10/01/2018 4:29:05 PM: CommandString: Command was sent.
10/01/2018 4:29:05 PM: ReceiveString(): =START=========================================================
10/01/2018 4:29:05 PM: ReceiveString: Command retcmd = P
10/01/2018 4:29:05 PM: ReceiveString: Buffer recbuf = P1000#
10/01/2018 4:29:05 PM: ReceiveString: Value retstr = 1000
10/01/2018 4:29:05 PM: ReceiveString raw response for Getfocuserpos was: P1000#
10/01/2018 4:29:05 PM: ReceiveString(): =END===========================================================
10/01/2018 4:29:05 PM: CommandString(): =END===========================================================
10/01/2018 4:29:05 PM: Back from CommandString
10/01/2018 4:29:05 PM: GetFocusPosition(): =END===========================================================
10/01/2018 4:29:05 PM: waitonfocusermove: Move and Get Position is a Success.
10/01/2018 4:29:05 PM: waitonfocusermove(): =END===========================================================
10/01/2018 4:29:05 PM: movefocusercmd: back from waitonfocusermove()
10/01/2018 4:29:05 PM: movefocusercmd(): =END===========================================================
10/01/2018 4:29:05 PM: Minus100(): =END===========================================================
10/01/2018 4:29:06 PM: Disconnect(): =START=========================================================
10/01/2018 4:29:06 PM: Disconnect: Serial Port is Open
10/01/2018 4:29:06 PM: Disconnect: Call GetIsMoving
10/01/2018 4:29:06 PM: GetIsMoving(): =START=========================================================
10/01/2018 4:29:06 PM: Calling CommandString(:01#)
10/01/2018 4:29:06 PM: CommandString(): =START=========================================================
10/01/2018 4:29:06 PM: CommandString: Serial Port is Open
10/01/2018 4:29:06 PM: CommandString: Try to write command: :01#
10/01/2018 4:29:06 PM: CommandString: Command was sent.
10/01/2018 4:29:06 PM: ReceiveString(): =START=========================================================
10/01/2018 4:29:06 PM: ReceiveString: Command retcmd = I
10/01/2018 4:29:06 PM: ReceiveString: Buffer recbuf = I00#
10/01/2018 4:29:06 PM: ReceiveString: Value retstr = 00
10/01/2018 4:29:06 PM: ReceiveString raw response for Ismoving is I00#
10/01/2018 4:29:06 PM: ReceiveString(): =END===========================================================
10/01/2018 4:29:06 PM: CommandString(): =END===========================================================
10/01/2018 4:29:06 PM: Back from CommandString
10/01/2018 4:29:06 PM: GetIsMoving: Success: ismoving status = 0
10/01/2018 4:29:06 PM: GetIsMoving(): =END===========================================================
10/01/2018 4:29:06 PM: Disconnect: Back from GetIsMoving
10/01/2018 4:29:06 PM: Disconnect: ismoving = 0
10/01/2018 4:29:06 PM: Disconnect: Call GetIsMoving
10/01/2018 4:29:06 PM: GetIsMoving(): =START=========================================================
10/01/2018 4:29:06 PM: Calling CommandString(:01#)
10/01/2018 4:29:06 PM: CommandString(): =START=========================================================
10/01/2018 4:29:06 PM: CommandString: Serial Port is Open
10/01/2018 4:29:06 PM: CommandString: Try to write command: :01#
10/01/2018 4:29:06 PM: CommandString: Command was sent.
10/01/2018 4:29:06 PM: ReceiveString(): =START=========================================================
10/01/2018 4:29:06 PM: ReceiveString: Command retcmd = I
10/01/2018 4:29:06 PM: ReceiveString: Buffer recbuf = I00#
10/01/2018 4:29:06 PM: ReceiveString: Value retstr = 00
10/01/2018 4:29:06 PM: ReceiveString raw response for Ismoving is I00#
10/01/2018 4:29:06 PM: ReceiveString(): =END===========================================================
10/01/2018 4:29:06 PM: CommandString(): =END===========================================================
10/01/2018 4:29:06 PM: Back from CommandString
10/01/2018 4:29:06 PM: GetIsMoving: Success: ismoving status = 0
10/01/2018 4:29:06 PM: GetIsMoving(): =END===========================================================
10/01/2018 4:29:06 PM: Disconnect: Back from GetIsMoving
10/01/2018 4:29:06 PM: Disconnect: ismoving = 0
10/01/2018 4:29:06 PM: disableall(): =START=========================================================
10/01/2018 4:29:06 PM: disableall(): =END===========================================================
10/01/2018 4:29:06 PM: DisconnectBtn_Click: Disconnecting
10/01/2018 4:29:06 PM: Disconnect(): =END===========================================================
10/01/2018 4:29:07 PM: FormClosing: Start
10/01/2018 4:29:07 PM: FormClosing: Serial port not connected
10/01/2018 4:29:07 PM: FormClosing: Save application settings
10/01/2018 4:29:07 PM: FormClosing: Stop timers
10/01/2018 4:29:07 PM: FormClosing: Finish
10/01/2018 4:29:07 PM: FormClosing: Start
10/01/2018 4:29:07 PM: FormClosing: Serial port not connected
10/01/2018 4:29:07 PM: FormClosing: Save application settings
10/01/2018 4:29:07 PM: FormClosing: Stop timers
10/01/2018 4:29:07 PM: FormClosing: Finish
You need to measure the voltage on D8 of the nano (between D8 and GND)
Then you need to measure the voltage on the EN pin (between EN and GND)
hmm post awaiting moderation, let me know if you can see it or not. might be considered span because of the long log file
Update: i swapped to the L298 and it works perfectly. with all the same wires and motor and arduino so it must be the DRV8825. i have tried 10 different ones. hopefully that helps narrow it down
Last edit: alexander obradovic 2018-01-10
i think i may have broken all the DRV modules i had :\ i guess ill stick the the L298n for now. i think ill go to my local electronics club and see if someone can teach me. thank you so much for your help ill see how it goes and if i find out what the issue is ill let you know
Hi Alexander
The log file looked fine.
In answer to the below
You need to measure the voltage on D8 of the nano (between D8 and GND)
Then you need to measure the voltage on the EN pin (between EN and GND)
You should have measure 0V on each when connected, coil power was on and step mode set to full steps.
Troubleshooting can be problematic.
What I can tell you is that it easy to blow up a DRV8825.
I'm happy you got it going woth the L298.
Just one more question - did you use a PCB or a stripboard/breadboard?
Regards
Robert