Arduino Workshop - Chapter 4 - Using Arrays

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ม.ค. 2025

ความคิดเห็น • 62

  • @AeroCraftAviation
    @AeroCraftAviation 4 ปีที่แล้ว +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 6 ปีที่แล้ว +23

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

  • @mohammadsalama2662
    @mohammadsalama2662 ปีที่แล้ว

    bro your the goat of arduino, thank you so much

  • @fabiocardoso_dev_br
    @fabiocardoso_dev_br 4 ปีที่แล้ว +3

    Really clear and bright explanation, thank you.

  • @loganjamesion1010
    @loganjamesion1010 4 ปีที่แล้ว

    Cheers man, find all your videos very help.

  • @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/

  • @SebastianHernandez-xz5ck
    @SebastianHernandez-xz5ck 4 ปีที่แล้ว +1

    Pretty awesome tutorial thanks !

  • @veryverymetta
    @veryverymetta 7 ปีที่แล้ว +1

    This was great, thanks for your videos!

  • @1828fernando
    @1828fernando 6 ปีที่แล้ว +1

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

  • @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.

  • @EnergySeeker
    @EnergySeeker 3 ปีที่แล้ว

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

  • @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)

  • @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

  • @userou-ig1ze
    @userou-ig1ze 4 ปีที่แล้ว

    surprisingly good video, thanks

  • @SHOHRUX_GAMING
    @SHOHRUX_GAMING 3 ปีที่แล้ว +2

    👍👍👍👍👍👍

  • @xz86
    @xz86 5 ปีที่แล้ว +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.

  • @MrSirPain
    @MrSirPain 3 ปีที่แล้ว

    Is it possible to make array elements are struct.

  • @MeEncantaKiley
    @MeEncantaKiley ปีที่แล้ว

    Can you read a sensor into an array?

  • @ComandanteJ
    @ComandanteJ 7 ปีที่แล้ว +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.

  • @sumedhburbure4173
    @sumedhburbure4173 7 ปีที่แล้ว +2

    Thank you. This was very helpful :)

  • @men810
    @men810 5 ปีที่แล้ว

    Sehr gut
    Mach bitte weiter

  • @KPOP-un4vb
    @KPOP-un4vb 6 ปีที่แล้ว

    This is so good! Thank you!

  • @tomsothertube
    @tomsothertube 7 ปีที่แล้ว +1

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

    • @kamalkhatri3322
      @kamalkhatri3322 6 ปีที่แล้ว

      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.

  • @Randommusingsvideos
    @Randommusingsvideos 6 ปีที่แล้ว

    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");

  • @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

  • @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..

  • @slimecat_lol
    @slimecat_lol ปีที่แล้ว

    you are amazing

  • @bo938
    @bo938 5 ปีที่แล้ว +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

  • @MuhammadBilal-eb6fh
    @MuhammadBilal-eb6fh 5 ปีที่แล้ว

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

  • @kapoioskapoiou8631
    @kapoioskapoiou8631 ปีที่แล้ว

    4:11 how to declare arrays

  • @royalm8077
    @royalm8077 4 ปีที่แล้ว +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

  • @kirankumar-re4yg
    @kirankumar-re4yg 7 ปีที่แล้ว

    Sir can you please explain the concept of timer and interrrupts

  • @marwanal-yoonus280
    @marwanal-yoonus280 5 ปีที่แล้ว +3

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

  • @Gintrius
    @Gintrius 7 ปีที่แล้ว +3

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

    • @xanh350
      @xanh350 7 ปีที่แล้ว +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].

  • @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

  • @ThuanDuong-pv3xu
    @ThuanDuong-pv3xu 6 ปีที่แล้ว

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

    • @yarogniew
      @yarogniew 5 ปีที่แล้ว

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

  • @DaCrazyPenguin
    @DaCrazyPenguin 3 ปีที่แล้ว

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

  • @marshalzhang5166
    @marshalzhang5166 6 ปีที่แล้ว

    What we need

  • @d-1381
    @d-1381 6 ปีที่แล้ว

    Code doesn't work :/

  • @kirankumar-re4yg
    @kirankumar-re4yg 7 ปีที่แล้ว

    super

  • @lvx_ivich4531
    @lvx_ivich4531 ปีที่แล้ว

    4:40

  • @deavl10
    @deavl10 7 ปีที่แล้ว

    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 6 ปีที่แล้ว

      Try
      digitalWrite(ledArray[i], HIGH);

  • @alternative01-pd3iu
    @alternative01-pd3iu 7 หลายเดือนก่อน

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

  • @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

  • @tthorner
    @tthorner 5 ปีที่แล้ว

    ArrayOne[4] should be ArryOne[3]