Komentáře •

  • @GannDolph
    @GannDolph Před 2 měsíci +5

    Nice! was wondering last vid if HiRes mode could indeed move fast like that.
    When it senses bird you should have it spin way around, like a little too far, then jerk back other way maybe 5 or 10 ° , then flash those niteEyz! mimics the wild. maybe estimate angular position of perpetrator using 3 or 4 LDRs and have head move end on target.

    • @hackfreehvac
      @hackfreehvac Před 2 měsíci

      To keep it simple, I'm only gonna have 3 light sensors.So at least it will turn its head in the direction that it was disturbed.
      But that is a good idea about turning the head and jerking it back.
      I could do that with just a little bit more code. But the head can't turn any further.Because I have limiters under there. And the reason I didn't extend the limits is because there's a wire cable going up to the eyes that I don't want to break off.

    • @GannDolph
      @GannDolph Před 2 měsíci

      @@hackfreehvac cool build man, nice job on it and the PCB's. yeah birds have really bizarrely jerky head moves, maybe just a few degrees counterrotation be cool to experiment around with in the code. look fwd to seeing another update 👍

    • @hackfreehvac
      @hackfreehvac Před 2 měsíci

      @@GannDolph I'll try it out. Just will need a few more lines of code.👍

  • @aw_dev
    @aw_dev Před 2 měsíci +1

    DAMN 👹

  • @Palte
    @Palte Před 2 měsíci

    I'm pretty new to micro-controllers and everything around it so this was very fast! :D
    What does the "1/16 stepping" imply? That it moves a 16th with every pulse? That doesn't feel right, with over 1300 pulses it would spin like a beyblade by that definition ;)

    • @kayrakocak9827
      @kayrakocak9827 Před 2 měsíci +2

      1/16 stepping means the amount of movement will be 1/16 of a step with each pulse. So 16 pulse will be one step. 1.8 degrees per step is very common in steppers (200 full steps for 360 degrees rotation) and its 16*200=3200 pulses for full rotation. He says left to right so it will move roughly 146 degrees which is enough.

    • @Palte
      @Palte Před 2 měsíci

      @@kayrakocak9827 Thank You! I wasn't aware that a step is in itself a fraction of a revolution instead of a 16th of a full revolution. Now it makes sense ✌

    • @hackfreehvac
      @hackfreehvac Před 2 měsíci +1

      @kayrakocak9827 Go back a video or 2 of mine in the project and you will see me. Explain the stepper motors in quite a bit of detail. I think it might be part two.
      Stepper motors are essentially two magnetic poles, repeated around the circumference of the motor.
      So you put DC power and keep it there. Your magnetic field of the shaft will just align with that field and stay there.
      So if you add dc power to the next pole, then it will attract halfway to that one. Then if you release the DC. Power to the first Pole. It will release the shaft in directly line up with the second pole.
      Then you go back to the first call all, but reverse the voltage so that it attracts the opposite magnetic fields that is close enough to attract. And repeat those steps.
      So with those steps there, you can predict and know exactly where the shaft will be at all times.
      How it divides the steps is at the chip. That drives the motor instead, divide it up to how you set it up.
      So it is no longer full on or off but using PWM it varies the magnetic strength of each pole. You can go up to about 1/16th rotation per step.

  • @czechmate6916
    @czechmate6916 Před 2 měsíci

    That’s PDQ.