×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Need help for rotator project

  • Posts: 298
  • Thank you received: 46
Hi guys,

I just connected my genuine Arduino Uno just to see what port it creates,

[ 584.205058] usb 2-2: new full-speed USB device number 2 using xhci_hcd
[ 584.355522] usb 2-2: New USB device found, idVendor=2341, idProduct=0043, bcdDevice= 0.01
[ 584.355526] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[ 584.355529] usb 2-2: Manufacturer: Arduino (www.arduino.cc)
[ 584.355531] usb 2-2: SerialNumber: 8523535313735130F1F0
[ 584.383481] cdc_acm 2-2:1.0: ttyACM0: USB ACM device
[ 584.384503] usbcore: registered new interface driver cdc_acm
[ 584.384504] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters

I'm using Ubuntu 20.04.1 LTS and I do get a ttyACM0, hope this helps.
Br,
/Markku
3 years 4 months ago #63219

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

  • Posts: 250
  • Thank you received: 3
OK so you have a scanner port in kstars that gives... like me, or did I misunderstand?
3 years 4 months ago #63220

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

  • Posts: 333
  • Thank you received: 23
if you go in the CONNECTION tab at the end you can see the ports that has been found on your system
3 years 4 months ago #63222

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

  • Posts: 298
  • Thank you received: 46
There is a couple of things to do to find out what ports are created, you can do from terminal with command : tail -f /var/log/syslog end then connect a device and you can see that in realtaime, otherwise in terminal run : dmesg and check the last message, connect the device and run the same command again and you can see a few new lines that tells what have happened.
3 years 4 months ago #63223

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

  • Posts: 250
  • Thank you received: 3
well then I manage to connect, I reinstall the code on the card arduino uno
on the other hand it does not drive my motor which is connected to 8,9,10,11 .

do you have an idea of the problem?
3 years 4 months ago #63230

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

  • Posts: 250
  • Thank you received: 3
Hello
Has someone managed to run the engine with this code and arduino?
Because if I have well kstars that connects, the engine, on the other hand, does not turn.
3 years 4 months ago #63495

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

  • Posts: 333
  • Thank you received: 23
  1. Did you able to upload the "original" code on your arduino board (without any other stuffs like motor board etc)???
  2. If Yes, Did you able to connect to it using the NiteCrawler drivers in Ekos/Kstars????
  3. If Yes, Did you able to manage commads tha start rotation to any angles???
3 years 4 months ago #63498

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

  • Posts: 250
  • Thank you received: 3
1:Did you able to upload the "original" code on your arduino board (without any other stuffs like motor board etc)???
so I put the code you put on the subject.
And I plugged in the engine driver with the engine.

2:If Yes, Did you able to connect to it using the NiteCrawler drivers in Ekos/Kstars????
Yes I put the driver NiteCrawler on kstars

3:If Yes, Did you able to manage commads tha start rotation to any angles???
Yes in kstars I can change the angle of the camera, but there is no reaction from the engine.
3 years 4 months ago #63504

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

  • Posts: 333
  • Thank you received: 23
Which type of motor driver are you using???
The code as been developed for the L298N motor driver board.
3 years 4 months ago #63507
Attachments:

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

  • Posts: 250
  • Thank you received: 3
Hello
Then I have this one 28BYJ-48 for my tests.

It is the basic one to learn the stepper motor and the arduino.
3 years 4 months ago #63508

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

  • Posts: 333
  • Thank you received: 23
You must adapt the code to work with it and with its uln2003 motor driver and libraries
3 years 4 months ago #63509

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

  • Posts: 250
  • Thank you received: 3
OK, but how do I do it and where in the code should I make the changes?
3 years 4 months ago #63510

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

Time to create page: 1.579 seconds