r/ArduinoHelp • • Mar 18 '23

I need help (Arduino Bluetooth car not working)

Post image
2 Upvotes

Everything is turning on but the motors are not moving


r/ArduinoHelp • • Mar 17 '23

Why is the battery's GND pin connected to Arduino's VIN pin?

Post image
2 Upvotes

r/ArduinoHelp • • Mar 16 '23

My Led blinks instead of fading

Post image
2 Upvotes

I coded my Arduino to fade my led light but when I look at the actual bulb it's just blinking on and off. Even when I change the fade values and the delay the blinking gets more and less rapid but there's never any actual fade. It's either fully on or fully off. Do I have the wrong type of LED to execute this code or did I just code it wrong?


r/ArduinoHelp • • Feb 04 '23

Importing sketches into Arduino IDE

Post image
2 Upvotes

r/ArduinoHelp • • Feb 04 '23

"avrdude: ser_open(): can't open device "\\.\COM6": Access denied" error on new arduino nano

2 Upvotes

Hi everyone!

I very recently bought a new arduino nano (https://www.berrybase.ch/kompatibler-arduino-nano-mit-atmel-mega-328p-prozessor-ch340g-usb-chipsatz this one for reference) , and I can't load any program on it. I get the avrdude error.

I looked for solutions on the internet, but none seems to work. The arduino IDE desn't recognize the device connected on the port (it's written "COM6", but there's no "(arduino nano)" next to it).Does anyone have a solution?

I'm still a very beginner, and I apologize for any mistake I could have made, English isn't my mother tongue. Thanks!


r/ArduinoHelp • • Feb 02 '23

Help with a heartrate powere guitar pedal

2 Upvotes

So im 100% new at this whole arduino thing. I build guitar pedals and have had an idea for a tremolo pedal(volume modulator) thats driven by a heart rate monitor.

Heres the project im working from including schem and code:

https://youtube.com/watch?v=9rFjFlBPaaQ&feature=shares

https://www.electronicsisfun08.in/2022/12/heart-beat-monitoring-device-using.html?m=1

(The only changes i have made to the code is the image displayed when the heart rate monitor is reading)

I have the build working great, with a couple very minor modifications. Im using the rate LED on pin 13 in front of an LDR connected to the analog guitar pedal portion of the circuit.

My issue is that the blinking LED doesn't stay activated for long enough to deliver much of a usable sound. So I'm hoping there's a way to either increase the length of the blink, or alternatively(possibly a more useful option) to invert it so instead of turning on in time with the heart rate, it blinks off when the heart rate is detected.

Any help would be appreciated as i have little to none, knowledge of coding and am hoping to auction the final product off for charity to help the NHS who, long story short, saved my life recently for the second time.


r/ArduinoHelp • • Jan 22 '23

Lipo battery, not sure what the voltage at full and empty is

2 Upvotes

Hey,

I want to buy this Lipo battery: https://www.amazon.co.uk/gp/product/B09DPR4V6L

But I'm not certain what the voltage is when it's full and empty.

It says that the battery is 3.7V, but what does this mean? Is 3.7V = full? There's also this document on the Amazon page: https://m.media-amazon.com/images/I/71w020Fp-3L._AC_SL1500_.jpg which tends to indicate that:

0% = 3.0V and 100% = 4.28V

So what is full and what is empty?

Thanks


r/ArduinoHelp • • Dec 08 '22

How can I power up an Arduino Pro Micro with a 3.7v battery ?

2 Upvotes

I've tried wiring it to the RAW and GND ports, it seemed to work fine, but some people told me I shouldn't, is that true ? Why ? How can I do it instead ?


r/ArduinoHelp • • Dec 02 '22

Arduino pro micro not detected by computer anymore ?

2 Upvotes

My board isn't detected anymore when plugged in.

It used to work correctly, then after fixing a component's soldering, it stopped working entirely. I removed everything, cleaned the board and cleaned the solder from the ports, and it still don't work. The led turns on, but it's not detected. Is it dead ? Or can I fix it ?


r/ArduinoHelp • • Oct 15 '22

I can't decrease the set temperature

2 Upvotes

I've been following a tutorial to make an Arduino PID temperature controller, the code is in the link:

https://circuitdigest.com/microcontroller-projects/arduino-pid-temperature-controller

I can increase the set temperature when rotating the rotary encoder but I can't decrease it, can someone help explain what I'm doing wrong :)

EDIT: The rotary encoder works fine, I've tested it with other code, it just doesn't work properly with this code :)


r/ArduinoHelp • • Oct 11 '22

I am trying to find a good diagram and code for a flight stabilizer for an RC plane that does elevator and ailerons stabilization but I can't so can you guys help me for Arduino Uno

2 Upvotes

r/ArduinoHelp • • May 02 '22

Help with LCD and 7 Segment display

2 Upvotes

hi everyone

I have a 7 segment display connected to an arduino and the code allows for a IR sensor to detect and display the number pressed on a remote. Is it possible to also connect a LCD to the circuit so that the number pressed on the remote is displayed on the 7 segment and LCD ?

Any help would br appreciated

thanks 😁


r/ArduinoHelp • • Feb 27 '22

How should I go about a "piston"?

2 Upvotes

So. At my job I have to sometimes sponge a concrete section. Let's say 8 feet by 20 feet. So 160 square feet. To sponge a panel, I have to constantly "dab" with a sea sponge. The sponge is barely bigger than my open palm. So to do a whole panel, I dab the sponge probably average (probs more) of 12 times per square foot. So 1920 dabs of the wrist in usually about half an hour. Obviously, I don't want to do this as it's a lot of fatigue on the wrist and elbow.

I want to make an arduino tool to do this for me. Not hand held, I plan to have a gantry (a 2x4) for the contraption to ride along. That part can be manually done with a rope and a pulley to go across the panel. The hard part is deciding what to use for a piston of sorts.

I need something that can lift/lower a wet sponge quickly and by a decent distance. Probably 2cm ish. by quickly, I'm thinking 4 dabs per second. A solenoid would obviously be simplest, but I have no idea how fast they can operate, or how much weight they can handle. My other idea is to use a DC motor, and make something similar to an air compressor piston. Where the DC motor spins one direction, and the pivot point rotates around the motor making the piston go in and out. That's a touch more complicated and will likely be lots of trial and error for speed/dab distance. I don't think servos can operate fast enough, and not sure on their max speeds.

Sorry if anything is not clear. Thanks all!


r/ArduinoHelp • • Feb 21 '22

Having issues with my 1st RC Car attempt. How do I mount a wheel to a motor when the shaft is bigger than the wheel center hole? What’s the point of the shaft having a flat side to it? Why isn’t the shaft a perfect circle? All help is appreciated. I’m a confused noob.

Thumbnail
gallery
2 Upvotes

r/ArduinoHelp • • Feb 20 '22

HELP, why is this not working?

2 Upvotes

I am a beginner so i have actually no idea where to look for errors. So when i start the program the led is always purple and no matter what the potentiometer is on it still lights purple.

appreciate it if anyone could explain why.

Thanks!

const int GreenPin = 9;

const int BluePin = 10;

const int RedPin = 11;

const int potLevel = A1;

int potentiometer = 0;

void setup()

{

Serial.begin(9600);

pinMode(RedPin, OUTPUT);

pinMode(GreenPin, OUTPUT);

pinMode(BluePin, OUTPUT);

pinMode(potLevel, INPUT);

}

void loop()

{

potentiometer = analogRead(potLevel);

Serial.print(" potentiometer varde: ");

Serial.println(potentiometer);

if(potentiometer > 0 && potentiometer <= 150);

red();

if(potentiometer > 150 && potentiometer <= 300);

orange();

if(potentiometer > 300 && potentiometer <= 450);

yellow();

if(potentiometer > 450 && potentiometer <= 600);

green();

if(potentiometer > 600 && potentiometer <= 750);

cyan();

if(potentiometer > 750 && potentiometer <= 900);

blue();

if(potentiometer > 900);

magenta();

delay(1000);

}

void red(){

analogWrite(RedPin, 255);

analogWrite(GreenPin, 0);

analogWrite(BluePin, 0);

}

void orange(){

analogWrite(RedPin, 255);

analogWrite(GreenPin, 128);

analogWrite(BluePin, 0);

}

void yellow(){

analogWrite(RedPin, 255);

analogWrite(GreenPin, 255);

analogWrite(BluePin, 0);

}

void green(){

analogWrite(RedPin, 0);

analogWrite(GreenPin, 255);

analogWrite(BluePin, 0);

}

void cyan(){

analogWrite(RedPin, 0);

analogWrite(GreenPin, 255);

analogWrite(BluePin, 266);

}

void blue(){

analogWrite(RedPin, 0);

analogWrite(GreenPin, 0);

analogWrite(BluePin, 255);

}

void magenta(){

analogWrite(RedPin, 255);

analogWrite(GreenPin, 0);

analogWrite(BluePin, 255);

}

void turnoff(){

analogWrite(RedPin, 0);

analogWrite(GreenPin, 0);

analogWrite(BluePin, 0);

}


r/ArduinoHelp • • Feb 17 '22

Main Arduino UNO board cannot be detected but my spare board can be detected

2 Upvotes

My Arduino UNO suddenly was unable to receive uploaded code and it was due to it not being detected (no COM in Serial Ports). I tried with a spare board and it was detectable COM4(Arduino Uno). Same PC was used. Is my original board bricked and unusable or is there anything I can do. Any help appreciated


r/ArduinoHelp • • Feb 10 '22

Help with Addressable LEDs

2 Upvotes

This is only my second project so there might just be a low hanging solution that I dont see

I'm trying to make a matrix drip led panel. End result will be 36 strands on an arduino due, but im running 3-6 on an uno at the moment.

the main problem im running into is somewhat of a threading problem, or running code concurrently. I can kind of get a couple 'drips' to run at the same time but its hackey and probably not a final solution. I want to randomize length, speed, and which strand it appears on

Right now the current 'drip' has to finish running to the end of the strand before another drip starts. My two for loops here are getting two of the same drip on two different strands but even those have to finish before the next drip starts. It would be ideal not to have low limits like this, the effect doesn't work unless most of the strands have a drip in some stage and I can't have the entire panel clearing before the next ones start.

My understanding of these (ws2812b) is that they get their data and pass it down the strand until it reaches the end. There is never data returned to the arduino so technically the controller should be able to fire multiple instructions to multiple strands while the strands themselves are executing the code. Right now its acting like the controller pauses while the strand executes the code, that that doesnt really make sense to me.

I'm not sure if the code is really pertinent but id be stupid not to included it right? I'm only running 3 strands atm due to variable constraints. I know its a mess sorry

void setup() {

  FastLED.addLeds<WS2812, LED_PIN7, GRB>(leds[0], NUM_LEDS); 
  FastLED.addLeds<WS2812, LED_PIN6, GRB>(leds[1], NUM_LEDS);
  FastLED.addLeds<WS2812, LED_PIN5, GRB>(leds[2], NUM_LEDS);
  //FastLED.addLeds<WS2812, LED_PIN4, GRB>(leds[3], NUM_LEDS);
  //FastLED.addLeds<WS2812, LED_PIN3, GRB>(leds[4], NUM_LEDS);
  //FastLED.addLeds<WS2812, LED_PIN2, GRB>(leds[5], NUM_LEDS);
}

void drip() {
  // long tails stopping early 
      const byte fadeAmt = random(1, 1020)/4; // get better randomization 
      const byte fadeAmt0 = random(1, 1530)/6;
      const int cometSize = random(2,50); // comet size can be tweaked to be longer - the randomization of length is really coming from the fadeAmt random 
      // const int cometSize = 120; 
      const int delayVar = random(1,100);
      const int randStrip = random(1,3);
      const int randStrip0 = random(1,3);
  
        for(int dot = 0; dot < NUM_LEDS; dot++) { 
            leds[randStrip][dot] = CRGB(0, 0, 137);
            leds[randStrip0][dot] = CRGB(0, 0, 137);
            //FastLED.show();
            for (int j = 0; j < NUM_LEDS; j++)
              // if (random(10) > 5)
                leds[randStrip][j] = leds[randStrip][j].fadeToBlackBy(fadeAmt);  
            for (int j = 0; j < NUM_LEDS; j++)
              // if (random(10) > 5)
                leds[randStrip0][j] = leds[randStrip][j].fadeToBlackBy(fadeAmt0); // i can get 2 strands to fire like this but theyre the same 
            FastLED.show(); //im thinking the problem lies right here, is this physically sending a single instruction set to the lights one time every loop? 
            delay(delayVar);
        
        }
      FastLED.clear(); // i know this is clearing everything. I cant find a way to just clear the current strand, theres got to be a way to isolate this
}

void loop() {
  drip();
}

I know that someone is going to tell me to eliminate delay, but thats the only way that I can get the drip speed to change. I used the comment effect from daves garage as inspiration and training and his uses delay too. I'm not sure how to get away without it


r/ArduinoHelp • • Feb 08 '22

Cant upload to Elegoo Arduino R3

2 Upvotes

My computer doesn'trecognize regognize my Arduino when I plug it in. I downloaded the Arduino IDE and USB drivers but nothing seems to work. All of my drivers are updated. My computer automatically uses COM1.


r/ArduinoHelp • • Feb 05 '22

Arduino Millis function

2 Upvotes

How do I make serial input in arduino as a variable for millis()? To act as an adjustable timer? I've been trying to find codes but none seems to heed to my needs. Please help me, will appreciate it alot!


r/ArduinoHelp • • Dec 25 '21

Powering NodeMCU with doorbell power?

2 Upvotes

I plan to replace my ordinary doorbell with an elaborate NodeMCU-NodeRed automation chain. The chain should go like:

- person rings

- NodeMCU gets power, http-posts to Node Red flow

- NR flow does clever and funny things

- I go and open the door.

I've read some tutorials and have a small sketch, but then it hit me: why do I need to put the NodeMCU into deep sleep state, when my doorbell most probably works with 12V power and I have a step down module, why not connect the NodeMCU directly to the door bell power?

MCU gets power, POSTS to Nodered, done. No need for optocouplers or resistors... or am I missing something?


r/ArduinoHelp • • Dec 08 '21

32u4 Pro micro as FTDI for ESP-01

2 Upvotes

Soo i've been trying to use my pro micro as FTDI for ESP-01.
And as you might asume by me commiting this very post here, i've failed.

Arduino Pro Micro with ATmega32u4
ESP-01 / ESP8266

Connections look like soo:
Additionaly breakout i'am using has some kind of tiny condensator, idk why and for what.
I am trying to upload a blink as test, both arduino and ESP blink a fiev times before arduino.ide splits an error at me.
log from IDE

Known ideas:
- shorting RST and GND on Arduino -> no serial port for IDE to upload onto
- switching TX and RX wires -> No response from eighter ino or ESP

THANKS IN ADVANCE :>


r/ArduinoHelp • • Sep 15 '21

Need help for project for a school contest.

2 Upvotes

The project has 2 buttons, 2 leds and 2 buzzers. The idea is that when you press the button the light asociated with the button you pressed should stay on for a few seconds as well as the buzzer, that way the participants can know which one pressed first and needs to asnwer the question. The problem is how to determine wich one of both was pressed first and how to keep the light on for a while.

I've searched for a while this software because i know that is something that it is used in a lot of quizes and schools but where i live this is not as common.


r/ArduinoHelp • • Aug 25 '21

Help with project 4 Color Mixing Lamp

2 Upvotes

Hi everyone,

I am working on the projects in the Starter Kit book and am currently on project 4 - the color mixing lamp project. For some reason, the blue sensor/LED is not showing up or working? When I open the Sensor Monitor in the Arduino IDE, it just shows that the value is 0, but the red and green lights are showing up. I've tried double checking my setup at the code but I don't see any issues? Could anyone please help me out, I am a total beginner in Arduino and electronics in general.

And please let me know if I should attach any additional photos.

Thanks in advance.

Link to the code via Github gist here.


r/ArduinoHelp • • Aug 08 '21

Do HM10 clones(BT05) compatible with IOS?

2 Upvotes

Ive tried using many apps, to which some of them i can connect to, although my output to the serial monitor is nothing. If this module is incompatible, what are the alternatives?

#include <SoftwareSerial.h>

// BLE Mod Setup
SoftwareSerial HM(3, 4); // RX, TX
char v;

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  HM.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
  if(Serial.available())
  {
    v=Serial.read();
    HM.print(v);
  }
}