Welcome, Guest
Username: Password: Remember me
08 Apr 2018
INDI development team is happy to announce the release of INDI Library v1.7.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers.
Read More...
  • Page:
  • 1

TOPIC: Indi compatable arduino firmware for filter wheel?

Indi compatable arduino firmware for filter wheel? 5 months 1 day ago #22603

I'm working on motorizing a filter wheel using an arduino nano and one of those cheap little 28byj-48 stepper motors that come with the uln2003 driver board and one magnet for home. Mine is very similar to a project on thingverse except I didn't 3d print anything.

Does anybody know of or have some simple indi compatable protocols or an arduino .INO project file with them?

Web searches have come up empty so far. Any of the simpler wheels would do. I found some possible protocols to use to write one but thought I'd check around first. The version I have working standalone uses FILTER0# FILTER1#..etc. but the drivers I've tried have been using a much more cryptic method with symbols and such. If not I'l be trying to makesuch a thing happen using one of the existing drivers, so any protocols pages would also help.
thanks,
Ray

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

Indi compatable arduino firmware for filter wheel? 5 months 21 hours ago #22636

  • maxer
  • maxer's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 178
  • Karma: 1
  • Thank you received: 18
Hi Ray,
You could take a look at this thread..
indilib.org/forum/general/283-moonlite-f...rotocol.html?start=6
It needs some explaining.. I made some (alot..) modifications to the code and used my old broken Xagyl filterwheel with a stepper motor to emulate the Xagyl protocol.. that was some years ago so I'm not sure if I still have sketch somewhere.. but I can try to find it if you are interested ?

Br
/Markku
The following user(s) said Thank You: Blueshawk

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

Last Edit: by maxer.

Indi compatable arduino firmware for filter wheel? 5 months 14 hours ago #22642

Yes please could you? That sketch sounds like just the thing I'm looking for.
re: other thread: that was interesting to read through anc covered many of the same things I worked out on my focuser. I've got the arduino moonlite setup on all my scopes. ..well one arduino nano in the mount box and connectors to steppers on each scope and it works pretty good.

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

Last Edit: by Blueshawk.

Indi compatable arduino firmware for filter wheel? 4 months 4 weeks ago #22657

  • maxer
  • maxer's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 178
  • Karma: 1
  • Thank you received: 18
Yes, I found the code in my old laptop :) and it still compiles so all you have to do is some changes to the code to fit your needs.
I almost forgot that the original Xagyl wheel have a hall sensor for every filterslot but I think that you only need to detect first slot and then adjust the array to find rest of positions by counting steps for the stepper.
Sorry for my bad coding style but I'm not very good at it.. I hope it gets you going anyway.

File Attachment:

File Name: Xagyl_FW.txt
File Size: 14 KB

Good luck with your project!
Br
/Markku
Attachments:

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

Indi compatable arduino firmware for filter wheel? 4 months 4 weeks ago #22658

Got it thanks! I'm not sure what protocol i'm going with just yet. I got a few minutes to look over the wheels in the indi set to find some of the commands and it looks like some of them are pretty complex. I may even modify one of the simpler indi drivers to use the ascom friendly code my current system apparently has...if I can figure it out. Mine just has one magnet at "home" an offset to find filter0 then offsets for the others. seems to work pretty well in testing with a terminal.
Thanks for your help though and I'll be using this to compare with for sure!
ps. I think your code looks just fine. :D

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

Indi compatable arduino firmware for filter wheel? 4 months 4 weeks ago #22670

  • maxer
  • maxer's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 178
  • Karma: 1
  • Thank you received: 18
Glad to help you!
You can choose to use the Xagyl protocol as it is, there is also a ascom driver available here :
www.xagylastro.com/ascom-motorized-filter-wheel-5x125.html
Br
/Markku
The following user(s) said Thank You: Blueshawk

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

Indi compatable arduino firmware for filter wheel? 4 months 6 days ago #23418

@maxer
I finally got a stopping place on the OnStep stuff and worked on this some. I thought you might like to see the direction I took. I used one magnet and hall effect and got around the backlash issues by making it only go one way. Felt pretty good about that when I found out QHY did the same thing. It indexes and repeats very well. The only bug i' have is my magnet placement makes it fail when going from 5 -1 because it thinks it's already home but on the wrong edge of the magnetic field. I plan to make it run off the magnet and retry next time I work on it.

Cheers and thanks again for the code. It was a real booster.

github.com/Blueshawk/indi-wheel/tree/master/filterwheelZX

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

Indi compatable arduino firmware for filter wheel? 4 months 6 days ago #23433

  • maxer
  • maxer's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 178
  • Karma: 1
  • Thank you received: 18
Hi Blueshawk,

Your coding looks good and a lot more comments than I had so it's easier to undeerstand.
I also had some problems that was caused by the hall sensor giving unexpected values depending on what direction the magnet came from but nice that you sorted it out, I don't remember what hall sensors I used but it evenually worked.
You're welcome!
/Markku

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

Indi compatable arduino firmware for filter wheel? 4 months 4 days ago #23504

Hi Blueshawk,

that sounds good. Keep us updated.

Markus

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

Indi compatable arduino firmware for filter wheel? 4 months 3 days ago #23532

Sure thing Hy-Fye1. :)
Current status on this driver is a bit up in the air while I get around my use of too many "cheapduinos" at once via head scratching and udev rules.
Overall the version at the above github link was working with the Xagyl filter wheel when plugged by itself at my desk pc. I got around the magnet placement and the fix should work for any wheel now. This version is for the cheap little 5v gearhead byj motors with ULN2003 driver boards you can get at ebay or Amazon. after removing the screw, I drilled and tapped mount holes in one cover for the motor, then glued the motor into the threaded hole left by the screw by filling it with epoxy from the other side then screwing the screw back in a bit with the motor in place. Be careful you don't let glued into the motor. I used a bit of tape on it and then just left it in there. The motor runs in unipolar mode. Just plug the motor connector into board and install with a header or wires to the pins on the Arduino. The magnet placement isn't critical but make sure when you mount the hall effect that the board will clear filters and magnet. Placing the magnet anywhere between 4 and 0 (5 and 1) does the trick. The rest is just a process of figuring out steps by trial and error, change and download, until each filter lines up. since they all reference from a known home position the filter positions will be increased by about the amount of of the distance of the first one to the second so after that point things go a bit faster. The distance from the home position sets filter 1. I plan to get the offsets in the indi xagyl driver to actually work at some point which will be great for fine tuning position but right now that part as well as much of the info screen is just placeholders.
Rather than go reverse to get to lower numbers, I chose to eliminate lash issues by having the motor only run one way as much as possible. a lower value (i.e. from 4 to 2) will make the wheel run on around and find home, then run to the stored value of the filter requested. The wheel self calibrates any time it passes home or goes to a filter of a lower position value.

Once on the mount in mixed skies, mine is currently telling me filter_0 not defined and other great errors...I think I've been trying to change the color of my focuser. :P

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

Last Edit: by Blueshawk. Reason: Because spelling.
  • Page:
  • 1
Time to create page: 0.152 seconds

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica