PDA

View Full Version here: : DIY filter wheel assistance please!


LonelySpoon
09-12-2022, 09:46 AM
I'm trying to convert a filter wheel to Arduino nano or RPi Pico control. I've successfully done this with an auto focuser so I'm confident I can eventually get it coded and working. I've made the mechanical changes already to an Orion FW.

I've tried a lot of different coding from various sources with no luck. Most want to integrate bells & whistles I'm not interested in.

Closest I've come is with code from http://www.astronomymark.com, which includes a separate GUI capability. His problem is that the code asks for a config.txt and filters.txt which he doesn't include.

I've had not luck finding a way to contact him about it so I've come to a halt there.

Ideally, I'd like to include ASCOM compliance but that isn't a deal breaker.

Any suggestions/solutions?

Thanks,

Neville
LSO

oska
09-12-2022, 05:39 PM
Both files go in the application directory.
It appears the filters.txt file is a list, one per line, of your filter names (arbitrary) and config.txt is where it stores state (which filter is current).

It does seem to get confused? loading config.txt from the application directory but storing it in data/config.txt
I would change:
saveStrings("data/config.txt", config);
to:
saveStrings("config.txt", config);


filters.txt:
Red
Green
Blue
L
H


config.txt:
1

LonelySpoon
10-12-2022, 09:05 AM
Thanks, John, for working that out.

I hadn't spotted that anywhere.

I'll give it a go and let people know.

Neville
LSO

brown_rb
12-12-2022, 02:52 PM
https://sourceforge.net/projects/myfilterwheel-ascom-diy/


will provide some of the answers you seek


regards
Robert

LonelySpoon
13-12-2022, 08:50 AM
Thanks Robert,

I saw this one and downloaded it all before, but it seemed quite complex and the inclusion of PCBs made it more than I wanted to take on at the time.

If I can get something happening more directly (code -> nano -> stepper - filterwheel) I'll come back to this one for sure.

Thanks again,

Neville
LSO