×

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

Bi-monthly release with minor bug fixes and improvements

Arduino Basic switcher interface

  • Posts: 11
  • Thank you received: 0
Hi
New be to the Forum .
Firstly I would like to thank you for a most amazing interface. I have managed to put the necessary parts together and I am controlling my telescope ccd through Raspberry remote and client. So I tried Arduino basic switcher and everything went ok and connected to the driver. Client showed gui interface with all the sockets, I pressed the connect button and all I got was a yellow light?? I disconnected Arduino and reconnected with the client and I got a red light. So I am connected but nothing is happening. Hopefully you could enlighten me what to do next and is it my mistake.

Hope to hear from you soon joe90
8 years 3 weeks ago #7181

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

Anyone else using Arduino driver? It's not being actively maintained at the moment hence some issues.
8 years 3 weeks ago #7195

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

  • Posts: 11
  • Thank you received: 0
Hi
Thank you for your replay.
8 years 3 weeks ago #7198

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

  • Posts: 58
  • Thank you received: 6
I'm using it for focusing, at least for now. I think i'm going to re-build my focuser this summer to get autofocus to work.
I have had no problems connecting other than wrong port in options tab. You should check that first, usually should be ttyUSBx.
8 years 3 weeks ago #7201

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

  • Posts: 11
  • Thank you received: 0
hi
I've checked the port it is correct . ttyAMC0. What do you set up on the Arduino? this bit I don't understand.

Thanks for replaying
8 years 3 weeks ago #7207

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

  • Posts: 58
  • Thank you received: 6
What arduino board are you using? Does it have usb port or serial connector?
Did you upload indiduino .ino file thing to your arduino board?
8 years 3 weeks ago #7209

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

  • Posts: 11
  • Thank you received: 0
Arduino has a usb port and I didn't upload indiduino. I am not shore how to do this or what version type and where to download it from, I am very new to Arduino.

Thanks again
8 years 3 weeks ago #7210

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

  • Posts: 58
  • Thank you received: 6
Ok,
I'm not atmy pc right now, so can't make step by step guide for you.
Basically you need to:
- Install arduino ide to your computer (can download from arduino website)
- Connect arduino to computer via usb cord
- Use arduino ide to flash your arduino board with standardlibrata.ino, shoud be included with arduino ide or indi 3rd party drivers, i don't remember witch it was.
- Connect your relay box to arduino as instructed in indiduino site
- Connect arduino to computer
- Use dmesg to see what port is arduino.
Should now be ttyUSB(x), not ttyACM(x)
- Start indiserver with indiduino driver
- Connect your client (kstars/ekos?) to indiserver
- Check and change port from options tab
- Connect
8 years 3 weeks ago #7211

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

  • Posts: 456
  • Thank you received: 76
If its an arduino nano it will be /dev/ttyUSBx
If its an arduino micro it will be /dev/ttyACMx

One way to find out is... unplug the arduino, plug it in again, type dmesg on a command line and read the last few lines of the log.

Once you get it up and running you can use udev rules to create a custom device path. Something like /dev/switcher01. This makes it more manageable when you have a lot of similar devices connected.
8 years 3 weeks ago #7213

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

  • Posts: 11
  • Thank you received: 0
Success, connected to the Arduino. You mentioned "Connect your relay box to arduino as instructed in indiduino site" I cannot find any maybe I am just getting old. Could you nudge me in the right direction I would appreciate this as I am literally days old in using the Arduino. Can I use any of the relay board for the Arduino?

Many Thanks Adam
8 years 3 weeks ago #7219

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

  • Posts: 456
  • Thank you received: 76
Wiring the relay to the arduino is easy.
Connect the 5v pin from arduino to the relay's 'VIN' or '+' or '5V' connector
Connect the gnd pin from arduino to the relay's 'GND' or '-' connector
Connect the signal pins from arduino to the relay's 'INx' or 's' connectors. (Use any digital out pins from your arduino)

I'm using an 8channel relay board so I have 10 wires from the arduino to the board (8xsignals, 1x5v, 1xgnd)
www.dx.com/p/8-channel-5v-relay-module-s...-148811#.Vt6eOfmLSVM

Derek
8 years 3 weeks ago #7220

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

  • Posts: 11
  • Thank you received: 0
Thank you Adam
8 years 3 weeks ago #7221

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

Time to create page: 1.208 seconds