Making a Servo Controlled Eyeball for Pi Camera 2
Вставка
- Опубліковано 3 чер 2024
- Here's how I designed and made a servo controlled eyeball for a Pi Camera 2. I use a Raspberry Pi and a Pololu Micro Maestro motor controller to control it. This is for playing around with neural networks and robotics.
This video was made possible in part by these Patreon supporters:
Mark Peltier
Piotr Bomba / przysuchainfo
Dimitrij Greco / taran72
Yojimbo
Printable Science
Robert Büchel
Support RimstarOrg on Patreon www.patreon.com/user?u=680159
or make a one-time donation at rimstar.org/donate_support_ri...
Subscribe so that you don't miss new videos as they come out ua-cam.com/users/rimstaror...
Go to the main channel page here / rimstarorg
The source code for controlling the Maestro board and servos is at:
rimstar.org/science_electroni...
The STL, OBJ, and Blender files are all available here:
www.thingiverse.com/thing:302...
Please share in the comments if you do anything with this.
Further information about the code for emulating the human retina is not available yet.
See also:
Servo Motor With Raspberry Pi and Maestro board
• Servo Motor With Raspb...
My CR-10 3D Printer - Ceality 3D Printer
• My CR-10 3D Printer - ...
Follow behind-the-scenes on:
Twitter #!/RimStarz
Google+ plus.google.com/1163951251362...
Facebook / rimstarorg
rimstar.org - Наука та технологія
I've added the STL, OBJ, and Blender file here:
www.thingiverse.com/thing:3023833
I was hesitating because I wasn't sure where I wanted to put it all since I'm contemplating creating a separate channel just for neural networking/AI.
did you create that channel already?
"I wanted it all to fit inside a human head, in case I ever do that"
Eeep! 😳
Very cool, 3d printers are so cool and what we can do with them is just beginning to be realized
That was marvelous! We'll done!
Really cool idea man, keep going! This video inspired me to get some servos for my camera
I am drinking. So.. Is this creation? I'm not insane. It's precise. "Walking on the shoulders of Giants". But, improvised. True creating. Beautiful.
Nice work!!
Very nice!
Uh oh! Is this the start of a series of videos named: "Creating an android of myself"
Great work! I saw this in real life. Now I know how its made.
Thanks!
Veeeeeeery interesting, indeed 😍 I'm experimenting with a raspberry pi 2 too, and I think I might try something like that, so thank you very much for this video and idea 😊
[I do need to get a 3d printer, sooner or later 🤔]
What, still no 3D printer!? :) Glad I could feed you some ideas.
Pretty cool 😎
Amazing!! 😮
Hi Steve, Found your channel. It was nice to chat with you at the maker fair. I subscribed and look forward to videos of any further research or developments on this topic.
Hi Bill, It was great talking to you too. Thanks for stopping by my table. I'm also glad you found the video. I'm recovering from the weekend now and will slowly get back at it.
I love your videos
Thanks!
Отлично!
I really like the modular design! I wonder if you could make a second eyeball camera about 10cm to the side of the first eye... with some post processing it *may* be possible to do depth perception calculations by superimposing the two images and calculating the pixel differences to triangulate the position of various objects in the field of view.
Thanks! I've never looked into the math but it sounds feasible. Calculating the distance to objects was one use I had in mind for having the motors not affect each other. I'd have both eyes fixate on the same object and then triangulate using on the servo motor angles alone to get the distance to the object.
Nice job!
Btw: I really want to get into neural network programming. :D
Thanks! There's definitely a lot of fun to be had with neural networks!
10/10
Nice work. Can share what super glue you using? Thanks for sharing.
It's just whatever cyanoacrylate glue my local hobby store had. I'm away for the week but here's a photo of the maker, Bob Smith Industries, except that it's purple where this bottle is blue. www.howardpianoindustries.com/cyanoacrylate-ca-glue-super-thin/
Your videos are always so inspirational and educational. I've wanted to get into computer vision for a while now. What packages did you use? Heh, I'm not sure where I would put those servos, but I need my an eye camera.
Thanks. The only package specific to what I was doing that I didn't write myself was numpy for the retina emulator code. The maestro board library was one I wrote myself and talked about in this video ua-cam.com/video/mX6P9CwSm7I/v-deo.html and is available on my webpage here rimstar.org/science_electronics_projects/servo_motor_with_raspberry_pi_and_pololu_maestro.htm.
Hi do you have any suggestions for a camera with zooming capabilities? In addition what would you say the best cameras for projects like these would be? Thanks.
I haven't researched cameras with zooming capabilities. I just finished making my next version, with two eyes this time and YoLuke webcams, these ones www.amazon.ca/dp/B016MPIFWQ/ref=pe_3034960_236394800_TE_dp_1 but they don't have zoom, just manual focus. I bought them because they were very cheap and so I wouldn't call them the best cameras. I haven't researched for the best yet. I'm switching to them because they are webcams with USB output, meaning I can connect them to anywhere, unlike a Pi Camera which can work with a Pi and only a handful of other boards. I should have a video up about my new version in a week or so. Let me know what you find.
Steve, this is off topic but, What's the best wire to use in making a crystal radio?
In viewing your past videos on Crystal Radios, I did not hear what type of wire to use.
I understand it's solid core copper but, what gauge? Thank you so much.
Are you talking about for the antenna or the coil? For the antenna it doesn't really matter unless you have a very long antenna. I that case a thinner wire will introduce more resistance so you'd want thicker.
If for the coil then I talk about that in my video about making crystal radios ua-cam.com/video/VqdcU9ULAlA/v-deo.html around 2 minutes and 37 seconds in. What complicates it is that the induction of a coil is dependent on but the length of the coil and the number of turns, both of which are affected by the wire thickness. So in that video I use a specific wire gauge to get the specific dimensions for the desired induction. Otherwise if you have a different wire thickness then you'd just have to do the calcs yourself. I talk about selecting the inductance in this video about LC circuits ua-cam.com/video/tjD9I95RAbw/v-deo.html and about designing the coil for a specific inductance here ua-cam.com/video/awyLYgu6ODM/v-deo.html.
Hey thanks, Steve. Sorry about being vague, but yes, the coil is my concern. I will check your other vids. on that. Thank you.
I really need to learn Python! Great video
Thanks. Python does seem to be the way the world is going! I'm using it because most neural networking is done in Python.
try to use this: 8.5/180*angle that you want +2 as ax+b formular to calculate the positon
hello, I'm new on the channel. Your channel is just awesome !
1. Could the camera of the eyeball work on arduino ?
2.Is Blender a free designing program for 3d printing ?
3.Maybe you could do a turret project, combined with the coil gun and this eyeball project , where you can use a laser pointer ( any color within an angle of aiming) for targeting & shooting. [nb 3 could be fun lol] :)
& +1 sub in the counter of course. ( for the laser u can use it by hand but order the eyeball to aim at the laser spot )
1. The camera I used, the Pi Camera 2, won't work with an Arduino. However, as I point out in the video, if you can get a small enough camera which does then it's just a matter of designing a new eyeball part, just the white eyeball. The rest should still work as is. I can see I'm going to have to find a place to put the STL files. I'm not sure if I want to put them on my website or github or a new neural networking website.
2. Blender is a free program mainly for doing 3D modelling and animation, though a lot of people seem to use it for drawing 3D scenes for making still images. However, as you saw, the same 3D models work for 3D printing. There may be better software such as Fusion360 or 123d which may be more suited for precision parts and design, but I haven't had any issues yet.
3. So many possibilities with this thing!
Thank you very much, i see how it works now specially with the eyeball-camera part and Blender and the rest aswell.
You can maybe post the STL files in all of the websites that you've said, or announce it on comments when its done. Going to have look. Have a good day 💯👍 Nice project !
I want to become electrical engineering but I don't know how to start please can you tell me how I will start for beginner
Respected sir have you done electrical engineering or mechatronics?
Aleena Amer mechatronics is a gimmick used by those accept everybody / online universities. That’s what it tells HR and recruiters, don’t take it. EE isn’t very worth it either, only engineering worth it right now is Mech, Comp Sci and CIS.
In the video "how to make an AM transmitter" can the transformer be a 1k/4 ohm audio transformer?
I can't say for sure, but given that it worked with a range of random ones, it'll probably work.
thanks for the response! :D
Are you trying to create Replicants?
Heck no. I wouldn't want the blade runners coming after me.
From the conversation u told me about, current, which is really nothing but outputs the max, how would I calculate the math of amps flowing through me at current limited of a transformer?
Like...
12000v×500000Ohms
12000v×500000Ohms×.030A
Or just the first one, but if the answer is over .03, then that wouldn't be right?
Also is microwaves really dangerous?
When they produce 2000v but only flow 4mA? Just making sure if I'm right, also I think neon transformers are less dangerous cuz of less flame Arc...
I'm not sure why you're multiplying everything. The equation is I=V/R, current=voltage/resistance, so 12,000 v / 500,000 ohms = 0.024 amps.
But that also depends on whether or not the source has can supply that much current.
By "microwave", I'm assuming you mean microwave oven transformer.
If you're just plugging the transformer directly into the wall socket then the maximum is how much current the transformer will take and the size of the fuse/breaker. From this page www.kronjaeger.com/hv/hv/src/mot/index.html it looks like the transformers are not current limited so it's up to the breaker/fuse for your wall socket (since the generating station can surely supply at least that much). So for example, assuming a fuse/breaker of 10 amps and voltage 120 v from the wall socket, and assuming the transformer will step the voltage from 120 v up to 2000 v, the output current will be (120 v x 10 amps) / 2000 v = 0.6 amps (I rearranged the formula at the bottom of this page www.passmyexams.co.uk/GCSE/physics/transformers.html to get Is = (Vp x Ip) / Vs.
So yes, they're dangerous. Of course, the 10 amps will also blow the fuse or trip the breaker. See the first link I gave about limiting the current.
Ah ok, sorry I made a few mistakes there...
Nyc nice
So it’s basically a gimbal, different software would have it behaving as a gimbal without the roll function.
Yup, that's right.
upload the cooode please :), to github would be nice
I'm not ready to put the retina emulation code anywhere yet, still refining it. But the code for the maestro controller is all on my webpage here, free for anyone to use rimstar.org/science_electronics_projects/servo_motor_with_raspberry_pi_and_pololu_maestro.htm
The STL, OBJ, and Blender files are now at www.thingiverse.com/thing:3023833
Kay, but why wouldn't you show footage from the camera?
I never thought of it. The code I wrote takes snapshots, analyzes them to move the motors, and doesn't store them. For debugging purposes, I sometimes write them to PNG files and then bring up the PNG files in an image viewer but it slows things down a lot. I guess I could have figured out how to capture a stream just for the sake of this video.
Hobby enthusiast...... Skynet is coming.
bakar
Blender used to look like that 😮🤢
LOL!
Mb I made an error, it's supposed to be ÷ not ×
When do you start human trials? I'm opting out.
Did I say it's for fitting in a human head? I meant an artificial human head. :-)
That was marvelous! We'll done!