Hot answers tagged

4

There are 3 LEDS on the Nano 33 BLE: A power LED on pin 25 (yes, you can turn off the power LED programatically); A built-in LED on pin 13; An RGB LED with red on pin 22, green on pin 23, and blue on pin 24. In the variant file, they are given names: #define PIN_LED (13u) #define LED_BUILTIN PIN_LED #define LEDR (22u) #define LEDG (23u) #...


3

Everytime, that you want the LEDs to change, you need to call the FastLED.show() function. You are doing that only once after you set the values multiple times. Also you need 2 delays in total (1 for the LED being on, 1 for it being off). The workflow for blinking an LED would be: Set LED to on Call show function Delay Set LED to off Call show function Delay ...


3

The WS2812B chips are very sensitive to timing. They rely on pulses being just the right length for things to work. It is common if the timing is off that you just end up with white. Since you have a blank chip that you have never put a bootloader on the fuses will be set wrongly for your configuration. By default a chip comes configured for the internal ...


2

From Arduino reference: random In short: Syntax random(max) random(min, max) Parameters min: lower bound of the random value, inclusive (optional). max: upper bound of the random value, exclusive. Returns A random number between min and max-1. Data type: long. Basically your first random returns values {1,2} and second one is even better {0}


2

Connect each of the 3 "L" wires to 3 separate digital IO pins of an arduino e.g. D8, D9, D10 via a resistor say 470 ohms but the value is not too critical. Connect VDD to the arduino +5v. Use the arduino IDE write a sketch that configures pins 8 9 and 10 as outputs and then see what happens when you send these pins HIGH or LOW. Theres lots more you ...


2

You need to send the 5x24 bits out without a pause. If you then keep the line low for over 80us, that is interpreted by all LED drivers as the reset signal. It is not stated explicitly in the datasheet (at least I haven't found it), but I guess the reset signal means, that at that time all drivers will output the received values on the LEDs. That way you can ...


1

Given that the pin is labeled VDD, it's likely that the LEDs are common anode. (You'd hook the VDD pin to a positive voltage, and then connect the other pins to ground in order to light them.) You really need to know the specs of the LEDs in order to calculate the size of the current limiting resistors. Say your LEDs have a 1.2v forward voltage and can take ...


1

Schematic and wiring diagram are not the same. They seem to use different RGB LEDs. The wiring diagram has common anode RGB LEDs, while your schematic uses a common cathode RGB LED. The difference is, which side of the LED gets switched. In the common anode configuration, all anodes (positive lead) of the individual color LEDs are connected together, while ...


1

You cannot find a tutorial for controlling neopixel strips with a relay, because that just does not make any sense. You don't need a relay to control the strip. The Neopixels consist not only of the LEDs themselves, but also of one LED driver chip per LED (WS2811 and it's siblings). These driver chips control the LEDs based on the data, that you send through ...


1

please tell me what's wrong. I'm sorry to say, but pretty much everything. You need to rethink your program flow from the ground up. Separate out the button from the LED actions. The button should only control the counter. The counter then makes the decision what to do with the LEDs. Also you have to learn about the concept of change with the button. You ...


1

Break down your project into steps, both hardware and software, and tackle a step at a time. First do a block diagram of the system, showing the different components, the layout of the control buttons, etc. Then map out the desired behavior, perhaps using a flowchart. What should it do when you first turn it on? How will it respond to different button ...


1

I think it is because of power consumption. If the LEDs consume lots of power, the LED on Arduino(typically mini red LED) will be off or faded. So before you connect the LEDs, check the mini red LED which is on Arduino and after connection the LEDs, check ones again. If the red LED is faded or off, the problem must be power consumption. Connect 12v or 5v ...


1

You can make a smooth transition/sliding rainbow effect by using a sine wave lookup table, then phase shifting green and blue by 120 and 240 degrees. #define RED 9 #define GREEN 10 #define BLUE 11 uint8_t sins[360] = { 127,129,131,134,136,138,140,143,145,147,149,151,154,156,158,160,162,164,166,169,171,173,175,177,179,181,183,185,187,189,191,193,195,196,...


Only top voted, non community-wiki answers of a minimum length are eligible