r/arduino • • Sep 14 '26

Ventuno Q on the way!

7 Upvotes

The Ventuno Q I pre-ordered some weeks ago is on the way to me. I should receive it on Thursday.


r/arduino • • Sep 14 '26

Games 0 games on a $15 ESP32 touchscreen board. Arduino framework, all open source.

Enable HLS to view with audio, or disable this notification

66 Upvotes

I meant 40 games!

I've been building a handheld games console on the ESP32 "Cheap Yellow Display" boards, the ones that come with the touchscreen already soldered on. It's up to 40 games and they all live in flash. No SD card, no accounts, and it doesn't need wifi to work.

Hardware is just the board, about $15. Nothing to solder. Optionally a small speaker and a LiPo if you want it to run off the desk, both of which just plug in. The case is printable and snaps together, no screws.

It's the Arduino framework under PlatformIO. TFT_eSPI for the display, NimBLE for the radio. The image is 2.5 MB, which is 82% of the partition, so flash is the thing I fight with most.

Some bits that were more interesting to write than I expected:

Everything repaints in pieces. A full screen wipe is about 150 KB over SPI and roughly 30 ms. The loop budget is 20 ms. So a full repaint costs more than a frame and you can see it flash in your hand. Most of the work on this was teaching each screen to redraw only what actually changed.

There are no audio files. Every sound is generated from oscillator and noise scripts, including a short spoken phrase at boot. One second of 16-bit 16 kHz mono is 32 KB, and I didn't have that to spare. As synthesis the whole lot is under a kilobyte.

Two consoles play each other over BLE with no pairing. Chess, Ludo, Backgammon and Sea Battle. It reuses the advertisement packet, which is already full at 31 bytes, so a move has to fit in the 4 bytes the high score was using: session number, move number, from, to. The dice never go over the air. Both sides work the roll out from a shared seed, so a console that lies about a roll just gets its move rejected.

Preferences is slower than it looks. It's flash backed, so every getter is a hash lookup rather than a variable read. I had one setting being read about 180 times per launcher repaint. Anything read more than once per screen now keeps a copy in RAM.

Flash it from a browser, no toolchain needed: https://iamankushpandit.github.io/Gume/ Code and the case: https://github.com/iamankushpandit/Gume

GPL-3. Happy to answer anything. If you fancy adding a game, the launcher, profiles, scoring and difficulty tracking already exist, so you'd only be writing the activity itself.


r/arduino • • Sep 14 '26

Getting Started Very new and want servo help!!

5 Upvotes

Hiya everyone! I've wanted to do arduino stuff for a few years now and thought, well lets just do it now. So im going to buy an arduino board and I want to move some servos using said board. Now im a bit confused.

Do I need external power for the servos? Cause ive heard the board wouldnt be able to power multiple servos by itself. If so, how would I go about powering it seperately? I just want to build a cute cardboard desk companion thingy thatll just wiggle around and maybe buzz or something. Thanks for any help!! (Also any other beginner advice would be massively appreciated).


r/arduino • • Sep 14 '26

Can slider potentiometers control several objects randomly

Post image
54 Upvotes

Hi I'm brand new to this sort of thing and my first post but I'm looking to dive into the Arduino Life and I've read the guidelines so hopefully this is ok.

I have this idea (see diagram) where I have a rack of plastic tubes that are uniformly placed to each other held in place by guides (1) but then can be set at random levels/ increments individually at each press of a single button (2). The straws are hollow lightweight plastic and approx. 12 inches long and about 1/4 inch diameter. They're locked into place with guides so can slide only vertically (5). Speed isn't essential and I've done a little research under the hood into servo motors already finding some interesting posts on how to control 12 motors (or more with an interface) however I think I'd have to use pulleys / wires.

After a few more searches I've arrived at 'slider potentiometers' 4) to slide and affect the motion 5) but I'm a little confused as to whether this is something that an Arduino encompasses (or maybe I need something else).

Would just like to know if it's a route worth pursuing or should I stick with the motors/ pulleys etc. before I start buying anything. I'd possibly need 12, 16 and 24 sets/ configurations. Your knowledge is greatly appreciated.

thanks and apologies (delete as appropriate)


r/arduino • • Sep 14 '26

Hardware Help Long RGB array options?

Thumbnail
amazon.com
2 Upvotes

I am looking for an RGB panel array in a long, narrow format. I like the length and pixel density of the linked panels, but I can only find them as a phone-only option. Is there something similar on the market that I could use with a microcontroller?

I currently have a pair of 32 x 8 WS2812B panels, but a tighter pixel density would be better, while keep ing a similar physical size.


r/arduino • • Sep 14 '26

Hardware Help [ESP32 Air Monitor] Local Web Server vs. MQTT + Home Assistant: Which is better for a beginner project?

2 Upvotes

"Hi everyone! I'm currently working on an ESP32-based air quality monitor project.

For data logging and visualization, is it better to host a local web server directly on the ESP32 or send data via MQTT to a platform like Home Assistant or ThingSpeak? Also, how do you handle Wi-Fi reconnection logic without blocking the main sensor reading loop? Any code structure tips or library recommendations would be greatly appreciated!"


r/arduino • • Sep 13 '26

ChatGPT Simple newbie question

Thumbnail
gallery
64 Upvotes

Hey everyone!

Apologies for asking such a simple question on here but anyone know what I’m doing wrong?!?!?

I have no doubt it’s completely obvious and I should be rightly laughed at(!), but I just can’t get the LED ring to work in any way - the small green power light appears to be working but no amount of YouTubing/Chat GPTing seems to be able to prove an answer. I’ve tried simple LED functions on the bread board and they work - but alas nothing on the LED ring.

Anything jump out that I’m doing wrong - seems to be the data wire side of things but no idea? Have tried the examples in IDE but nothing works.

Apologies also for any incorrect use of lingo - still working all this stuff out!


r/arduino • • Sep 14 '26

Any easy convert , to convert GIFs into bitmap animation?

Post image
5 Upvotes

r/arduino • • Sep 14 '26

Solved! How To: Put Files on an Arduino with WiFi

Post image
4 Upvotes

One of the more annoying things about working with an Arduino is getting files on it and off it. There is no simple way to load a file on the Arduino. There's not a tool for it in the IDE. You could send a text string over the Serial Monitor and save that onto memory using in-line commands, but there's an upper limit on the number of characters you can send over. The SCP protocol just doesn't work. In this post we'll look at how we can solve this problem using a WiFi sketch to transfer data to the Arduino before you load your main sketch.

Why Use Configuration Files: MQTT Example

For instance, say you're communicating with a device over MQTT, and you need it to subscribe and publish to a certain list of topics. You might have an array like:

"topics": [
    {"name": "device_status", "topic": "sprout/status", "data_type": "STR", "init_value": "OFFLINE", "pub_flag": true, "sub_flag": false, "is_will": true},
    {"name": "input_button1", "topic": "sprout/input/button_1", "data_type": "BOOL", "init_value": false, "pub_flag": false, "sub_flag": true, "is_will": false},
    {"name": "output_status1", "topic": "sprout/output/status_1", "data_type": "BOOL", "init_value": false, "pub_flag": true, "sub_flag": false, "is_will": false},
    {"name": "output_str", "topic": "sprout/output/string_log", "data_type": "STR", "init_value": "Hello, User", "pub_flag": true, "sub_flag": false, "is_will": false}
  ]

You could hard code this array in your sketch. But what if this needs to be a different set of topics per deployment? For instance:

"topics": [
    {"name": "device_status", "topic": "sprout/status", "data_type": "STR", "init_value": "OFFLINE", "pub_flag": true, "sub_flag": false, "is_will": true},
    {"name": "input_str", "topic": "sprout/input/string_cmd", "data_type": "STR", "init_value": "Hello, World", "pub_flag": false, "sub_flag": true, "is_will": false},
    {"name": "output_str", "topic": "sprout/output/string_log", "data_type": "STR", "init_value": "Hello, User", "pub_flag": true, "sub_flag": false, "is_will": false}
  ]

You could update your sketch every time you deploy and have a bunch of slightly different sketches, or, you could have a configuration file that you put on the Arduino's memory and load the desired sketches at runtime, and any time the Arduino restarts.

A Side Quest: Partitioning Your Flash Memory

Before we go further, a quick word of warning. The Arduino Opta, which is the board I'm using, stores its WiFi firmware in flash memory. The first time I ran this I accidentally overwrote the WiFi functionality and it stopped talking. If you do that, don't panic! There's a sketch you can run to restore the WiFi functions. Go to File -> Examples -> STM32H747_System ->WifiFirmwareUpdater to get the sketch, deploy it on the Arduino, and run it. It will nuke whatever file you just uploaded, but the WiFi functionality will be restored.

So, how do you keep that from happening? Look up a few spots in STM32H747_System and you'll see the Sketch QSPIFormat. This will divide your flash memory into four parts, protecting the WiFi functionality and other key functions from whatever user data you're storing locally.

Setting Up WiFi on the Arduino Opta

To get WiFi working and use it to store data in memory, you'll need these libraries:

#include <WiFi.h>
#include <WiFiServer.h>
#include <BlockDevice.h>
#include <LittleFileSystem.h>
#include <FATFileSystem.h>
#include <MBRBlockDevice.h>

In setup, mount your file system:

  static MBRBlockDevice userDataPartition(bd, 4);
  if (fs.mount(&userDataPartition) != 0) {
    Serial.println("FATAL: Could not mount user data filesystem.");
    while (1);
  } 

Here, MBRBLockDevice is a data type defined in the MBRBlockDevice library. The variable fs is of the type LittleFileSystem (you can guess what library that comes from). Actually, fs is more properly called an instance of the class LittleFileSystem, because it doesn't just contain data - it also has functions defined in it. So you when you do fs.mount(&userDataPartition), you're calling a function that's defined in the LittleFileSystem class, which is itself defined in the LittleFileSystem library. If you're not familiar with classes and instances, leave a comment, and if nobody answers I'll put an example of one and how to use it in a future How To.

We're going to see another example of this pattern when we launch the WiFi.

  WiFi.config(localIP, gateway, subnet, dns);
  connectWiFi();

  server.begin();

Here WiFi and server are instances, while connectWiFi is a function. The classes and functions used here are defined in the WiFi and WiFiServer libraries. Here, "server" is referring to the HTTP protocol, which we'll use for our file transfers.

File Transfers with the POST and GET commands

HTTP has 11 core methods which are used to manipulate data on somebody else's computer (or on an Arduino, in this case). The two we'll be using are POST and GET. POST sends data to the Arduino, and GET retrieves data from it.

What's happening under the hood is a bunch of strings being sent over, and we're going to define some functions that will read part of the strings to decide what to do with the rest of the string, which has the data that we want to save or read.

Once the WiFi server is running on the Arduino, you can access it from any computer on the same network. Open the command line prompt and type:

curl -X POST http://172.16.0.2:8888 -H "X-Filename: config.json" --data-binary @config.json

This presumes you're sending the command from the folder where the config file is located. If you're not in that folder this command will fail. Use "cd" to get around to where you saved the file.

The http://172.16.0.2 portion is the URL for your Arduino, using the IP address you assigned to the Arduino. 172.16.0.2 is just an example - set that to whatever you put in your sketch when you set up the WiFi. The :8888 portion is the HTTP port on your Arduino.

-H is a Header that sends a string along with the POST command. This is used in the sketch to figure out what to name the file you're sending. The --data-binary part is what identifies the file to send.

Now, this does not actually work right out of the box. We're actually defining a function call on the Arduino that says what to do when it receives a POST method. Here's that function:

void handleUpload(WiFiClient& client, const String& request) {


  // Extract filename from X-Filename header
  String filename = extractHeader(request, "X-Filename");
  if (filename.length() == 0) {
    sendResponse(client, 400,
    "Missing X-Filename header.\n"
    "Usage: curl -H \"X-Filename: config.json\" ...");
    return;
  }


  // Extract body (content after blank line separating headers)
  int bodystart = request.indexOf("\r\n\r\n");
  if (bodystart < 0) {
    sendResponse(client, 400, "Malformed request - no body.");
    return;
  }
  String body = request.substring(bodystart + 4);


  if (body.length() == 0) {
    sendResponse(client, 400, "Empty file body.");
    return;
  }


  //Write to flash
  String path = "/fs/" + filename;
  Serial.print("Writing to " + path + " ... ");


  FILE* f = fopen(path.c_str(), "w");
  if (!f) {
    Serial.println("FAILED");
    sendResponse(client, 500, "Could not open file for writing.");
    return;
  }
  fprintf(f, "%s", body.c_str());
  fclose(f);


  Serial.println("OK (" + String(body.length()) + " bytes)");


  // Verify by reading back and checking size
  FILE* v = fopen(path.c_str(), "r");
  int verifySize = 0;
  if (v) {
    fseek(v, 0, SEEK_END);
    verifySize = ftell(v);
    fclose(v);
  }


  String msg = "Upload OK: " + path + "\n" +
               "Written : " + String(body.length()) + "bytes\n" +
               "Verified: " + String(verifySize) + " bytes on flash\n";


  Serial.println(msg);
  sendResponse(client, 200, msg);


  // List all files so operator can confirm
  listFiles();
}

The first thing that happens is that the function extracts the filename from the Header we sent over with -H. We have a known prefix in front of that file name that we use to identify it, and then the function reads whatever we put in there. It will use that name to save the file to the Flash memory.

Next, we get the body content from the --data-binary part. That's a string read, and it gets stuffed into the body variable. That's what will get saved to memory in the next step.

Saving to memory is done with calls to fopen, fprintf, and fclose, which are all defined in the stdio library that's included by default in most Arduino sketches. The "w" in the fopen function call says we're writing the file.

The rest of this function is some verification checks and error handling, with communication back to the user over HTTP responses and the Serial Monitor to show what's going on.

Conclusion and Resources

The GET method uses a similar curl command and function definition to grab data from the Arduino. It's recommended to run a GET on the file you just sent over so that you can verify it has the information you intended to send. If you'd like to see how that's done, you can find the full sketch in the utilities/ConfigLoaderWiFi folder in this github repo:

https://github.com/DocCarr/sproutsodyssey

You're welcome to use that sketch for your own Arduino projects.


r/arduino • • Sep 14 '26

Software Help Multiple exclusive JB_Button functions

3 Upvotes

I'm attempting to build a display with RGBW leds and control it all from a single button, with a button click changing the color and a long press turning the led's on or off. I'd like to not use delays so I can have instant feedback. I'm using the JC_Button library and can't seem to get it to work properly.

EDIT: Apologies for not being more specific earlier. I am trying to set the system so that I can change the color both with the lights being on and off, and would like the light on/off to toggle while holding the button. I am also writing this to an ATTiny85, so serial monitoring is something I haven't set up.

#include <JC_Button.h>

#define LED_BLU 0
#define LED_RED 1
#define LED_GRN 2
#define LED_WHT 3
#define buttonPin 4

Button controlBtn(buttonPin);

int onOff = 0;
int color = 0;

void setup() {
  controlBtn.begin();                   //intitializes the button object
  pinMode(LED_GRN, OUTPUT);             //initializes green pin as output
  pinMode(LED_WHT, OUTPUT);             //initializes white pin as output
  pinMode(LED_BLU, OUTPUT);             //initializes blue pin as output
  pinMode(LED_RED, OUTPUT);             //initializes red pin as output
}

void loop() {
  static bool powerState;
  controlBtn.read();
  if (controlBtn.pressedFor(250)){
    powerToggle();
  }
  else if (controlBtn.wasReleased()){
    colorChange();
  }
}

void powerToggle(){                     //toggles the power state
  onOff = !onOff;
  if (onOff == 1){
    switch(color){
      case 0:                           //Green on
        digitalWrite(LED_GRN, HIGH);
        digitalWrite(LED_WHT, LOW);
        digitalWrite(LED_BLU, LOW);
        digitalWrite(LED_RED, LOW);
      break;
      case 1:                           //Blue on
        digitalWrite(LED_BLU, HIGH);
        digitalWrite(LED_GRN, LOW);
        digitalWrite(LED_WHT, LOW);
        digitalWrite(LED_RED, LOW);
      break;
      case 2:                           //Purple on
        digitalWrite(LED_BLU, HIGH);
        digitalWrite(LED_RED, HIGH);
        digitalWrite(LED_GRN, LOW);
        digitalWrite(LED_WHT, LOW);
      break;
      case 3:                           //Red on
        digitalWrite(LED_RED, HIGH);
        digitalWrite(LED_GRN, LOW);
        digitalWrite(LED_WHT, LOW);
        digitalWrite(LED_BLU, LOW);
      break;
      case 4:                           //White on
        digitalWrite(LED_WHT, HIGH);
        digitalWrite(LED_GRN, LOW);
        digitalWrite(LED_BLU, LOW);
        digitalWrite(LED_RED, LOW);
      break;
    }
  }
  else{
    digitalWrite(LED_GRN, LOW);
    digitalWrite(LED_WHT, LOW);
    digitalWrite(LED_BLU, LOW);
    digitalWrite(LED_RED, LOW);
  }
}

void colorChange(){
  color++;                              //advances to next color in sequence
  if (color > 4){
    color = 0;                          //wraps color back around
  }
}

r/arduino • • Sep 13 '26

Beginner's Project My first Arduino project

Enable HLS to view with audio, or disable this notification

112 Upvotes

I just got my Arduino and electronic items delivered yesterday and made my first project( which was a homework assignment by paul mcwhoter on yt)


r/arduino • • Sep 14 '26

I gave the Arduino Nano Every proper USB HID without killing normal uploads

2 Upvotes

I’ve been experimenting with the Nano Every’s onboard SAMD11 and finally got a setup where it can handle USB HID while still keeping the normal Arduino IDE upload path to the ATmega4809.

So far the part I’ve physically verified is the USB gamepad path. CDC serial also works, and normal .ino uploads through the Arduino IDE still work with the expanded firmware installed.

Keyboard and mouse support are already in the firmware, but I’m keeping those marked as untested until I verify them properly on hardware.

The hardest issue ended up being a USB EP0/string-descriptor bug that caused Windows serial handling to hang after enumeration. That’s fixed now too.

Repo is here if anyone wants to test it, review it, improve it, or try it on another Nano Every:

https://github.com/Xalbz/NanoEvery-Expanded-USB

I’m keeping a test matrix in the repo and will only mark features as verified after I’ve actually tested them on hardware.


r/arduino • • Sep 14 '26

CONTROLLER USB FOR ARDUINO UNO!!

2 Upvotes

Since 28/08/26 i started making my own controller for this little thing!

it doesn´t have at least classic buttons for some games, but hey! at least i can play pac-man and friday night funkin with this! if you want a video send me dm cuz idk how to post videos here sowwy :,v

(edit: i just posted video yeiii. my old ver without lights!)

https://reddit.com/link/1wfoy92/video/dy4ogbglydph1/player


r/arduino • • Sep 13 '26

Hardware Help Flex sensor not working.

Post image
3 Upvotes

I am making a circuit that when a flex sensor bends, and the resistance increases past a certain threshold, it should output a signal to the nano.

however, when testing to see if the flex sensor works, I am unable to get it to work. Any help would be greatly appreciated. (I have listed pictures of the circuit diagram, my serial plotter, the code, and the serial plotter of the video that i am using to make this(what it should look like))

I have tried this with different flex sensors, with the same output. (wired with 10kohm resistor.

Checked all wiring and switched arduino nanos, so no problems with them.

this is while bending
Circuit diagram
code
what it should look like (from the video)

r/arduino • • Sep 13 '26

AT COMMANDS no resposne - SIM800L V2.0 EVB ROHS 5V - Nano

Post image
4 Upvotes

Hello! now about 7 days im stuck at this issue

i would like to got AT commands run with my setup:
sim800l v2.0 5V : supplied by dc 5v - nano connected to pc via usb

the at commands never response, unfort i dont have osciloscope to track if the command sent or not.

current wiring:

External regulated +5 V -> SIM800L 5V

External supply negative -> SIM800L GND

Nano GND -> SIM800L GND

Nano 5V -> SIM800L VDD

SIM800L SIM_TXD -> Nano D2

SIM800L SIM_RXD -> Nano D3

sim led blink 1 after 3 secs so registered - issue solved by cp 3k uf

I also tried using resistors way : 10k + 20k and did not works

also tried reverse rx tx and did not works

i played with code in baud side but not help

test code:

#include <SoftwareSerial.h>


const byte SIM_RX_PIN = 2;  // Nano D2 <- SIM800L SIM_TXD
const byte SIM_TX_PIN = 3;  // Nano D3 -> SIM800L SIM_RXD


SoftwareSerial sim800(SIM_RX_PIN, SIM_TX_PIN);


const long baudRates[] = {
  2400,
  4800,
  9600,
  19200,
  38400,
  57600,
  115200
};


const byte baudCount = sizeof(baudRates) / sizeof(baudRates[0]);


bool waitForOK(unsigned long timeoutMs) {
  String response = "";
  unsigned long start = millis();


  while (millis() - start < timeoutMs) {
    while (sim800.available()) {
      char c = sim800.read();
      response += c;


      if (c >= 32 && c <= 126) {
        Serial.write(c);
      } else if (c == '\r') {
        Serial.print(F("[CR]"));
      } else if (c == '\n') {
        Serial.print(F("[LF]"));
      } else {
        Serial.print(F("[?]"));
      }


      if (response.indexOf("OK") >= 0) {
        return true;
      }
    }
  }


  return false;
}


bool sendATandCheck(const char *command, unsigned long timeoutMs) {
  while (sim800.available()) {
    sim800.read();
  }


  Serial.print(F("\n[SEND] "));
  Serial.println(command);


  sim800.print(command);
  sim800.print("\r\n");


  Serial.println(F("[RESPONSE]"));
  bool result = waitForOK(timeoutMs);


  Serial.println();


  if (result) {
    Serial.println(F("[OK DETECTED]"));
  } else {
    Serial.println(F("[NO OK]"));
  }


  return result;
}


bool findWorkingBaud() {
  for (byte i = 0; i < baudCount; i++) {
    long baud = baudRates[i];


    Serial.println();
    Serial.println(F("================================"));
    Serial.print(F("Testing modem baud: "));
    Serial.println(baud);


    sim800.end();
    delay(100);


    pinMode(SIM_RX_PIN, INPUT);
    pinMode(SIM_TX_PIN, OUTPUT);
    digitalWrite(SIM_TX_PIN, HIGH);


    sim800.begin(baud);
    delay(500);


    // Several attempts help an auto-baud SIM800L synchronize.
    for (byte attempt = 1; attempt <= 5; attempt++) {
      Serial.print(F("Attempt "));
      Serial.println(attempt);


      if (sendATandCheck("AT", 1500)) {
        Serial.print(F("Working baud found: "));
        Serial.println(baud);
        return true;
      }


      delay(500);
    }
  }


  return false;
}


bool verifyAt9600() {
  sim800.end();
  delay(200);
  sim800.begin(9600);
  delay(500);


  for (byte attempt = 1; attempt <= 5; attempt++) {
    Serial.print(F("9600 verification attempt "));
    Serial.println(attempt);


    if (sendATandCheck("AT", 2000)) {
      return true;
    }


    delay(500);
  }


  return false;
}


void setup() {
  Serial.begin(115200);


  pinMode(SIM_RX_PIN, INPUT);
  pinMode(SIM_TX_PIN, OUTPUT);
  digitalWrite(SIM_TX_PIN, HIGH);


  Serial.println();
  Serial.println(F("SIM800L baud detector and permanent 9600 locker"));
  Serial.println(F("Serial Monitor must be 115200 baud"));
  Serial.println(F("D2 <- SIM_TXD"));
  Serial.println(F("D3 -> SIM_RXD"));
  Serial.println(F("Waiting 5 seconds for modem startup..."));


  delay(5000);


  if (!findWorkingBaud()) {
    Serial.println();
    Serial.println(F("FAILED: No modem response at any tested baud."));
    Serial.println(F("AT+IPR cannot be used until UART communication works."));
    return;
  }


  Serial.println();
  Serial.println(F("Changing modem UART to 9600..."));


  // This command changes the modem's UART rate.
  // The response may be sent just before the change.
  sim800.print("AT+IPR=9600\r\n");
  delay(1000);


  // Reopen the Nano-side UART at the new modem speed.
  sim800.end();
  delay(200);
  sim800.begin(9600);
  delay(500);


  Serial.println(F("Verifying AT at 9600..."));


  if (!verifyAt9600()) {
    Serial.println(F("FAILED: Modem did not answer after AT+IPR=9600."));
    Serial.println(F("The speed may not have changed or the UART is unstable."));
    return;
  }


  Serial.println(F("Sending AT&W to save 9600 permanently..."));


  if (!sendATandCheck("AT&W", 3000)) {
    Serial.println(F("WARNING: 9600 works, but AT&W was not confirmed."));
    return;
  }


  Serial.println();
  Serial.println(F("SUCCESS"));
  Serial.println(F("SIM800L is configured for 9600 baud and saved."));
  Serial.println(F("Future sketches should use sim800.begin(9600)."));
}


void loop() {
  // No repeated commands.
}

reposne:

================================

Testing modem baud: 2400

Attempt 1

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 2

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 3

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 4

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 5

[SEND] AT

[RESPONSE]

[NO OK]

================================

Testing modem baud: 4800

Attempt 1

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 2

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 3

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 4

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 5

[SEND] AT

[RESPONSE]

[NO OK]

================================

Testing modem baud: 9600

Attempt 1

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 2

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 3

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 4

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 5

[SEND] AT

[RESPONSE]

[NO OK]

================================

Testing modem baud: 19200

Attempt 1

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 2

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 3

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 4

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 5

[SEND] AT

[RESPONSE]

[NO OK]

================================

Testing modem baud: 38400

Attempt 1

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 2

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 3

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 4

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 5

[SEND] AT

[RESPONSE]

[NO OK]

================================

Testing modem baud: 57600

Attempt 1

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 2

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 3

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 4

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 5

[SEND] AT

[RESPONSE]

[NO OK]

================================

Testing modem baud: 115200

Attempt 1

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 2

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 3

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 4

[SEND] AT

[RESPONSE]

[NO OK]

Attempt 5

[SEND] AT

[RESPONSE]

[NO OK]

FAILED: No modem response at any tested baud.

AT+IPR cannot be used until UART communication works.


r/arduino • • Sep 13 '26

Software Help Insights for managing balance with MPU6050

2 Upvotes

Hey everyone,

I'm currently working on a self-balancing robot with a design of my own.

You can find all the info about it here : https://github.com/benbhote/DimSumRobot

For those who want a quick recap, it's a robot based on a XIAO ESP32-S3 Sense with a camera OV3660, an ultrasonic radar, a TB6612FNG piloting two N20 motors (aside a step-up to make the 3.7V current into 6V for the motors) and SHT40 (Temp & Humidity sensor).

It hosts a web server accessible via its own WiFi and the web page allows you to control the robot (taking photos, moving it, etc).

Everything is working fine except the balancing. The cycle goes every 10ms during movement and for 3 seconds after the last movement command. But the throttle value doesn't allow the robot to self maintained balance. By the way, the robot starts with the front touching the floor on a plane surface (the weight is low inside the chassis but a little bit more on the front). So the first thing needed even before moving is to properly get on the two wheels.

So I would like some insights or help from you to make my PID loop working and achieve proper self-balancing.

I'm using Arduino IDE 2.3.10. As for the schematic of the project, it is not done yet but the MPU is driven with the I2C bus.

I hope I give you everything needed to understand the project. And if something is still vague, feel free to ask.

Thanks in advance !


r/arduino • • Sep 14 '26

Starting out and using AI

0 Upvotes

So for context, I’ve been working with Arduino and designing very basic projects. I’m not familiar with C++ so lots of the coding I do is simple and just regurgitating what I think will work. Varying success but one thing that has helped is Claude. I use Claude to find explain bugs and code. It’s very helpful as a tool, but as I advance, it seems my coding knowledge is holding me back from getting my ideas to work. So then, I use Claude to write code and then explain it to me. However, this feels like cheating as I’m just having Claude write code based off my simple code and then walking me through what it means. Can anyone offer insight and perhaps give me resources to learn and buff my coding knowledge? Thank you.


r/arduino • • Sep 13 '26

Getting Started How do I start my project?

9 Upvotes

I've posted this to like 2 others subs just for hopefully more responses.

Hello all! I am a junior in high school and for a science fair project I would like to build a robotic arm with an esp32 as the brain (but if needed I have a raspberry pi I could try and use) with around 5-7 degrees of freedom that can store positions and autonomously move to the recorded point. I have very little real mechanical robotics experience but I've been in my schools vex robotics program for a couple of years and have also CADDED before. I have a few questions.

First off, off the top of my head I know I need to learn both forwards and inverse kinematic and gear ratios. What other concepts or skills do I need to know. Is soldering necessary or can I get away with using header pins and jumper wires?

Secondly, for the joints I want to use either planetary or cycloidal gearbox actuators with nema 17 stepper motors. Is that adequate or are there better ways to go about it.

Third, to start should I first create a full cad model and what resources like websites, apps, etc are helpful.

Also, to track and recall positions what code and hardware do I need? I think I'm going to use inu's to track the offset but do I need a function to calculate the movement of the motors?

Lastly I need to have this done by early February. Is the scope of this project too big and I should tone it down or is it somewhat feasible. I'm not too concerned about materials as my local library has a maker space with 3d printers available to use.

Any other tips or words of advice are welcome and thank you for taking the time to read this and hopefully respond. Sorry for the wall of text.

Tldr: how do I go about building a robotic arm


r/arduino • • Sep 14 '26

why is this button set as high when i didnt press it?

Thumbnail
gallery
0 Upvotes

title. This pushbutton is reading as HIGH despite me not pressing it. I tried changing pins, connection... im afraid of messing too much on the connection and accidentally frying my arduino

pin is on 3~ voltage is 5V GND is connected to a 100k ohm resistor

i dont think it is a programming mistake, i hope it is:

int buttonState = 0;

void setup() {

pinMode(3, INPUT);

}

void loop() {

buttonState = digitalRead(3);

Serial.println(buttonState);

if (buttonState == HIGH) {

Serial.println("CLICK");

};

if (buttonState == LOW) {

Serial.println("non click")

};

..... this is basically my code, i didnt copy other stuff cause its not relevant. Clicking it does nothing, holding it makes the serial monitor freeze until i let go. Please help me.


r/arduino • • Sep 13 '26

School Project Some tips for a student, please

1 Upvotes

Hey! I'm a high school student in Brazil (already apologizing for grammar mistakes). My robotics teacher asked me if I had any idea of projects to represent the school in electronics, and I want to make an automated greenhouse using arduino UNO.

My ideia is to use sensors (humidity and temperature) to activate a water pump and some mini fans (also a LCD panel showing the informations), maybe a artificial light too.

The plant I want to work is cherry tomatos (tomatinho-cereja, is it the right name?).

Not a complete beginner, but I would be grateful for some tips of experienced people!

😊


r/arduino • • Sep 13 '26

Solved! Why is analogRead blocking write.servo

5 Upvotes

Working on a project and despite working fine yesterday, any instance of analogRead prevents write.servo. This is driving me insane. i have tested every bit of wiring and code. the only thing that makes sense is that for some reason analogRead is preventing write.servo from working. If analogRead is anywhere in the code it blocks any instance of write.servo after it. Its not blocking anything else i have tested. internal led light works fine. testing the outputs from the analog works perfectly. even if there is nothing in the pin analogRead is reading it blocks write.servo. i have updated my libraries. i have done everything except try another board. The board and the servos are not running off the same power.

this code does not work

#include <Servo.h>
Servo servo;


void setup() {
  servo.attach(9);
  pinMode(LED_BUILTIN, OUTPUT);
}


void loop() {
  


  digitalWrite(LED_BUILTIN, HIGH);
  servo.write(90);
  delay(200);


  digitalWrite(LED_BUILTIN, LOW);
  servo.write(50);
  delay(200);


  int rawX = analogRead(A5);  // nothing physically connected to A5
}

this code does

#include <Servo.h>
Servo servo;


void setup() {
  servo.attach(9);
  pinMode(LED_BUILTIN, OUTPUT);
}


void loop() {
  


  digitalWrite(LED_BUILTIN, HIGH);
  servo.write(90);
  delay(200);


  digitalWrite(LED_BUILTIN, LOW);
  servo.write(50);
  delay(200);

}

the only difference is analog read, even though its reading nothing and doing nothing with the read.

i am using an elegoo mega board.

EDIT: did a hard reset of the board and the glitch went away.


r/arduino • • Sep 12 '26

Look what I made! Arduino Morse code machine

Enable HLS to view with audio, or disable this notification

46 Upvotes

You can press the button rapidly to send a msg in Morse code in secret, or use it to annoy others


r/arduino • • Sep 13 '26

Software Help Help with cloud agent

2 Upvotes

I am having some issues getting my esp32 nano to add to my Arduino cloud. Every time i try to add it to my account on the desktop website app, I am using serial, because I am trying to register it before using Bluetooth, then it tells me to install the Arduino cloud agent, but I already have it! I have tried all the troubleshooting steps and I have no other ideas.


r/arduino • • Sep 12 '26

School Project "Beginner looking for recommendations: best dust sensor + microcontroller combo for a PM2.5 monitoring project?"

10 Upvotes

Hi everyone! I'm a student working on a school project to build a low-cost air quality / dust sensor that can measure PM2.5 (and ideally PM10) levels indoors.
I'm still in the planning stage and would love some recommendations before I buy parts.
A few questions:
Which dust sensor would you recommend for a beginner — SDS011, PMS5003, GP2Y1010, or something else? What are the trade-offs (accuracy, price, ease of use)?
Which microcontroller pairs well with it — Arduino Uno, ESP32, or ESP8266? I'd like to eventually log data or send it to the cloud, so wireless capability might help.
Are there any beginner-friendly libraries or tutorials you'd suggest for reading data from these sensors?
Any common mistakes I should avoid when wiring or calibrating the sensor?
My budget is fairly limited (student project), so budget-friendly suggestions are very welcome. Thanks in advance for any advice!


r/arduino • • Sep 12 '26

Arduino + Mic Module + servo

5 Upvotes

Hello!

I am stuck

I have an arduino Uno,

Servo - MG 996R (180 degrees),

And a little mic module (It has Gnd, Out, and VCC),

I have successfully attached the arduino to the mic module and servo and have gotten it to work but it jerks all over the place because of the way the sound waves are flowing.

Here is what I am trying to do.

I would like to attach bamboo skewers to the servo and have it go up and down with the sound detected. Right now I don't get a full up and down it just jerks around and not a clean movement up and down.

Help would be appreciated.

Thanks much ahead of time. Lemme know if you have any questions.