New answers tagged

0

I would suggest taking the resistor/s off the switches, so the button connects to digital inputs to the 3v/5v line. Then use 470ohm resistors for the leds(to limit the current) on the digital outputs.


0

Why don't you try making another code. If you want to use library, use #include <SoftwareSerial.h> Do not use digitalWrite(0, HIGH) in void setup(){...} Declare ledPin = 13; Use only pinMode and Serial.begin(9600) in void setup() In loop() do ask if (Serial.available()){...}


0

That seems like a logic problem for me. You define a "particle", which is not bound to a special LED (like a particle, that is jumping from one position to another). Then you included a busy flag, that should prevent, that a LED is used by more than one particle at a time. But you included this flag in the particle. Being busy is a state of the LED, not of ...


0

Your big challenge is going to be power. Sum up the current requirements of ALL of your LED strips. Find a power supply that puts out ≈20% more than that. Read up on the max power you can pass through each strip, You can daisy-chain the power on multiple strips up to the current handling ability of the strips. Say the docs say a strip can pass max 5A through ...


2

Write a sketch to test your LCD. #include <LiquidCrystal.h> LiquidCrystal lcd(12, 11, 5, 4, 4, 2); void setup(){ lcd.begin(); lcd.print("Hello World!"); } void loop() { lcd.setCursor(0, 1); lcd.print(millis() / 1000); } Make sure the R/W pin is connected to GND on your breadboard. You may need to connect the contrast pin to 5V. ...


1

I'd suggest creating an array of MIDI button structs. For each entry you'd have a button object, an LED pin, and a BOOL to track the state of thate button. Write a function that loops through the array of structs, checks the state of each one, and does the work to play/stop the notes and toggle the LED states based on the state of each button.


1

SOLVED! i've tried many solutions to make it work but it just didn't and here are the solutions i tried a) to use 0.1µf or 10µf between VCC and ground pin of the 74hc595 . b) to set the clockPin and dataPin zero before sending data . c) replacing the resistors from 220 ohm to 470 . however, i connected pin13 of the 74HC595 to an arduino pin and drive it ...


Top 50 recent answers are included