×

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

Bi-monthly release with minor bug fixes and improvements

Automated Flat Panel Control

  • Posts: 8
  • Thank you received: 1
Hi All,

If this is in the wrong place or there is already thread containing this info it please let me know. I just didn't see one.

First, I have very very limited coding experience, but am looking for some help in controlling an EL Panel via the Calibration settings within the capture module of Ekos.  I have an RPi 4 running astroberry with a Raspberry Pi Expansion Board, Power Relay .  I'm using a 3d printed shutter on a servo driven by servoblastercap.  The cap closes properly/automatically when it comes time to taking darks so that's not an issue.  I had planed to control el panel via the relays on the hat.  I found Astroberry DIY including the Astroberry Relay, and while I can manually flick the relays on within the INDI Control Panel, I can't seem to get it to respond to the calibration settings.  I also found a driver written dokeeffe on GitHub call qik_flat, which at first glance looks exactly like what I'm trying to do, but again I'm code dumb and don't know.  So I'm humbly asking the community for help.  Any direction would be fantastically appreciated.

Thanks all,
YKMFPTD :)
2 years 1 month ago #81372

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

  • Posts: 20
  • Thank you received: 2

Replied by Tim on topic Automated Flat Panel Control

At the risk of me being very dumb, how are you controlling the EL panel? Relays can turn a power supply on and off, but they will not allow you to control intensity. The arduino code in qik-flat does not appear to control intensity - the INDI driver states "not supported" under SetLightBoxBrightness.
I understand that not all EL panels are dimmable, and that dimming those that are is non-trivial. You will either need to experiment with arduino control of the EL and amend the driver, or switch to a driver that dooes support dimming and devise arduino code that responds to it. It might be easier to use an LED panel - see github.com/jwellman80/ArduinoLightbox, which I used as the basis for my fixed flat panel.
Regards
Tim
2 years 1 month ago #81403

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

  • Posts: 1000
  • Thank you received: 155
On a side note - is there a way for EKOS to automatically measure an adjust the brightness of an LCD board (using FlipFlat device driver)?  I made may own light board with an Arduino controller and and INDI can adjust the brightness (manually) and can go to preset filter brightness settings.  But I would like EKOS to keep my exposures at 2 seconds and then let EKOS measure the brightness and adjust the brightness level to match my selected ADU value.  Is that possible?



 
2 years 1 month ago #81404

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

  • Posts: 8
  • Thank you received: 1

Replied by DL on topic Automated Flat Panel Control

Peter, Tim,
Thank you for the insights!Given the nature of my question regarding code, I obviously see no dumb questions, ever, which is a blessing and a curse. I’m just grateful you’ve shared your thoughts. Yes, I am controlling the EL Panel with the relay board mentioned in my original post. As of right now, I am not too concerned about controlling the brightness of the EL panel. I’m shooting with one light pollution filter on a one shot color camera so I don’t need to adjust brightness for multiple filters at this point, that will be a bridge across later I suppose. For now, I want Ekos’s capture module two turn on the EL panel when servoblaster has my automated dust cap closed via the calibration settings for flats. The EL Panel is mounted to the inside of my dust cap. Automated flat capture is my final step in complete rig automation.  I’d like this to be a pi based solution if possible without adding another component to the mix. As far as the question about Ekos adjusting the brightness for a static exposure, I don’t know. I’ve never seen that behavior offered from the system before. But I do like that idea, it could check a lot of boxes, not that my opinion carries much weight.  Any suggestions on how I can modify a driver to fit my needs or a good place to start to learn how to accomplish that?
2 years 1 month ago #81421

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

  • Posts: 3
  • Thank you received: 0

Replied by dave on topic Automated Flat Panel Control

Hi.
Just wondering if you have any follow up on this post. I am also busy trying to get an automated 'flats system' working.. still trying to get my head around it.

Basic question, if I add 'astroberry_relays' to turn on my flat lamp - does ekos 'know' to use it when I'm doing flats. I know I set 'Dust cover with external light' in Flat calibration - but how do I tell ekos to use that (astroberry_relays) device?
And same for controlling a servo (I will close the flat panel / dustcap before taking flats)?

Any enlightenment appreciated,

Dave.

p.s Great product Astroberry 10/10 !!
2 years 3 weeks ago #81973

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

  • Posts: 474
  • Thank you received: 168
Ekos finds devices that implement the corresponding interfaces (dust cap and light box) and uses those. Usually they are the same device that implements both, like Flip-flat or Snapcap, but I don't see why they couldn't be two different devices too (barring any other bugs :)
2 years 2 weeks ago #82119

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

  • Posts: 3
  • Thank you received: 0

Replied by dave on topic Automated Flat Panel Control

Hi,

Thx..

I am using relays to open/close a diy flat panel & turn the light on/off.
The relay is not usb, it is run from rasp pins..

How do I 'tell' ekos to use that relay? How do I connect it to the relevant flatpanel interface?

As a work-around I could call the relay with a pre-job script - but that is a less integrated solution.

Dave
2 years 1 week ago #82421

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

It has to be done via an INDI driver. You can checkout of the existing driver like flipflat and customize this to your needs. Perhaps we need a generic driver like Dome/Mount script gateways.
2 years 6 days ago #82433

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

  • Posts: 403
  • Thank you received: 41
I am on the hunt for an automated solution flat panel - dust cap, of course fully controlled through Ekos. Trying to compare and weight my options between commercial and DIY.
Does anyone have a specific schematic or guide (parts, drivers etc) that followed with success to share?
1 year 8 months ago #84741

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

  • Posts: 8
  • Thank you received: 1

Replied by DL on topic Automated Flat Panel Control

I use a 3d printed shutter, connected to this servoservo . It's purched on a 3d printed platform at the end of my dew shield. I use the servo blaster driver to control its opening and closing. I attached an EL panelEL panel to the inside plane of the shutter and while flats are not 100% automated, the servo blaster driver is picked up by Kstars and allows for automated darks and biases. And a remote triggering of flat capturing sequence.

The only problem I'm still trying to tackle from a DIY perspective is 100% automated flats. Which would then let me capture flats while using the Scheduler module. For now I have to manually engage the EL panel when I need to capture a fresh batch of flats and current configuration is not dimmable, but that will be changing soon.

To do this, I use the astroberry relay driver to flick on an RPi relay hat . Since I'm using a dedicated astro camera I can take advantage of the ADU auto flat capture feature within Ekos. So at least part of the flat capture process is automated.

Hope this helps.
The following user(s) said Thank You: Jasem Mutlaq
1 year 8 months ago #85049

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

  • Posts: 64
  • Thank you received: 10

Replied by Axel on topic Automated Flat Panel Control

...
Last edit: 10 months 2 weeks ago by Axel .
10 months 2 weeks ago #93342

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

  • Posts: 64
  • Thank you received: 10

Replied by Axel on topic Automated Flat Panel Control

<cite>="Axel post=93342 userid=4376"] 1. INDILib, and it's dependencies ... To build libindi from source see instructions on indilib.org"
What does that mean? Do I have to recompile the hole INDI (with make install) or just need to install the dependencies in Linux (which did lead to the error on compiling "indi_arduino_cap":
</cite>

Yes I have to :-)

Then I got
-- Found INDI-DRIVERS: /usr/lib/x86_64-linux-gnu/libindidriver.so
-- Configuring done
-- Generating done
-- Build files have been written to: /myProjectpath/build/indi_arduino_cap

Then I am able to compile and install the INDI driver of "Indi Arduino Cap" with <sudo make install> and use it within my environment.

Problem no 1., 2. (pip install pyfirmata) and 4. (do "make install" for driver) solved.
Remains 3. (PyFirmata on Arduino), 5. (Wireing) 6. (Standard for Indi)

Conclusion: one more sentence like "You need to install the dependencies like described in <link as described in Readme> and compiling Indi with <make install> (!). This puts the necessary Indi driver libindidriver.so into the appropriate library directory of you Linux environment, so you are able to compile the Indi driver Indi_arduino_cap. This will install three files in /usr/bin: indi_arduino_cap, arduino_servo.py and indi_arduino_cap.xml". That's how I would make the description more clear (no offense) :-)
Last edit: 10 months 2 weeks ago by Axel .
10 months 2 weeks ago #93345

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

Time to create page: 0.760 seconds