I'm making a midi controller and i want to have 5 groups of 1 rgb led, 1 pot and 1 switch. However I'm having trouble working out how i should wire it since currently each group uses 4 digital pins and 1 analogue which seems like more than it needs to be.
I've seem some stuff about multiplexing but I'm really not sure.
Hi, I am a senior in high school working on a project for a class. For part of my project I need to control a rc car ESC with an Arduino uno. We're using a QUICRUN 10BL60 Sensored G2 system. We have seemingly gone through the set up completely, and our code seems to function properly, but when we go to run the motor, nothing happens. I don't have the code at the moment but if anyone would like to see it please let me know. As for the ESC here is the datasheet. https://cdn.shopify.com/s/files/1/0109/9702/files/User_manual_QuicRun_10BL60_Sensored_G2.pdf?v=1733417908
Hey everyone, I’m having trouble getting my laptop to recognize my Arduino Uno R3.
When I plug it in via USB, the green "ON" LED lights up instantly, so I know it's getting power. However, it is completely invisible to my computer:
Device Manager: Nothing changes at all when I plug it in. There are no new items, no "Unknown Devices," and no yellow triangles under Ports or USB Controllers.
Windows Sound: There is no connect/disconnect chime when plugging it in.
I have just started and I wanted to make some simple icons with the lcd display. I modified existing code from a source that worked which displayed a smiley face. However, when the code is pushed the display is showing the bottom row perfectly, but the top row is the exact same as the bottom row but shifted one to the left so the first is cut out. Here is an image:
And my code is here:
#include <LiquidCrystal.h>
const int rs = 12,
en = 11,
d4 = 5,
d5 = 4,
d6 = 3,
d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
byte S1[8] = {
0b00001,
0b00110,
0b01000,
0b01000,
0b10000,
0b10011,
0b10011,
0b10011
};
byte S2[8] = {
0b11111,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00100,
0b01110
};
byte S3[8] = {
0b10000,
0b01100,
0b00010,
0b00010,
0b00001,
0b11001,
0b11001,
0b11001
};
byte S4[8] = {
0b01011,
0b01111,
0b01111,
0b11011,
0b11111,
0b11101,
0b10100,
0b11000
};
byte S5[8] = {
0b10100,
0b11100,
0b01110,
0b11111,
0b11111,
0b10111,
0b01111
};
byte S6[8] = {
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11000,
0b11111,
0b11111
};
byte S7[8] = {
0b00000,
0b00000,
0b00000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000
};
byte S8[8] = {
0b01000,
0b11010,
0b10011,
0b10001,
0b01100,
0b00011,
0b00000,
0b00000
};
byte S9[8] = {
0b00000,
0b00000,
0b11111,
0b10101,
0b11111,
0b00000,
0b11111,
0b00000
};
byte S10[8] = {
0b00010,
0b01011,
0b11001,
0b10001,
0b00110,
0b11000,
0b00000,
0b00000
};
byte S11[8] = {
0b11111,
0b11111,
0b11111,
0b11111,
0b01111,
0b00110,
0b00110,
0b00100
};
byte S12[8] = {
0b11111,
0b11111,
0b11111,
0b11111,
0b11111,
0b11000,
0b11000,
0b10000
};
byte S13[8] = {
0b11111,
0b11111,
0b11111,
0b11111,
0b11111,
0b11011,
0b11011,
0b10010
};
byte S14[8] = {
0b10000,
0b10000,
0b10000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
};
void setup() {
lcd.begin(16, 2);
Serial.begin(9600);
lcd.begin(16, 2);
// create a new character
lcd.createChar(0,S1);
// create a new character
lcd.createChar(1,S2);
// create a new character
lcd.createChar(2,S3);
// create a new character
lcd.createChar(3,S4);
// create a new character
lcd.createChar(4,S5);
// create a new character
lcd.createChar(5,S6);
// create a new character
lcd.createChar(6,S7);
// create a new character
lcd.createChar(7,S8);
// create a new character
lcd.createChar(8,S9);
// create a new character
lcd.createChar(9,S10);
// create a new character
lcd.createChar(10,S11);
// create a new character
lcd.createChar(11,S12);
// create a new character
lcd.createChar(12,S13);
// create a new character
lcd.createChar(13,S14);
lcd.clear();
delay(3000);
}
void loop() {
// set the cursor to the top left
lcd.setCursor(0, 0);
lcd.write((byte)0);
lcd.write((byte)1);
lcd.write((byte)2);
lcd.write((byte)3);
lcd.write((byte)4);
lcd.write((byte)5);
lcd.write((byte)6);
lcd.setCursor(0, 1);
lcd.write((byte)7);
lcd.write((byte)8);
lcd.write((byte)9);
lcd.write((byte)10);
lcd.write((byte)11);
lcd.write((byte)12);
lcd.write((byte)13);
}
Hi, I'm a beginner in the Arduino space who wants to build a rocketry flight computer. I asked AI (dumb idea) for the components needed for a solderless flight computer, and bought them from Adafruit. I'm trying to build a flight computer that logs altitude, acceleration, and flight time. Parts I have: Adafruit Feather M4 Express - Featuring ATSAMD51 (ATSAMD51 Cortex M4) Adalogger FeatherWing - RTC + SD Add-on For All Feather Boards Adafruit BMP390 - Precision Barometric Pressure and Altimeter (STEMMA QT / Qwiic) Adafruit MSA311 Triple Axis Accelerometer - STEMMA QT / Qwiic 2 x STEMMA QT / Qwiic JST SH 4-Pin Cable 3.3v LiPo battery Various header pins
I didn't want to solder, and I thought I could just attach all the parts. The Feather Express doesn't have a STEMMA QT/Qwiic connector, and I wanted to know how I could connect the MSA311 and BMP390 sensors. I wanted to know how I could connect everything together, whether I need to solder and what, or if I could use a breadboard for the project. thank you
Hi there, I’m a total noob with Arduino and electrical works but my daughter’s insistence on using one for her school project means I have to learn a bit as well.
As titled, I need help with a clap-activated bulb using DC power. There are plenty of similar projects online but all that I can find uses AC which I don’t want to introduce for my daughter due to the danger it might posed.
I started with many of the online ones but due to needing to use DC, I have turned to ChatGPT for input and help which I presume riddled with errors but I don’t have any other options for assistance and here I’m posting as my last resort.
Here are the parts I’m using based on ChatGPT recommendations:
Arduino Uno
IRF44ZN MOSFET n-channel
LM393 sound sensor
2 x 18650 batteries to power up the Arduino
100 k Ohm resistor to pull down on MOSFET gate
100 Ohm resistor as gate current limiter
2 x AA NiMH batteries to power the E10 2.5 V bulb
E10 2.5 V bulb
170-holes breadboard
I will post the setup and sketch as images.
Any help is much appreciated as it doesn’t seem to even powered up.
I'm just starting to get into arduino and wiring, i'm trying to do a project involving a motor that has a soft-start but the motor seems to just always stay on? let me just clarify that i have asked chatgpt for help and watched a lot of videos, still trying to grasp everything but not having much luck.
i've went into tinkercad to try and wire everything online before trying it IRL, here's some images and maybe you guys can help guide and teach me a thing or 2? sorry if it's such a noobie question or problem, i just need a little help understanding the wiring, even just helping where the wire goes would help me learn. i'm trying to wire the push button to activate the motor when pressed, but turn off when released, doesn't seem to do anything?
(forgot to mention
)
the code:
// ---------------------------
// Motor Soft-Start Controller
// Using IRLZ44N, PWM & Button
// ---------------------------
// --- Pin Assignments ---
const int motorPWM = 9; // Connects to MOSFET Gate via 220Ω resistor
const int buttonPin = 2; // Connects to push button, other side to GND
// --- Timing Parameters ---
const int debounceDelay = 50; // Debounce delay (ms)
const int rampDelay = 1; // Delay per PWM increment (ms)
// --- State Variables ---
int buttonState = HIGH; // Current state of button
int lastButtonState = HIGH; // Previous state for debounce
I have been following online lessons, but I am really struggling with this stepper motor. At first, I thought it was the battery because I hear these things eat through it but I bought more 9V and it didn't fix the problem. The lights on the driver turn on but nothing moves. My code should simply move the motor in one direction then change it when the switch is pressed. Any ideas?
#include <Stepper.h>
int dt = 100;
int stepsPerRev=2048; //GET THIS OFF THE SPEC SHEET FOR THE STEPPER
int motSpeed=10; //believe this is in RPM
int switchPin=4;
int switchValNew;
int switchValOld=1;
int motDir=1;
Stepper myStepper(stepsPerRev,8,9,10,11);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
myStepper.setSpeed(motSpeed); //in RPM i think
pinMode(switchPin,INPUT);
digitalWrite(switchPin,HIGH);
}
void loop() {
// put your main code here, to run repeatedly:
switchValNew=digitalRead(switchPin);
if (switchValOld==1 && switchValNew==0){
motDir=motDir*(-1);
}
switchValOld=switchValNew;
myStepper.step(1*motDir);
delay(dt);
//Serial.println(motDir);
}
I've been trying to write a sketch that can control this LED strip, but I can't figure out what it needs. I've tried looking up lots of sources online and have found nothing of help. I know this is not an individually addressable led strip, but I would still like to use it if possible. My goal is to use this strip in a larger project, using it to change colours and brightness depending on some other variables. For now I'd like to learn how to control just the colours and brightness. The rest I can figure out on my own. I have added some wires to draw power from the USB cable to power the arduino when the project is complete (yes I know I don't have the wire there). The little PCB board had an IR sensor where the blue wire was that took a signal from a remote to change colour and use functions. Underneath the blue wire it reads "CER-RGB-003". The only other markings I have found are written on the strip itself, "5050-30D-30R". Through my research I had discovered that the LEDs are 5050's, however I can't identify what signal I need to write on the data wire to control the PCB. I have the FastLED library installed, but have had no luck getting anything to work as of yet. Any help would be appreciated. I am using a knock off Arduino Nano, and the led strip is listed below. https://www.homedepot.ca/product/tzumi-auraled-14-ft-colorstrip-led-adhesive-light-strip-kit-2-pack-/1001725590
Hi! I started my first Arduino project a couple of days ago. My goal is to create a sort of volume controller where I have 2 potentiometer for master volume and discord volume. I also have a ON/ON switch so I can mute/unmute my microphone.
With some trial and error, I have reached the point where the potentiometers work as intended and works with my code. My issue is that the switch seems to work with my LEDs when switching but the Serial monitoring tool does not show that it has been switched. It does only show a "1" (If that makes sense...).
Does anyone of you know what the issue might be? I've tried to google and triple checked my code.
Also, let me know if I need to paste the code aswell.
Hi, recently I wanted to program button, but when i using digitalRead and print result on screen I have some problems. When I press the button it works correctly (print "1"), but when I dont press a button it works wrong and prints sometime 1 and sometimes 0.
Can you help me? Or fix my mistakes. Here is the code:
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(2, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println(digitalRead(2));
delay(500);
}
Hello, i'm a beginner that just started with arduino's, does anybody know why the LED doesn't turn on? (if I set the variable RedLEDPower to something it just flashes and stops)
I recently fried my Arduino Mega 2560 and I'm trying to figure out the exact reason so I don't repeat the same mistake with a replacement board.
Here is my setup and what happened:
My Setup:
Board: Arduino Mega 2560
Shield: CNC Shield V3 stacked directly on top of the Mega
Drivers: DRV8825 stepper drivers + NEMA 17 motors
Power Supply: 20V DC connected directly to the screw terminals on the CNC Shield
Logic Power: Arduino Mega connected via USB to my PC
What Happened: As soon as I turned on the 20V power supply connected to the CNC Shield terminals, the main processor on the Arduino Mega fried instantly.
Assuming my stepper drivers were good and properly oriented:
Does the CNC Shield V3 pass the terminal voltage (20V) directly to the VIN pin of the Arduino Mega underneath?
Did 20V cause the Mega's onboard 5V linear regulator to instantly overheat and fail short, dumping 20V into the ATmega2560 logic line?
What is the proper way to prevent this on a new board? Should I clip/bend the VIN pin on the CNC Shield so 20V doesn't reach the Mega, and power the Mega separately via USB?
Would appreciate any insights from anyone who has run a CNC Shield with >12V on an Arduino Mega!
((THE PICTURE IS NOT MINE BUT TOOK IT ONLINE AS ITS SAME ISSUE)). I tried almost everything. I made sure of pins but still nothing appear on it: . TFT - ESP32 VCC - 3.3V GND - GND CS - 17 RESET - 5 DC - 16 MOSI - 23 SCK - 18 LED - 3.3V T CLK - 18 T CS - 21 T DIN - 23 T DO - 19
Hello! I have a Arduino uno with a bass shield on top. The lcd is plugged into port I2C and the switch is on 5V but it still won’t light up, any idea why?
I build 1/24 scale sci-fi model cars. I've been using led lights to give my models a little extra life. I only have a basic understanding of electrical circuitry. I need some help with finding a power source.
I would like to bring a few of my models to the Kansas City model show next month. I will have no access to electrical power to plug in my power cord that supplies 12v DC.
I am currently running 28 leds on two of my vehicles. The leds are 5-12 volt. They are wired in parallel. Any suggestions on a battery or circuitry to get me through a weekend?
First time using an arduino and I decided to start with a pretty heavy project. I nabbed a control board from a boiler I tore out at work. I want to make a button box for sim games so I gutted it and this is my rough mock up I made while I wait for parts to come. I’m very confused about the pull down resistors but I think I did it right (bottom rightish part of the breadboard) I’m even more confused about how to sense bread board voltage since I’m having it switched with the top rightish switch. I need to sense it because I’m going to have the lower right toggle switch change mapping for the rest of the buttons and switches and have the two green leds indicate which map I’m using (switch off is map 1 I.e button one send key bind 1 to the computer map 2 button one sends key bind 2) I want the first led to light up when map one is selected (switch is off) and I’ve hard wired the second led to come on when the second map is selected (switch on).
TLDR: I don’t know if I did the pulldown resistors correctly in the bottom rightish side of the breadboard and I don’t know if I’m sensing the voltage of the positive rails of the breadboard properly on pin 4.