Arduino Knight Rider Example with Code (Most Viewed)

Поділитися
Вставка
  • Опубліковано 3 жов 2024
  • More info - nisalhe.com/
    Arduino Starter kits (with Discount %) - www.banggood.c...
    Raspberry Pi 4 - www.banggood.c...
    Arduino Knight Rider LED pattern
    Easy guide to LED pattern with arduino. Step by step guide with code by NisalHe, Sri Lanka.
    arduino sinhalen sinhala tutorial sri lanka arduino uno mega gear learn guide srilanka 3 integer int for loop control structure for loop knight rider simple led light pattern kit how to guide 12 english

КОМЕНТАРІ • 239

  • @Newbornat30
    @Newbornat30 5 років тому +4

    Works great, my 2yo son that adores any sorts of lights and lamps loved it! I used 3xWhite, 3xYellow, 3xGreen and 4xRed LEDs to make it more child friendly💡🚦

    • @NisalHewagamage
      @NisalHewagamage  5 років тому +3

      Thank you for the comment 😍

    • @samuelfrodge4988
      @samuelfrodge4988 2 роки тому +1

      I know it's two years later after your comment but I tried uploading this code and there's errors

    • @Newbornat30
      @Newbornat30 2 роки тому +1

      @@samuelfrodge4988 hmm. I just blew the dust off the board last week and it was still working 😁

  • @yashbansal7970
    @yashbansal7970 7 років тому +12

    thanks it worked but please mention the link for code in description-
    www.arduino.cc/en/Tutorial/KnightRider

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

      FYI, link is not the actual code. See at 3:05 for the actual code.

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

    Finding this channel is the best thing that happened to me in 2021. Thank you for sharing this amazing content!!!

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

    This is the most realistic pattern I've seen on UA-cam. I made something years ago with discrete logic chips and decade counters which did exactly the same thing, but used over an amp of power. I think I may look into a microprocessor and connect it via an output stage to incandescents.

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

      Help me subscribe please

  • @URGreat03-x7w
    @URGreat03-x7w 6 років тому

    Mujhe Apki Video Bht Achi Lagi hai Q k Apne Circuit Or Code Bht Achy Sy zahir Kia hai Mazeed Aisi Or Videos upload Kareen

  • @mrbull4645
    @mrbull4645 6 років тому +7

    For resistors I used 220Ω

  • @teacuploversusa2495
    @teacuploversusa2495 3 роки тому +1

    Just 🍎🍎🍎🍎🍎

  • @fathimanuzkiya9750
    @fathimanuzkiya9750 5 років тому +2

    My knight rider patten is not working can you explain me

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

    I thought you needed resistors with this, but i guess not

  • @achirahendalage2371
    @achirahendalage2371 6 років тому +4

    Hi , in the code you see when you pause the video at 2:34 , does the last line of your first for loop really do anything to how we see the LEDS blinking ? ( last line of the first for loop ) because right after (i+1) led is set to low, the loop starts over with the new 'i' which is actually ( i+1) and sets the same LED to high again ??

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

    meheth avith yannako sup kala

  • @TechyAsit
    @TechyAsit 7 років тому +6

    Thanks ! It Worked ! :D

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

    Arduino Starter kit - www.banggood.com/search/arduino-kit.html?from=nav&p=XO120425970492015099&custlinkid=634387

    • @Deepak-ji3cx
      @Deepak-ji3cx 5 років тому

      Coding and arrangement best h

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

      Codingannya website nya gabisa di buka

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

      @WannaDIY Dude this is by my experience, You can use this red LEDs without resistors. I have been doing this for more than 5 years without any harm. So please don't be a THEORY ONLY guy!!!

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

      @@NisalHewagamage it is not tht harmful because the led is on not for long time and off but surely may shorten som led life

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

      Nisal Hewagamage p

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

    imgur.com/bGAXBv3 මේ වගේ රටාවක් LED Strip එකකින් හදන්න පුළුවන්ද...? Arduino පාවිච්චි කරල. එහෙම කරන්න පුළුවන්නම් ඒක කරන විදිය කියල දෙන්න පුළුවන්ද...?

  • @teacuploversusa2495
    @teacuploversusa2495 3 роки тому +1

    Newly joined your channel

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

    Hmmm, I think I will try to use this for a Moebius/Revell 1/6 scale Cylon Centurion. I have to admit that I haven't bothered with circuits since school and that was a long time ago.
    Will it work with 12 SMD LEDs 0402 (red, pre-wired)? They have to be glued to a v-shaped board to fit behind the visor. I also will add some kind of diffusor. What resistors will I need?

  • @idiotwithasolderingiron
    @idiotwithasolderingiron 7 років тому +4

    some code i tweaked
    void setup() {
    for(int pin=2; pin

  • @hsumeerasanjaya5895
    @hsumeerasanjaya5895 8 місяців тому +1

    Can we control the speed here

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

    Using this code doesn't upload to my arduino due. Says there's error

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

    In this project miss one thing-resistors, your leds will burn out if you not put it,becouse led cant hold 5V

  • @IRONMAN-lp4qr
    @IRONMAN-lp4qr 5 років тому +2

    Nisal aiye meke ara for loop eke dala tyena i++ kiyana eka i = i+1 kiyana ekata samanaida..?

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

    Do you know a way to do this with 12V LED tape? I'm trying to do a project with this idea.

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

    Soo how come you didn't use resistors? Are they not necessary for this tutorial? Please explain so I can get a better understanding.

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

    Pikc Pro eken night rider code හදන්නේ කොහොමද

  • @sagarmgandhi
    @sagarmgandhi 5 років тому +2

    This seems like the best one for beginners ... Great

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

      yeah, its a great start for beginners.

  • @GiuseppeGibilmanno
    @GiuseppeGibilmanno Рік тому +1

    one question,but not need a rsistor for each led ?
    output is 5 volt or 3 volt in arduino ?

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

      I am using Arduino for 8 years now. I have never used a resistor with LEDs. But not a single LED burnt for this 8 years. So we do not need to use a resistor with LEDs

  • @screamingbird2476
    @screamingbird2476 6 років тому +4

    I'm cunfused, I thought that there were only 13 pins?

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

      Sorry I just realized that he used 12 less not 16. 😁😁

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

    I want to get 10 pwm outputs ,which one to use,is node mcu ok?thnks

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

    Hi, can I have the code? thank you!

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

    gret work ido this light system it"s work

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

    RF dB video miter gennath kiyanna

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

    DO YOU HAVE A LINK TO THE CODE?

  • @vstLC
    @vstLC 2 роки тому +1

    to what pins does he connect the led jumper wires? I just bought the arduino and i don't know where to connect it. Is it from pin 1 to 13?

    • @NisalHewagamage
      @NisalHewagamage  2 роки тому +1

      Yes you can connect LEDs to any pin from 0 to 13

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

      @@NisalHewagamage thank you. Excellent video too

  • @ticktock8751
    @ticktock8751 5 років тому +2

    here is a update using a speed pot from analog input pin 5 of the center of the Pot and the outer 2 pins one to 5v and other to ground.
    void setup(){
    for(int pin=0; pin

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

    hi! So for this project I need
    1x Arduino Uno r3
    1x USB A to B cable
    1x breadboard with 840 tie points
    12x LEDs
    12x jumper wires
    right?

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

    arudino nano eken hadanna barida

  • @DilshanRamesh
    @DilshanRamesh 8 років тому +6

    නියමයි නිසල් අයියේ
    Good Luck

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

    THAN K YOU

  • @RadioSilence53
    @RadioSilence53 5 років тому +2

    How could you essentially do that on both sides of a bread board, cause I tried connecting LED’s on both sides and then having a wire connect each of the pins together but I ended up with some on the right side of the breadboard working and some on the other side not

    • @NisalHewagamage
      @NisalHewagamage  5 років тому +3

      In some breadboards two power rails are not connected from the middle of the bread board. So you have to connect the two sides from jumper wires

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

      Thank you so much for responding, Im still having trouble though. I put the the ground in the positive on the right hand side that’s connected to all the LED’s, I placed the jumper wire on each input number then I took a wire and placed the it on the positive of the right end that has the ground connected to the left positive. But only the first three LED on the left turned on, while the three on the left turned off.

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

    මේකෙ program එකේ for loop එකේ අන්තිමට තියන digitalWrite(i+1,LOW) කියන ඒ පේලියෙන් වැඩක් නෑ නේද?

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

    Aiye mata oyage whatsap/telegram/messenger number ekak dennakoo

  • @dennismilton5210
    @dennismilton5210 8 років тому +1

    hi Nisal... can you do this effect with rgb led strip light?

  • @Hiru89
    @Hiru89 8 років тому +2

    මචන් පුලුවන්නම් නයිට් රයිඩර් එකේ බල්බ් ක්‍රමයෙන් ඩිම් වේවි දුවන එක දානවද

  • @indikasannasuriya5806
    @indikasannasuriya5806 3 роки тому +1

    Super Ayya 👌

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

    Trying to figure out how to wire this for a turn signal and all leds solid for brake light. Would I have to run two separate led lights? One modded like this and another with power wires wired together tied into brake wire?

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

    මම කෝඩ් ටික හරියට ලිව්වා ඒත් වැඩ කරන්නෙ නෑනේ 😒 error එකක් එන්නෙත් නෑ

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

    It's not working

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

    Ever ever...

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

    super

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

    working fine mate thank you :)

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

    The cringe when there is no resistors in series with the LEDs :c

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

    arduino bod ake dapu progam akak ainkaranne kohomada

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

    අයියෙ පුලුවන් නම් vu meter 1 ගැන video 1 කරන්නකෝ.... thank you .... good luck ....

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

    Aiye badu ganne kohenda

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

    🥰🥰🥰🥰🥰🥰🥰🥰

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

    Nisal aiya oya awada kandy channananda exhibition ekata ardiuono kattiyk ekka

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

    Aiyya ge WhatsApp number eka denna puluwan da........?🙏🙏🙏

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

    Hari naa ban clear naa

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

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

    එල එල

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

    12v led වලට හදන්නේ කොහොමද

  • @bosstech100
    @bosstech100 7 років тому

    is it possible to make that without so many pins? then you probably need some other solution...

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

    eka code ekak gahapuwama eka ain karanna bane deweni code eka run wenne nane plzzzz help me..................

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

    Aiye knight rider ekaka code gahanna computer ekak onamada

  • @starkosmic
    @starkosmic 8 років тому

    Very nice. Your video is a show. But I thinking if is possible to do a dual efect of leds of Knight rider, with 20 leds. 10in side right and 10 on left. But only rest the efect o leds. vru, vru, vru.

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

    අයියා අඩුයිනෝ finger print lock ගැන විඩියො එකක් කරන්නකො

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

    It's can use in arduino maker uno

  • @slsettings5199
    @slsettings5199 2 роки тому +1

    Can use arduino nano ?

  • @ajithbandara3802
    @ajithbandara3802 7 років тому

    Me serkit board 1ken LED bulb kiyk set krnn puluwnid uprim. Oy vidiyt.

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

    code eka denna baida

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

    Code eka zip karala danako

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

    Arduino uno ekata ch340g drivers danna kiyala denna

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

    Great!!.. How can I add bigger bulbs instead of LEDs? and sync the effect sound?

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

    Thanks.

  • @InukaRathnayake
    @InukaRathnayake 8 років тому +1

    Great work machan. Much appreciated. Please post more. (y)

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

    Nisal ayye oyage programme eka verify karadhdhi for kiyana vachane varadi kiyanava ehinda eka upload venna mokak hari eka hadala kiyana pls

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

    Led panel akak hadana heti oni

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

    learn pwn bro, you are using every single pin out on your damn board

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

    Aiye mata oya ge tell phone number eka tikak denna Mata podi wadak kara ganna thiyenawa

  • @lucasruchti2847
    @lucasruchti2847 8 років тому

    How can I get the song in with a piezzo buzzer

  • @wandersonsilva-fx1cs
    @wandersonsilva-fx1cs 2 роки тому

    Show, Fantastic

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

    Aiya pawichchi karana camera eka mokakda?
    Screen recorder eka mokadda?
    Video editor eka mokadda?

  • @mjthushan7126
    @mjthushan7126 7 років тому +1

    RGB led srip pwm kohomadha ?

  • @baskeh
    @baskeh 7 років тому

    Hey! when i uploaded the code, it said: 'i' was not declared in this scope. when i take away that i i get the same problen on the next i. this happens in the line: digitalWrite(i+1, HIGH);
    how can i fix this???

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

    puluwannam co2 gas sensor ekak gena video ekak karanna.

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

    When I change last led to negative with positive and positive to negative then only its working fully or it is working half only and last one is not properly lighting what is the probleam? Formula working with all led :(

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

      Your comment looks broken. Try reloading English module again.

  • @rasikachaminda3048
    @rasikachaminda3048 8 років тому

    malli man oyge arduino2 led blink eka softwear eke type kala.veryfy kalama mehema error ekak enawa"(output was not declare in this scope" kiyala mokakda awla

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

    I'm new to this and trying to figure out how to get the line reference numbers on my sketch page like you have in the video

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

    Gud explanation bro

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

    kinite rider pcb ekak design karala hadane

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

    No resistors with leds?

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

    I would like to know if you have a version of this sketch using millis() instead of Delay ?

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

    enjoyed it.And thank you!

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

    No sound brooo why.....

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

    thank u very much. me projects IC ekkata programme karana hat video 1k dannako

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

    me cord 1ka pahadili karana puluwanda

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

    Mewata galapena Resistors monwada

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

    kollo oya fb innawada

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

      මේකෙ දාල තියන ඔයාගෙ FB එකට මම විස්තර වගයක් දාල ඇති 4 to එක්ක මට බලල කියන්න

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

    Is there anyway of making this small enough to fit inside a1/18th scale diecast car?

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

      You can use the same circuit but using an arduino micro. (but not forget the leds resistors, if you use metal film types they are smaller). The hard part is solder small smd leds or carve regular leds with a mini drill so they fit, or using small strips of plexiglas as light guides.

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

    arduino uno board aken octapad akk hadana hati kiyala dennako.