×
INDI Library v1.8.1 Released (09 Sep 2019)

Monthly maintenance release INDI v1.8.1

HAT relayboard

3 months 1 week ago
ajtdebruin@gmail.com
Fresh Boarder
Fresh Boarder
Posts: 9
More
Topic Author
HAT relayboard #40740
Hi all,
I am using a RPi 3B+ with Stellarmate and a board on top with 3 relay's. I have created a small python program to control these for my spectrograph, but was wondering if there is a Indi driver for this. I can't find in the Indi Device Manager.
Cheers Arnold

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

3 months 1 week ago
knro
Administrator
Administrator
Posts: 7280
Karma: 51
HAT relayboard #40765
No, but you can develop an INDI driver for this. Is there a C/C++ SDK for this relay board?

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

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

3 months 1 week ago
ajtdebruin@gmail.com
Fresh Boarder
Fresh Boarder
Posts: 9
More
Topic Author
HAT relayboard #40770
Hi Jasem,
no sdk, but in python it is as simple as:
import RPi.GPIO as GPIO
GPIO.setmode((GPIO.BCM)
GPIO.setup(20,GPIO.OUT)
and then
GPIO.output(20,False) or ....,True to activate a switch at pin 20

So can't be too difficult ;-)
Point of all this is that if I run Ekos remote on my laptop I can use the switches.
Now I have to use realVNC also to use my little program on the Stellarmate....

Cheers Arnold

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

3 months 1 week ago
cb245
Junior Boarder
Junior Boarder
Posts: 30
More
HAT relayboard #40812
This tutorial may help get you started if you decide to write the driver for the relays :
indilib.org/develop/developer-manual/99-driver-development.html

Also, this may be of interest:
github.com/rkaczorek/astroberry-diy

I personally use the WiringPi library with INDI drivers for GPIO control. I have recently used it to add ST4 capability to an INDI raspberry pi camera driver and it works pretty well and is easy to use.
The following user(s) said Thank You knro

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

3 months 1 week ago
ajtdebruin@gmail.com
Fresh Boarder
Fresh Boarder
Posts: 9
More
Topic Author
HAT relayboard #40843
Hi cb245,

The Astroberry Board may be just what I need! Thanks

Cheers Arnold

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

Time to create page: 0.440 seconds