I just installed my home switch and followed the steps. I can connect to the arduino and see that the home position switch is open. Then I can close the switch and it says closed. So that seems to be working. But now the motor wont move at all. The jogging doesnt work or pressing the minus or plus steps. No humming or anything not even any current draw. Any Suggestions?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
L293D Shield Plus Uno
Best way is to work through this in a logical systematic way, checking off each part one at a time
To do this we will use the latest firmware and the latest window app.
First some basic questions
1. What OS
2. Firmware rev (the .ino code) - it must be no changes made
3. Stepper motor connected, what type of stepper motor?
4. What ports (M3/M4) on the L293D shield do you have the motor wired to? A photo is helpful
5. What power voltage are you using for the stepper?
6. Is this power voltage connected to the EXTN PWR Connector? A photo is useful
(If you have a multimeter what is voltage measured at this EXTN PWR connector?
7. The PWR jumper on the L293D is in default position? A photo is useful
Please run test program for motor
BasicL293DTest.ino
Did this test pass?
Push Buttons working? If not, What was result of TestPB.ino ?
LCD Working? If not, What was result of TestLCDI2C.ino ?
If yes, what shows on the screen?
Can you change the LCD update rate using the windows app?
I will need to know a lot more Aaron. Ino version number, what build, what windows app. What are current focuser settings. Have you 12V connected and on?
What happens if you comment out the Home Position code and reprogram the controller? Does it work then?
Did you make any changes to the firmware?
Did you accidently remove/connect the stepper motor when 12v power was on?
Robert
Last edit: brownrb 2016-08-21
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using v245 arduino code and 2.3.2.1 windows client. I have windows 7 ultimate 64bit. I am running the motor at 5v currently as seen in the picture. If I comment out the home position switch everything works perfectly. I can move the motor backwards and forwards. I did not make any changes besides un commenting the home switch line. I did not do anything other than that. Let me know what else you need to know to help
I see you have the stepper connected to M1/M2, so please confirm that this line in the Focuserv245_L293D_F.ino file is set to motor port 1 (line 131)
define Motor_Port 1
Please make this change to the code, leave the home position switch commented out, and reprogram the controller.
Then
1: Load the win app and set the focuser to position 5000
2: When you press say +100 and -100 the focuser moves out and in?
Next, uncomment the home position switch code (line 210 only)
Reprogram the controller
Load the win app and set the focuser position to 5000
When you press say +100 and -100 the focuser moves out and in?
Let me know what happens. You can email me direct
Robert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please try this v2.6 code and let me know how it goes. The problem is that the L293D shield already uses pin12 to control the motor - hence the issue
You will need to make some hardware changes.
// v2.46_L293D_F 25082016
// Fix issue of motor not moving with home position switch enabled
// The L293D reserves Pin 12, so the Home Position switch must be fitted to A3 and
// the Buzzer removed
Also be sure to change line 137 and line 141 to match your setup
There are just not enough free pins left on the L293D shield. I am not 100% sure the home position code debouncing (from the bounce library) will work on an analog pin. Please try it and let me know
Basic tests should be
1. Remove buzzer hardware
2. Wire home position switch to A3
3. Make code changes to Lines 137 and line 141 and enable Home Position code on line 213
4. Reprogram controller
5. Load winapp and connect to controller
6. Check Home Position status - should be open
7. Close Home Position switch and recheck status - should be closed
8. Release home position switch
9. Set focuser position to 5000
10. Click -100 and then +100. Focuser should move 100 steps in either direction
11. Type in position 0 and tell focuser to GOTO position
12. Close the home position switch - focuser should reset position to 0 and then very slowly begin to backout (its waiting for home position to release to take up backlash in switch)
13. Release home position switch - focuser should stop and set position as 0
14.
I just installed my home switch and followed the steps. I can connect to the arduino and see that the home position switch is open. Then I can close the switch and it says closed. So that seems to be working. But now the motor wont move at all. The jogging doesnt work or pressing the minus or plus steps. No humming or anything not even any current draw. Any Suggestions?
L293D Shield Plus Uno
Best way is to work through this in a logical systematic way, checking off each part one at a time
To do this we will use the latest firmware and the latest window app.
First some basic questions
1. What OS
2. Firmware rev (the .ino code) - it must be no changes made
3. Stepper motor connected, what type of stepper motor?
4. What ports (M3/M4) on the L293D shield do you have the motor wired to? A photo is helpful
5. What power voltage are you using for the stepper?
6. Is this power voltage connected to the EXTN PWR Connector? A photo is useful
(If you have a multimeter what is voltage measured at this EXTN PWR connector?
7. The PWR jumper on the L293D is in default position? A photo is useful
Please run test program for motor
BasicL293DTest.ino
Did this test pass?
Push Buttons working? If not, What was result of TestPB.ino ?
LCD Working? If not, What was result of TestLCDI2C.ino ?
If yes, what shows on the screen?
Can you change the LCD update rate using the windows app?
I will need to know a lot more Aaron. Ino version number, what build, what windows app. What are current focuser settings. Have you 12V connected and on?
What happens if you comment out the Home Position code and reprogram the controller? Does it work then?
Did you make any changes to the firmware?
Did you accidently remove/connect the stepper motor when 12v power was on?
Robert
Last edit: brownrb 2016-08-21
I am using v245 arduino code and 2.3.2.1 windows client. I have windows 7 ultimate 64bit. I am running the motor at 5v currently as seen in the picture. If I comment out the home position switch everything works perfectly. I can move the motor backwards and forwards. I did not make any changes besides un commenting the home switch line. I did not do anything other than that. Let me know what else you need to know to help
Hi Aaron, welcome back.
I see you have the stepper connected to M1/M2, so please confirm that this line in the Focuserv245_L293D_F.ino file is set to motor port 1 (line 131)
define Motor_Port 1
Please make this change to the code, leave the home position switch commented out, and reprogram the controller.
Then
1: Load the win app and set the focuser to position 5000
2: When you press say +100 and -100 the focuser moves out and in?
Let me know what happens. You can email me direct
Robert
There may be an issue with the code. I will have to compare this version against that on my focuser which is working.
Hi Aaron
Please try this v2.6 code and let me know how it goes. The problem is that the L293D shield already uses pin12 to control the motor - hence the issue
You will need to make some hardware changes.
// v2.46_L293D_F 25082016
// Fix issue of motor not moving with home position switch enabled
// The L293D reserves Pin 12, so the Home Position switch must be fitted to A3 and
// the Buzzer removed
Also be sure to change line 137 and line 141 to match your setup
Basic tests should be
1. Remove buzzer hardware
2. Wire home position switch to A3
3. Make code changes to Lines 137 and line 141 and enable Home Position code on line 213
4. Reprogram controller
5. Load winapp and connect to controller
6. Check Home Position status - should be open
7. Close Home Position switch and recheck status - should be closed
8. Release home position switch
9. Set focuser position to 5000
10. Click -100 and then +100. Focuser should move 100 steps in either direction
11. Type in position 0 and tell focuser to GOTO position
12. Close the home position switch - focuser should reset position to 0 and then very slowly begin to backout (its waiting for home position to release to take up backlash in switch)
13. Release home position switch - focuser should stop and set position as 0
14.
Last edit: brownrb 2016-08-25