Пікірлер

  • @user-ip7mu8bu6q
    @user-ip7mu8bu6q5 күн бұрын

    Super cool and looks relatively simple!! But with my limited knowledge of using arduino, I'm sure I would get hung up if I try to make one. Wanting to build a simple head or eye movement devise to track the face as a person walks by. Not too concerned about jerking motion of servos. I'd like to compose the program and load to the arduino and remove from the laptop. Would use a typical webcam camera instead of laptop camera. Use 5v PS, relays if needed, etc. Is that possible? Your video shows using Nano 3.0 but circuit diagram shows Arduino UNO. Will either work? I made arduino controlled Halloween props last year that worked great, but I still have limited knowledge.

  • @owenobrien8804
    @owenobrien88045 күн бұрын

    To switch to a webcam is as simple as changing one line in the python code, the micro controller should not matter as long as the wiring is that same and the servos are connected to the same IO pins but I have yet to try it. Good luck lmk if you have any other question!

  • @user-ip7mu8bu6q
    @user-ip7mu8bu6q3 күн бұрын

    @@owenobrien8804 This is going to be a Halloween project. Trying to get this done well in advance. I will use this for a moving skull head or a pair of eyes tracking a person. I could buy a tracking security camera from Amazon, but making this devise will be more fun! Besides, I want to learn more about this stuff so I can make more projects. Will let you know if I have any hiccups (I'm sure I will). Thanks

  • @user-ip7mu8bu6q
    @user-ip7mu8bu6q3 күн бұрын

    @@owenobrien8804 I do have a couple of questions: I have a couple of Arduino boards (actually ELEGOO UNO R3) from previous projects. Will that work? And I noticed there are two programs shown. The video shows one is loaded in the laptop, and the other in the micro controller. Should both be loaded to the controller? Again, I am a novice to this but trying to learn.

  • @owenobrien8804
    @owenobrien88043 күн бұрын

    @@user-ip7mu8bu6q The elegoo Arduino are the same as normal Arduino with out the Arduino brand personally I prefer to use elegoo because it’s cheaper with the same quality, the code on the laptop is the .py file and can be run with the command: python “name of file.py” and then the Arduino code can then be uploaded using the Arduino IDE.

  • @user-ip7mu8bu6q
    @user-ip7mu8bu6q2 күн бұрын

    @@owenobrien8804 I don't know what py file is, but going to look it up. I am a 71 year old retired Engineer who worked at a nuclear generating plant for my whole career, so I am used to researching things. Love learning new stuff so I am going to give this a shot. If I get too hung up, I would appreciate and little help.

  • @FastGeek-fn8tc
    @FastGeek-fn8tc10 күн бұрын

    Interesting bro Good job

  • @TheSalimkop
    @TheSalimkop24 күн бұрын

    Thanks for the video. how can i access to the serial port in both IDE, python IDE and arduino IDE? because when i open the serial monitor on arduino IDE, i can't open it on pycharm ?

  • @owenobrien8804
    @owenobrien880421 күн бұрын

    When running the python script the serial monitor cannot be open along with the script trying to sends commands to the Arduino. To fix this you must only have one open at a time. In your case I think making sure to have the serial monitor closed before running the program will fix it

  • @ICARE-MECATRONIQUE
    @ICARE-MECATRONIQUE28 күн бұрын

    Merci pour cet exemple simple qui permet de mieux comprendre.

  • @owenobrien8804
    @owenobrien88045 күн бұрын

    Merci beaucoup

  • @RobertPacovsky
    @RobertPacovskyАй бұрын

    Does anyone know what is it "haarcascade_frontalface_default.xml"? And what i should replace "/dev/cu.usbserial-11" with or how to find it?

  • @palkia080
    @palkia080Ай бұрын

    that's awesome

  • @OntiCastro7
    @OntiCastro7Ай бұрын

    Fix the axle on both sides. Modify the pen servo holder to a linear actuator that can lower or lift the pen from the paper. Make sure the belts are as parallel with each other as possible

  • @randohorsley
    @randohorsleyАй бұрын

    Keep at it. Even a wooden dowel would work well as a shaft, . Even better if you had a top/bottom roller that were mated with gears to provide opposing drive function, but that would add to the mechanical complexity. At the minimum constrain the opposite side, and for added results, constrain the back of what the paper slides on to the shaft with some springs or something to make sure you get good traction. Your pin could also stand to be transposed a little bit off axis so that the rotation results in more upward movement of the tip, and less horizontal movement of the tip. That would require the servo actively apply torque to push the tip into the paper. Conversely, just print a little channel, and put a rubber tire or whatever on the servo so it acts like a rack and pinion. Put the pen into the vertical channel, which constrains it into just moving up and down, and then the servo can push down on it as needed, though that will likely result in some slippage. This could be fixed with gear teeth or with a linkage.

  • @jesselewis4975
    @jesselewis4975Ай бұрын

    I wonder if you could reduce cost even further by trying to make a custom solenoid for engaging the pen up and down instead of a servo motor.

  • @juhotuho10
    @juhotuho10Ай бұрын

    that's pretty neat

  • @dakotahudson5502
    @dakotahudson5502Ай бұрын

    I made one of these for one of my engineering classes and I would love to send you the files if you want. I used paracord as a drive belt in my design. I love the way you move the pen off the paper with another servo motor. That's a functionality that my design did not have.

  • @blacklabel6223
    @blacklabel6223Ай бұрын

    Making the belts parallel with your axis instead of on an angle will increase your accuracy a lot. You could also put the pen in a tube to travel vertically up and down and have the servo arm drive a pin on the side of the pen up and down.

  • @electroFUN-zo3xi
    @electroFUN-zo3xiАй бұрын

    Wow, keep going😊👍

  • @MrRadical1229
    @MrRadical1229Ай бұрын

    How does this work what does it do? I am interested in engineering so yeah

  • @owenobrien8804
    @owenobrien8804Ай бұрын

    This works by first having the laptop take an image and generate that into gcode instruction that can then tell the motors to move to specific cordinates on the paper and then when to move the pen up and down. The calculations are done in the universal gcode sender application, and then these instruction are sent to the arduino microcontroller where it then controls the motors with the instructions resulting in movement. This was a fun project to work on the most engineering was definitely in the 3d printed parts and deciding on materials to use!

  • @MrRadical1229
    @MrRadical1229Ай бұрын

    Looks intriguing! Keep up the work!

  • @Visiopod
    @VisiopodАй бұрын

    For those confused as to what a pen plotter is and what it can do, when hooked up to a computer it can draw out whatever file you ask it to draw, so if it's a bunch of text, it will write that. Same with drawings. However, the most useful feature that isn't making it a knock off DIY printer, is setting it up to follow the contour of a physical object. Doing that will give you a precise template of that object, allowing you to make an exact copy the first time. This is especially great for restoring things that aren't in production anymore

  • @ExxonYT
    @ExxonYTАй бұрын

    Hey brotha, just commented on the short but this provided good insight for me to get some ideas. The coat hanger should work as long as you fix it on the right. Still not sure on the necessity of the servo unless you definitely want a dotter, in which case it would work better with the pen on a 1 inch horizontal lever, then drive the servo way less. This will simultaneously allow the pen to overpower the servo a few mm with the torque from being offset (should increase your success rate of pen contact) as well as allowing you to more accurately affix it to the system since the pen itself will rotate much less. Im by no means a pro but I finished mechatronics with a 100 if you have any specific questions 😎😂

  • @owenobrien8804
    @owenobrien8804Ай бұрын

    Excellent! The idea of moving the pen is much better than what I am doing and I think it can be done compactly, Ill let you know if I have questions. Thank you for the advice!

  • @ExxonYT
    @ExxonYTАй бұрын

    Sub the paracord for a large O-ring or plastic tread and gear wheels instead of pulleys. Also theres nothing keeping the paper held to draw it from what I can see, duplicate the paper driving system underneath and run the sheet between 2 lego tires like a two-high rolling mill. Should draw the paper through. Once you have that you can fix your base way easier and just feed it. Also not quite sure of the use of the servo in this application other than removing the pen from the page when youre done

  • @owenobrien8804
    @owenobrien8804Ай бұрын

    The servo is supposed to pick up the pen when drawing so that it can create drawings that have white space between the lines. I plan to use belts in the next version. Good eye on the lego wheels haha I found they work pretty well. I had to look up a rolling mill and that seems like a great approach im going to try out!

  • @Unofficial_Cat
    @Unofficial_CatАй бұрын

    Yea, im still confused as to whats this supposed to do.

  • @egen6372
    @egen6372Ай бұрын

    i think it writes for you turning a pdf into paper with a pen so basically printing but diy

  • @Visiopod
    @VisiopodАй бұрын

    It's just a DIY printer for CNC enthusiasts. You can use it to turn PDF files into printed texts of course, but you can also use it to draw for you or set it up to follow the contour of another piece, allowing you to make a precise template of that piece, which is arguably the most useful feature of a pen plotter imo

  • @Chris-fm5xs
    @Chris-fm5xsАй бұрын

    It looks like x asix with a stepper. And the y is going to work as a paper feed. Witha servo on the z axis

  • @owenobrien8804
    @owenobrien8804Ай бұрын

    Spot on!

  • @MrRadical1229
    @MrRadical1229Ай бұрын

    How exactly does this work?

  • @rahulsinghmahar9480
    @rahulsinghmahar9480Ай бұрын

    Which feild of engeneering is required to make all thsees devies

  • @owenobrien8804
    @owenobrien8804Ай бұрын

    I’m currently pursuing my computer science degree and have learned CAD and electronics in my free time but to do this as a major I would recommend mechatronics robotics or electrical engineering

  • @Murilo_Floriano
    @Murilo_FlorianoАй бұрын

    Computer science, but a bit of mechanics for all the CAD and assembly stuff

  • @obaidulkader3674
    @obaidulkader3674Ай бұрын

    File "c:\Users\sibme\OneDrive\Desktop\Face-Tracking-Turret-main\Face-Tracking-Turret-main\Webcam_Python\face_Detection.py", line 1, in <module> import serial ModuleNotFoundError: No module named 'serial' how can i overcome this issue? please help,sir

  • @kshitijkulkarni4154
    @kshitijkulkarni4154Ай бұрын

    pip install serial Run this on your terminal

  • @owenobrien8804
    @owenobrien8804Ай бұрын

    @@kshitijkulkarni4154 yuh yuh‼️

  • @farindrapramudya5056
    @farindrapramudya50562 ай бұрын

    bro, hurry up and release a new video, I want to know how a stepper motor can follow an object moving on a conveyer from Python to Arduino

  • @owenobrien8804
    @owenobrien8804Ай бұрын

    After finals week I got you!

  • @farindrapramudya5056
    @farindrapramudya5056Ай бұрын

    @@owenobrien8804

  • @owenobrien8804
    @owenobrien8804Ай бұрын

    Just posted an update video

  • @BadhonPinak
    @BadhonPinak2 ай бұрын

    Nice video. Keep up the good work.

  • @gentleclash
    @gentleclash2 ай бұрын

    Nice video, I'm also planning to do something like this in future.

  • @owenobrien8804
    @owenobrien8804Ай бұрын

    You should! I had a great time designing it!

  • @ravikharb
    @ravikharb2 ай бұрын

    Good luck. Let me know if you need any help. (I'm an embedded engineer by profession)

  • @realexposer
    @realexposer2 ай бұрын

    I need your help

  • @ravikharb
    @ravikharb2 ай бұрын

    ​@@realexposer Sure. What do you want help with?

  • @karlo0983
    @karlo09832 ай бұрын

    maybe dont use a string for x

  • @Unofficial_Cat
    @Unofficial_Cat2 ай бұрын

    the belts used in 3d printers would be nice i forgot the name of it XD

  • @badcandy1337
    @badcandy13372 ай бұрын

    @@Unofficial_Cat gt2 belt

  • @owenobrien8804
    @owenobrien8804Ай бұрын

    I plan on using this to just test the concept and hopefully upgrade parts in the future such as belts and motors to NEMA 17 steppers

  • @AW-xj4un
    @AW-xj4un2 ай бұрын

    Can anybody shed some light on a persistent problem I encounter? With code attached to this video and all of the similar face tracking videos, as soon as the python detects a face, the servo motors instantly move away from the target. I know how servo motors work and I can see how the code is supposed to work, however, every Arduino code gives the same result, the servo motors rapidly move away from the identified face.

  • @owenobrien8804
    @owenobrien8804Ай бұрын

    Could it be that the servo's are wired backwards, like ground goes to positive and positive goes to ground, in that case switching the wiring might switch the direction of the way to motor turns but im not sure. A way to fix this in the code would be reflecting the image before doing the image processing of finding the face

  • @AW-xj4un
    @AW-xj4unАй бұрын

    @@owenobrien8804 Thanks, but I have tried both of these. Added code in python to invert the image. Checked the wiring and reversed it. No difference. I know it’s something in my setup, but I can’t see where. Even connected a picoscope and could see the PWM signal changing as the serial buffer was filled, but the servos still flip out and go to odd and arbitrary position.

  • @theredstormer8078
    @theredstormer807825 күн бұрын

    Have you tried other servos or inverting the direction in code?

  • @henrychen3820
    @henrychen38202 ай бұрын

    arduinoData = serial.Serial('/dev/cu.usbserial-110', 9600) how should i change the /dev/cu.usbserial-110

  • @owenobrien8804
    @owenobrien8804Ай бұрын

    The first parameter is string of the file path of the usb device in my case it was /dev/cu.usbserial-110, and then the 9600 is the baud width, this is declared in the arduino code as 9600 and shouldn't have to be changed. To find the first parameter on your own computer when you select ports in the arduino IDE it should say which one you are connected to and by copying that path it should work.

  • @obaidulkader3674
    @obaidulkader3674Ай бұрын

    @@owenobrien8804 how to copy that path?

  • @xayord9818
    @xayord98182 ай бұрын

    that's so cool brother

  • @NullNullZero02
    @NullNullZero023 ай бұрын

    I love that simple example, it's a great base for other projects

  • @omdano6432
    @omdano643219 күн бұрын

    its like i know what the other projects are, the ones with bullets in them

  • @natthadhamabutra3671
    @natthadhamabutra36713 ай бұрын

    thank you so much this is simple but very useful

  • @utube521
    @utube5213 ай бұрын

    0:58 - U can C how it's jerking, and that's because of the servos - they've got min 1 degree steps and nothing you can do. maybe only bldc gimbal motors or steppers with microstepping can do it smoother. I'm bashing my head on similar to get my gopro to rotate left/right with the steering wheel of a car, and with servos, even for 50 euros, the image is terrible, jerking like here

  • @owenobrien8804
    @owenobrien88043 ай бұрын

    Steppers would be a great improvement because of there greater precision and accuracy! I plan to work with the Nema 17 stepper motors soon and it would be cool to try and implement those into this design. Good luck with your project, post a video of it when it's done I like to check it out!

  • @theredstormer8078
    @theredstormer807825 күн бұрын

    Like he said steppers are probably better, but I'd just gear the servos down (or use a linkage) and call it a day. Depends on the use case ofc but I think you'd only need 2/3x to 1/2x the range of motion. Just a thought.

  • @MrX01011000
    @MrX010110003 ай бұрын

    Do you have the code for this project? I am doing a similar project, but I will need to modify it for stepper motors instead of servos. Also, is your computer webcam supplying visual data to the device or is it something else?

  • @owenobrien8804
    @owenobrien88043 ай бұрын

    I have the video from the webcam on my computer processed through Python and then the location for the servos is communicated to the servos over serial communication. The built in computer camera can be switched to a external USB camera by using a different port in the code. Heres a link to the github for a closer look. github.com/OwenTheGreenBean/Face-Tracking-Turret

  • @milesbuss4856
    @milesbuss48563 ай бұрын

    You should upload all of those code and 3D model files somewhere for download, this is super cool stuff! I’m looking into doing something similar to this for my senior project at my engineering program, I want to make a self driving turret to attack my classmates 😂

  • @owenobrien8804
    @owenobrien88043 ай бұрын

    Awesome heres a github with all the 3D models, circuits, and code. github.com/OwenTheGreenBean/Face-Tracking-Turret

  • @milesbuss4856
    @milesbuss48563 ай бұрын

    Thanks so much dude! I just now hooked up two of my little DC fan motors to 3D printed rollers, and have a working shooter mechanism to mount onto this awesome contraption! I’ll keep you updated and put some credit to you on the final piece.

  • @Discipline0777
    @Discipline0777Ай бұрын

    @@owenobrien8804 Thank you so much. This is a huge help in starting a project of my own.

  • @owenobrien8804
    @owenobrien8804Ай бұрын

    @@Discipline0777 Glad to help out!

  • @Discipline0777
    @Discipline0777Ай бұрын

    @@owenobrien8804 😁

  • @farn69
    @farn693 ай бұрын

    github link if possible?

  • @owenobrien8804
    @owenobrien88043 ай бұрын

    github.com/OwenTheGreenBean/Face-Tracking-Turret

  • @farn69
    @farn693 ай бұрын

    @@owenobrien8804 thanks man

  • @zonx7693
    @zonx76933 ай бұрын

    Now test the accuracy and put a laser on it

  • @daisywong-ke1kz
    @daisywong-ke1kz5 ай бұрын

    GREAT WORK! We'd love to offer you some boards if you may need them in the upcoming content. (PCBWay Daisy)

  • @owenobrien8804
    @owenobrien88044 ай бұрын

    Cool, thanks! If i have a project that needs then I will let you know!

  • @daisywong-ke1kz
    @daisywong-ke1kz4 ай бұрын

    @@owenobrien8804 Cool thing! feel free to reach out. :)

  • @zaoakared
    @zaoakared5 ай бұрын

    great project

  • @owenobrien8804
    @owenobrien88044 ай бұрын

    Thank you!

  • @jiyapanchal3082
    @jiyapanchal30825 ай бұрын

    so slay

  • @jiyapanchal3082
    @jiyapanchal30826 ай бұрын

    slay