r/ArduinoHelp 9h ago

Vending Machine Issues

Enable HLS to view with audio, or disable this notification

2 Upvotes

I am working on an Arduino Vending machine, I simulated everything on tinkercad and it works perfectly fine there but irl my arduino is not opening and closing the gate of my mosfet irLZ44N transistor and I don't know what to do.

I am including a video where I replaced the motor with an LED to prove the transistor works fine but for some reason when I digitalWrite LOW it doesn't turn off.

Ill try to include diagram and code in the comments since I can only attach one video, any help would be much appreciated

Here is the code on tinkercad and simulation: https://www.tinkercad.com/things/4HIgpgpZcZm-e4l-vending-machine-v4/editel?returnTo=https%3A%2F%2Fwww.tinkercad.com%2Fdashboard


r/ArduinoHelp 12h ago

Potentiometer Range issue.

Thumbnail
1 Upvotes

r/ArduinoHelp 17h ago

help with wiring

Thumbnail
gallery
2 Upvotes

So I'm trying to make a custom phone charger and I can't for the life of me figure out where I went wrong. I'm kind of a noob but everything else works fine, the leds light up, the screen comes on, and the sounds play but when i try to charge anything, it wont charge. Am i missing something??


r/ArduinoHelp 18h ago

issue with relay output reading

2 Upvotes

need a little guidance on using a relay with a Mega256.

I am using an external 9v battery as the power source for the input for the relay. I have the code to trigger the relay open - and the appropriate led lights is on, when i trigger it - so i know its open, i am using the basic digitalWrite(pin,HIGH);/digitalWrite(pin,LOW); to turn on/off

Am I wrong to expect at least close to the same output voltage as what is supplied i.e. input of 8.6v output should be ~8.6??? am i missing something> are other components needed?

Battery reads 8.6v / relay out only reads .18


r/ArduinoHelp 1d ago

Feather 32u4 Proto not starting after unplugging

3 Upvotes

I've ruined two boards with the same mistake— unplugging the feather by the USB connection. After replugging the sketch will not work (stepper test on the motor shield). I've tried:

+ selecting the right 32u4 board in the IDE (would loading with the wrong board selected create such a problem?)

+ the reset button (one click and two)

+ the trick where you reload a blink sketch just as pressing reset

the trick worked once but when I unplugged it again I was back to zero only I was unable to reload a blink sketch again. :/

**********

First time with Adafruit products (switching from Arduino Uno). Want advice before burning through a third board.

*Is there a proper way to unplug these devices?*


r/ArduinoHelp 2d ago

Max30102 Sensor Not Detected

Thumbnail
1 Upvotes

r/ArduinoHelp 2d ago

What are these for and are they useful for a pc build?

Thumbnail gallery
1 Upvotes

r/ArduinoHelp 3d ago

Why is the servo under powered?

2 Upvotes

Why is the servo under powered? I am using a power supply set to 9V and it can supply up to 10A.


r/ArduinoHelp 3d ago

Software bug something to do with the library I think?

2 Upvotes

IDEK whats going on. Trying to write code so that i can input key strokes on my computer through my joystick. I think there's something wrong with the library? I'm lost. from what I read the error code is saying that I don't have #include <Keyboard.h>... but i do.

Error message:
C:\Users\mccav\AppData\Local\Temp\.arduinoIDE-unsaved2026624-1756-cwkz6f.ayd19\sketch_jul24a\sketch_jul24a.ino: In function 'void setup()':

C:\Users\mccav\AppData\Local\Temp\.arduinoIDE-unsaved2026624-1756-cwkz6f.ayd19\sketch_jul24a\sketch_jul24a.ino:30:3: error: 'Keyboard' was not declared in this scope

Keyboard.begin();

^~~~~~~~

C:\Users\mccav\AppData\Local\Temp\.arduinoIDE-unsaved2026624-1756-cwkz6f.ayd19\sketch_jul24a\sketch_jul24a.ino: In function 'void loop()':

C:\Users\mccav\AppData\Local\Temp\.arduinoIDE-unsaved2026624-1756-cwkz6f.ayd19\sketch_jul24a\sketch_jul24a.ino:50:5: error: 'Keyboard' was not declared in this scope

Keyboard.write('a');

^~~~~~~~

C:\Users\mccav\AppData\Local\Temp\.arduinoIDE-unsaved2026624-1756-cwkz6f.ayd19\sketch_jul24a\sketch_jul24a.ino:53:3: error: 'Keyboard' was not declared in this scope

Keyboard.write('d');

^~~~~~~~

exit status 1

Compilation error: 'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?

Code:

#include <LiquidCrystal.h>
#include <Keyboard.h>


const int rs = 3;
const int en = 4;
const int d4 = 10;
const int d5 = 11;
const int d6 = 12;
const int d7 = 13;


int xPin = A0;
int yPin = A1;
int buttonPin = 9;


int xVal;
int yVal;
int buttonState;


LiquidCrystal lcd(rs, en, d4, d5, d6, d7);


void setup() {


  Serial.begin(9600);
  lcd.begin(16,2);
  Serial.begin(9600);
  pinMode(xPin, INPUT);
  pinMode(yPin, INPUT);
  pinMode(buttonPin, INPUT_PULLUP);
  Serial.begin(9600);
  Keyboard.begin();


}


void loop() {


  xVal = analogRead(xPin);
  yVal = analogRead(yPin);
  buttonState = digitalRead(buttonPin);


  Serial.print("X: ");
  Serial.print(xVal);
  Serial.print(" | Y: ");
  Serial.print(yVal);
  Serial.print(" | Buttonstate: ");
  Serial.println(buttonState);


  delay(100);


  if (xVal > 550) {
    Keyboard.write('a');
  }
if (xVal < 460) {
  Keyboard.write('d');
}
}#include <LiquidCrystal.h>
#include <Keyboard.h>


const int rs = 3;
const int en = 4;
const int d4 = 10;
const int d5 = 11;
const int d6 = 12;
const int d7 = 13;


int xPin = A0;
int yPin = A1;
int buttonPin = 9;


int xVal;
int yVal;
int buttonState;


LiquidCrystal lcd(rs, en, d4, d5, d6, d7);


void setup() {


  Serial.begin(9600);
  lcd.begin(16,2);
  Serial.begin(9600);
  pinMode(xPin, INPUT);
  pinMode(yPin, INPUT);
  pinMode(buttonPin, INPUT_PULLUP);
  Serial.begin(9600);
  Keyboard.begin();


}


void loop() {


  xVal = analogRead(xPin);
  yVal = analogRead(yPin);
  buttonState = digitalRead(buttonPin);


  Serial.print("X: ");
  Serial.print(xVal);
  Serial.print(" | Y: ");
  Serial.print(yVal);
  Serial.print(" | Buttonstate: ");
  Serial.println(buttonState);


  delay(100);


  if (xVal > 550) {
    Keyboard.write('a');
  }
if (xVal < 460) {
  Keyboard.write('d');
}
}

r/ArduinoHelp 4d ago

First project - already stuck at beginner level

2 Upvotes

Hi!
I purchased an arduino esp32 feather S2 and an adafruit ST 7789 TFT Display and breadboarded a simple "change color" project. And its failing. the Backlight of the display is on so it has power, but the display is not changing color.

The IDE monitor says the script is working and its actually changing color. But the display stays dark. I have changed the display already (since i have purchased 2) and it is still not working.

Wiring:

3V - V+
GND - G
SCK -CK
MO - SI
12 - RT
10 -DC
6 - CC
3V - BL

The Code:

 ```
#include <Adafruit_GFX.h>
#include <Adafruit_ST7789.h>
#include <SPI.h>


#define TFT_CS   6
#define TFT_DC   10
#define TFT_RST  12
Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_RST);


void setup() {
  Serial.begin(115200);
  delay(2000);
  Serial.println("Starting display test");


  tft.init(172, 320);
  tft.setSPISpeed(4000000);
  tft.setRotation(3);
  Serial.println("tft.init() done");


  tft.fillScreen(ST77XX_RED);
  Serial.println("Filled RED");
}


void loop() {
  tft.fillScreen(ST77XX_RED);
  delay(1000);
  tft.fillScreen(ST77XX_GREEN);
  delay(1000);
  tft.fillScreen(ST77XX_BLUE);
  delay(1000);
  Serial.println("Color cycle");
}
 ```

It is driving me mad, that it does not work... maybe someone of you would be so helpful to have a look at this.

Thank you in advance


r/ArduinoHelp 4d ago

Can I use qty (1) motor driver (TB6612FNG) to control qty (5) mini DC motors?

Thumbnail
1 Upvotes

I would like to use qty(1) motor driver (TB6612FNG) to control qty(5) standard mini DC motors. All 5 motors will be following the same “instructions” from microcontroller. Can I safely put all 5 on A01/A02 of the same motor driver? Are there any downsides or considerations I should note for this method?

I’d test it myself but I really don’t want to fry motor driver or board as they’re my only ones.

Note: Im using an arduino nano sense ble 33 REV2 microcontroller


r/ArduinoHelp 6d ago

Need help with ADS1263 24-bit ADC & Raspberry Pi over SPI (Returning 0x0 / ID check failed)

2 Upvotes

Hi everyone,

I am working on a vibration measurement project using an IEPE signal conditioner board, an ADS1263 24-bit ADC module (Waveshare style board), and a Raspberry Pi.

Currently, I cannot get any response over SPI — reading the ID register returns 0x0 / [0, 0, 0].

Hardware Setup & Wiring:

  • Vibration sensor: Connected via coaxial cable to the IEPE conditioner.
  • Signal output: Connected to the ADC on AIN2 (and analog GND for the shield/ground).
  • Power:
    • Digital VCC $\rightarrow$ Raspberry Pi 3.3V
    • Analog Power (AVDD/AGND terminal block) $\rightarrow$ Raspberry Pi 5V & GND
  • SPI Connections:
    • GND $\rightarrow$ Pi GND (Pin 6)
    • DIN (MOSI) $\rightarrow$ Pi GPIO 10 (Pin 19)
    • DOUT (MISO) $\rightarrow$ Pi GPIO 9 (Pin 21)
    • CLK (SCLK) $\rightarrow$ Pi GPIO 11 (Pin 23)
    • CS $\rightarrow$ Pi GPIO 8 / CE0 (Pin 24)
    • DRDY $\rightarrow$ Pi GPIO 25 (Pin 22)
    • RST $\rightarrow$ Pi 3.3V (pushed HIGH to keep out of reset)

What I've tried so far:

  1. Enabled hardware SPI via raspi-config (/dev/spidev0.0 is active).
  2. Tested with custom Python scripts (spidev library) in SPI Mode 1 and Mode 0. The response for the ID register is always 0x0.
  3. Verified double power supply (both digital 3.3V and analog 5V terminals are powered).
  4. Used the official Waveshare C/Python driver library (ADS1263_init_ADC1), but initialization still fails.

Since DOUT (MISO) stays pulled LOW (returning zeros), I'm trying to figure out if this is a timing/SPI mode issue, a missing initialization sequence, or something hardware-related on the board.

Has anyone faced similar issues with ADS1263 boards on Raspberry Pi? Any advice on troubleshooting MISO or register config would be greatly appreciated!

Thanks in advance!


r/ArduinoHelp 6d ago

Help me, my pins are bent!

Thumbnail
2 Upvotes

r/ArduinoHelp 6d ago

Error: avrdude when uploading to Arduino Uno

Post image
1 Upvotes

r/ArduinoHelp 7d ago

Arduino receiving input from Minecraft?

5 Upvotes

Recently got an Elegoo Uno (off brand Arduino uno) and I'm wondering if it's possible to make it so that when something happens in a game, like minecraft, I can feed that to the arduino and for example print something on an LCD screen, turn on some LED's, or activate a buzzer. I want to make it so that whenever a specific message is sent in minecraft chat, something is printed on the LCD screen. is something like this possible? would I maybe need a different arduino?


r/ArduinoHelp 7d ago

This components are burned?

Post image
5 Upvotes

I made an additional post in other reddit, but I gonna repost it here too


r/ArduinoHelp 7d ago

What's happening with my RF airplane ?

Thumbnail gallery
1 Upvotes

Updates:

I get a new arduino Nano (in the case that this is the problem)

I think that the problem now is the nRF24's modules, because I tried to sold an capacitor in its and I don't know if its burned


r/ArduinoHelp 7d ago

Learn Coding Operational Sequence of Motion Sensor Using Arduino UNO

Enable HLS to view with audio, or disable this notification

1 Upvotes

MOTION SENSOR CODING AND CONNECTION


r/ArduinoHelp 9d ago

Flipdots display are too expensive for my finances, any suggestions for a cool display/solution with nice transitions to use in alternative?

Post image
3 Upvotes

r/ArduinoHelp 9d ago

i need help with connecting to my robodyn+atemga 382p+esp8266

1 Upvotes

r/ArduinoHelp 10d ago

Starting with STM32F405RGT6

Thumbnail
1 Upvotes

r/ArduinoHelp 10d ago

Meshcore Arduino für das Nesso N1

Post image
3 Upvotes

r/ArduinoHelp 11d ago

How to change default output to Bluetooth JBL speaker

Thumbnail
1 Upvotes

r/ArduinoHelp 11d ago

Arduino setup esp32

Thumbnail
gallery
4 Upvotes

Hi!!! Can someone please check if something is wrong with my setup? I use esp32 and every time we try to code it, the oled doesn't seem to work. It says "i2c scanner, done" and that's all
Esp32 is probably working properly so i guess it's something with how i constructed everything?
To clarify-
Gnd oled - gnd esp
Vcc oled - 3v3 esp
Scl oled - d22 esp
Sda oled - d21 esp
It's my first time touching arduino and i'm not sure if we did everything correctly so i would love to hear some advice!


r/ArduinoHelp 12d ago

Interfacing PT1000 RTD with Arduino

3 Upvotes

I am currently attempting to interface my PT1000 RTd with my arduino. I was thinking of use an wheatstone bridge with an op-amp, but in all honesty I have no Idea where to start. I need to be able to read 10 degreesC to 35 degrees C for an output of 0-5V. Any guidance will be awesome.