Andreas
I dont think that you need to build another one. At present we have the rotator going much more than it is not.
I attach a new Windows application. I have tried this with the latest firmware you used, 2024-11.
I have not tried this new windows app on the 2024-09 firmware,
I had inssues installing 2024-07 Windows app. I had to remove 2024-05 first.
To install this
1. Open control panel, find the myRotator application and Uninstall it.
2. Once it has been removed,
Unzip the attached file
Run the setup.exe to install program,
When run, it will show 2024-07 in the title bar of the application window.
Hi Robert,
i uninstall the app, install the 2_4_0_7.
Connect to the Rotator, App shows 0° Angle, move to 45° and then press Home:
The Stepper moves about 5° then stops, sorry.
Greets Andreas
Hello Robert,
I built a new rotator with a Hal-sensor on a loose cable, so I can test better with the magnet.
I've noticed that if I don't enable "Homesensor" everything works fine.
If I then set the home sensor enable, homing runs once!!!
But the "value" remains true even if the magnet is gone or I move to a new angle.
(then homeing only takes one step).
Only when I unplug the sensor does the value go to false, when I then reconnect it, the value remains false and I can make a new home run, then the value always remains true again.
Do I need to add a pulldown/pullup Resistor to D3?
greeting
Andreas
Last edit: Andreas Exeler 2024-10-05
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
But the "value" remains true even if the magnet is gone or I move to a new angle.
Curious? How did you discover that? It certainly explains a lot.
Which sensor do you have?
Is it a module or just the sensor?
The module has a small blue pot and two leds I think.
The module adjusts for sensitivity. Once led turns on when magnet is detected you need to move away and make sure the led turns off. If led still is on, turn pot to adjust so that led turns off when not on the magnet
If you have the just the sensor (not the module), the code already uses an internal pull-up,
You could try a 10K pullup to +5V.
A rotator without the sensor connected will have the pin high, reading 5v.
When a sensor is connected, the arduino pin connected to the sensor will have a steady high state. This is normal.
But when the sensor detects the magnet, the pin will go low. A low state indicates that the sensor has found the magnet.
From the datasheet
The output of these devices (pin 3) switches low when the magnetic field
at the Hall element exceeds the operate point threshold (BOP). At this point, the
output voltage is VOUT(SAT). When the magnetic field is reduced to below the
release point threshold (BRP), the device output goes high.
The 0.1uf capacitor handles noise.
I think you found the issue. Which explains why yours does not work and mine works.
The sensor not changing state and staying on will definately cause the issue you describe. Indeed the motor will work 1 time to home, after that the sensor stays on and then every home will generate 1 step.
What is the size of your magnet? From memory, without opening things up, I used a small round one, I think 6x3mm N35 or maybe 3x2 left over from another project. They had the N/S poles on the flat ends of the magnet,
Hi Robert,
i am so sorry.
i think i build a second one, so i can check if i had a mistake in the build or something is broken.
greets Andreas
Andreas
I dont think that you need to build another one. At present we have the rotator going much more than it is not.
I attach a new Windows application. I have tried this with the latest firmware you used, 2024-11.
I have not tried this new windows app on the 2024-09 firmware,
I had inssues installing 2024-07 Windows app. I had to remove 2024-05 first.
To install this
1. Open control panel, find the myRotator application and Uninstall it.
2. Once it has been removed,
Unzip the attached file
Run the setup.exe to install program,
When run, it will show 2024-07 in the title bar of the application window.
Regards
Robert
Hi Robert,
i uninstall the app, install the 2_4_0_7.
Connect to the Rotator, App shows 0° Angle, move to 45° and then press Home:
The Stepper moves about 5° then stops, sorry.
Greets Andreas
Hello Robert,
I built a new rotator with a Hal-sensor on a loose cable, so I can test better with the magnet.
I've noticed that if I don't enable "Homesensor" everything works fine.
If I then set the home sensor enable, homing runs once!!!
But the "value" remains true even if the magnet is gone or I move to a new angle.
(then homeing only takes one step).
Only when I unplug the sensor does the value go to false, when I then reconnect it, the value remains false and I can make a new home run, then the value always remains true again.
Do I need to add a pulldown/pullup Resistor to D3?
greeting
Andreas
Last edit: Andreas Exeler 2024-10-05
Hi Andreas
Curious? How did you discover that? It certainly explains a lot.
Which sensor do you have?
Is it a module or just the sensor?
The module has a small blue pot and two leds I think.
The module adjusts for sensitivity. Once led turns on when magnet is detected you need to move away and make sure the led turns off. If led still is on, turn pot to adjust so that led turns off when not on the magnet
If you have the just the sensor (not the module), the code already uses an internal pull-up,
You could try a 10K pullup to +5V.
A rotator without the sensor connected will have the pin high, reading 5v.
When a sensor is connected, the arduino pin connected to the sensor will have a steady high state. This is normal.
But when the sensor detects the magnet, the pin will go low. A low state indicates that the sensor has found the magnet.
From the datasheet
The 0.1uf capacitor handles noise.
I think you found the issue. Which explains why yours does not work and mine works.
The sensor not changing state and staying on will definately cause the issue you describe. Indeed the motor will work 1 time to home, after that the sensor stays on and then every home will generate 1 step.
What is the size of your magnet? From memory, without opening things up, I used a small round one, I think 6x3mm N35 or maybe 3x2 left over from another project. They had the N/S poles on the flat ends of the magnet,
https://www.aliexpress.com/item/1005004262072105.html
regards
Robert
Last edit: brownrb 2024-10-05