r/ArduinoHelp

ESP32 troubleshoot while uploading code

ESP32 troubleshoot while uploading code

I am facing this troubleshoot every time I tried uploading my code on the ESP32 WROOM , I tried everything: Booting , Unplugging the circuit and all . Also all the seeting are correct in my Arduino IDE ( on laptop ) . I have done everything : ESP Module, Device manager to port correction. Everything!!!! Still it is showing the same problem. I tried asking Claude , GPT , Gemini they all told the same thing i have been trying. Also I noticed the board geeting warmer and warmer when I plug it into the usb. Means it is not getting very much heated but gets warm like if we do extreme gaming on our phone and when it burns like that .

Please anyone if you guys can help 🙏🏻😭 . I have spent hours on this and this was for my Science exhibition . I don't have much time it is in 1 day and i need to fix it as soon as possible!!! 😭😭😭

u/Fearless-Match1204 — 7 days ago

how do you make an Arduino skip an input/output?

I've been thinking for some time about making a polyphonic synthesizer, and i found out they have a microprocessor that cycles through multiple oscillators, and then assigns every note to each oscillator. so if it has 8 oscillators, it goes through 123567812345678 etc., and then when you play like a 3 note chord lets say, it will skip ever oscillator that has a voice assigned to it. so like 45678, 13578, 12356, etc. so my whole point for coming here is what would be the code i use to make it so that it cycles through multiple outputs, then skips those outputs that are currently being used? and then to kind of add a little more fun to it, how do i make it so that the oldest note gets reassigned to the newest note? edit: i know like a teeny tiny amount of coding, this is partly out of curiosity and partly out of wanting to learn something.

reddit.com
u/Main-Topic2604 — 7 days ago

complete beginner here. how to i stop the blip sound in my buzzer

this is my code-

long duration;
int distance;


const int trigPin = 10;
const int echoPin = 11;
const int buzzerPin = 8;


void setup() {
  // put your setup code here, to run once:
  pinMode(trigPin, OUTPUT);
  pinMode(echoPin, INPUT);
  pinMode(buzzerPin, OUTPUT);
  Serial.begin(115200);
}


void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(trigPin, LOW);
  delayMicroseconds(2);


  digitalWrite(trigPin, HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin, LOW);


  duration = pulseIn(echoPin, HIGH);


  distance = duration * 0.034 / 2;


  Serial.print("Distance: ");
  Serial.println(distance);


  if(distance < 10){
    digitalWrite(buzzerPin, HIGH);
  }
  else{
    digitalWrite(buzzerPin, LOW);
  }
}
u/the_wise_one_is_here — 7 days ago

Trying to get a PIR sensor to turn lights on in sequence

So I'm trying to get a PIR sensor to turn on lights in sequence every time it gets triggered. I got it so the green led then the yellow led turn on, but it's not changing to the ORANGE state and I don't know why.

int ledGreen = 13;  
int ledYellow = 12;
int ledOrange = 11;     
int inputPin = 2;               // choose the input pin (for PIR sensor)
int pirState = LOW;            // start with no motion detected
int val = 0;                    
 

enum states {                         
  GREEN, 
  YELLOW, 
  ORANGE,
  RED
};

states state;       

void setup() {
  pinMode(ledGreen, OUTPUT);
  pinMode(ledYellow, OUTPUT);
  pinMode(ledOrange, OUTPUT);
  pinMode(inputPin, INPUT);     
 
  state = GREEN;
  
  Serial.begin(9600);
}
 
void loop(){
 val = digitalRead(inputPin);  
 switch (state) {
    case GREEN:
      if (digitalRead(inputPin) == HIGH && val == 0 ) {   
        digitalWrite(ledGreen, HIGH); 
        delay(2000);
        val++;  
        state = YELLOW; 
        
        
        Serial.println(val) ;
      
      break;
        
 
  case YELLOW:
      if (digitalRead(inputPin) == HIGH && val == 1) {   
        digitalWrite(ledYellow, HIGH); 
        delay(2000); 
        val++;  
        state = ORANGE;                  
       
         Serial.println(val) ;
      
      break;
  
   case ORANGE:
      if (digitalRead(inputPin) == HIGH && val == 2) {   
        digitalWrite(ledOrange, HIGH); 
        delay(2000); 
        val++;  
        state = RED;                  
       
         Serial.println(val) ;
      
      break;        
        
   case RED:
        if (digitalRead(inputPin) == HIGH && val == 3) {
        digitalWrite(ledOrange, LOW);
        digitalWrite(ledOrange, LOW); 
        digitalWrite(ledOrange, LOW);
        delay(2000); 
        val = 0;
        state = GREEN;
       
        break;
      
        }}}}}}
reddit.com
u/True_Buffalo_1436 — 7 days ago

Help with my circuit

This worked for me a while ago, but today I connected it and it's still like this. I've tried reloading the code and testing with different pins; I'm only using the pacman test.

u/emiliofeil — 7 days ago
▲ 2 r/ArduinoHelp+1 crossposts

Coding help

How do I learn Arduino coding language? I just started and I know a few things like LEDs and stuff, but I don’t want to be reliant on AI. How do I learn the language?

reddit.com
u/Savings_Anteater_840 — 10 days ago