Thanks Kevin. I will give it a closer look then to add support for this device to Astroberry DIY
Hi Kevin, I'm glad you found my
driver inspiring and base for your project. Great work!
I have just purchased Waveshare motor HAT and given it a try with Astroberry DIY , which is much more advanced focuser driver than Astroberry AMH.
It supports DRV8834 and A4988 stepper controllers, supports custom GPIO pins, uses kernel native libgpiod instead of bcm2835 or wiringpi, remembers focuser position between runs and provides focuser temperature compensation with DS18B20 sensor.
It uses typical DIR, STEP, SLEEP, M0, M1, M2 pins connected to Raspberry GPIO so I tested it with Waveshare motor HAT. Well, it works but I faced some issues with microstepping and sleeping a motor.
As you probably have much more experience with this device, I've got two questions:
1) It looks like the device does not handle software microstepping without touching hardware i.e. dip-switches. Am I right saying that you cannot control microstepping with software only?
2) Another issue is related to sleeping a stepper motor. Apparently hardware designers did not wired SLEEP pin of DRV8825 to any of Raspberry GPIO. Does ENABLE pin cut off step motor power circuit so it does not get hot?
xthestreams wrote: Glad to hear it! BUT remember the first rule of astronomy club, we talk don't about how much our equipment ACTUALLY cost us in public forums just in case our partners find out!
"no really, this guy sold it to me for $100, I couldn't believe it EITHER, besides, the kids don't REALLY need new clothes those old ones fit them just fine"
You need to edit line 32 of piface_focuser.cpp file (#define MAX_STEPS 20000) and set your preferred value.
Please note that I do not update this driver anymore because original piface addon is not available anymore.
Make sure that you disconnect the camera in INDI Control Panel before using it with other software e.g. oaCapture. Otherwise it's locked by INDI driver.
Have you tried to run it from fresh image (v2.0.3)? I use it myself for planetary imaging without any issues. If it crashes, it might be unsupported hardware issue and you can consider reporting it to oaCapture developer.
Normally when you recompile libindi (the core INDI library, which is used by all drivers) you need to recompile all drivers to use it. To make it work you would have to:
1) remove existing libindi (it will actually remove lots of packages from your system as it is required by number of packages)
2) compile own libindi
3) recompile drivers
It's a lot of work and it's pretty much what I do when preparing a new release. You can go this way or... wait until I do it
I will give it a look this week.
If it happens during system update with APT, it means that your system time & date are not correct. Normally it happens if you don't have real time clock (RTC) or other time source (e.g. GPS) connected to your raspberry pi. If you start updating just after boot, before raspberry picks up the time from the network, it will access astroberry.io site using local time in 1970 or so. it looooong before astroberry.io site certificate was issued so you get error. It will not appear if you retry after a few minutes, when your system time is correct.
Re 1: You can compile and install software in parallel using alternative location (not possible if you install from binary packages). Standard would be /usr/local/ instead of /usr/ - this will keep separate version of software for you with executable file located in /usr/local/bin/
Re 2: Astroberry provides stable versions only. Firecapture 2.7 will be available when release reaches stable status (not beta). However you can uninstall v2.6 and install 2.7beta manually
Re 3: Siril is not included in Astroberry image How did you get it?
Re 4: I was not aware of PlanerarySystemStacker. Looks nice indeed. I was trying to install it on my ubuntu desktop and... ended up with similar errors. I would suggest to report this as a bug on PSS github.
Last but not least, welcome to open source astronomy! Share your experience with other users and enjoy!