What exactly happens when you press "Upload"? (Arduino Uno Programming for Beginners)

Поделиться
HTML-код
  • Опубликовано: 6 июл 2024
  • What exactly happens when you press "Upload"? lesson 23 (Arduino Uno Programming for Beginners)
    In this video I tell you exactly what happens when you press "Upload".
    preprocessor, compiler, assember, linker, avrdude and the bootloader.

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

  • @jimg9294
    @jimg9294 3 месяца назад

    That was an awesome explanation! Thank you.

  • @KW-ei3pi
    @KW-ei3pi 3 месяца назад

    I've been enjoying your videos. You do and excellent job of teaching Arduino programing.
    A common use for Arduino boards is running code for Stepper Drivers/Motors. Will you be getting into that as well as using Switches, Buttons, Potentiometers, and Rotary Encoders, etc., or are you just going to focus on Functions and other aspects of programing? There are a lot of videos that demonstrate the use of Arduino programing with LED's. This is a good way to demonstrate it, but I would like to see more practical examples. The kind of things that Arduinos are actually used for. For example, I am working on converting an industrial milling machine's manual controls into power feeds, using three Arduinos running three Stepper Drivers/Motors, each with forward and reverse switches, potentiometers for speed control, rotary encoders for fine feed, and buttons or joysticks for jogging and rapid feeding, as well as limit switches and warning indicator LED's. Regards.

    • @playduino
      @playduino  3 месяца назад +1

      thank you for the nice feedback and sharing your project.
      I already covered potentiometers in this video:
      ruclips.net/video/t7TW546GS3E/видео.html
      I also used a button + debouncing in the dice project
      ruclips.net/video/rmQqDoofxSI/видео.html
      my videos are intended for beginners. So in order to cover stepper motors + drivers I will have to cover a lot of other topics first. I might eventually get there but I cannot tell you how long it will take

    • @KW-ei3pi
      @KW-ei3pi 3 месяца назад +1

      @@playduinoThanks for the reply. I'm going back to watch your previous. I look forward to all of you future videos.
      I'll share a programing problem that I'm trying to solve, as it might give you ideas for a future video. I'm using a Potentiometer to set the speed of my Stepper motors. Using the map function to convert the Pot reading to a number that is passed to delayMicroseconds, between HIGH and LOW sent to the Driver. Stepper motors don't like to start at a high speed, but rather need to "ramp up" to higher speeds. So I'm trying to take the mapped number and if it is a number below 300 (a short delay) use a "for" loop to pass a higher number (500) and then a progressively lower number to the delay till it reaches the mapped number from the Pot. I've had some success, but am not there yet. I'm using one variable to contain the number from the "for" loop, but I may have to use more than one. I think I will get there, but my code will likely be long and inefficient. If you enjoy coding, you like solving problems. This one is quite challenging. Regards.

    • @playduino
      @playduino  3 месяца назад +1

      this would make a great video! let's see who is faster :D
      please let me know when you found a solution that works for you

    • @KW-ei3pi
      @KW-ei3pi 3 месяца назад

      @@playduino This simple code seems to work and demonstrates the concept without all the hardware:
      int pd; //Pulse Delay
      int myDelay; //Ramp up Delay
      void setup() {
      Serial.begin(9600);
      pd=300;
      myDelay = 500;
      }
      void loop() {
      if (pd < myDelay){
      for(myDelay = 500; myDelay > pd; myDelay = myDelay -1){
      Serial.println(myDelay);
      delayMicroseconds(12000);
      }
      }
      else
      myDelay = pd;
      Serial.println(myDelay);
      delayMicroseconds(myDelay);
      }

    • @KW-ei3pi
      @KW-ei3pi 2 месяца назад

      @@playduino Hey. How are you doing? I thought that you were going to come up with some code to accelerate a stepper motor. ??? I have been working on it for a month and still haven't come up with working code. I've eliminated the potentiometer and just have a button to start the motor, accelerate from a set low speed to a set top speed, then stop when I release the button. Achieving acceleration is not to difficult, but achieving linear acceleration is difficult. Thanks. Regards.