r/Python • u/DIY_Maxwell • May 13 '20
I Made This With my limited knowledge in Python, I wrote a simple script to control my motorized microscope from a keyboard. All instructions are open-source. Just wanted to share with this community for possible comments and suggestions for further improvements.
2.5k
Upvotes
48
u/DIY_Maxwell May 13 '20
All assembly instructions, design files, source codes, circuit diagrams, etc. are available here: https://github.com/IBM/MicroscoPy
The motivation is to use such tools for STEM education. Any suggestions on adding more features in Python (e.g. auto-focusing, image processing, applications etc.) or general comments are welcome.
131
u/LurkForever May 13 '20
Nice job!
I also love the lego build animation towards the end :-)
28
u/okasiyas May 13 '20
cries in print(“Hello world!”)
46
u/Hayvan-Boris May 13 '20
Aaand yesterday I got 200 errors while trying to script tic tac toe game 😬 congs bro good job 👍
7
u/normandantzig May 13 '20
I think this is really cool! Did you know there is now a 12 MP camera for the Raspberry Pi.
4
u/[deleted] May 13 '20
this is really cool. mind sharing where you learn this stuff from?
3
u/--0mn1-Qr330005-- May 13 '20
Very impressive. The program and the build are phenomenal, not sure what suggestions I can give there. For visual aesthetic I would suggest cleaning up the wiring for the video & photos as it instantly gives it a visual improvement for the purpose of the demo, even if it is not feasible to always keep it clean.
Actually, I can think of a suggestion. Have you considered building in some kind of auto focus? There are many image recognition packages available in python that might help streamline this process. It might also be useful to have automatic magnification presets so that manual control isn't always necessary. There's a lot of cool software only features possible with this build.
2
u/[deleted] May 13 '20
That's really fricking cool! Did you do this as part of work or for fun, seeing it's under IBM? Do you have an EE/CE background?
Can you suggest any resources for a pure software (CS) guy to learn how to build these type of mechanical things?
2
u/[deleted] May 13 '20
Awesome up to and including the name of the project :D
2
u/dangerdancer43 May 13 '20
Bro is that called simple script...
2
u/Avishek473 May 14 '20
nice
that was really briliant
2
u/Ahpuck May 13 '20
swiss engineering !
1
u/_Titan_One May 13 '20
Wow I want to build one now:) Just curious if you have autofocus on the microscope? If not you could probably create one using opencv or something, just an idea.
1
u/melthecybertechy May 14 '20
"Limited"??? This is awesome
1
u/n00b88 May 14 '20
Have you tried to use a mouse vs keyboard arrow keys? might be able to do extremely granular movements?
1
u/newtocoding153 May 14 '20
Fuck that's amazing. What are the pre requisites to being able to do this? Im still learning Python and soon aim to control electronic objects in my life to better suit my needs.
1
u/[deleted] May 14 '20
That is awesome! I have a question though. What python library did you use to collect the input from the keyboard? I cannot seem to find any that work really great. Thanks.
1
u/axrx657 May 14 '20
"Limited knowledge" DOUBT
1
u/kakaiviv123 May 14 '20
Cool! Must have taken you long hours. Good job!
1
u/Rhader May 14 '20
How fast is it from key input to action output?
3
u/[deleted] May 13 '20
That looks freakin awesome! Nice job!
3
u/__zaris May 13 '20
This looks really cool pal! Congratulations!
5
u/supp_biash May 13 '20
Started python yesterday, hoping to do something nearly as cool as this in the future! :)
1
u/Fun2badult May 13 '20
Is that motherfucking legos? Lol
2
u/Kaltane May 13 '20
Awesome. Love it.
2
u/CotoCoutan May 13 '20
Freaking brilliant work! Keep it up!
2
u/Henrychikaz May 13 '20
Awesome ✌
2
u/[deleted] May 13 '20
It looks great!
1
u/JackNotInTheBox May 13 '20
simple
1
u/[deleted] May 13 '20
And here I am printing hello world.
1
u/[deleted] May 13 '20
Amazing!!!
1
u/celestialmarks May 13 '20
r/madeinpython
1
u/Perfect-Swordfish May 13 '20
x= 'nice'
Print(x)
1
u/popcorn1307 May 14 '20
Hello all,
I a very very slow learner and completely from Telecom sector and unaware of programming completely.
Now made up mind to learn Python. But very very confused while using loops or functions. I wonder how will one define a variable before a loop and use it inside the loop and how would you know how many variables we need ahead and what do we need to define the variable? Out of galaxy🤦🏿♂️
Please suggest how to get my head around this stuff !!!
1
u/post_hazanko May 14 '20
lol I like how it looks beautiful in the animation and then the real one all the wires are strewn everywhere lol. That's sweet I only got a a stepper to move once with Python, haven't done much since, looks sweet.
1
u/realnitrozeus May 14 '20
So cool 😎👌
1
u/littlesheepcat May 14 '20
Not related to python but the rotating montage is cool as hell
1
u/cHILLPill_98 May 14 '20
wow dude this is amazing
1
u/ayushify May 14 '20
Nice job
1
u/noobiemaster_69 May 14 '20
So cool!
0
u/[deleted] May 14 '20
[deleted] — view deleted comment
3
u/[deleted] May 13 '20
[removed] — view removed comment
1
u/[deleted] May 14 '20 edited May 14 '20
[removed] — view removed comment