Fireship · @fireship

Arduino in 100 Seconds

Uploaded December 12, 2022 · Length 2:22

Arduino in 100 Seconds

Summary

Arduino basics explained in 100 seconds, covering hardware, programming and projects.

  • arduino
  • microcontroller
  • hardware development
  • programming language
  • iot projects

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    Arduino an open source programmable

  2. 0:02

    circuit board and microcontroller that

  3. 0:04

    makes it possible for anyone to build

  4. 0:06

    digital Hardware products the idea

  5. 0:08

    started in Italy in 2005 and today has

  6. 0:11

    sold over 10 million boards worldwide

  7. 0:12

    the most popular model is the Uno and at

  8. 0:15

    its heart we have a microcontroller

  9. 0:17

    which is like a small inexpensive

  10. 0:18

    computer that can run on low power the

  11. 0:21

    board is surrounded by pins that can be

  12. 0:22

    used to construct a circuit by

  13. 0:24

    connecting various input and output

  14. 0:26

    devices most importantly though it has a

  15. 0:28

    USB port that's used to easily upload

  16. 0:30

    your code to the device in Arduino a

  17. 0:33

    software program is called a sketch

  18. 0:34

    which is written in a purpose-built easy

  19. 0:36

    to learn programming language every

  20. 0:38

    program has two basic functions setup

  21. 0:40

    runs once when the hardware is first

  22. 0:42

    powered on and loop runs continuously to

  23. 0:45

    react to signals from input devices or

  24. 0:47

    changes to the state of the program

  25. 0:48

    arduinos have been used to build iot

  26. 0:50

    products robots wearable devices and all

  27. 0:53

    kinds of other crazy Hardware ideas to

  28. 0:55

    get started obtain a board then download

  29. 0:57

    its custom IDE or use the vs code plugin

  30. 1:00

    if you prefer once installed connect

  31. 1:02

    your board via USB then create a new

  32. 1:04

    sketch which is just a file ending in

  33. 1:06

    dot Ino the language itself feels like a

  34. 1:08

    simplified version of C with plenty of

  35. 1:10

    built-in functions to make Hardware

  36. 1:11

    coding more accessible the setup

  37. 1:13

    function runs once when the board is

  38. 1:15

    reset or powered up we could use the

  39. 1:17

    built-in pin mode function to select a

  40. 1:19

    pin like the built-in LED and then

  41. 1:21

    configure it as an input or output and

  42. 1:23

    now in the loop function we can turn the

  43. 1:25

    LED on by writing to it with a value of

  44. 1:28

    high which is a constant that will

  45. 1:30

    increase the voltage to that pin and

  46. 1:32

    make it shine to make it blink we can

  47. 1:34

    follow it with a delay then switch the

  48. 1:36

    voltage to low and now we can hit the

  49. 1:38

    upload button to compile and run this

  50. 1:40

    code on the arduino's microcontroller

  51. 1:42

    congratulations you just built a custom

  52. 1:44

    Hardware product but there's a lot more

  53. 1:46

    we could do here connect a breadboard to

  54. 1:48

    it to create circuits without the need

  55. 1:49

    for soldering the Arduino can power it

  56. 1:51

    by connecting the positive side to the 5

  57. 1:53

    volt pin and the negative side to the

  58. 1:55

    ground pin and now connect components

  59. 1:57

    like LEDs capacitors resistors battery

  60. 1:59

    attacks Motors and switches to the