×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Need help for rotator project

Ekos rotator control can rotate the FOV indicator as you change the angle. The Ekos control would do this, not INDI driver.
3 years 4 months ago #64972

Please Log in or Create an account to join the conversation.

  • Posts: 250
  • Thank you received: 3
OK, but we can't order it from the planetarium of kstars, or is it possible?
Because for the moment I can only do it if I open the rotator tab of kstars.
And I think that once we have done the "capture and resolution" and we know the camera angle according to the target, we should be able to change the angle and see it visually before taking a new capture.
3 years 3 months ago #64994

Please Log in or Create an account to join the conversation.

  • Posts: 250
  • Thank you received: 3
So it's not possible ?
3 years 3 months ago #65249

Please Log in or Create an account to join the conversation.

  • Posts: 250
  • Thank you received: 3
A little up about being able to turn the camera angle directly on the planetarium.

Or, if it's not possible, to be able to see the angle that turns on the planetarium when you change it in kstars, but without being forced to take a picture to see if you are right with the angle.

Thanks
3 years 3 months ago #65597

Please Log in or Create an account to join the conversation.

  • Posts: 250
  • Thank you received: 3
Hi Alessandro
can you tell me how you plugged the driver "L298N "on the arduino board.
I have to try to do it with a nema17 motor.
I will try with the same driver as you to start and maybe also with a TB6612 which is much smaller.

Thanks
Christophe
Last edit: 2 years 7 months ago by Porchet.
2 years 7 months ago #75491

Please Log in or Create an account to join the conversation.

  • Posts: 334
  • Thank you received: 23
#include <AccelStepper.h>
#define DirectionPin 4
#define PulsePin 13
#define EnablePin 5
#define CWPin 6
#define CCWPin 7

AccelStepper stepper(1, PulsePin, DirectionPin);
2 years 7 months ago #75493

Please Log in or Create an account to join the conversation.

  • Posts: 250
  • Thank you received: 3
Ok
But, you're going to take me for an amateur, because I still don't understand.
Because you tell me that you have this
#define DirectionPin 4
#define PulsePin 13
#define EnablePin 5
#define CWPin 6
#define CCWPin 7

And me in the code that you put on the subject, I have this
#define EnablePin 12
#define IN1 8
#define IN2 9
#define IN3 10
#define IN4 11
#define MotorInterfaceType 4

did you modify the code?

And
but above all, what does it correspond to on the driver, because IN1 to IN4 ok
but the rest, EnablePin 12, MotorInterfaceType 4
Last edit: 2 years 7 months ago by Porchet.
2 years 7 months ago #75494

Please Log in or Create an account to join the conversation.

  • Posts: 334
  • Thank you received: 23
mmmmm.... let me rebuilds the history of the code ....
2 years 7 months ago #75500

Please Log in or Create an account to join the conversation.

  • Posts: 334
  • Thank you received: 23
Probably I changed/renamed some portions of the code.
Attached you can find the last one, but it is always not completed.
Actually I do not remember the todo list. I stopped the project due lack of time and because for me to use it, should be a double rotor, one used to find a guide star (I use an OAG) and one tho gain the correct camera rotation.
2 years 7 months ago #75501
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 250
  • Thank you received: 3
Hello, Alessendro, thank you for your reply.
But can you tell me how you connected between the driver and the arduino.
I understand the pine on the arduino, but what does it correspond to on the driver?


#include <AccelStepper.h>

#define DirectionPin  4             or I have to connect on the driver 
#define PulsePin  13                or I have to connect on the driver
#define EnablePin 5                 or I have to connect on the driver
#define CWPin 6                      or I have to connect on the driver
#define CCWPin 7                    or I have to connect on the driver
#define HEsensorPin 10           Is it the limit switch or the 0 position switch?
#define LEDPin 9                      I think it's an option to connect a led

You are using the "L298N" driver, and do you think I can adapt it to the "TB6612" driver which is more compact

Best regards
Christophe
2 years 7 months ago #75506

Please Log in or Create an account to join the conversation.

  • Posts: 250
  • Thank you received: 3
Hi Alessandro
so if you pass by again, or someone else who can explain to me how to connect the driver to the arduino the driver, I'm interested.
Because I have tried, but impossible to control the motor.
Or I miss information one of the contactors.

Thank you for your help
2 years 7 months ago #75558

Please Log in or Create an account to join the conversation.

  • Posts: 334
  • Thank you received: 23
I don't remember which driver I used for the tests. I have ULN2003, EasyBoard, L298N and L298N mini. Each driver use a proper Arduino library and wiring and the code need to be adapted. At this time do not have time to rebuild all of that and I do not have all driver available.
Just find an example that works with your driver TB6612 and thea adapt the code to include your part for the motor replacing mine.
This is not a finished and working project, much need to be checked and improved
2 years 7 months ago #75653

Please Log in or Create an account to join the conversation.

Time to create page: 1.013 seconds