Making a Servo Controlled Eyeball for Pi Camera 2

Поделиться
HTML-код
  • Опубликовано: 30 июн 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 ruclips.net/user/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
  • НаукаНаука

Комментарии • 69

  • @RimstarOrg
    @RimstarOrg  6 лет назад +9

    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.

    • @sebascarra
      @sebascarra 5 лет назад

      did you create that channel already?

  • @azyfloof
    @azyfloof 6 лет назад +17

    "I wanted it all to fit inside a human head, in case I ever do that"
    Eeep! 😳

  • @scottadams5858
    @scottadams5858 6 лет назад +2

    Very cool, 3d printers are so cool and what we can do with them is just beginning to be realized

  • @mcitheaterclass537
    @mcitheaterclass537 6 лет назад +1

    That was marvelous! We'll done!

  • @1337kaas
    @1337kaas 3 года назад

    Really cool idea man, keep going! This video inspired me to get some servos for my camera

  • @JayHarrisonGoogle
    @JayHarrisonGoogle 6 лет назад

    Nice work!!

  • @Grizzly_Lab
    @Grizzly_Lab 6 лет назад +3

    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 🤔]

    • @RimstarOrg
      @RimstarOrg  6 лет назад +3

      What, still no 3D printer!? :) Glad I could feed you some ideas.

  • @JohnWayne99999a
    @JohnWayne99999a 4 года назад

    Very nice!

  • @billfield8300
    @billfield8300 5 лет назад +1

    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.

    • @RimstarOrg
      @RimstarOrg  5 лет назад +1

      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.

  • @Tony-bu4yy
    @Tony-bu4yy 5 лет назад +1

    Great work! I saw this in real life. Now I know how its made.

  • @jonnyleeg4058
    @jonnyleeg4058 6 лет назад +1

    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.

  • @johnerickson8160
    @johnerickson8160 6 лет назад +5

    Uh oh! Is this the start of a series of videos named: "Creating an android of myself"

  • @Willycruyff
    @Willycruyff 5 лет назад

    Amazing!! 😮

  • @mosespaul6412
    @mosespaul6412 6 лет назад

    Pretty cool 😎

  • @polymorphicprocrastination5345
    @polymorphicprocrastination5345 6 лет назад

    I love your videos

  • @WillDonaldson
    @WillDonaldson 6 лет назад

    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.

    • @RimstarOrg
      @RimstarOrg  6 лет назад +2

      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.

  • @prolifilm7423
    @prolifilm7423 6 лет назад

    Отлично!

  • @gregtasi
    @gregtasi 6 лет назад

    Nice job!
    Btw: I really want to get into neural network programming. :D

    • @RimstarOrg
      @RimstarOrg  6 лет назад

      Thanks! There's definitely a lot of fun to be had with neural networks!

  • @blindscience1919
    @blindscience1919 6 лет назад

    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.

    • @RimstarOrg
      @RimstarOrg  6 лет назад

      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 ruclips.net/video/mX6P9CwSm7I/видео.html and is available on my webpage here rimstar.org/science_electronics_projects/servo_motor_with_raspberry_pi_and_pololu_maestro.htm.

  • @aster5031
    @aster5031 3 года назад

    10/10

  • @jackyli6716
    @jackyli6716 2 года назад

    try to use this: 8.5/180*angle that you want +2 as ax+b formular to calculate the positon

  • @vincenttan1261
    @vincenttan1261 6 лет назад +1

    Nice work. Can share what super glue you using? Thanks for sharing.

    • @RimstarOrg
      @RimstarOrg  6 лет назад +1

      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/

  • @SirCharles12357
    @SirCharles12357 6 лет назад

    I really need to learn Python! Great video

    • @RimstarOrg
      @RimstarOrg  6 лет назад

      Thanks. Python does seem to be the way the world is going! I'm using it because most neural networking is done in Python.

  • @Metasaxon
    @Metasaxon 6 лет назад +1

    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] :)

    • @Metasaxon
      @Metasaxon 6 лет назад

      & +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 )

    • @RimstarOrg
      @RimstarOrg  6 лет назад

      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!

    • @Metasaxon
      @Metasaxon 6 лет назад

      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 !

  • @maxmeyers771
    @maxmeyers771 4 года назад

    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.

    • @RimstarOrg
      @RimstarOrg  4 года назад

      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.

  • @ricke.2205
    @ricke.2205 6 лет назад

    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.

    • @RimstarOrg
      @RimstarOrg  6 лет назад +1

      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 ruclips.net/video/VqdcU9ULAlA/видео.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 ruclips.net/video/tjD9I95RAbw/видео.html and about designing the coil for a specific inductance here ruclips.net/video/awyLYgu6ODM/видео.html.

    • @ricke.2205
      @ricke.2205 6 лет назад

      Hey thanks, Steve. Sorry about being vague, but yes, the coil is my concern. I will check your other vids. on that. Thank you.

  • @komillz
    @komillz 6 лет назад

    Nyc nice

  • @locouk
    @locouk 6 лет назад +1

    So it’s basically a gimbal, different software would have it behaving as a gimbal without the roll function.

  • @gardengnome4208
    @gardengnome4208 5 лет назад

    In the video "how to make an AM transmitter" can the transformer be a 1k/4 ohm audio transformer?

    • @RimstarOrg
      @RimstarOrg  5 лет назад +1

      I can't say for sure, but given that it worked with a range of random ones, it'll probably work.

    • @gardengnome4208
      @gardengnome4208 5 лет назад

      thanks for the response! :D

  • @aleenaamer952
    @aleenaamer952 5 лет назад

    Respected sir have you done electrical engineering or mechatronics?

    • @zBMatt
      @zBMatt 4 года назад

      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.

  • @ussbased-a7074
    @ussbased-a7074 6 лет назад +1

    Are you trying to create Replicants?

    • @RimstarOrg
      @RimstarOrg  6 лет назад

      Heck no. I wouldn't want the blade runners coming after me.

  • @Nixtyfx
    @Nixtyfx 5 лет назад

    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

  • @ghostzofficial2786
    @ghostzofficial2786 5 лет назад

    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...

    • @RimstarOrg
      @RimstarOrg  5 лет назад +1

      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.

    • @ghostzofficial2786
      @ghostzofficial2786 5 лет назад

      Ah ok, sorry I made a few mistakes there...

  • @lavaslice
    @lavaslice 6 лет назад

    upload the cooode please :), to github would be nice

    • @RimstarOrg
      @RimstarOrg  6 лет назад +1

      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

    • @RimstarOrg
      @RimstarOrg  6 лет назад

      The STL, OBJ, and Blender files are now at www.thingiverse.com/thing:3023833

  • @ghostzofficial2786
    @ghostzofficial2786 5 лет назад

    Mb I made an error, it's supposed to be ÷ not ×

  • @seigeengine
    @seigeengine 5 лет назад

    Kay, but why wouldn't you show footage from the camera?

    • @RimstarOrg
      @RimstarOrg  5 лет назад

      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.

  • @apupper.9283
    @apupper.9283 Год назад +1

    Blender used to look like that 😮🤢

  • @skaley7734
    @skaley7734 5 лет назад

    bakar

  • @webslingernz
    @webslingernz Год назад

    Hobby enthusiast...... Skynet is coming.

  • @obe22099
    @obe22099 3 года назад

    When do you start human trials? I'm opting out.

    • @RimstarOrg
      @RimstarOrg  3 года назад

      Did I say it's for fitting in a human head? I meant an artificial human head. :-)

  • @mcitheaterclass537
    @mcitheaterclass537 6 лет назад

    That was marvelous! We'll done!