Comments (23)
The Resistor on the A4988 is R100 what is 0.1ohm.
Vref = 0.1 * 8 * 0.1 <=> Vref = 0.08V.
The setting of the pot is now 0.08V.
Everything is still running.
Next step 3D printing
I will close this issue.
from ardufocus.
Hi @Ultimaboot !
Try to first check if the firmware is OK, just open Teraterm or miniterm session (9600bps, 8-bit, no parity, 1 stop bit) and you should be greeted with a welcome message, if not try to press the reset
button on the Nano while being connected to the serial port.
If the motor gets hot usually there is and issue with the motor windings. There has been a lot of confusion due to the messing naming schema (1A, 2A, 1B, 2B). I have not corrected this post and published a new guide about modding the motor. Please read it and double check your connections.
from ardufocus.
Connecting with tera term gives me the following message:
Ardufocus 0.2b-master ready.
Visit https://github.com/jbrazio/ardufocus for updates.
from ardufocus.
That's a good sign, the firmware should be OK.
Did you had time to check the motor windings ?
from ardufocus.
The motor windings are correct.
Orange connected to pin 1A A4988;
Pink connected to pin 1B A4988;
Yellow connected to pin 2A A4988;
Blue connected to pin 2B A4988.
Red not used and middle trace step motor by scrapping the PCB varnish and copper.
from ardufocus.
Could you post your #define MOTOR1_PINOUT
from config.h
?
from ardufocus.
#ifdef MOTOR1_USE_A4988_DRIVER
// MS1, MS2, MS3, SLEEP, STEP, DIR
#define MOTOR1_PINOUT 12, 11, 10, 8, 7, 6
#endif
from ardufocus.
Are you using the PCB version or the prefboard one ?
from ardufocus.
PCB version
from ardufocus.
To use OUT1
on the silkscreen do #define MOTOR1_PINOUT 16, 6, 5, 4, 3, 2
to use OUT2
do #define MOTOR1_PINOUT 12, 11, 10, 9, 8, 7
.
from ardufocus.
Its not working.
from ardufocus.
Do you care to take a overview picture from the top side of the board with everything connected ?
from ardufocus.
from ardufocus.
Everything looks OK. I assume that 2nd wire is orange one and not the red one, on my motor orange's color tone is yellowish rather than reddish as yours.
Did you adjust the pot on the step stick ?
Do you see the flat lip on the pot ? Try rotating it 180ยบ CW.
from ardufocus.
Yes I did try to adjust the pot on the step stick CW and CCW but that didn't work.
from ardufocus.
Do you hear or feel any vibration from the motor when it was supposed to be running ?
Which software are you using to test the motor ?
from ardufocus.
I do not hear or feel any vibration from the motor.
I use MoonliteSingleFocuser_v1.4 to test the motor.
from ardufocus.
-
Test continuity between the top pins in purple and the Arduino pins.
-
Test continuity between the bottom coil pins and the motor wires.
-
Test continuity between ENA and GND you should have it.
-
Measure resistance between "1B 1A" and "2A 2B", which values do you have ?
-
Measure voltage between RST and GND you should have +5V
-
Measure voltage between bottom two first pins, you should have +5V
-
Measure voltage between bottom two last pins, you should have +12V
-
Is the NTC connected between 1 and 2 or 2 and 3 and not between 1 and 3 ?
from ardufocus.
Could you please also post your entire config.h
?
from ardufocus.
Test continuity between the top pins in purple and the Arduino pins. This is correct.
Test continuity between the bottom coil pins and the motor wires. This is correct.
Test continuity between ENA and GND you should have it. This is correct.
Measure resistance between "1B 1A" and "2A 2B", which values do you have ?
1B (Pink) 1A (Orange) = 203 ohm and 2A (Yellow) 2B (Blue) = 201 ohm. This a 12V step motor nr 181228766
Measure voltage between RST and GND you should have +5V. This is correct
Measure voltage between bottom two first pins, you should have +5V. This is correct
Measure voltage between bottom two last pins, you should have +12V. This is correct
Is the NTC connected between 1 and 2 or 2 and 3 and not between 1 and 3 ? 1 and 2 (left and middle on picture)
Config.h (ZIP file)
config.zip
from ardufocus.
The config file looks OK also.
All tests check out.
Can you test continuity between M1B and all others ?
Can you test continuity between M1A and all others ?
Can you test continuity between M2A and all others ?
Can you test continuity between M2B and all others ?
Can you test continuity between the two parts of the cut trace on the motor ?
Can you test continuity between any ground pin on the arduino and the first bottom left pin on the step stick ? (This is the ground pin of the +5V on the step stick). Test again between GND on arduino and the 7th pin on the step stick (This is the +12V ground). Both should have continuity.
If all this checks validated then I must start thinking about a broken step stick.
Do you have special tools such as a logic analyser or an oscilloscope ?
from ardufocus.
Can you test continuity between M1B and all others ? This is correct.
Can you test continuity between M1A and all others ? This is correct.
Can you test continuity between M2A and all others ? This is correct.
Can you test continuity between M2B and all others ? This is Correct.
Can you test continuity between the two parts of the cut trace on the motor ? This correct.
Can you test continuity between any ground pin on the arduino and the first bottom left pin on the step stick ? (This is the ground pin of the +5V on the step stick). This is correct.
Test again between GND on arduino and the 7th pin on the step stick (This is the +12V ground). Both should have continuity. This correct.
Do you have special tools such as a logic analyser or an oscilloscope ? I have no special tools.
If all this checks validated then I must start thinking about a broken step stick. Well i was smart to buy some spare parts. When i Exchange the step stick nothing happened but i did hear some noise from the step motor, so i turned the pot and now it is working. So try it again with old step stick and nothing happened. The step stick was indeed broken. Is there a ideal setting for the pot?
from ardufocus.
Great news !
These step sticks are very susceptible to burn out if we accidentally, or not, disconnect one of the four motor coils with it having +12V power.. it will instantly burn out internally.
There is a trick to correctly set the pot to your motor power requirements, so you have a 200R per coil motor at 12V this gives us 0.06A, letโs round it to 0.1A.
Use the following formula:
Vref = 0.1 * 8 * 0.1 <=> Vref = 0.08V
Take a multimeter and measure the positive on the center of the pot against any GND point on the board. You should set this to the Vref value above.
Attention this is assuming that the little SMD resistor near the pot is a 0.1R one.
Could you please check the number written on it ?
from ardufocus.
Related Issues (20)
- Moonlite Compatibility HOT 8
- Can't get the motor to work
- Arduino IDE HOT 1
- Motor wont turn HOT 2
- Sometimes focuser goes to 0 absolute, instead of step out or step in command. HOT 20
- A way to specify step size in UI_KAP HOT 3
- Speed with the user interface (switches). HOT 5
- Ardufocus components HOT 3
- Will not compile when DRV8825 selected. HOT 1
- Compatibility Arduino Nano Every HOT 2
- Ardufocus is not recognized by the Moolite ASCOM driver HOT 4
- Configuring motor 2 using the printed board HOT 2
- INDI compatibility HOT 2
- #define MOTOR1_USE_DRV8825_DRIVER ( DRV8825) not working HOT 1
- Use of Ardufocus with __AVR_ATmega2560__ possible? HOT 1
- Firmware Issue HOT 1
- focuser jumps to zero position quite randomly while searching for focus INDI, EKOS HOT 2
- Arduino firmware location HOT 1
- Motore freezer when stopped
- Default pins for A4988 do not match Wiki
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ardufocus.