Arduino Workshop - Chapter 4 - Using Arrays

Поділитися
Вставка
  • Опубліковано 28 лип 2024
  • The full tutorial for this video (with images and step-by-step tips) core-electronics.com.au/tutor...
    In this section, we'll look at using arrays to store data, which allows for more powerful variable manipulation.
    Core Electronics is your home in Australia for:
    Arduino core-electronics.com.au/ardui...

КОМЕНТАРІ • 64

  • @AeroCraftAviation
    @AeroCraftAviation 3 роки тому +10

    This level of concision is unbelievable. All the info is clear and lucid, no time wasted, no ambiguity or possibility for misconstruction. it's productions like this that make the world a good place. :)

  • @BestUnderPressure
    @BestUnderPressure 5 років тому +21

    I have had issues understanding arrays ever since I first learned of them. This video cleared it up. Thanks.

  • @alcanceweb
    @alcanceweb 4 роки тому +3

    Really clear and bright explanation, thank you.

  • @ilampaulino
    @ilampaulino 6 років тому +1

    This was great, thanks for your videos!

  • @loganjamesion1010
    @loganjamesion1010 4 роки тому

    Cheers man, find all your videos very help.

  • @sumedhburbure4173
    @sumedhburbure4173 7 років тому +2

    Thank you. This was very helpful :)

  • @SparkOutUs
    @SparkOutUs 3 роки тому +3

    your one of those people who can make a tricky subject very easy to understand, im brand new to arduino, i subbed, thank you!

  • @KPOP-un4vb
    @KPOP-un4vb 5 років тому

    This is so good! Thank you!

  • @SebastianHernandez-xz5ck
    @SebastianHernandez-xz5ck 4 роки тому +1

    Pretty awesome tutorial thanks !

  • @marwanal-yoonus280
    @marwanal-yoonus280 4 роки тому +3

    Thank you for illustrations.
    I hope that you do the best.
    Iraq/Mosul

  • @userou-ig1ze
    @userou-ig1ze 3 роки тому

    surprisingly good video, thanks

  • @ComandanteJ
    @ComandanteJ 6 років тому +2

    I'm trying to return an integer array (with RGB values) from a function, I tried to do it directly as I would do in Java but it gave me the finger.

  • @1828fernando
    @1828fernando 6 років тому +1

    I know what you are explainig, but manipulation port is better. Good video, keep on teaching us.

  • @mohammadsalama2662
    @mohammadsalama2662 Рік тому

    bro your the goat of arduino, thank you so much

  • @kisetsujo251
    @kisetsujo251 3 роки тому +2

    Loved the video. It was very easy to understand however i have a slight problem mate. I copied your code and it said "invalid pure specifier (only" = 0" is allowed) before numeric constant" in the first line where it is int ledArray.

  • @kirankumar-re4yg
    @kirankumar-re4yg 6 років тому

    Sir can you please explain the concept of timer and interrrupts

  • @aman_gupta9855
    @aman_gupta9855 4 роки тому +2

    Thank u such a good explanation

    • @Core-Electronics
      @Core-Electronics  4 роки тому

      You're most welcome - we aim to help makers learn new skills

  • @ridharemix4259
    @ridharemix4259 6 років тому +1

    how to split String to array with delimiter?, example:
    my string "12,34,22"
    delimiter ","
    output i need like: arr[12,34,22] access using arr[i]
    sorry my english is bad i have you understand my question thanks..

  • @Randommusingsvideos
    @Randommusingsvideos 5 років тому

    Could you use the text array to display common text on an LCD. For example, if you had a LCD with say 10 display pages, but the top line of the LCD contained a heading - "SENSOR VALUES", rather than writing "lcd.print(F("SENSOR VALUES")); 10 times for each display page could you just declare this in the top of the program as: char arrayHeading[14] = ("SENSOR VALUES"); and then when writing the code for each LCD display page simply call: lcd.print(arrayHeading);
    I am interested to find out opinions on this since, using:
    lcd.print("SENSOR VALUES");

  • @EnergySeeker
    @EnergySeeker 3 роки тому

    am using 2 multpilxer can i use 2 arrays but excuted in the same exact time ?

  • @men810
    @men810 4 роки тому

    Sehr gut
    Mach bitte weiter

  • @marshalzhang5166
    @marshalzhang5166 6 років тому

    What we need

  • @MuhammadBilal-eb6fh
    @MuhammadBilal-eb6fh 4 роки тому

    there is giving an error on first line of code...i tried as you explained but everything halt

  • @xz86
    @xz86 4 роки тому +1

    thanks for the video. it help me understand array better. however I have one question. I saw a array function with 2 index. something like arrayOne[7][3]; how do you access the second index?

    • @iank2615
      @iank2615 4 роки тому +1

      That's a matrix. The first number is rows, the second is columns.

  • @dumcatu
    @dumcatu 8 місяців тому

    you are amazing

  • @michak9265
    @michak9265 4 роки тому +3

    Thanks. I only didn't get one thing. You're initialising ledArray as an outputs at 8:05 :
    for (int i, i < 10, i++)
    Shouldn't it be like i

    • @Core-Electronics
      @Core-Electronics  4 роки тому

      Good question Michał. If its possible, try posting this question in the Arduino section of our forum?
      One of our support staff or members of our makers community may know the reason why it was coded in this manner.
      forum.core-electronics.com.au/

  • @MeEncantaKiley
    @MeEncantaKiley Рік тому

    Can you read a sensor into an array?

  • @MrSirPain
    @MrSirPain 2 роки тому

    Is it possible to make array elements are struct.

  • @kirankumar-re4yg
    @kirankumar-re4yg 6 років тому

    super

  • @senpuuxd1032
    @senpuuxd1032 Рік тому

    how to change part of 2 dimensional array. i doing airsoft project that count point by scanning rfid tag but i don't understand how to remove tag id from array after was scaning and adding point and after next try scan that same tag it will be no more in array (i am green in arduino that is beyond me understanding)

  • @tomsothertube
    @tomsothertube 6 років тому +1

    The FOR loop in setup is incorrect, it should be
    for(int i; i

    • @kamalkhatri3322
      @kamalkhatri3322 5 років тому

      i was thinking same too

    • @williamgantt2470
      @williamgantt2470 4 роки тому

      I’m trying to understand why he put the resistors on the ground side of the LEDs. Is that a mistake?

    • @Motorman2112
      @Motorman2112 Рік тому

      @@williamgantt2470 No, it works the same way.

  • @ThuanDuong-pv3xu
    @ThuanDuong-pv3xu 5 років тому

    to : Core Electronics ; How to send an array ( data) between 2 RF24l01 _ardruino modules ? thank

    • @yarogniew
      @yarogniew 5 років тому

      network.write(header, &dataArray, sizeof(dataArray))

  • @d-1381
    @d-1381 5 років тому

    Code doesn't work :/

  • @bo938
    @bo938 4 роки тому +1

    Hi i tried to run the code on my arduino board Led blinks only one time it doesn't repeat High and Low again and again
    int ledArray[] = {3,4,5,6,7,8};
    void setup()
    {
    for(int i; i

    • @iank2615
      @iank2615 4 роки тому +1

      Your first loop is just switching the LED on five times, and the second is switching it off five times. So you are just switching it on and then off. The HIGH and LOW commands need to be in the same loop. Try:
      void loop () {
      for (int i; i

  • @Gintrius
    @Gintrius 6 років тому +3

    I think first array is incorrect - array index starts from 0 not 1 so it shoud be 3 not 4

    • @xanh350
      @xanh350 6 років тому +1

      you are correct, he either should put there [3] or keep it as [4[ but then add another element into his array curly bracket.

    • @stevebrockway459
      @stevebrockway459 5 років тому

      Yes, the index starts at 0, but the declaration is how many elements are in the array. Then a number is used to index the array.
      Int ArrayOne[4] has four elements accessed ArrayOne[0] to ArrayOne[3].

  • @royalm8077
    @royalm8077 3 роки тому +4

    "It could be called Sydney", ahh don't we all love a little bit of nationalism in our everyday works lmao. Love your videos btw

  • @leonvonmoltke7923
    @leonvonmoltke7923 4 роки тому

    why is there no index out of bounds error in the void setup?

    • @Core-Electronics
      @Core-Electronics  4 роки тому

      Intriguing question - if you can post it on our forum, we have support staff that are great with coding issues.
      forum.core-electronics.com.au/

    • @leonvonmoltke7923
      @leonvonmoltke7923 4 роки тому

      @@Core-Electronics Thanks I will

  • @deavl10
    @deavl10 6 років тому

    I basically did the same thing with my having different ports and having 3 pins in my array. My set up is good since it was working perfectly with several other programs. Yet it doesn't work with this program. I have no errors when uploading either. Where have i gone wrong since my lights do not turn on at all.
    int ledArray[] = {7,8,9,};
    int delayTime = 250;
    void setup() {
    for (int i; i

    • @m.v.8976
      @m.v.8976 5 років тому

      Try
      digitalWrite(ledArray[i], HIGH);

  • @kapoioskapoiou8631
    @kapoioskapoiou8631 Рік тому

    4:11 how to declare arrays

  • @SHOHRUX_GAMING
    @SHOHRUX_GAMING 2 роки тому +2

    👍👍👍👍👍👍

  • @DaCrazyPenguin
    @DaCrazyPenguin 2 роки тому

    Great video, but how do you activate all the pins at once, using the array?

  • @lvx_ivich4531
    @lvx_ivich4531 6 місяців тому

    4:40

  • @williamgantt2470
    @williamgantt2470 4 роки тому +1

    I don’t understand why he wired the resistors to ground instead of to the pins. Wouldn’t that limit the current after it had already passed through the leds?

    • @Core-Electronics
      @Core-Electronics  4 роки тому

      That's a great question - if you post that on our forum, someone in our team ought able to answer that and many others. coreelec.io/forum

  • @alternative01-pd3iu
    @alternative01-pd3iu Місяць тому

    imagine you can just
    int a = digitalWrite
    a(led, HIGH);

  • @tthorner
    @tthorner 5 років тому

    ArrayOne[4] should be ArryOne[3]

  • @chandanaelectronics782
    @chandanaelectronics782 4 роки тому

    hello friend, how are you. i'm chandana from sri lanka. can you help me for arduino. plese send your email and other contact. thank you