Flat Panel control Arduino and ASCOM

2 replies398 views
Steven Gill (Parkesburg Observatory) avatar
Hi All,

Apologies if this isn't allowed, so mods please delete if this breaks any rules.

While this isn't a product announcement, and have no intention of doing that: I have been working to solve some problems that I face in my observatory. I really wanted to have flexibility on taking my flats, including my larger scope that I stretch t-shirts over and use an A2 EL tracing pad.

I originally used the Arduino controlled device that connected via USB and spoke the Alnitak Flat Panel protocol.

However, as I have progressed on my observatory journey and look to make flats part of my sequence, permanent mounting seemed in order. I hate errant fly-away cables and keeping the flat panel and scope separate is important, since a flip-flat on an 11" scope seems a bit out of control. So I dug into some code and decided to roll my own and then release it on github under the GPLv2. Oh, and the code supports serial (USB) connection or WiFi. I have been running WiFi flatbox for the last 6 months.

This is in two parts (and I realize is probably focused a little more on the DIY minded people here):
Arduino based code implementing the flat control to an EL pad. I currently use a 5v letter sized sheet for my 500mm refractor and a 12v EL A2 size for my 11"SCT
ASCOM Driver to implement the client-side protocol

This currently works on an Arduino UNO WiFi rev 2 with the above EL pads attached talking over either USB or WiFi to my NUC running Windows 10 on ASCOM 6.x.x

I primarily use NINA but have tested it in SGP.

Currently only calibration is supported, but I may add motor control in the future. Depends on my needs, demand from users, and my ability to test, etc.

Here's a link to the code.

https://github.com/smgill75/ArduinoFlatbox

I plan on offering a binary for the ASCOM driver once a couple additional people test. This is still considered ALPHA / early BETA

I hope this helps anyone looking to do the same and either isn't a coder, or doesn't want to code, but likes to tinker and do cool Astro Stuff


Cheers and clear skies! 

Steve
Helpful
Fabian Butkovich avatar
Hi All,

Apologies if this isn't allowed, so mods please delete if this breaks any rules.

While this isn't a product announcement, and have no intention of doing that: I have been working to solve some problems that I face in my observatory. I really wanted to have flexibility on taking my flats, including my larger scope that I stretch t-shirts over and use an A2 EL tracing pad.

I originally used the Arduino controlled device that connected via USB and spoke the Alnitak Flat Panel protocol.

However, as I have progressed on my observatory journey and look to make flats part of my sequence, permanent mounting seemed in order. I hate errant fly-away cables and keeping the flat panel and scope separate is important, since a flip-flat on an 11" scope seems a bit out of control. So I dug into some code and decided to roll my own and then release it on github under the GPLv2. Oh, and the code supports serial (USB) connection or WiFi. I have been running WiFi flatbox for the last 6 months.

This is in two parts (and I realize is probably focused a little more on the DIY minded people here):
Arduino based code implementing the flat control to an EL pad. I currently use a 5v letter sized sheet for my 500mm refractor and a 12v EL A2 size for my 11"SCT
ASCOM Driver to implement the client-side protocol

This currently works on an Arduino UNO WiFi rev 2 with the above EL pads attached talking over either USB or WiFi to my NUC running Windows 10 on ASCOM 6.x.x

I primarily use NINA but have tested it in SGP.

Currently only calibration is supported, but I may add motor control in the future. Depends on my needs, demand from users, and my ability to test, etc.

Here's a link to the code.

https://github.com/smgill75/ArduinoFlatbox

I plan on offering a binary for the ASCOM driver once a couple additional people test. This is still considered ALPHA / early BETA

I hope this helps anyone looking to do the same and either isn't a coder, or doesn't want to code, but likes to tinker and do cool Astro Stuff


Cheers and clear skies! 

Steve

This is a pretty genius solution to automating a monotonous task, I am an electronics hobbyist myself and love finding ways to incorporate my skills into this hobby. In fact, before I purchased my ioptron CEM26, I modified my SkyWatcher Star Adventurer with GOTO functionality by adding custom motor control electronics and an NEMA 17 stepper motor to the DEC axis with a 3D printed mount bracket. 

https://github.com/fbutkovich/Star-Adventurer-GOTO-Conversion

I hadn't figured out how to integrate this with any ASCOM drivers however so what I ended up doing was just writing a Python GUI which send serial commands over USB to the Arduino with the motor controller. The GUI allowed me to pick a starting DSO/star coordinates, and a destination coordinates, and computed the difference between them to determine the runtime for the RA motor in the Star Adventurer and degrees to move the DEC axis. 

It's actually funny that I stumbled upon your post, because I was just thinking of a way to automate flat/dark collection with an Arduino the other day as I recently learned the importance of proper calibration files myself when imaging M101. 

Let me know if I could collaborate in any way I'm very experienced with mechanical, electrical, and software design. CS! 

Fabian
Helpful Insightful Respectful Engaging Supportive
Steven Gill (Parkesburg Observatory) avatar
Fabian Butkovich:
It's actually funny that I stumbled upon your post, because I was just thinking of a way to automate flat/dark collection with an Arduino the other day as I recently learned the importance of proper calibration files myself when imaging M101.


Thank you for the encouraging words. Just so you are aware: SGP and NINA have native support for Alnitak FLIP-FLAT protocol. There is a code repository on github that does this: 

https://github.com/ivonnyssen/ArduinoFlatBox

I just wanted to add network / wifi to this and found that the NINA support was not working after I added the code. That's how my new project started. The ASCOM part was to keep the imaging program out of it. If the above suits your needs, have at it. But if you want to contribute, I'd be happy to have the help!
Well Written Helpful Respectful Concise Engaging Supportive