Arduino Tutorial 12: Getting Started with DotStars (APA102)

Поділитися
Вставка
  • Опубліковано 2 сер 2024
  • DotStars, also known as the APA102, are individually addressable LEDs. With them you can create persistence of vision (POV) displays, achieve a wide range of colors, and patterns relevant to your project.
    In this tutorial I show you how you can connect a strip of DotStars to an Arduino Uno, how to install the library needed to make our lives easier, and how to upload your first sketch to drive them!
    For more details, check out this tutorial on my website: thezanshow.com/electronics-tutorials/arduino/tutorial-12

КОМЕНТАРІ • 20

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

    As someone just starting with Arduino, thank you!!! Your videos have allowed me to start on a few projects I've been dreaming of for a while.

  • @Ragnarok1881
    @Ragnarok1881 5 років тому +1

    Thank you so much for this tutorial! It helped me out begining my journey into LEDs and coding them.

  • @user-fo8bi1bp5i
    @user-fo8bi1bp5i 6 років тому

    Thank you so much

  • @137bob3d
    @137bob3d 5 років тому

    good of you to go over the code line by line ... this is a big aid for we who only talk Picaxe Basic
    and resist learning C. and grudgingly recognize we ought to some day. your friendly
    approach is refreshing.
    also good of you to mention that besides the SPI lines ordinary i/o pins can mimic SPI
    via bit-bang code. tho this brings up the Pic basic offering automatic 400 k bit rates.
    and a new mystery of how C paces the code the 102 leds recieve.
    my application is RC night flying of a 2 meter wingspan sail plane. so multiple strips will be used.
    so want to find out if 2+ strips can be driven from the same dedicated SPI pins. or are multiple
    uC's needed. assuming the SPI pins and other i/o b-bang pins cant all be running at the same time.
    the next matter i am wanting to understand is how the 102 videos seen on u-tube of RC night
    flyers have the lights moving in a direction opposite what your snake demo here is doing
    my next stop is your other upcoming videos referred to here in this one.
    the ideal video will show the leds action and code in both C and Basic. sort of like
    how the Rosetta stone let people bridge the 2 worlds of different language
    s
    also plan to 'scope the CI & DI lines to verify the data is moving in only one direction
    and a visit to adafruit is called for in the off chance they have some Basic code ex's
    yes, your presentation has stimulated many new ideas

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

    After a long time : )

    • @alexanderbaran-harper4748
      @alexanderbaran-harper4748  6 років тому +1

      Yeah, things have been a little busy for me lately ;). I'll be getting part 2 of this up next weekend hopefully!

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

    Welcome back

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

    Hello.
    Thank you for your video tutorial.
    Greatly helped me burn the led string.
    There is one problem, I can't get more 621 pixels (led diode). When I activate 622 pixels and more, there is a light snake somewhere in the middle, the last 8 pixels behind the 621pixel shining white.
    I use arduino uno!
    tried to change the snake length and delay time
    can you help me please?

  • @lfcbpro
    @lfcbpro 5 років тому +1

    Whenever I connect up my lights to my Arduino, all they do is go white,
    I have power to the lights obviously, but not sure where it is not connecting, I have them connected to the right data pin, and the sketch uploaded ok,
    tried everything I can think of, any ideas? :(

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

    What is the fastest data rate that can be fed down a strip of DotStar LEDs? The datasheet says
    Symbol : FOSC
    Parameter : Oscillator Frequency
    Min : 800 kHz
    Typ : [blank]
    Max : 1200 kHz
    I don't know what it means by "oscillator". Is this, perhaps, the oscillator for the PWM? Or does it indicate the bit rate. If so, kit seems that the typical bit rate is 1 Mb/S, but I need more than that. Another user on UA-cam has told me that he used 40 Mb/S - so I'm confused.
    Also - if I have a strip of 300 LEDs and I only want to change one of them, I send a Start frame of all zeroes, then I start sending data frames. Each chip needs 32 bits to set the colours, but if I want to change only chip 100, do I have to send colours to the previous 99? What I'm really asking is this - the chip receives a synch flag of "111" (binary) then 5 bits for the overall grey shade. Does each chip count only the synch bits before passing on data, or does each chip have to count 32 bits before it passes data to the next chip?

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

    Is this 60 led / meter strip?

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

    Please continue with RPi tutorials...plz

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

    Are there any dotsatr or neopixel experts out there for hire on an rv project? or can anyone send me in the right direction? im way over my head...even some on the phone advice would be great... i van paypal or something. Thank U

  • @137bob3d
    @137bob3d 5 років тому

    altho an arduino is not my controller choice your guide thru this code ex. is of help in getting
    what is going on with the basic picaxe code in the 8 examples that come with the pic's latest
    editor s/w. 7 of them use a spi command variant called hspi... with one ex. doing the spi thing
    by bit-banging. not all pic uC 's support hspi commands. the 20X2 is my choice.
    with a goal of duplicating the led strip light patterns on the e-flite 'night radian' 2m r/c airplane.
    at 170 - 200 $ this plane is way over-priced. vs the hobbyking 'walrus' night flyer.
    its led strips are all fixed color . no varying patterns . so they will be replaced with some
    4-wire apa102 strips. a dedicated battery. and a pcb with the 20x2 and strip connectors.
    until i learn how to code for other display patterns the 8 example codes will be it.
    you'll find vid's here on u-t of the 'night radian' aloft after dark. they're pretty dazzling.
    i fly my 'walrus' at a nearby school soccer field. the darker the better. about 200 flights this year
    on landing approaches the grass gets well lit up for seeing how close the plane is to the ground.
    plus night air is usually the calmest of the day.

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

    Hello, does anyone know if you could connect a led strip apa102 with an ws2812b?
    ?

  • @BillyGates1721
    @BillyGates1721 Рік тому +2

    connecting more than 5 LEDs to the Arduino 5V-pin is a VERY BAD IDEA. The high current will overload the onboard voltage-regulator. You should ALWAYS use a extra powersupply with sufficient current. This is just another one of those 95% youtube-vids that makes a fool out of beginners