×

INDI Library v2.0.0 Released (01 Feb 2023)

Bi-monthly release with major changes to INDI properties and client API in addition to new drivers and improvements.

DIY Flatfield Dustcover with RPi

  • Posts: 314
  • Thank you received: 34
Hi there

Since I discovered a regional dealer that got flatfield foils with a evenly white spectrum
I plan to build a DIY flatfield dustcover in the next 2 to x months.
My plan is to follow the nice article
indilib.org/support/tutorials/165-diy-au...telescope-cover.html
but since I never had anything to do with servo motors its a bit unclear to me
what kind of servo I should look for. Especially what force and what gear (metal or plastic).
And of cause it should be as cheap as possible.

I currently focus on the BMS-390 DMH servo that has metal gear and a force of 46NM/cm/4.8V.
That mean that it should handle about 4,6 kilogram 1cm away from the axis. 10cm away makes
460 gramms. My flatfieldfoil will be taped on an 22x22x0,1cm aluminium plate that weights about 200g.

The flatfield would be switched on/off by a relay.
Now my qestion is would it be possible to integrate the flatfield into indi, is there already an solution in indi or do I need to write a new driver
for that?
[Edit] ok I see, thats the purpose of the wiringPi/usb-relay part
--= human, without Windows™ =--
pls excuse my bad english! :)
Last edit: 5 years 10 months ago by pauledd.
5 years 10 months ago #15506

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

It's up to you. But to make things easier, you can make your DIY flatfield dust cover use the same command set as Flipflat and then just use that driver.
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
5 years 10 months ago #15509

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

  • Posts: 314
  • Thank you received: 34
I am not shure about the FlipFlap but when you say "command set" you mean I need to built some kind of USB controller to drive my dustcover with the FlipFlat driver?
:whistle: thats far beyond my skills, then I will stick to the ServoBlaster and wiringpi like in the article.
--= human, without Windows™ =--
pls excuse my bad english! :)
5 years 10 months ago #15511

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

It could be Arduino or PI or whatever, as long as something accepts commands and return results. You can check flip flat INDI driver source for how this is done.
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
5 years 10 months ago #15512

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

  • Posts: 314
  • Thank you received: 34
Thank you, I'll do that when I finish the hardware part and everything works manually.
--= human, without Windows™ =--
pls excuse my bad english! :)
5 years 10 months ago #15513

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

  • Posts: 314
  • Thank you received: 34
My first hardware arrived. As I unboxed my servo I was shocked about the size: it looks to small!
I realized that I ordered a mini-Servo :pinch:


It might be hard to attach an dustcap to this tiny thing but the specs say it can handle a lot of weight.
I'll simply use it to get some practising with servo motors and test it later with load attached.


I encounterd some problems following the indilib DIY page .
Firstly, the "contents" Box does not hyperlink any point after 4.
Installing ServoBlaster, no problem. Servo responds to move commands.

But for INDI ServoBlaster Cap (5.5) I get an error while trying to compile:
cmake -DCMAKE_INSTALL_PREFIX=/usr . ..
-- The CXX compiler identification is GNU 4.9.3
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for module 'libindi'
--   Found libindi, version 1.1.0
-- Found INDI: /usr/include/libindi (found version "1.1.0") 
-- Found INDI-DRIVERS: /usr/local/lib/libindidriver.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/build/indi_servoblaster_cap/build
 
 LANG=en sudo make install
Password: 
[ 33%] Building CXX object CMakeFiles/indi_servoblaster_cap.dir/servoblaster_cap/servoblaster_cap.cpp.o
In file included from /home/pi/build/indi_servoblaster_cap/servoblaster_cap/servoblaster_cap.cpp:24:0:
/home/pi/build/indi_servoblaster_cap/servoblaster_cap/servoblaster_cap.h:31:34: fatal error: indidustcapinterface.h: No such file or directory
 #include "indidustcapinterface.h"
                                  ^
compilation terminated.
make[2]: *** [CMakeFiles/indi_servoblaster_cap.dir/build.make:63: CMakeFiles/indi_servoblaster_cap.dir/servoblaster_cap/servoblaster_cap.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/indi_servoblaster_cap.dir/all] Error 2
make: *** [Makefile:128: all] Error 2
It seems it expects "indidustcapinterface.h" and "indilightboxinterface.h" in the "../servoblaster_cap" directory.
So I copied them from "indi/libindi/libs/indibase" to there.

Next I get a load of other errors:
Warning: Spoiler!


Maybe the author of the driver is here on board or maybe anyone can find what's the problem here? I would post an issue on github but for this repository I cant see any "Issues" page.
--= human, without Windows™ =--
pls excuse my bad english! :)
5 years 9 months ago #16026

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

  • Posts: 271
  • Thank you received: 72
Hi @pauledd
I got your message on my website :)

By the looks of your errors I suspect you might not have compiled indilib from source, but installed from ppa (apt-get)?
If so, then try compiling indi from source indilib.org/forum/general/210-howto-buil...st-libindi-ekos.html

Other than that, there might have been a update to indilib, and I have to update the driver. I will try to update everything to latest version, to see that it works. (You should not need to copy indi*.h files anywhere)

If there are links not working in the tutorial, then all the instructions is also on github. github.com/magnue/indi_servoblaster_cap/blob/master/README.md
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
5 years 9 months ago #16028

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

  • Posts: 314
  • Thank you received: 34
hi Magnus_e,

Thanks for your fast response, please dont try to do anything now! I think I found the error.
I think I have a faulty libindi installation... I will report back soon :)
--= human, without Windows™ =--
pls excuse my bad english! :)
5 years 9 months ago #16030

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

  • Posts: 271
  • Thank you received: 72
Ok. Let me know how it turns out.

This was a funny coincidence. Yesterday I 3d printet the first prototype of the printable dust cap :)
I have to figure out how to get better finish when printing with supports (this was my 4th print), but hopefully It wil turn out nice after some dev.

Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
The following user(s) said Thank You: pauledd
5 years 9 months ago #16031
Attachments:

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

  • Posts: 314
  • Thank you received: 34
Wow, that looks quite nice! I might consider 3d printing too if my aluminium cap idea fails but I dont own such a printer, and printing 4 ore more prototypes via online service might get very expensive...

I managed to get the ServoBlaster Cap work. Absolutly no errors during compilation! Servo moves as expected in indi :side:
It was indeed a faulty indi installation. Maybe I forgot to do "make install"... I will double check in future to prevent mass panic ;)

I can now order the aluminium sheet for the dust cap and will try to get it all on the scope.
--= human, without Windows™ =--
pls excuse my bad english! :)
The following user(s) said Thank You: Magnus
Last edit: 5 years 9 months ago by pauledd.
5 years 9 months ago #16032

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

  • Posts: 271
  • Thank you received: 72
Good to hear it works :)

The picture was first print of the protltype, and 4th print total. I finished assebeling my Prusa mk2s yesterday :)

The aluminum version you ar making should work just fine, I think.
If I remember correctly I installed the prototype from the tutorial in my observatory in November and it still works great (and that one is held togheter only with tape and glue.)
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
5 years 9 months ago #16036

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

  • Posts: 35
  • Thank you received: 5
wow. I love the dust cover design. would you share your STL files? i'll need to resize, but this would be a great start.
5 years 8 months ago #16607

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

Time to create page: 0.436 seconds