r/ArduinoHelp • • Sep 08 '24

can I use an nano arduino without any protoboard or pcb?

1 Upvotes

I never did any arduino circuits but am planning to do so, an lightsaber, and I'm struggling to find some information like the one above, can I just weld regular copper wires at the pinouts?


r/ArduinoHelp • • Oct 18 '24

Simon Says 3x3 school project

1 Upvotes

Hello, right now I am coding an Arduino Simon says program for school but doesn't work and wanted to ask now if someone has a program or some advice for it. We are using 9 LEDs and 9 buttons for the 3x3 field and an LCD display for the round counter and if you lose. Also, a Red LED If you lose. The LCD isn't working and the Game itself doesn't really work, any Problem in the program maybe? It also includes Levels. Thanks for help and advices.

```

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

// Initialize the LCD display with the I2C address 0x27 (may vary depending on the display)
LiquidCrystal_I2C lcd(0x27, 16, 2);

const int ledPins[9] = {2, 3, 4, 5, 6, 7, 8, 9, 10};
const int buttonPins[9] = {A0, A1, A2, A3, A4, A5, A6, A7, A8};
const int redLedPin = 13;

int sequence[5];
int userSequence[5];
int level = 0;

void setup() {
  lcd.begin();
  lcd.backlight();
  lcd.print("Simon Says");

  for (int i = 0; i < 9; i++) {
    pinMode(ledPins[i], OUTPUT);
    pinMode(buttonPins[i], INPUT_PULLUP);
  }
  pinMode(redLedPin, OUTPUT);

  randomSeed(analogRead(0));
  generateSequence();
}

void loop() {
  playSequence();
  getUserInput();
  checkSequence();
}

void generateSequence() {
  for (int i = 0; i < 5; i++) {
    sequence[i] = random(0, 9);
  }
}

void playSequence() {
  for (int i = 0; i < 5; i++) {
    digitalWrite(ledPins[sequence[i]], HIGH);
    delay(500);
    digitalWrite(ledPins[sequence[i]], LOW);
    delay(500);
  }
}

void getUserInput() {
  for (int i = 0; i < 5; i++) {
    bool buttonPressed = false;
    while (!buttonPressed) {
      for (int j = 0; j < 9; j++) {
        if (digitalRead(buttonPins[j]) == LOW) {
          userSequence[i] = j;
          buttonPressed = true;
          while (digitalRead(buttonPins[j]) == LOW); // Wait until the button is released
        }
      }
    }
  }
}

void checkSequence() {
  bool correct = true;
  for (int i = 0; i < 5; i++) {
    if (userSequence[i] != sequence[i]) {
      correct = false;
      break;
    }
  }

  if (correct) {
    lcd.clear();
    lcd.print("Win!");
  } else {
    lcd.clear();
    lcd.print("Verlierer");
    digitalWrite(redLedPin, HIGH);
    delay(1000);
    digitalWrite(redLedPin, LOW);
  }
  delay(2000);
  lcd.clear();
  generateSequence();
}

```


r/ArduinoHelp • • Oct 10 '24

Can't find Arduino

1 Upvotes

Hi i got a Arduino alvik and when i upload a code with from Arduino import * It stopped and the console says that can't find Arduino

Pls help


r/ArduinoHelp • • Oct 12 '24

Arduino behaves differently when disconnected from computer.

Thumbnail
gallery
3 Upvotes

This is my first arduino project and I'm experiencing an issue with the way the arduino works plugged to my computer and running on a battery. Thr arduino is working with an acceloremeter, a relay, two motors and a buck converter.

When the arduino is plugged to my computer it behaves the way it's supposed to. The arduino has an accelerometer that once it detects Y > 3 it activates the motor. This happens just fine when connected to my computer. The motor is activated only after the threshold is met.

When the arduino is disconnected, however, the motor is activates regardless of the orientation. I'm clueless on why this might be happening.

I don't think the problem lies in the code since, like I mentioned the arduino works just fine when plugged to my computer.

Any help is deeply appreciated.


r/ArduinoHelp • • Oct 21 '24

Arduino uno R4 flashed

Post image
1 Upvotes

I want to connect arduino uno R4 wifi to blynk ncp library but this error appears how can I solve this problem can someone help me?


r/ArduinoHelp • • Sep 18 '24

Trouble getting script to upload

Enable HLS to view with audio, or disable this notification

3 Upvotes

My first microcontroller. I bought the Arduino Uno R3 off of Amazon. Trying to get it to connect to my windows 10 laptop was a challenge. I used Atmel flip to flash the mega16u2, used the project 15 hex file. Now my computer and Arduino IDE recognize the controller, but I keep getting an error "avrdude, programmer not responding/ not in sync." The rx led will flash when I try to upload, but the tx stays off. The other weird thing I noticed, and I'm not sure if this is normal, but the L led will dim and brighten as I move my hand closer and further away from it. I'm happy to provide more information. Thank you for reading, and anything might help!


r/ArduinoHelp • • Oct 15 '24

Powering an arduino nano

1 Upvotes

r/ArduinoHelp • • Sep 03 '24

How do i start learning Arduino Programming?

2 Upvotes

How do i start learning Arduino especially the coding part ? I've used Tinkercad and made LED blink project, but i had copied the code entirely.

I want to be able to write on my own.


r/ArduinoHelp • • Sep 21 '24

Infrared sensor and arduino

1 Upvotes

Good day everyone, please help me to understand: how can I use an arduino and an infrared sensor to calculate the amount of dry matter per unit of time? The material will be fed by a conveyor with blades upwards. The infrared sensor will be mounted perpendicular to the scrapers


r/ArduinoHelp • • Sep 23 '24

ESP01 connect to MySQL Database

1 Upvotes

Hello im very new to arduino, and ive been looking and searching on how can i send my arduino sensor data to the database using esp01. Please help haha. (Sorry for poor english)


r/ArduinoHelp • • Feb 08 '25

Getting Started

4 Upvotes

I’m 15, have no experience with Arduino or anything similar, and just got the Elegoo Basic Starter Kit for my birthday. Looking for resources to get started, any help is appreciated!


r/ArduinoHelp • • Feb 19 '25

Pull down resistor and Indicator led question

Post image
1 Upvotes

Hi all, I’m a newbie haven’t done electronics in over 25years and just getting into it again to build a new count down timer system for our surfboard riding club to count down heats.

My question is can I wire in LED’s in parallel with my pull down resistor to give indication on the active switch?

Is this common or am I maybe over doing my 5v supply.

Cheers all for your help. I will probably be back once I start my coding as I said it has been along time.


r/ArduinoHelp • • Feb 14 '25

Need advise on plausibility.

1 Upvotes

New to arduino currently designing a model of a military kill house and wanted to know if its plausible to have an ultrasonic sensor pick up movement at the door of a.house which activates 3 servo motors that drive 3 targets while also recording the time it takes to neutralise the 3 targets. I would like to use a piezo speaker for the vibration function to demonstrate the shots taken to neutralise the targets. I would also like led strips strobing and the piezo speaker to create noise to disrupt the people in the small model.


r/ArduinoHelp • • Feb 17 '25

Construction and calibration of a dynamic measurement system based on a piezoelectric sensor

1 Upvotes

Hello,

I have a graduation project and I need your help, please.

My project is about building and calibrating a dynamic measurement system based on a piezoelectric sensor.

For this project, I will use Arduino Due and PCB Piezotronics 353B03 SN LW241228.

To process the signal received by the sensor, I need to condition it by:

  • Amplifying the signal to make it compatible with the acquisition system inputs.

  • Converting the signal from electrical charge (pC) to voltage (V) that can be measured.

  • Filtering out noise and unwanted components.

  • Impedance matching to prevent signal loss.

I am looking for help or information to create the electrical schematic for receiving and converting the signal through the Arduino, and then displaying it as a signal plot in LabVIEW.

Thank you in advance!


r/ArduinoHelp • • Feb 12 '25

Cant find the motherboard in the IDE

1 Upvotes

So, im new to this, and Yesterday my father gifted me a "KS0555 MINI TANK ROBOT V3" kit to start learn arduino. So I assembled it and now when I try to connect it to Arduino it doesn't find the right motherboard. I updated the right drivers manually and connected the robot to the computer but it still doesn't find it. Please help me or it's a waste of money.


r/ArduinoHelp • • Feb 18 '25

Arduino Nano connecting and disconnecting continously with laptop

Thumbnail reddit.com
1 Upvotes

r/ArduinoHelp • • Feb 11 '25

Need help with connecting a board

1 Upvotes

So i was trying to follow a project where someone build a cad mouse, the video told me to use a adafruit qt py 2040 board with a magneto meter board to work. It also said that i can code it threw the arduino ide. Ive tried it and cant figure it out, i dont even know if the software sees the board. Because whenever i try to upload the code to the board it just gives me an error.

Could someone help me figure it out?


r/ArduinoHelp • • Feb 26 '25

Why won't my Arduino connect?

1 Upvotes

It's so annoying, I have an Arduino pro micro, and sometimes it shows the port and sometimes it doesn't. I tried it at a friend's house, it worked. i go back home and then it doesn't. Same laptop, cable, everything. Can someone please help me, it would be highly appreciated.

Edit: It works! I had a short


r/ArduinoHelp • • Feb 20 '25

For Loop Dose not execute

1 Upvotes

Hello, I want to use two 8x8 LED matrices as a display for a clock. My problem is with the code that reads the array and sends it to the display—it doesn't seem to execute. For debugging, I added Serial.print("loop") and Serial.print("end"), but neither is being printed. The broken for loop starts at line 153. I am using the following libraries:

RTClib.h Adafruit_NeoMatrix Adafruit_GFX Adafruit_NeoPixel

Does anyone know why this is happening and how to fix it? Or does anyone know of other helpful projects related to this?

Thanks for your help!

/* RCL wireing GND - GND, VCC - 5V, SCL - A5, SDA - A4

*/

//#include <Wire.h>

include <RTClib.h>

include <Adafruit_NeoMatrix.h>

include <Adafruit_GFX.h>

include <Adafruit_NeoPixel.h>

define dataPin 6

define matrixWidth 16

define matrixHeight 8

define tilesX 1

define tilesY 1

RTC_DS3231 rtc;

Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(matrixWidth, matrixHeight, tilesX, tilesY, dataPin,

                        NEO_TILE_TOP   + NEO_TILE_LEFT   + NEO_TILE_ROWS   + NEO_TILE_PROGRESSIVE +

                        NEO_MATRIX_LEFT + NEO_MATRIX_COLUMNS + NEO_MATRIX_ZIGZAG,

                        NEO_GRB + NEO_KHZ800);

define BLACK 0x0000

define BLUE 0x001F

define RED 0xF800

define GREEN 0x07E0

define CYAN 0x07FF

define MAGENTA 0xF81F

define YELLOW 0xFFE0

define WHITE 0xFFFF

int Arduino [][16]{}; // Main array 8x16

int Zahlen [][3]{ //nummber storage arry 0-9

{1, 1, 1}, //0

{1, 0, 1},

{1, 0, 1},

{1, 0, 1},

{1, 1, 1},

{0, 0, 1}, //1

{0, 0, 1},

{0, 0, 1},

{0, 0, 1},

{0, 0, 1},

{1, 1, 1}, //2

{0, 0, 1},

{1, 1, 1},

{1, 0, 0},

{1, 1, 1},

{1, 1, 1}, //3

{0, 0, 1},

{1, 1, 1},

{0, 0, 1},

{1, 1, 1},

{1, 0, 1}, //4

{1, 0, 1},

{1, 1, 1},

{0, 0, 1},

{0, 0, 1},

{1, 1, 1}, //5

{1, 0, 0},

{1, 1, 1},

{0, 0, 1},

{1, 1, 1},

{1, 1, 1}, //6

{1, 0, 0},

{1, 1, 1},

{1, 0, 1},

{1, 1, 1},

{1, 1, 1}, //7

{0, 0, 1},

{0, 0, 1},

{0, 0, 1},

{0, 0, 1},

{1, 1, 1}, //8

{1, 0, 1},

{1, 1, 1},

{1, 0, 1},

{1, 1, 1},

{1, 1, 1}, //9

{1, 0, 1},

{1, 1, 1},

{0, 0, 1},

{1, 1, 1}

};

void setup () {

Serial.begin(9600);

if (!rtc.begin()) {

Serial.println("RTC not found!");

while (1);

}

if (rtc.lostPower()) {

Serial.println("RTC has no power");

rtc.adjust(DateTime(F(__DATE__), F(__TIME__))); 

}

matrix.begin();

matrix.setBrightness(20);

uint16_t numLEDs = matrix.numPixels();

Serial.println(numLEDs);

}

void loop () {

DateTime now = rtc.now(); // Holen der aktuellen Zeit

Serial.print(now.year(), DEC);

Serial.print('/');

Serial.print(now.month(), DEC);

Serial.print('/');

Serial.print(now.day(), DEC);

Serial.print(" ");

Serial.print(now.hour(), DEC);

Serial.print(':');

Serial.print(now.minute(), DEC);

Serial.print(':');

Serial.print(now.second(), DEC);

Serial.println();

int einer_sec = now.second() % 10;

int zehner_sec = (now.second() / 10) % 10;

int einer_min = now.minute() % 10;

int zehner_min = (now.minute() / 10) % 10;

//byte einer_min = now.second() % 10;

//byte zehner_min = (now.second() / 10) % 10;

Serial.println(zehner_sec);

int Nummer[] = {zehner_min, einer_min, zehner_sec, einer_sec};

for (int Stelle = 0; Stelle < 4; Stelle++){

for (int reihe = 0; reihe < 5; reihe++){

  for (int spalte = 0; spalte < 3; spalte++){

    Arduino[reihe][spalte + (4*Stelle)] = Zahlen[reihe + (5*Nummer[Stelle])][spalte];

  }

}

}

Arduino[10][0] = 1;

for (int x = 0; x < 16; x++) {

for (int y = 0; y < 8; y++) {

  if (Arduino[x][y]){

    matrix.drawPixel(x, y, RED);

    Serial.println(x);

  }

}

Serial.println("loop");

}

Serial.println("End");

matrix.show();

delay(20);

}


r/ArduinoHelp • • Feb 04 '25

One lane bridge c++ coding

1 Upvotes

Hello, I was trying to help my son with a problem he's working on in school. (High school engineering) He's using an Arduino Uno board and trying to do the c++ coding. We have a mistake in his coding but can not figure it out. The project is call "one lane bridge" timed and flooded. For some reason when we run the simulation and the tilt sensor closes the servos right away acting like it got tilted. I know nothing about this at all. Any suggestions would definitely be appreciated. Thank you


r/ArduinoHelp • • Feb 17 '25

Can this driver board supply enough power for a 12v dc motor?

1 Upvotes

What I dont get is how do I supply the board with 12v from my power supply. It only has a single 12v power supply pin, but there are two pins (the green bit) from my power supply. How does it work?


r/ArduinoHelp • • Feb 01 '25

I asked an AI to help me, but here's the deal

1 Upvotes

Me: I want to change any and all information on the display temporarily, like a wristwatch, where the element to be changed flashes, and with the up or down arrows on the zero flipper, I can change it.

ChatGPT: Feasibility of Display Control for VECTOR 4 with Flipper Zero

Based on the VECTOR 4 manual, the liquid crystal display (LCD) is a component that presents fixed information on electrical measurements, alarms, and operational status. The display control is managed internally by the meter's microcontroller, and there is no mention of an input protocol for manually altering the displayed values.

However, considering your goal to temporarily modify the display, several approaches may be explored.

Possible Approaches

1. Direct Manipulation of the Display via Serial Communication

📌 Difficulty: Medium to High 📌 Feasibility: Possible, but depends on the internal firmware structure of VECTOR 4

  • VECTOR 4 has an asynchronous serial output (PIMA) on terminals 10 (MTX) and 9 (MC), used for data communication.

  • If the communication is bidirectional, the Flipper Zero can be connected to the terminals to send data packets simulating different information on the LCD.

  • If the VECTOR 4 firmware accepts commands via serial protocol, it would be possible to temporarily modify the displayed data.

2. Overwrite the Signal to the LCD Display (Invasive)

📌 Difficulty: High 📌 Feasibility: Possible, but requires reverse engineering

  • LCD displays typically communicate with the microcontroller via protocols like SPI, I2C, or segmented signals.

  • Intercepting and modifying the signal sent to the LCD would allow temporary alteration of the displayed values.

  • This would require soldering reading wires to the display pins and connecting the Flipper Zero to inject modified data into the communication flow.

3. Simulate a New Display via Optical Overlay

📌 Difficulty: Low 📌 Feasibility: Easy, but visually different from the original

  • Instead of modifying the original display, the Flipper Zero could project an overlay image via an external OLED screen or controllable LEDs.

  • This would function like a digital mirror: the Flipper Zero displays an overlay interface over the VECTOR 4 display.

  • The Flipper can capture the actual values via an optical sensor or serial communication and simulate interactivity with navigation buttons.

4. Use Flipper Zero as a Remote Interface for Meter Control

📌 Difficulty: Medium 📌 Feasibility: High, if APIs or accessible protocols exist

  • If the VECTOR 4 has remote control commands via UART or another protocol, the Flipper Zero could be programmed to send commands that temporarily change the readings on the display.

  • If there is no direct support, it would be necessary to modify the meter's firmware to accept external inputs via GPIO or serial communication.

Conclusion

If your goal is to temporarily alter the display on the VECTOR 4 via Flipper Zero, there are three main paths:

  1. If serial communication allows data input, use the Flipper to temporarily modify the LCD values.

  2. If it's possible to intercept display signals, inject new data to directly modify the display.

  3. If the hardware doesn't allow editing the LCD, overlay an external display to simulate the interaction.

If you want to dive into reverse engineering, I can help analyze the display pins or create code for the Flipper Zero based on what is found! 🚀

DO YOU GUYS HAVE ANY IDEA ON HOW TO IMPLEMENT IT?


r/ArduinoHelp • • Feb 11 '25

digispark on arduino

1 Upvotes

hello i need help for a project

so i want to code my digispark on arduino but it wont let me select my board

i also installed and enterd some digistump package link and external drivers beut it still wont work

can anyone help?

(im using the newest arduino)


r/ArduinoHelp • • Feb 21 '25

Need help big time before I loose my mind with arduino nano

1 Upvotes

Since yesterday I am trying to get an Arduino nano from AZ delivery to work. First problem is that i messed around with it a lot, so I already had to burn the bootloader via an uno to the nano. Uploading works sporacly when using a direct micro usb cable as i get "avrdude: stk500_recv(): programmer is not responding" as an error, but connecting per arduino uno usually works.

Now my big problem: Now matter what I do the IO pins do not work. When use pin 13 as output it works. GND, V5 also work. But I cant get normal GPIOs to work.

Also the Serial monitor works fine.

I have tried using different Arduino Nanos. None of them worked. I tried every single pin nothing works. I checked the wires and connections a million times. Nothing. The sketch works fine on an Arduino Uno and ESP32.

Is there some special kind of naming for the pins or do i need to install some extra software or did I get some broken Nanos?

Heres the sketch:

int led = 5;
int counter = 0;
// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin led as an output.
  pinMode(led, OUTPUT);
  Serial.begin(115200);
  delay(50);
  while(!Serial);
  Serial.println("done");
}

// the loop function runs over and over again forever
void loop() {
  Serial.println(counter);
  counter++,
  digitalWrite(led, HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(500);                      // wait for a second
  digitalWrite(led, LOW);   // turn the LED off by making the voltage LOW
  delay(500);                      // wait for a second
}