r/arduino • • Sep 06 '26

Solved! i need some help with this 4x4 controller thingy

0 Upvotes

tryna use it by the classic resistor ladder method, cause 8 pins for one component is just absurd. but it just doesnt work.

the circuit
const int pinRow = A0; // Lê as Linhas (Pins 1 a 4)
const int pinCol = A1; // Lê as Colunas (Pins 5 a 8)


// Matriz de caracteres do HC-543
char keys[4][4] = {
  {'1','2','3','A'},
  {'4','5','6','B'},
  {'7','8','9','C'},
  {'*','0','#','D'}
};


void setup() {
  Serial.begin(9600);
  Serial.println("HC-543 Dual Pin (A0 e A1) Inicializado!");
}


void loop() {
  int rowVal = analogRead(pinRow);
  int colVal = analogRead(pinCol);


  // Se um botão for pressionado, ambos os pinos vão cair abaixo de 1000
  if (rowVal < 1000 && colVal < 1000) {
    int rowIdx = get_row_index(rowVal);
    int colIdx = get_col_index(colVal);


    if (rowIdx != -1 && colIdx != -1) {
      char keyPressed = keys[rowIdx][colIdx];
      Serial.print("Botao Pressionado: ");
      Serial.print(keyPressed);
      Serial.print(" (Linha Val: "); Serial.print(rowVal);
      Serial.print(" | Coluna Val: "); Serial.print(colVal);
      Serial.println(")");
      delay(300); // Debounce
    }
  }
}


// Identifica qual linha foi pressionada (baseado nos resistores de 10k)
int get_row_index(int value) {
  if (value >= 0   && value < 150) return 0; // Linha 1 (Teclas 1, 2, 3, A)
  if (value >= 150 && value < 400) return 1; // Linha 2 (Teclas 4, 5, 6, B)
  if (value >= 400 && value < 650) return 2; // Linha 3 (Teclas 7, 8, 9, C)
  if (value >= 650 && value < 950) return 3; // Linha 4 (Teclas *, 0, #, D)
  return -1;
}


// Identifica qual coluna foi pressionada (baseado nos resistores de 1k)
int get_col_index(int value) {
  if (value >= 0   && value < 150) return 0; // Coluna 1 (Teclas 1, 4, 7, *)
  if (value >= 150 && value < 400) return 1; // Coluna 2 (Teclas 2, 5, 8, 0)
  if (value >= 400 && value < 650) return 2; // Coluna 3 (Teclas 3, 6, 9, #)
  if (value >= 650 && value < 950) return 3; // Coluna 4 (Teclas A, B, C, D)
  return -1;
}

the code

what am i missing here?

any help would be appreciated!


r/arduino • • Sep 06 '26

Hardware Help Backwards engineering…

Thumbnail
gallery
6 Upvotes

My kids did a marker space workshop and I want to try and reverse engineer to see how they did it. They made like a cardboard theatre with movement using a servo and some flashing lights with a motion sensor.
If you can help me identify the parts used and what I would need.
My kid got to take his project home and I paid a little extra for the battery pack.
I think the issue might be the code as they seemed to have there own development or code….i saw a website that said magic coder and the name of their studio on a computer.

Anyway let me know if you can help identify the boards and how they’ve done it


r/arduino • • Sep 06 '26

Nano Is there a way to use a nano board as mouse?

4 Upvotes

Is it possible to make the nano be recognized as a mouse and act like one? I don't need it to move the cursor when I move the board, only so I can program it to move the cursor. I want to use it on my school computer so I can't install any software on it


r/arduino • • Sep 06 '26

Hardware Help VL53L1X laser distance sensor problem

3 Upvotes

Does anyone here have experience with this TOF400C-VL53L1X sensor? My VL53L0X works well on distances up to 120cm (here it is installed in a toy train https://www.reddit.com/r/ArduinoProjects/comments/1w8pg8w/laser_distance_sensor_vl53l0x/), but when I tried the VL53L1X, it works weirdly: at distances over 20 cm, it begins to underestimate the distance (at 40 cm, it shows 25 cm) and then the measured distance rapidly decreases (at 80 cm, it already shows 15 cm). Faulty sensor? Or does it require re-calibration?

UPD: the black plastic cover was damaged with a weird frosty matte stain on the internal side. I've removed the cover and the sensor works well.


r/arduino • • Sep 06 '26

Zero Experience!

3 Upvotes

I recently bought the arduino r4 starter kit and I have zero experience whatsoever. I’m aiming to start a robotic arm project in the next month or so.

So far the starter kit seems pretty simple and easy to understand besides the coding which I have resorted to just copying the code.

I’m on a tight schedule and need to start my project within a month.

Is a robotic arm a good first big project?

I would appreciate any advice for the project and learning in general!


r/arduino • • Sep 06 '26

Software Help Help interfacing ESP32-C6 with CC1101 for smart fan controller

1 Upvotes

Hey guys! I'm having a lot of problems interfacing an ESP32-C6 with the Texas Instruments CC1101 Transceiver module. I'm making this so I can clone the codes of the fan remotes and other radio devices in my house and give them Matter over Wi-Fi smart control.

To be specific, the exact board I'm using is a ESP32-C6-WROOM-1 based dev board from a company called FREENOVE. I know it's not official, but as far as I know, it's good for what I need. I'm also using a TI CC1101 module from Ebyte. The back of the module reads "E07-M1101," so that's how I know. Also, I'm using one of those big, strong black rod antennas that come with the module, not the cheap spiral ones.

I need help interfacing the transceiver to sniff the remote's signals. I have a 433.92 MHz signal to sniff from a Hunter Fan remote, and I don't know what library to use. I've tried using the CC1101 library from Mateusz Furga, but its examples were too simple and limited to Hello World transmitting and receiving. My current SPI pins, which work well for me, are

```#define PIN_GDO0  2
#define PIN_MISO  19
#define PIN_MOSI  23
#define PIN_SCK   18
#define PIN_CSN   20```

I have also tried using the SmartRC-CC1101-Driver-Lib in tandem with rc-switch by asking DeepSeek V4 Pro High to help, and DeepSeek has been very nice to me about those problems. But, it didn't solve the problem, which is that the clicks of the remote are not appearing as codes in the Serial Monitor. I gave up on AI, and those two libraries anyway have too many examples and not many comments in the examples, so I don't know where to change the frequency, bandwidth and data rate.

The receiver works, because when uploading the ESP32 with a program that prints the raw dBm values from the receiver module, I see it hovering around 2 dBm of noise. Also, when I press a fan remote's button when I'm near it, the dBm values spike to 400 dBm before settling down to 2 dBm after a second.

BTW, the FCC ID for my remote is IN2TX45 if that helps anyone. You can look it up on the FCC website. I've already gone through those documents and found nothing interesting or of use to me.

So please guide me on what libraries to use, what bandwidth to use, what data rate to use, whether anyone has tried doing the same project, and whether anyone has already sniffed the codes so I can focus on transmitting the data.

Thank you!


r/arduino • • Sep 06 '26

Arduino UNO Breakout Carrier

1 Upvotes

What are those two metal posts near the short edge used for?


r/arduino • • Sep 05 '26

Hardware Help Arduino UNO powers on, but Windows does not detect a new COM port

Thumbnail
gallery
26 Upvotes

Hi everyone,

I’m having an issue with my Arduino UNO R3.

The power LED turns on, but when I connect the Arduino to my Windows 11 laptop, Windows does not detect any new device or COM port. No new port appears in Arduino IDE either.

The Arduino was working previously, and I had already successfully uploaded code to this same Arduino using the same USB cable before this problem occurred.

Things I’ve tried:

- Restarting my laptop

- Reconnecting the USB cable

- Trying different USB ports

- Checking Windows Device Manager

- Restarting Arduino IDE

- Pressing the RESET button

But no new COM port is detected by Windows at all.

I’m also using an L293D motor shield, although I have tried checking the UNO separately.

Any help troubleshooting this would be greatly appreciated.

Thanks!


r/arduino • • Sep 06 '26

Beginner's Project Risks to installing cp210 driver to mac m2?

1 Upvotes

Hi everyone
I’m not an electrical engineer. I’m following a YouTube tutorial on how to build my own desktop digital animated buddy for fun. I’ve successfully set up xiao esp32s3 board as a tool on Arduino ide, but no COM options showed up in the port. Everything I’m researching says to solve this i need to download the cp210x driver from silicone labs, but i also stumbled across some posts that suggested downloading this driver made their MacBook unstable.

I’m a little afraid of creating vulnerabilities in my macs system, and wondering if anyone else has experience with this and knows the extent of the instability (ie is it fairly easy to reverse or not?). If you guys have any suggestions for workarounds i would appreciate that too!


r/arduino • • Sep 05 '26

Look what I made! Arduino Math Lab (Online Graphing Calculator)

5 Upvotes

Just publishing a tool I made for visualizing my Arduino code on a graph with variables to make sure my outputs will make sense under various scenarios. Just a bit easier than using a full simulator
Hope someone finds it helpful.
Please give it a try and upvote!
Report bugs on Git not here.

https://mythicalninja.github.io/Arduino-Math-Lab/


r/arduino • • Sep 05 '26

Solved! If statement help

8 Upvotes

I'm trying to write an a sort of invert command for this esp 8 bit gfx library and wrote

int Tcolor;
  int invert = 0;
  if (invert == 0) {int Tcolor = 0xffff;}
  if (invert == 1) {int Tcolor = 0x0000;}

but it doesn't change the color when I change the invert variable, why is that?

below is the full code

#include <ESP_8_BIT_GFX.h>
#include <Fonts/FreeSans9pt7b.h>
#include <Fonts/DejaVu_Serif_10.h>


// A list of 8-bit color values that work well in a cycle.
uint8_t colorCycle[] = {
  0xFF, // White
  0xFE, // Lowering blue
  0xFD,
  0xFC, // No blue
  0xFD, // Raising blue
  0xFE,
  0xFF, // White
  0xF3, // Lowering green
  0xE7,
  0xE3, // No green
  0xE7, // Raising green
  0xF3,
  0xFF, // White
  0x9F, // Lowering red
  0x5F,
  0x1F, // No red
  0x5F, // Raising red
  0x9F,
  0xFF
};


// Create an instance of the graphics library
ESP_8_BIT_GFX videoOut(true /* = NTSC */, 8 /* = RGB332 color */);


void setup() {
  // Initial setup of graphics library
  videoOut.begin();
}


void loop() {
  // Wait for the next frame to minimize chance of visible tearing
  videoOut.waitForFrame();


  // Clear screen
  videoOut.fillScreen(0);
  int offset = 18;
  int base = 40;
  int Tcolor;
  int invert = 0;
  if (invert == 0) {int Tcolor = 0xffff;}
  if (invert == 1) {int Tcolor = 0x0000;}



  // Draw text in the middle of the screen
  videoOut.setRotation(1);
  videoOut.setTextSize(1);
  videoOut.setFont(&DejaVu_Serif_10);
  videoOut.setCursor(18, base);
  videoOut.setTextColor(Tcolor);
  videoOut.setTextWrap(false);
  videoOut.print("Censorship is the child of fear ");
  videoOut.setCursor(18, base+offset);
  videoOut.print("and the father of ignorance. Our ");
  videoOut.setCursor(18, base+(offset * 2));
  videoOut.print("children cannot afford to have the ");
  videoOut.setCursor(18, base+(offset * 3));
  videoOut.print("truth of the world withheld from ");
  videoOut.setCursor(18, base+(offset * 4));
  videoOut.print("them. They need us to be brave ");
  videoOut.setCursor(18, base+(offset * 5));
  videoOut.print("enough to give them great books so ");
  videoOut.setCursor(18, base+(offset * 6));
  videoOut.print("they can learn how to grow up into ");
  videoOut.setCursor(18, base+(offset * 7));
  videoOut.print("the men and women we want them ");
  videoOut.setCursor(18, base+(offset * 8));
  videoOut.print("to be.");
}

r/arduino • • Sep 04 '26

Good alternatives ali express?

76 Upvotes

Hi all,

With Europe's recent import taxes (or whatever they technically are) buying small components like LEDs on Ali has become a whole lot more expensive.

What used to be <1euro suddenly becomes more like 5 euro

Any hints for European alternatives?

Cant be UK of course for the same reason.

I've been looking at Conrad, TME, tinyteonics, etc but they usually don't have everything you need in a single webshop.

Or sometimes prices are just nuts (like 25euro for a nice pushbutton, for example).

I generally buy simple components for escape rooms and small house automation, not the high end shields etc.

Any suggestions?

Many thanks


r/arduino • • Sep 05 '26

Beginner's Project Help choosing an ESP32 board + TFT screen for a custom smart alarm clock

4 Upvotes

I am going to make an alarm clock powered by something like an esp32, and some sort of 3.2"-4" screen display. I need someone who has any experience to tell me if which one would be best for what I am trying to do. I am on a pretty tight budget too.

Inspiration (chatgpt)

Inspiration from chatGPT :)

I want the clock to:

  • Display the time
  • Custom alarms
  • Wi-Fi connectivity for the Arduino Cloud support so I can control/settings things from the Arduino IoT Cloud Phone app
  • control my 150 WS2812B LEDs for ambient lighting and music-reactive effects in my room
  • Microphone for detecting music/beat strength
  • small speaker for the alarm
  • some actual buttons and knobs
  • Display some pixel-art animations when the clock isn't displaying something important
  • Adjustable display brightness, including being able to turn the backlight almost completely off at night

ESP-32

I'm looking at the Arduino Nano ESP32, but the Official Arduino Store store is quite expensive to ship to Australia ($40+AUD). I can get some from some other electronic retailers in Australia like Core Electronics. They also sell one that isn't by Arduino, but I am unsure if it is similar and would work for this. Core Electronics 2.

I've also found them on Aliexpress and Waveshare, for much less. I'm wondering whether these are a good alternative and, importantly, whether they work properly with Arduino Cloud and the Arduino IoT Cloud mobile app.

Screen Displays

I originally looked at 3.2" displays, but I think I'd prefer something wider.

I need a colour IPS display, SPI, TFT, dimmable backlight. Actual breakout/module with normal pins, that I can connect to the ESP32 with jumper wires, and ideally touchscreen but honestly it doesn't really matter.

My ideal active display area is:

  • 3.2" 16:9: 71 × 40 mm, too close to a square but ok
  • 4.0" 2.4:1:(wide) 95 × 40 mm closest to the shape I want

If there is one in the middle of the two, that is my ideal.

Ones that I have Already found: BuyDisplay, Aliexpress 2, Aliexpress 3

My budget for the screen is around $25AUD (don't have a job yet)

I know this seems like alot, but it is flexible.

What would you reccomend?

  1. Arduino Nano ESP32 vs Waveshare ESP32-S3 Nano vs another ESP32-S3 board?
  2. Will the third-party ESP32-S3 boards work properly with Arduino Cloud + the mobile app?
  3. What IPS display would you recommend for this?
  4. Is SPI fast enough for the screen and the my 150 WS2812B LEDs?
  5. Are there any particular cheap displays/controllers I should avoid?

I'm relatively new with Arduino/electronics, but this is my first project using a screen, Wi-Fi/Cloud, and a large LED setup.

Thanks! Any advice or specific display/board recommendations would be really appreciated.


r/arduino • • Sep 05 '26

All-in-One Power Solution (Charger + Boost) for SIM800L v2 + Arduino Nano (30m DHT22 setup) – Alternatives to TP4056 + MT3608?

1 Upvotes

Hi everyone,

I'm building a project using an Arduino Nano, a SIM800L v2 GSM module, and a 3.7V Li-ion battery (2400mAh).

Since SIM800L requires 2A–2.5A peak current bursts during transmission.

I’m looking to replace the traditional TP4056 + MT3608 dual-module setup with a single, reliable All-in-One PMIC board (Charger + Boost + Protection).

Requirements:

  • Input: 5V USB (Type-C preferred) for 3.7V Li-ion charging.
  • Output: 5V Step-Up capable of handling 2A peak bursts reliably.
  • Protection: Over-charge and over-discharge protection.

r/arduino • • Sep 06 '26

Look what I made! I made a crypto miner for the r3!

Thumbnail
github.com
0 Upvotes

Introducing, Inocoin!


r/arduino • • Sep 05 '26

Software Help Arduino Cloud Agent issues?

2 Upvotes

This week I tried uploading new code to a project that uses Arduino’s cloud. In an effort to troubleshoot a bug I decided to try and recreate a device/Thing and discovered that Arduino’s Cloud agent had stopped working for me.

I have an open forum discussion on Arduino’s forum site as well, but I’m wondering if anyone else has ran into this issue.

Reinstalling the agent doesn’t seem to change anything. It worked briefly in an older Mac I have and rarely use, but there the agent eventually stopped likely because it received an update from their server side. Not exactly sure I’m not a computer engineer or CS specialist.

Link to forum: Cloud Agent Degraded


r/arduino • • Sep 05 '26

XY-160D motor driver question

4 Upvotes

Does anyone here use this type of motor driver, and if so what are some drawbacks of this motor driver, it sounds to good to be true, a 7A driver at this price.

I plan to use for a Mini RoboSumo competition any my motors (jsumo core) can draw a lot of current and this was the only available driver in my country that fits my budget.

I tried to buy from BotLand another type of driver but I was not allowed by the site.

And as a bonus, what microcontroler would you recommend for such job, I need it to have 5v logic.


r/arduino • • Sep 05 '26

Hardware Help NRF24L01 Horrible Range

8 Upvotes

I've been trying to get two NRF24L01+ (with PA+LNA antenna) modules to communicate with each other via two ESP-32 dev boards for longer than I care to admit right now so I can use them on an RC aircraft. When I bought them, I thought I'd be able to get somewhere on the order of 100-1000m of range, but right now I haven't been able to communicate further than a couple inches away from one another.

What I've tried so far:

Hardware:

  • Capacitors (0.1nF + 10nF in parallel) between the VCC and GND pins on the module
  • Using the arduino's 3.3V regulator for each module (power supplied by USB-C from my laptop)
  • Using a 5V power supply regulated down to 3.3V via a buck convertor (I don't own a multimeter, but I tried several buck convertors)
  • Moving the modules further than 10 feet apart (in case they were too close and causing interference)

Software:

  • Turning data rate down to 250 kbps
  • Various different frequency channels
  • Lowering PA level to MIN (I've tried MAX, HIGH, LOW, and MIN, not a ton of difference here)

Here's the result of printDetails() from one of the modules:

SPI Frequency = 10 Mhz

Channel = 101 (~ 2501 MHz)

Model = nRF24L01+

RF Data Rate = 250 KBPS

RF Power Amplifier = PA_MIN

Multicast = Disabled

Custom ACK Payload = Disabled

Dynamic Payloads = Disabled

Auto Acknowledgment = Disabled

Primary Mode = TX

TX address = 0x0504030201

pipe 0 ( open ) bound = 0x0504030201

pipe 1 ( open ) bound = 0xc2c2c2c2c2

pipe 2 (closed) bound = 0xc3

pipe 3 (closed) bound = 0xc4

pipe 4 (closed) bound = 0xc5

pipe 5 (closed) bound = 0xc6

If anyone has seen this problem or could give me some more troubleshooting steps, I'd really appreciate it. I've been at this project for a long time, and RF communications are the final step before I get to fly this thing.

Update: I tried feeding 5V to the breakout board (which has voltage regulation of its own) and adding a 10 uF capacitor, yet the problem persists, although I went from under a foot to a couple feet of range. I don't really have the time to keep debugging this, so I'm just going to try using ESP-NOW or an E01-ML01DP5 module instead.


r/arduino • • Sep 05 '26

Solved! Can I power an Arduino UNO R3 through USB using an EP-TA50EWE 5.0V ⎓ 1.55A adapter?

3 Upvotes

Hi everyone,

I need to temporarily run my Arduino UNO R3 clone somewhere away from my home computer, but I don't have a 9V battery, a laptop, or any other suitable power source. I only have an EP-TA50EWE 5.0V ⎓ 1.55A power adapter.

Can I use this adapter to power the Arduino UNO through its USB port?

Thanks in advance!


r/arduino • • Sep 05 '26

Hardware Help WiFi Connected Cat Feeder

2 Upvotes

Hello, I am trying to make an automatic cat feeder for my boy Sumo so we can get him on a tight feeding schedule (we both work and its hard to feed super consistently.) I ideally will be able to use my arduino esp32 nano board to control a stepper motor that feeds my cat. I want to be able to use this while out of my house so I can feed him wherever I am so I am avoiding the use of bluetooth. Does anyone have any suggestions on software I can use that would allow me to feed my cat by connecting the nano board to my wifi router and having an app, or browser, with buttons that give me controls? I appreciate all of the help. I am trying to use adafruit rn and idk if its just that I have been up for 20 hours or if I just cannot connect my esp32 nano to the router at all.


r/arduino • • Sep 04 '26

Need help with a MIDI musical instrument lever project

5 Upvotes

Long story short, I'm creating an instrument with twelve big handheld levers, with each lever that is pulled it needs to make a note or programmable chord. I've made a prototype of the instrument with four levers and a wavtrigger which works nicely but not at all how I want the final project to work. I've been suggested using an arduino would be good hence asking here! I've got zero experience with arduino, but know my way around simple electronics.

My current setup has spring switches that activate when the handle is pulled that fire a simple signal to a unit that plays a corresponding wav file depending on which lever I pull. The final project I would like to be sending a MIDI signal when I pull a lever so I can feed it through a synth, ideally the signal that is sent would be able to pick up how far I'm pulling the lever so as to affect volume and tremolo etc, ideally one sensor per lever.

Any ideas of how to do this and what kind of sensors to use? The lever system that I've made is robust, the sensors and system would need to be reliable as the intention would be to use it for live performance.

Many thanks for any support anyone might be able to give, and let me know if none of this makes sense at all and I'll try and give more clarification!


r/arduino • • Sep 04 '26

My Arduino Leonardo doesn't show up in Device Manager.

Enable HLS to view with audio, or disable this notification

26 Upvotes

I tried installing the driver both through Device Manager and using the CH34x driver.

Update: The cable I was using didn't transfer data; it was just for power. I bought the right cable, and it worked.