LED sequence (sweep effect) | LabVIEW (LINX 3.0) with Arduino Uno

Поделиться
HTML-код
  • Опубликовано: 19 сен 2024
  • This video demonstrates how you can control multiple LED's, with a sweeping effect, using LabVIEW LINX VI's with a Arduino Uno board.
    Components used:
    * LED's (Blue/Red/Yellow/Green/White)
    * Arduino UNO Rev3
    * Resistors (220ohm)
    If there are any questions regarding this video demonstration you can leave a comment in the comment section. For more helpful information, go to LabVIEW MAKERHUB:
    www.labviewmak...

Комментарии • 23

  • @johnyingling4014
    @johnyingling4014 4 года назад

    Ok so apparently it was as easy as correctly deleting the right elements. Once again great job.

    • @SStock
      @SStock  4 года назад

      Hi,
      I see you figured it out yourself. Well done :)

  • @johnyingling4014
    @johnyingling4014 4 года назад

    Awesome job with this. I"m very new to Labview and even Arduino but I've managed to create this and it works. I understand boolean logic and arrays conceptually but all of this working together is racking my brain. Would you be able to instruct on how I'd go about altering this so that just the first four LED's (no white) run in order, but then start back from the beginning instead of descending? Thanks in advance.

    • @SStock
      @SStock  4 года назад

      Hi,
      You can change the LED sequence by altering the array (shown at 2:00 in the video demonstration).
      There you can choose LED color (digital output) and the wait-time between each color :)

  • @ilyasorin3324
    @ilyasorin3324 3 года назад

    Hey! Your job is awesome!.I repeated the program exactly, but on my arduino only one LED is lit at a time (they just turn on in turn), although everything works as it should on the front panel. Sorry for my English, I'm from Russia
    .

    • @SStock
      @SStock  3 года назад

      Hi,
      Make sure that the LEDs are wired as shown in the beginning of the video demonstration and that the "Ring Constant" contains the values "0", "1", "3", "7", "15" ,"31" (as shown at 1:10)
      Let me know if that solves the problem for you :)

    • @ilyasorin3324
      @ilyasorin3324 3 года назад

      ​@@SStock Yes, the "Ring Constant" contains these values and works correct on my front panel, but on Arduino if next LED light up, then previous LED turn off. Maybe it is problem with my connection to pc(Baud Rate or something)

    • @SStock
      @SStock  3 года назад

      Hmm...
      If it works correctly on the Front Panel, then it should also work from the Arduino as long as the wiring is correct.
      Have you tried to upload the LINX Firmware and then run the "Blink example" (to make sure the Arduino is working correctly)?

    • @ilyasorin3324
      @ilyasorin3324 3 года назад

      ​@@SStock Yeah, there is a problem... It's not blinking, just light when i tap button

    • @SStock
      @SStock  3 года назад

      Try to use another Arduino Board and make sure you upload the "correct" LINX Firmware, based on which board you are using, with the Firmware Wizard.

  • @derekcarson5550
    @derekcarson5550 3 года назад

    Is it possible to have the constants in the cluster as a control? Or some way to vary the speed of the LED sequence as LV is running?

    • @SStock
      @SStock  3 года назад

      Hi,
      Yes that is possible :)
      This can be done in several ways, but one way can be something like this:
      imgur.com/a/9MMhIAq (Note that this suggestion is made in LabVIEW NXG 5.0)
      PS: The "TRUE"-case, which is not shown in the picture, contains only an "Numeric Constant = 0" which is wired to the output of the case structure.

  • @wulantedja
    @wulantedja 3 года назад

    Very good video bro! I'm a newbie in arduino and labview.But I want to try in one LED because there is a school assignment regarding sweep for one LED. Do you know how this sweep technique is only on one LED where the voltage rises and falls automatically in unit time?

    • @SStock
      @SStock  3 года назад

      Hi,
      If you wish to control the voltage (brightness) for a LED (one or more) then you can simply use the "PWM Set Duty Cycle" VI and then increasing/decreasing the value from 0 1 on the "Duty Cycle" input.
      Regarding how you can increase/decrease a value between 0 1 (in LabVIEW), then you can either use shift register in combination with comparison logic and case structures or a "Simulate Signal" Express VI (by setting both the Amplitude and Offset to 0.5 and then adjust the "speed" using the Frequency).
      Good luck! :)

  • @husamsdu
    @husamsdu 4 года назад

    why the values are increasing by 2X+1?

    • @SStock
      @SStock  4 года назад +1

      Hi,
      The reason for the values "0", "1", "3", "7", "15" ,"31" is because of the conversion from "Number to boolean array" that is used for showing the LED sequence on the front panel.
      Step 1: No LED,
      Step 2: Blue LED
      Step 3: Blue and Red LED
      Step 4: Blue, Red and Yellow LED
      Step 5: Blue, Red, Yellow and Green LED
      Step 6: Blue, Red, Yellow, Green and White LED
      In binary it looks something like this:
      00000 = 0 # None

    • @husamsdu
      @husamsdu 4 года назад

      @@SStock Exactly! Thnx:)

  • @treivbrago762
    @treivbrago762 3 года назад

    what the sketch from LinX?

    • @SStock
      @SStock  3 года назад

      Hi,
      Not sure if I understand your question…

    • @treivbrago762
      @treivbrago762 3 года назад

      @@SStock what code is used in the arduino microcontroller through arduiono ide

    • @SStock
      @SStock  3 года назад

      Hi,
      It contains the "LabVIEW LINX" firmware :)
      (Take a look at one of my videos explaining how to upload the firmware: ruclips.net/video/xdPMmwH9ll8/видео.html)