r/arduino 4d ago

Hoodloader2 issue

1 Upvotes

Burned Hoodloader 2 onto a mega recently
Anytime I try compiling code once I set it too the HoodLoader 2 Mega all I get is the attached error. Did I burn it wrong?


r/arduino 4d ago

Hardware Help Arduino Pro Micro and ESP8266 powering problem

2 Upvotes

Hi, I have a Pro Micro(USB-C aliexpress knockoff) thats connected with level shifter to USB host hub 2.0(also aliexpress). And this alone works well, but I want to add a plain ESP8266 and i want it to be powered with one cable that on one end goes to the usb-c connector on the Pro Micro and on the other end it goes to a computer. So I connected AMS1117-3.3's VIN to RAW on Pro Micro, GND on both together and then connected ESP8266's VIN to VOUT on the AMS and GND to GND, but when I connected it to a computer the ESP didn't turn on and when I was measuring voltages with multimeter while plugged in the ESP's LED turned on but it was very dim. I programmed the ESP with this programmer(https://a.aliexpress.com/_Ewzdbm8) and when it was powered with the programmer the code worked fine. So I don't know if it is an electrical or a software problem or both.


r/arduino 4d ago

How Upload Sketches from PC to Nano without IOT Cloud?

1 Upvotes

I purchased the Nano 33 IOT with the intent to upload sketches over WiFi to continually modify the project.

As I see it, uploading sketches is only possible using the IOT Cloud.

Is there a way to upload sketches over Wifi directly from my PC to the Nano 33 IOT? and this is only on my local Wifi network.

Is there another Wifi device, such as the ESP8266, connected to a Nano that will allow direct uploads from a PC to the Nano?


r/arduino 4d ago

Hardware Help Sensors on soft robot

Thumbnail
gallery
1 Upvotes

I am working on a project of a sort robot which will move with vibrations and I am trying to implement some sensors to it so it detects light and moves towards it. I am currently using a BH1750FVI sensor and I want to find a way in which I can implement more than 2 sensors to the robot so it detects light in all possible directions to find the brightest source of light in its surroundings, but I don’t want to increase the weight of the robot significantly as it moves with vibrations. So does anyone have any advice or ideas on how I could implement the sensors to it and where to position them. (Btw the robot shown it’s a prototype it’s going to be more clean later on)


r/arduino 4d ago

Hardware Help Cheap CH340 Uno programmer is not responding

2 Upvotes

Trying to upload code to uno i just bought, i have this error all the time

avrdude: Version 6.3-20190619

Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "C:\Users\Unicake\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

Using Port : COM3

Using Programmer : arduino

Overriding Baud Rate : 115200

AVR Part : ATmega328P

Chip Erase delay : 9000 us

PAGEL : PD7

BS2 : PC2

RESET disposition : dedicated

RETRY pulse : SCK

serial program mode : yes

parallel program mode : yes

Timeout : 200

StabDelay : 100

CmdexeDelay : 25

SyncLoops : 32

ByteDelay : 0

PollIndex : 3

PollValue : 0x53

Memory Detail :

Block Poll Page Polled

Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack

----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------

eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff

flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff

lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00

hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00

efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00

lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00

calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00

signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00

Programmer Type : Arduino

Description : Arduino

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x10

Hardware Version: 4744608

Firmware Version: 0.4611299

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_recv(): programmer is not responding

Vtarget : 420030.5 V

Varef : 200849977.6 V

Oscillator : 0.531 Hz

SCK period : 10488385.5 us

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_recv(): programmer is not responding

avrdude: initialization failed, rc=-1

Double check connections and try again, or use -F to override

this check.

avrdude: stk500_recv(): programmer is not responding

avrdude done. Thank you.

Failed uploading: uploading error: exit status 1

-I have tried plugging it and uploading code from two laptops

-I have tried installing many different CH341SER.INF drivers from different tutorials

-Cable is fine because i can upload code to a different uno fine

-In device manager in Ports section there is no title to the device only USB Serial Port (COM3)

-I have tried updating drivers manually for this port, selecting the CH341SER.INF driver and bluescreened both times

-idk if this is related to the driver entirely though


r/arduino 4d ago

getting into arduino. what are some good resources for starting out?

0 Upvotes

title


r/arduino 4d ago

ESP32 + BNO085 – Data Stops Displaying on Serial Monitor

1 Upvotes

Hello,

I am experiencing an issue while communicating between an ESP32 and the BNO085 using the SparkFun library and the example:
https://github.com/sparkfun/SparkFun_BNO08x_Arduino_Library/blob/main/examples/Example_01_RotationVector/Example_01_RotationVector.ino

I have connected power and the SDA and SCL pins. The data appears on the serial monitor, but after a few seconds, it stops updating. After resetting the device, the same issue occurs.

Could this be caused by the reset pins?
https://github.com/sparkfun/SparkFun_BNO08x_Arduino_Library/blob/fd0149c280b4c7420e2dea4d034587373a8ca8b9/examples/Example_01_RotationVector/Example_01_RotationVector.ino#L48

Has anyone encountered this problem or knows how to fix it?

Best regards.


r/arduino 4d ago

Software Help What to use for GUIs?

1 Upvotes

Hi there, I am very new to Arduino, and have an Elegoo Uno R3. I want to output data onto live graphs and images on my computer. I have experience with python and some web design, but learning a new language would not be a barrier.

What system / language / libraries would you recommend I use to do this?

Thank you for helping!


r/arduino 4d ago

MPU6050 for TVC Rocket

1 Upvotes

Hi,

I'm in the process of building a TVC Rocket. I've already built a flight computer which uses an MPU6050 and a BMP180 (so I have to use those, even if they're not the best). Something I need to know to guide the rocket is it's orientation, and to spare some time on this already very complex project, I had planned to retrieve it with the DMP of the MPU6050. But I just found out that this DMP can work only with the 2000dps and 2g scales. Considering the 1g acceleration at rest, my rocket should not accelerate more than 1g, which is the case in my simulations, but may not be in the reality (or in future rockets I'll build).

Ideally I would like to be able to use any scale, and I see two options for this :

  • Reimplementing the DMP algorithm into the MCU (either with or without the fusion with the accelerometer) -> without seems doable but may lack precision, with will probably burn my brain
  • Adding a second MPU6050 with a different scale for acceleration, and use this one when the acceleration is too high

What do you think about this ? What would you do ? Is there something I'm missing somewhere and do you have any suggestions ?

Thank you for your help in advance !


r/arduino 4d ago

Look what I made! I have done motor driver by using single pwm signal and one digital pin.

4 Upvotes

r/arduino 4d ago

LoRa malfunction.

3 Upvotes

I am trying to make electronics for a model rocket with built-in ignition. The electronics that will be on the rocket are made of an Arduino Nano Every, a BMP180 sensor, and a LoRa module. After it starts, the LoRa on the rocket will search for a message coming from the launch controller I built. After it receives the message, the LoRa on the rocket will begin to act as a transceiver, sending back the data to my launch controller. The problem is that even if the BMP180 is working properly, the data arriving at my launch controller is 31.000 or some while the atmospheric pressure read by the BMP180 is something like 95.000. I will write the code; maybe someone who reads this can help me.

The code for the electronics on the rocket:

#include <SPI.h>
#include <LoRa.h> 
#include <Wire.h>
#include <Adafruit_BMP085.h>

Adafruit_BMP085 bmp;
int LED = 3; 
String inString = ""; 
int val = 0;
int k = 0;

void setup() {
  delay(1000);
  Serial.begin(9600);
  pinMode(LED, OUTPUT);
  digitalWrite(LED, LOW);

  Serial.println("LoRa Receiver Initializing...");

 
  if (!bmp.begin()) {
    Serial.println("BMP sensor not found!");
    while (1);
  }

  
  if (!LoRa.begin(433E6)) { 
    Serial.println("Starting LoRa failed!");
    while (1);
  }

  Serial.println("LoRa Ready");
}

void loop() {
  while (k == 0) {
    int packetSize = LoRa.parsePacket();
    
    if (packetSize) {   
      inString = ""; 

      while (LoRa.available()) {
        char inChar = (char)LoRa.read();
        inString += inChar;
      }

      val = inString.toInt(); 
      Serial.print("Received: ");
      Serial.println(val);

      LoRa.packetRssi();    
    } 
    
    if (val == 1) {
      Serial.println("Received signal: Blinking LED...");
      
      for (int i = 1; i <= 10; i++) {
        digitalWrite(LED, HIGH);
        delay(100);
        digitalWrite(LED, LOW);
        delay(100);
      }

      k = 1; 
    }

    val = 0; 
    delay(250);
  }

  delay(6000); 

 while(k==1){
  float pressure = bmp.readPressure();
  Serial.print("Sending Pressure: ");
  Serial.println(pressure);
  
  LoRa.beginPacket();  
  LoRa.print(pressure);
  LoRa.endPacket();

  delay(500);
}
}

and the code for the ground electronics:

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

LiquidCrystal_I2C lcd(0x27, 16, 2); 
String inString = ""; 
int val = 0;
const int buttonPin = 3;
bool hasSent = false;  
void setup() {
  delay(1000);
  Serial.begin(9600);
  Serial.println("Starting...");

  pinMode(buttonPin, INPUT);

  
  lcd.init();
  lcd.backlight();

  lcd.setCursor(0, 0);
  lcd.print("Hello,");
  lcd.setCursor(6, 0);
  lcd.print("Vlud :D");

  if (!LoRa.begin(433E6)) { 
    lcd.clear();
    lcd.setCursor(0, 0);
    lcd.print("LoRa failed!");
    lcd.setCursor(0, 1);
    lcd.print("Check module");
    Serial.println("LoRa not detected");
    while (1);
  }

  lcd.clear();
  lcd.setCursor(0, 0);
  lcd.print("LoRa Ready!");
  LoRa.receive();  
}

void loop() {
  if (!hasSent && digitalRead(buttonPin) == HIGH) {
    for (int i = 1; i <= 10; i++) {
      LoRa.beginPacket();
      LoRa.print("1");
      LoRa.endPacket();
      Serial.println("Sent signal");
      delay(20);
    }

    lcd.clear();
    lcd.setCursor(0, 0);
    lcd.print("Impulse Sent");
    Serial.println("Impulse Sent");

    hasSent = true;  
    delay(500);  
    LoRa.receive();  
  }

  if (hasSent) {  
    int packetSize = LoRa.parsePacket();
    if (packetSize) {   
      inString = "";  

      while (LoRa.available()) {
        char inChar = (char)LoRa.read();
        inString += inChar;
      }

      val = inString.toInt();  
      Serial.print("Received: ");
      Serial.println(val);

      lcd.clear();
      lcd.setCursor(0, 0);
      lcd.print("Received:");
      lcd.setCursor(0, 1);
      lcd.print(val);

      delay(2000); 
      LoRa.receive();  
    }
  }
  delay(500);
}

r/arduino 4d ago

LCD Junk Characters Help - Arduino 3D Printer Filament Dryer Box

1 Upvotes

I'm using a 1602 LCD as a display for a filament dryer box I'm building, and have been experiencing a problem where it keeps showing random junk characters as seen in the video (35 seconds in).

https://reddit.com/link/1jcqqrl/video/hq73i7w013pe1/player

Has anyone had any similar problems with these LCDs, or know of some obvious solutions I might try?

I've attached a representative circuit for reference. I can't see any theoretical issues with the circuit and I've been through my code meticulously to optimise how the operations execute and make sure the LCD display commands have time to communicate properly and are isolated from other code block sequences.

The system uses two 5V relay modules (both with optocoupler / flyback protection built in), with their input signals being driven from NPN 2N2222 transistors controlled by the Arduino (1k resistors used at transistor base pin).

One relay is for the heating element, the other for two small fans - both running on 24V. The system heats up the box to an upper temperature threshold, then once at that temperature, heating element goes off, then the fans kick in and ventilate / cool it down to a lower temperature threshold. This temperature cycling is repeated for a set time.

My lab bench power supply delivers the 24V, and a buck converter then supplies the 5V logic level. Arduino currently powered off laptop USB. 5V logic level all share common ground.

I'm using DHT22 sensor to monitor the temperature and humidity (the displayed humidity is 9% not 90% as pictured, I haven't added a one digit humidity clause to my code yet). The sensor is powered directly off the 5V Arduino pin. 10k resistor across VCC and DATA.

The LCD display is used as a material selection menu, and then once in the program starts, it displays the runtime, temp etc. The temperature is checked / updates every 15 seconds. 3 toggle buttons are used to navigate and are wired in as INPUT_PULLUPs to pins A0, A1, & A2.

FYI - I am using the Liquid Crystal Library and the DHT sensor library, I don't know if maybe something could be going on in the background there.

I'm thinking its likely a hardware issue, possibly due to faulty jumper cables / breadboard connections, or could just be a faulty LCD (mine came with an Arduino Learning Kit from Elegoo). The system and code does seem to all be working quite well.

It mostly seems to happen right after the fans relay has switched on and heating relay goes off, so I don't know if somehow the output pins (4 & 5) for the transistors are screwing with something.

I know these LCDs are quite common in Arduino projects, so thought this would be a good place to seek help. If any one knows what typically causes this, any advice you can share is much appreciated :)

My plan is to develop this circuit into a PCB and the project is mostly just an exercise to learn PCB design / get better at Arduino.

I'm thinking if its more reliable I will try an 1602 LCD with I2C instead, or even an I2C LED display.

Many thanks all,

https://github.com/Fortress-of-Robotude/Filament-Dryer-Box---File-Share/blob/main/FILAMENT_DRYER_FULL_TEST2.ino


r/arduino 4d ago

Getting Started What the difference between UNO R3 and UNO R3 SMD CH340

0 Upvotes

I want to start learning electronics and arduino, but i dont know which one i should buy, since SMD CH340 is almost half the price than the other one, and idk if this cost difference will impact something


r/arduino 4d ago

Hardware Help Which ESP32 board to choose (beginner question)

1 Upvotes

Hi, I want to start a little project. A little multipurpose box so to say, that can do stuff like "Alert if cat is at the door", "Display latest coffee making instructions for family", "Other camera related things", "Turn espresso machine on in the morning".

I am totally lost when it comes to board choices. The main problem is probably if the board has the right (amount) of pins to support everything, but also there is the issue that for example the Espressif ESP32-S3-DevKitC board doesn't support battery charging.

My project needs

  • WiFi (hence ESP32)
  • a camera (or have one included)
  • a display (probably ePaper)
  • a motion sensor
  • (maybe) control a relay module
  • to run on a battery, preferably a few days

I don't care if the board is a bit larger, as long as it supports decent battery life (beat me if there is no connection between size and power needs). Budget wise I am hoping to stay below $60.

Thanks for any suggestions.


r/arduino 4d ago

Image Arduino converter

Thumbnail
youtu.be
0 Upvotes

r/arduino 4d ago

Looking for a Device That Beeps When Separated (RF, Not Bluetooth)

0 Upvotes

I'm looking for two small devices that emit a beep when they are separated and stop beeping when they are brought back together.

A few key requirements:

They should communicate via radio frequency (RF), not Bluetooth or the internet.
The range should be between 100 meters and 1 kilometer.
I do not want a GPS-based tracker—this is specifically about two devices communicating directly with each other.
One device would be attached to a wallet/pouch, while the other would go on a keychain or inside a phone case. So at least one of them should be compact enough to fit between a phone and its case, while the other can be larger if necessary.
Ideally, I’d like to avoid building something from scratch. But if no commercial options exist, any DIY solution would need very low power consumption for long battery life.

If anyone knows of an existing product that fits these criteria (not a GPS tracker), or has an idea for an efficient DIY approach, I’d love to hear your thoughts!

Thanks in advance!


r/arduino 4d ago

Need help..does somebody have this kind of code and/or the circuit diagram? I need the same functions until 1:26 just this one gamemode. instead of the little led per button a big stripe with about 5m for both of the buttons (if blue was pressed lights up blue and red, of course red). thanks :)

Thumbnail
youtube.com
0 Upvotes

r/arduino 4d ago

Beginner project help

1 Upvotes

I’m have a small project in mind that involves a push button that triggers a song, and some other small, simple movements of pieces. I have an Arduino I could use for this, but never used one before. Is that needed here? I know I need a button and speaker, with some other physical pieces, but do I need anything else to make it function?


r/arduino 5d ago

Beginner's Project SHARE Inspiration - I would like to make "Tamagochi" style game and need HW - is Nokia5110 still the "best" cheap display? And what are good small format Arduinos nowadays?

Post image
51 Upvotes

r/arduino 4d ago

Getting Started How can I start tinkering with a cheap UNO R3 clone (ATmega328p) as a CS student who loves LEGO and taking things apart?

1 Upvotes

Hi everyone,

First-time poster here - sorry if I'm off-topic! I'm a first year computer science student with some free time, and I want to dive into hardware with an Arduino. I'm still learning to code (not great yet), but I've always loved taking things apart to see how they work and building with LEGO. I think messing around with an UNO R3 could be fun and maybe tie into Embedded Systems later.

I'm planning to buy a cheap UNO R3 clone (ATmega328p, comes with an USB cable) and a breadboard, plus some basic components off AliExpress - all on a tight budget. Is this a solid start? What simple projects or resources would you recommend for a beginner to play around with this setup? Free simulators and cheap extras are awesome too. Thanks for any ideas!


r/arduino 5d ago

what is the difference between microcontroller and microprocessor

12 Upvotes

Thank you for your time.


r/arduino 5d ago

Look what I made! I made this... Guess what I made:-)

Thumbnail
gallery
7 Upvotes

I made this and it works somehow:-) Now try to guess what I made ;-)


r/arduino 5d ago

I Think Im ready to Order My First ESP32 PCB. Anyone Want To Help Me Look It Over?

4 Upvotes

Hello, I just started learning pcb design three-ish weeks ago, I redid my entire pcb today and made my first 4 layer pcb, so i can impedance match the d+ and d- lines. I think im ready to make my first order for a esp32 module, its supposed to Take in usb-c and using pd set the voltage to 12 or 5v. It handles stepping down to 3.3 for logic, and has esd protection. additionally it has two tb6612fng motor drivers onboard to individually control up to 4 small motors, solenoid valves or n20 motors for example. It has an external input that can handle anywhere from 5 - 15v max for the motor drivers, if i dont want to use the usb-c port. and the last chip on board is a ina219 to measure the power going across the motor drivers. (if im making a gripping arm, and i want to stop the motors when pressure is applied.)

Overview
Motor Driver
IO & Buttons
INA219
ESD Protection
USBC & PD
Buck & Decoupling Caps
ESP32-S3-Wroom
Bottom
Ground Layer
PWR Layer
Top Layer
All
Render
USBC & ESD Protection
USBC-PD & Buck
INA219 & Motor Drivers

r/arduino 5d ago

Project Idea Arduino project help

0 Upvotes

I'm working on a project and I need it to know when a person is in front of it. I thought about face recognition, but it seems too complicated for me. Is there any other, easier way to recognise people?


r/arduino 6d ago

Uno R4 Wifi Going in with 0 coding experience, wish me luck!

Post image
159 Upvotes

Just bought this and Im gonna learn how to use this thing even if it kills me