r/ArduinoHelp • • Jul 22 '24

Using a stepper motor

Post image
3 Upvotes

Would i be able to power this stepper motor directly from my arduino mega? In theroy i should be able to put the power pin directly to the 3v power pin on the mega board right?


r/ArduinoHelp • • Apr 23 '24

Sim800c module, LED(status indicator) not lighting up

Post image
3 Upvotes

When I first researched about the sim800c module, I expected the status indicator to blink, but the only thing I saw was the power indicator lighting.(picture)

I have an 3.7V external battery connected to the “5V pin” and the “GND pin” on the sim800c.

The TXD pin is connected to the pin 3(Arduino) while the RXD pin is connected to the pin 2(Arduino)

I also read that the PWX pin should be connected to the GND pin(Arduino ), so I also did that.

When I test the module anyways with Arduino IDE, the Serial Monitor does not respond. I have tried with multiple codes from the internet which have worked for others.

I would like to get help with getting the status indicator to work, so I can send sms with my module.


r/ArduinoHelp • • Jun 13 '23

I need help, arduino nano not uploading

Thumbnail
gallery
3 Upvotes

So I have these arduino uno and nano, the arduino uno works perfectly but the nano doesn't, (these are from aliexpress, and I had to burn a new bootloader when they came in a few moths ago and worked fine), now I'm currently on a project and when I try compiling it says that there is no errors, but when I pressupload, the code it doesn't work, it just says "can't set com-state for..." I'm loosing my mind and I dk t know what to do anymore


r/ArduinoHelp • • Jun 12 '23

Help with my school project

3 Upvotes

Hello!

Recently I have been trying to make a project which consists on making a scarecrow that detects sounds and emits noises from a speaker and moves his "arms" in a way to scare birds and other animals away. The arms will be moved by a motor which would be connected to a battery which is charged with a solar panel.

Im doing this with my colleagues for our final project and we are kind of stuck in the code process of the whole project. We still need to draw the circuit but our objective is:

Having the sound sensor detect a sound and the LED turns on. When this happens, it should make the speaker emit the sound we choose and, at the same time, make the motor run and move the arms.

There will be a button to turn on and off the circuit since its not that big and our objective is for it to be enviromental friendly and appropriate to small gardens at home.

Can anyone please help us out in what we need to do with the code process with arduino? And will only 1 arduino be enough? We just learned how to use arduino so we're kind of in the blank here that's why Im asking for help but we really liked the idea and wanted to make this school year different from the other.

Edit: And yes, we searched for videos that make our ideas work but only alone. For example, we searched on how to make the sound sensor but we still need to test it out but we want help to make everything work simultaneously


r/ArduinoHelp • • Mar 11 '23

need some help with an encoder. i saved this encoder from the trash at my work, and i want to use it for an arduino project. I have no idea where to begin though and how to connect it. any ideas?

Thumbnail
gallery
3 Upvotes

r/ArduinoHelp • • Oct 31 '22

Need help programming this using a mpu6050 and arduino uno

Post image
3 Upvotes

r/ArduinoHelp • • Jul 30 '22

Bedroom security system

3 Upvotes

Hello!

I had an idea for a security system for my bedroom using d1 mini's. But I have no idea how to implement it.

I want it to be outside my door and have an nfc card reader. The nfc card will have some sort of user ID in it, the d1 mini will send this ID to the server (this is where my problem is) and check whether or not it's a real ID and if it has access. But I don't know where that data will be stored and how a to access it.

In a perfect world the arduino IOT platform would be able to have text files and I would store the data there.

Maybe I can write the program in c++ and store the data on a file on my computer? But I would rather it be an IOT platform so that it has a mobile dashboard.

Any help would be appreciated.

Edit: grammer bot is jerk


r/ArduinoHelp • • Jul 01 '22

Anyone knows a dowloadable software for arduino simulations?

3 Upvotes

r/ArduinoHelp • • Jun 03 '22

Automated Agricultural Arm Height.

3 Upvotes

Hi! Hope you're having a great day!

I really need help with an agricultural project, I want to automate the height of an fertilizer arm that normally its regulated with buttons by an operator (it's mounted in a tractor moving alongside the crop); I'm using a capacitive proximity sensor that detects the top part of the plant (the fertilizer nozzle it's just behind the sensor), all the system its controlled by an Arduino.

The control logic it's quite simple:

If the sensor it's ON, move the arm UP. If the sensor it's OFF, move the arm DOWN.

It's an oscillation movement of the arm, regulating itself to

fertilize just the top of the plant.

I need help with the code, diagram, additional components or anything that would help achieve my goal.

Thank you very much!


r/ArduinoHelp • • May 15 '22

Assignment: Make a button that when pressed, turns off an LED and turns another on. There should be at least 3 LEDs.

3 Upvotes

ive a roadblock. i have tried some things but I still don't know how to use the last button state for each.

int BUTTON_PIN = 8;

int LED_PIN1 = 3;

int LED_PIN2 = 4;

int LED_PIN3 = 5;

int ledState = HIGH;

int ledState2 = LOW;

int ledState3 = LOW;

int lastButtonState;

int currentButtonState;

void setup() {

pinMode(BUTTON_PIN, INPUT);

pinMode(LED_PIN1, OUTPUT);

currentButtonState = digitalRead(BUTTON_PIN);

}

void loop() {

lastButtonState = currentButtonState;

currentButtonState = digitalRead(BUTTON_PIN);

if(lastButtonState == HIGH && currentButtonState == LOW) {

ledState = !ledState;

digitalWrite(LED_PIN1, ledState);

digitalWrite(LED_PIN2, ledState2);

digitalWrite(LED_PIN3, ledState3);

}

}


r/ArduinoHelp • • May 07 '22

Arduino random slow start when I power it from an induction coil

Thumbnail self.arduino
3 Upvotes

r/ArduinoHelp • • Dec 28 '21

Elegoo Smartcar V4, Uno and Smartshield v1.1, Doesn't work when switching to cam

3 Upvotes

First off this is my absolute first time with my hands on arduino.

I got as a present this neat little thing, just a kit you put together piece by piece and on and go. It has a camera you can connect to via Wifi and control the car remotely with their app.

I connected to it that and everything except the obstacle detection worked. No biggie.
I wanted to get into it and try out IDE and send it some instructions, troubleshoot the sonar and so forth. On the Smartcar Shield is a physical switch from 'cam' to 'upload'; it's supposed to be switched to 'upload' when you mess with your sketches and 'cam' when being controlled with the phone.
So I uploaded some sketches, sonar always read out 0 so that I'll have to take a look at.

When I'm done with fiddling I just want to play around more using the app and then problems.
I can connect my phone to the camera and see the picture, but not control the car in any way, or move the camera using the rotor.
The Uno LED flashes as it receives commands from my phone but doesn't perform them.
After testing I found out that the car now always performs the last sketch I loaded through IDE, then doesn't respond through the app, nor to the remote that came with it, though of course the light flashes that it received UV signal.

I did upload the program that I found here: https://www.elegoo.com/pages/arduino-kits-support-files that fits my model and parts, the car does a little click sound like it's ready for action but doesn't respond.
Then I tried pressing reset on both the shield and the Uno, uploading the program again but still nothing. Also tried reinstalling the app, and setting it up with the car fresh, still nothing.

Any help would be greatly appreciated, I would hate to waste such a nice feature with this stupidity, as I can still upload my own programs and such but could never rebuild this connection to my phone.


r/ArduinoHelp • • Jul 08 '21

2 things work but adding 3 doesn't

3 Upvotes

I'm using the MPU6050 (gyroscope) to measure angles, MLX90614 (thermometer) to measure temperature, and SSD1309 (OLED Screen)to display the results.

When I only use the gyroscope & thermometer, the numbers come out fine on the serial monitor.

When I add gyroscope, thermometer, + OLED Screen together, the temperature readings are correct, but the gyroscope's angles are off.

Is this due to the screen I bought, or can I just not daisy chain 3 things to SDA/SCL? I've gone through a lot of tutorials online and my gyroscope sensor is accurate, the combination of the three just isn't.

For example, it can measure 90 degrees (right angle) on its own, and with a thermometer's temperature reading. When I add them in series to a screen, the 90 degrees becomes 30, and if I remeasure it's 50, then again it's 70 etc. so that the angles move everytime.


r/ArduinoHelp • • Jun 10 '21

What Is This Error?

3 Upvotes

Okay so i posted something yesterday but a few hours later i got the code compiled but i'm not satisfide so i'm starting from scratch and learning by trial and error ( punn intented ).

But i can't find a clear awnser to what a few error messages mean ( i'll post the code and the errors in the comments ).

I want to make a motion sensor alarm that sounds the buzzer and lights up 1 LED for 5 seconds when detecting something.

Coding is not done but i know i've did something wrong already so i wanna learn from it and correct it before even more error are made.

Thanks in advance.


r/ArduinoHelp • • 2d ago

Arduino Uno cheap alternatives

2 Upvotes

I want to make a few little moving displays that can be activated with IR (pointing a remote at an IR receiver and a single servo motor moves, nothing crazy). When I look around online, it seems like everyone uses an Arduino Uno to do this. Ideally, I’d like to find a cheaper alternative since I plan setting a handful of these up and leaving them semi-permanently around my apartment as fun interactive decorations. Any recommendations for cheaper microcontrollers I should look at? Or is buying an Arduino Uno generally the only good option? (I also need any microcontroller alternatives to have wifi capabilities…). Any other cheap part recommendations and/or advice for the process is also helpful!


r/ArduinoHelp • • 9d ago

Trouble playing mp3 files on aDFPlayer - Mini MP3 Player

2 Upvotes

Below is a small part of an Arduino sketch to play 3 files through a DFPlayer. The files play so everything is hooked up correctly. The problem is the files play 2 then 3 then 1. Out of order. Any idea why?

  
  myDFPlayer.volume(5);  //Set volume value. From 0 to 30 
{

myDFPlayer.play(1);  //Play the first mp3

  delay(10000);

  myDFPlayer.play(2);  //Play the second mp3

  delay(10000);

  myDFPlayer.play(3);  //Play the third mp3

}

void loop()


r/ArduinoHelp • • 22d ago

I2c oled gliching

Post image
2 Upvotes

r/ArduinoHelp • • 25d ago

Beginner help needed.

2 Upvotes

I just wanted to start by saying I don't know much about Arduinos or electronic setups yet, but I'm pretty comfortable with soldering and can usually figure out the software side of things! I currently have a cosplay project and wanted to set up a custom sound box. My idea is that when I open a mask that has an articulated jaw, it releases a Mini Micro Limit Switch 3 Pins KW11-3Z07 and sends a singular signal to a DY-SV5W Voice Playback Module so the audio plays once. When I press the jaw back together, it won't do anything; it will just wait to be opened again. Is this configuration feasible? What specific components or modifications would be required, or would I need to restart the project from scratch? Please let me know. Additionally, I intend to power the setup using a standard power bank.


r/ArduinoHelp • • 25d ago

How do I switch this tilt sensor to another in real life?

Post image
2 Upvotes

For context, I'm a beginner in making stuff like these, this is kind of my first time, this is for a school project, so sorry for the messy placements

But I tried to use tinkercad for the simulation

And I ended up with this ( the circuit )

So I just need the servos to spin when the tilt sensor senses a tilt, but I have a different tilt sensor, the circuit uses an SW-200D, while I have an SW-520D, so there's already a difference in number of output pins ( I'm not sure if that's what it's called ), and I'm just not sure about everything else after that 😭😭

The code is quite confusing too, I don't know a single bit of coding, so I tried what I could with the limited knowledge I know

->

#include <Servo.h>

int oozmakappa = 0;

Servo servo_12;

Servo servo_11;

Servo servo_10;

Servo servo_9;

Servo servo_8;

unsigned long spinStartTime = 0;

unsigned long totalSpinDuration = 0;

bool isSpinningForward = false;

bool needsToReturn = false;

void setup() {

pinMode(13, INPUT);

servo_12.attach(12, 500, 2500);

servo_11.attach(11, 500, 2500);

servo_10.attach(10, 500, 2500);

servo_9.attach(9, 500, 2500);

servo_8.attach(8, 500, 2500);

servo_12.write(90);

servo_11.write(90);

servo_10.write(90);

servo_9.write(90);

servo_8.write(90);

}

void loop() {

oozmakappa = digitalRead(13);

if (oozmakappa == HIGH) {

if (!isSpinningForward) {

spinStartTime = millis();

isSpinningForward = true;

needsToReturn = true;

servo_12.write(180);

servo_11.write(180);

servo_10.write(180);

servo_9.write(180);

servo_8.write(180);

}

} else {

if (isSpinningForward) {

totalSpinDuration = millis() - spinStartTime;

isSpinningForward = false;

servo_12.write(0);

servo_11.write(0);

servo_10.write(0);

servo_9.write(0);

servo_8.write(0);

spinStartTime = millis();

}

if (needsToReturn) {

if (millis() - spinStartTime >= totalSpinDuration) {

servo_12.write(90);

servo_11.write(90);

servo_10.write(90);

servo_9.write(90);

servo_8.write(90);

needsToReturn = false;

}

}

}

delay(10);

}

On tinkercad, it stops after 1/2 a spin, and just doesn't move anymore?? 😭😭

I'm very confused, someone please help me and guide me on what to do

If anyone could be of guidance to me, please do so, I'm struggling on how this is supposed to work 💔 I tried looking through YouTube but strangely I just couldn't find anything 😢


r/ArduinoHelp • • Nov 05 '26

Title: Help! Arduino UNO keeps resetting randomly on my SCARA Robot (CNC Shield + ESP32) - Pulling my hair out!

Thumbnail drive.google.com
2 Upvotes

r/ArduinoHelp • • Nov 03 '26

Standalone server for IoT projects without any third-party websites or any middlemen. Is it possible?

Thumbnail reddit.com
2 Upvotes

r/ArduinoHelp • • Oct 25 '26

I'm an Intermediate CS student Interested in Arduino - Where to start? Language + Roadmap needed

2 Upvotes

I am an Intermediate student in Computer Science. And I am interested in Arduino. I want to ask some questions related to Arduino.

1: Which programming language do we have to learn in Arduino?

2 : Can anyone share Arduino's Basic to Advance Roadmap any text message or PDF with me?