make a iron man helmet with arduino

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • code in comments section

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

  • @diewitharduino8945
    @diewitharduino8945  4 года назад +4

    #include
    Servo servo_1;
    int switch_1 = 0;
    void setup()
    {
    servo_1.attach(5);
    }
    void loop()
    {
    int switch_1_pos;
    int servo_1_pos;
    Switch_1_pos = analogRead(switch_1);
    servo_1_pos = map(switch_1_pos, 1020, 1023, 180, 0);
    servo_1_pos = constrain(servo_1_pos, 0, 180);
    servo_1.write(servo_1_pos);
    }

  • @diewitharduino8945
    @diewitharduino8945  4 года назад +1

    Here is the code guys
    Make sure subscribe

  • @sajjuuu5763
    @sajjuuu5763 3 года назад +4

    I like it I will help you bro

  • @donger007
    @donger007 3 года назад +4

    Looks complicated AF!

  • @sehajdadwal2590
    @sehajdadwal2590 3 года назад +3

    nice keep it up

  • @AnshSingh-uq5mt
    @AnshSingh-uq5mt 4 года назад +4

    Nice bro

  • @Creation-mv2mv
    @Creation-mv2mv 4 года назад +6

    great efforts

  • @ritwik2008
    @ritwik2008 3 года назад +4

    please post the code

    • @diewitharduino8945
      @diewitharduino8945  3 года назад +5

      #include
      Servo servo_1;
      int switch_1 = 0;
      void setup()
      {
      servo_1.attach(5);
      }
      void loop()
      {
      int switch_1_pos;
      int servo_1_pos;
      Switch_1_pos = analogRead(switch_1);
      servo_1_pos = map(switch_1_pos, 1020,
      1023, 180, 0);
      servo_1_pos = constrain(servo_1_pos, o,
      180);

    • @draculajr.760
      @draculajr.760 3 года назад +4

      @@diewitharduino8945 😍❤️