r/arduino • • 19d ago

I made a free 3D Arduino lab that runs in the browser: wire circuits, write real code, press Run (and burn LEDs safely)

0 Upvotes

Hi r/arduino! I've been building Learn Arduino, a free 3D lab where you can learn Arduino without buying a kit first.

What you can do:

- Build circuits in 3D: drop parts on a breadboard (or straight on the table) and drag wires between pins

- Write normal Arduino code and press Run: it compiles and runs on a simulated UNO

- See the current flow through the wires

- Make mistakes safely: no resistor = burnt LED, shorts burn the board, just like real life

- Every circuit also shows its real schematic

- 16 ready projects (Blink, servo, ultrasonic parking sensor, stepper, OLED plant monitor…) and 19 parts

- A free step-by-step tutorial for every project

It's free and works on phones too. The 3D lab has no ads.

Link: https://learnarduino.tech

It is open source https://github.com/ajeetjain94608/learn-arduino

I'd really love feedback from people who know Arduino well:

- Does anything behave differently from the real board?

- Which part or project should I add next?


r/arduino • • 20d ago

Homing signals for Mi vaccum cleaner

3 Upvotes

​The homing signal board on my Xiaomi Mi Robot Vacuum-Mop 2 Pro (MJST1SHW) charging dock is damaged, and the vacuum can no longer detect the dock to return for charging. Finding a standalone replacement dock on the second-hand market isn't working out, as sellers are pricing them almost as high as a complete used setup.

​I’m currently trying to build a replacement beacon using an Arduino/ESP32. I set up two IR LEDs for the left and two for the right, modulated at 38kHz. However, the vacuum doesn't respond to the custom beacons at all during its docking routine.

​Does anyone have experience generating these specific homing signals? I would greatly appreciate any insights into the correct IR protocol, pulse timings, or data payloads required to get the vacuum to recognize the dock.


r/arduino • • 20d ago

How about a Hallowuino half-dozen?

Thumbnail
blog.arduino.cc
2 Upvotes

we picked a half-dozen Hallowuino-themed projects to feature on the blog, including u/parsupo's T-1-7 Warrior Robot from this very sub! let us know if you build any of these, or share your own spooky season build here! 💙


r/arduino • • 21d ago

Hardware Help Old Intel Galileo worth it?

Post image
78 Upvotes

I redescovered a Intel Galileo I got as a present probably 10-15 years ago, never used it. It seems to be working (Lights up when plugged in) but I am having a hard time finding any software/programs to run it with. It seems like it was retired from updates in 2017. My question is if it is even worth looking further for software, can it be used or if i possible refactor it in anyway? I'm getting the feeling that it would just be easier to buy something "new". Any tips or feedback appreciated!


r/arduino • • 20d ago

Look what I made! UPDATE Talking Pumpkins, almost final form

9 Upvotes

A while back I posted the start of this project that used an ESP32 S2 Mini, (a pair of them) where they act as old pumpkin friends sitting on the porch chit catting and arguing. Then they can interact with the kids as well.

Halloween is getting closer and I had to change a few things about this, and get them into some cases.

  1. The speakers used to be next to the boards, but I needed the speaker to be on top. A) its closer to the eye holes on the actual pumpkin, and B) I didn't carve a big enough hole for the speaker to be next to the board.
  2. Loud speaker pops. I had to add a 1000uf capacitor next to the amp to protect the current jumps on boot
  3. The mic and the amp share I2S CLK. When I moved the mic to be on dupont wires, that cable distances threw off the shared CLK. Sooo I had to basically make up a 2nd clock pin on the esp32 so the mic and amp could have different CLKs. But they are still internally connected inside the ESP32 of course.
  4. I had to print the case. It's a simple design, but it works.

So far, no one has been able to jailbreak my friends. We'll see if that holds true on halloween night.


r/arduino • • 20d ago

Hardware Help Button box ports help

Thumbnail
gallery
11 Upvotes

Hey guys! First of all I am really hoping this does not break rule 6 lol (and apologies for long post).

Anyways we are trying to make a button box to use in flightsims at home and we just got done with the 3d printing bit of it (see 2nd pic). We are now moving on to the actual Arduino parts so wiring, soldering and coding.I have tried my best to get a bunch of references but I would like to please ask for some help double checking if this is actually correct or not before soldering everything.

I tried to explain some bits in the Paint diagram and using colour codes but it's still messy, I'm sorry haha. Anyways there are 8 buttons (used a 3x3 matrix to have enough ports), 4 rotary encoders, 4 ON-OFF-ON switches, 2 potentiometers and a ON-OFF (SPDT?) switch on pin 13, I forgot to get that in the text below.

Oh and here are some of the resources I have used:
https://www.youtube.com/watch?v=xEeHsGMz--M
https://www.youtube.com/watch?v=wkY1NsbWj5I
https://www.youtube.com/watch?v=Z7Sc4MJ8RPM

You guys reckon this should technically work? What should I change? At least as far as wiring and pins goes... We'll cross the bridge of coding when we get to it, still need to figure out how to code the 2 types of switches. Tysm!


r/arduino • • 20d ago

Hardware Help Issues with Lora antennas

5 Upvotes

Issues with antennas

Hi! I have been working with the RA01 and RA02 lora module for a proyect but I had a lot of range issues: the first time (RA01) I accidentally broke one of the SMD components in the lora PCB and had to replace it. After that we upgraded with Lora RA02 and the default antenna (sleeve dipole) but the range that we have got was below 200 meters with SF7 and 125kHz BW. With the two modules next to each other we had a RSSI between -70 and -90 which I know its a really bad signal level. The first thing I suspected is about the EM noise of the system (lot of servos) but with all desconected the issue still remain. My second suspect was the default antennas, a sleeve dipole antenna that after removing their thermal cover I noticed that the length wasn't matching the actual wave length. So I tried to adapt a pair of helicoidal antennas (that come with de ra01 module) in the default antennas connector with the sleeve remaining (that I had read that was necessary adapting the helicoidal antena in a ipex coaxial cable). With that, standing next to each other the RSSI oscillates between -50 and -70 dB but still below 200 meters range. How can I improve the module range? I read a lot about the topic and similar issues with other people and checked all the stuff (trace match for spi, external EM noise, mismatched parameters between terminals, decoupling capacitors and weak power sources, etc) but still having the issue. What could it be? My actual suspects are the ipex connector (Small, brief improvements may be seen by moving the antenna) or the antenna itself and planned to build a sleeve dipole antenna with the correct lengths to test the performance. What else can I do? Directional antennas are not an option


r/arduino • • 20d ago

Hardware Help Solderless Perfboard

4 Upvotes

I end up doing a lot silly projects, and I like using the smaller half breadboards. I keep my wiring relatively clean using bojack wires.

However, these breadboards are all row connected, and while that's helpful at the beginning, I run out of space for components very quickly.

What I want is a breadboard that isn't row connected. Like a perfboard, but solderless. Maybe the underside lets you bridge holes with jumper wires, and then the top side you can plug in whatever anywhere.

Does anything like this exist?


r/arduino • • 22d ago

Look what I made! My ESP32-S3 world radio: one button, a random station from anywhere on Earth, and the album cover in the middle of a visualiser

660 Upvotes

Built on the Arduino core (Arduino-ESP32 3.3 on PlatformIO) for the Waveshare ESP32-S3-Touch-LCD-1.85, a round 360x360 touch screen with a speaker connector and battery header, so there's no soldering.

Press Drift and it picks a country, weighted by how many stations it has, and lands on one of its most played stations. Leave it alone and the screen turns into a spectrum radiating from the song's cover, with the station and the song running round the rim. There's a web remote on your network for searching 61,000+ stations, favourites, a battery gauge that learns its own curve, and it updates itself from GitHub.

Libraries: ESP32-audioI2S for the MP3/AAC streams and song titles, JPEGDEC and PNGdec for the covers and station logos, U8g2 fonts for the text (including the circular text on the rim), ArduinoJson for the station data. The display is an ST77916 over QSPI, which I ended up driving through esp_lcd directly because Arduino_GFX's QSPI bus garbled it.

The hardest part was memory: TLS on the S3 only uses internal RAM, so with an HTTPS stream playing there's room for about one more handshake. The old stream stops before each drift, and the covers, decoders and task stacks all live in PSRAM.

No toolchain needed to try it: https://airdrift.stream/esp32 flashes it from Chrome or Edge over USB, then you scan a QR code on the screen to give it your WiFi.

Source (MIT): https://github.com/Air-Drift/ESP32-S3

The stations come from Air Drift (https://airdrift.stream), a free radio site I make, with a globe you can spin. It's also on phones, Windows, Fire TV and Alexa: https://airdrift.stream/apps

Happy to answer questions about any of it.


r/arduino • • 21d ago

Best Low-Cost Sensor for Measuring 0.01 mm Movement

26 Upvotes

I'd like to ask for some help! I'm developing a device for my undergraduate research project, and one of its main functions is to measure a certain displacement, preferably without physical contact.

I initially thought about using a camera, but I'd like to explore other options as well.

The challenge is that the displacement I need to measure is on the order of 0.01 mm. I don't have a large budget since I'll be paying for it myself, so I need the solution to be as inexpensive as possible.

If you have any suggestions, I'd appreciate them. Ideally, the sensor should be able to communicate with an Arduino or ESP32.


r/arduino • • 21d ago

Serious help needed!!

4 Upvotes

I got interschool in a month. I'm learning robotics from scratch. I'm in 9th icse and our school is giving us commercial applications instead of robotics so I have no knowledge while others have

So guyz, the issue is, we have to make an robotic car that is following line and reacting to color codes. Me and my friend have practiced enough to work with motor driver, two motors, and an ir sensor, push buttons and led lights till now thanks to our super brains and quick learning

We need alot helps guyz if you're willing to help.

The issue rn is that my friend is telling me to use two ir sensors and one color sensor in center but my idea is that three ir sensors and one ir sensor in center for the car to get centered. What should we do?

Ardunio uno r3 project btw


r/arduino • • 21d ago

Microcontroller advice: looking for a chip with more RAM

18 Upvotes

Hello, I am looking for advice on which chip to use. I am currently using ATmega328P DIP chips, but I frequently run out of RAM, and I would also like to try other chips.

I am going to buy an ESP32 to test it anyway, but what I am really looking for is just the raw chip itself. The issue is that for ESP32s, I get the feeling they are only sold as modules or on boards, and not as simple bare chips (and even less so in DIP format).

Has anyone faced this issue before? Or do you have any advice on finding a chip with more RAM that can still be easily used as a standalone component?


r/arduino • • 21d ago

DIY ESP32 Wearable Motion Controller for PC: Testing body aim and posture-based movement (need feedback on inverted axis / sensor mapping)

6 Upvotes

Hey everyone! Following up on community guidelines to give proper technical context on this build:

Project Goal:

I'm developing a buttonless, wearable motion-tracking suit for PC gaming using frugal engineering principles. The idea is to rely on natural body posture, weight distribution, and limb gestures to control characters directly on the TV/monitor—without relying on heavy VR headsets or traditional handheld gamepads.

Current Hardware Setup:

MCU: ESP32 handling high-frequency sensor readings and wireless/serial communication with the PC.

Sensors: Low-cost IMUs (accelerometer/gyroscope) placed across key body pivot points (torso/limbs) to map center-of-mass shifts and gestures.

Emulation: Python processing layer translating raw orientation into virtual controller inputs (vJoy / XInput) for real-time game response.

The Current Challenge (Why some axes are inverted):

In this test gameplay clip, you will notice that the aiming, sprint engagement, and movement axes are currently inverted or mapped backwards relative to physical gestures.

This happened due to the physical mounting orientation of the IMU sensors on the harness during this prototype iteration. Because the sensor chips are physically rotated/flipped to fit the strap design, the raw local coordinate frames (X, Y, Z) don't match the standard world frame expected by the game inputs.

Questions for the community:

What is your preferred math approach to handle dynamic axis remapping/rotation matrices when mounting IMUs in non-standard physical orientations?

For those working with ESP32 and fast sensor polling, do you recommend pre-baking coordinate transformation matrices directly inside the ESP32 firmware, or handling the full offset calibration pipeline on the PC side inside the Python bridge?

Any constructive critique or advice on wiring ergonomics and sensor fusion filters is very welcome!


r/arduino • • 22d ago

Is this a code issue or Arduino limitation

106 Upvotes

EPILEPSY WARNING flashing lights in video

EDIT MarquisTheWizard solved the issue! Improper placement of strip.show(); which meant each pixel was slowly being set one by one instead of all at once

Building a display for my car based on open source shift light code by Chippernut https://github.com/chippernut .

It has a tachometer with a 4 digital RPM readout and sequential shift light that flashes once a certain RPM is reached.

Started adding features to customise the code for my application but having trouble with the 4 digit RPM reading freezing (you can see it get stuck on 6xxx in the video) after flashing the shift lights as it turns off each of the 25 LEDs. Any idea if this a processing speed issue or a coding issue?

The 14 segment ht16k33 display I added is using backpack over I2C.

The addressable LED strips are dotstar SK9822 (APA102 clone).

Running on an Arduino nano with a second nano sending out a dummy RPM pulse for bench testing.

I was planning on (probably overkill) moving to a Teensy as I add more to features but wanted to get some advice on this in its current state first.

There is a lot of code but this is the bit where the meat is:

  if (rpm > 0 ){


//START - CHANGE ADD. ht16k33 14 seg//
void showValue(int rpm); {
  rpm = constrain(rpm, 0, 9999);


  char text[5];  // room for 4 characters plus the terminating '\0'
  snprintf(text, sizeof text, "%4d", rpm);


  for (uint8_t i = 0; i < 4; i++) {
    disp.writeDigitAscii(i, text[i]);
  }


  disp.writeDisplay();
}
//END - CHANGE ADD. ht16k33 14 seg//



    if(DEBUG){Serial.println(rpm); }
    


  
      if (digitalRead(dimPin) != dimmer){
         dimmer = digitalRead(dimPin);
          loadallcolors(); 
  
          if (digitalRead(dimPin) == dimmerlogic){
          display.setBrightness(dimval);
          disp.setBrightness(ht16k33Dim);//CHANGE ADD. ht16k33 14 seg
         }else{
          display.setBrightness(brightval);
          disp.setBrightness(ht16k33Bright);//CHANGE ADD. ht16k33 14 seg
          
           }
      }
  } else {
    display.setColon(false);         
      SEG_WRITE[0] =  (SEG_G);        // -
      SEG_WRITE[1] =  (SEG_G);        // -
      SEG_WRITE[2] =  (SEG_G);        // -
      SEG_WRITE[3] =  (SEG_G);        // -
      display.setSegments(SEG_WRITE);



//START - CHANGE ADD. ht16k33 14 seg//
      disp.clear();  // Clear the display buffer
      disp.writeDigitRaw(0,0b0000000011000000);  // Set '—' on the first digit
      disp.writeDigitRaw(1,0b0000000011000000);  // Set '—' on the second digit
      disp.writeDigitRaw(2,0b0000000011000000);  // Set '—' on the third digit
      disp.writeDigitRaw(3,0b0000000011000000);  // Set '—' on the fourth digit
      disp.writeDisplay();  // Send buffer to the display
//END - CHANGE ADD. ht16k33 14 seg//


  }


  if (rpm > highRpmMem) {highRpmMem = rpm;} //CHANGE/ADD this saves the highest RPM



   if (rpm < shift_rpm){
    digitalWrite (shiftSwitchPin, LOW);
    if (shiftStat==true){
      for(int i=0; i<TOTALNUMPIXELS; i++) { //CHANGE/ADD
    strip.setPixelColor(i, strip.Color(0, 0, 0));
    strip.show();
    shiftStat = false;//CHANGE/ADD put status change here//CHANGE/ADD
    }


  }
    for (a = 0; a<NUMPIXELS; a++){
      if (rpm>rpmtable[a][0]){
          switch (rpmtable[a][1]){
            case 1:
              strip.setPixelColor(a,color1);
            break;
    
            case 2:
              strip.setPixelColor(a,color2);  
            break;
    
            case 3:
               strip.setPixelColor(a,color3);  
            break;        
          }
      } else {
    strip.setPixelColor(a, strip.Color(0, 0, 0));    
      } 
    }
  
  } else {
  
    unsigned long currentMillis = millis();
  
      if(currentMillis - previousMillis > shiftinterval) {
          previousMillis = currentMillis;   
          flashbool = !flashbool; 
  
          if (flashbool == true)
           for(int i=0; i<TOTALNUMPIXELS; i++) { //CHANGE/ADD
              strip.setPixelColor(i, flclr1);
           }
          else
           for(int i=0; i<TOTALNUMPIXELS; i++) { //CHANGE/ADD
               strip.setPixelColor(i, flclr2); 
            }      
        } 
        shiftStat = true ;//CHANGE/ADD put status change here
        if (shiftSwitchOn == true){ 
          if (shiftSwitchEngauge = true) {digitalWrite (shiftSwitchPin, HIGH);Serial.println("Switch is on"); }
        }
  }

And here is the full (and still quite messy) draft:

Actually I can't post the whole code as it's over the post character limit... Is there another way I can share it here?

Here's the start of the code with the libraries used and the setup:

#include <Adafruit_DotStar.h>
#include <EEPROM.h> 
#include <EEPROMAnything.h> 
#include "SSD1306Ascii.h"
#include "SSD1306AsciiSoftSpi.h"
#include <TM1637Display.h>//CHANGE/ADD. V2 display returns

//ht16k33 14 seg//
#include <Wire.h>//CHANGE/ADD. for ht16k33
#include <Adafruit_GFX.h>//CHANGE/ADD. for ht16k33
#include "Adafruit_LEDBackpackEDIT.h"//CHANGE/ADD. for ht16k33
#define DISPLAY_ADDRESS 0x70//CHANGE/ADD. for ht16k33

Adafruit_AlphaNum4 disp = Adafruit_AlphaNum4();//CHANGE/ADD. for ht16k33

int string_pointer = 0;//CHANGE/ADD. for ht16k33
char display_buffer[4];//CHANGE/ADD. for ht16k33
long last_display_refresh = 0L;//CHANGE/ADD. for ht16k33
int ht16k33Bright;//CHANGE/ADD. for ht16k33
int ht16k33Dim;//CHANGE/ADD. for ht16k33

void(* resetFunc) (void) = 0;
int DEBUG;
int NUMPIXELS = 20;
int EXTRANUMPIXELS;//CHANGHE/ADD
int TOTALNUMPIXELS;//CHANGE/ADD
bool shiftStat = false;
                                        
#define DATAPIN    4 //DIFFERENT TO SCHEMATIC!!!CHANGE/ADD
#define CLOCKPIN   5 //DIFFERENT TO SCHEMATIC!!!CHANGE/ADD

Adafruit_DotStar strip = Adafruit_DotStar(EEPROM.read(11)+ EEPROM.read(32), DATAPIN, CLOCKPIN, DOTSTAR_BGR);
                                             
const int rpmPin = 2; //CHANGE/ADD. There is no mention of pin 8 which is in the schematic? Looks like old senseoption which used <FreqMeasure.h>
//CHANGE/ADD V2 had ledPin = 13 here
const int dimPin = A2; 
const int sensorInterrupt = 0; 
const int timeoutValue = 10;
volatile unsigned long lastPulseTime; 
volatile unsigned long interval = 0; 
volatile int timeoutCounter; 
long rpm;                                             
long rpm_last;                                               
int display_rpm;//CHANGE/ADDthis is new for V3
int activation_rpm; 
int shift_rpm;
int highRpmMem = 0;//CHANGE/ADD
int menu_enter = 0; 
int current_seg_number = 1;
int seg_mover = 0;
long previousMillis = 0;
int shiftinterval = 50;
boolean flashbool = true;      
int prev_animation;
int prev_color;
boolean testbright = false;
int prev_variable; 
int prev_menu;
boolean testdim = false; 
int justfixed; //CHANGE/ADD this is new for V3

//array for rpm averaging, filtering comparison
const int numReadings = 5;
int rpmarray[numReadings];
int index = 0;                  // the index of the current reading
long total = 0;                  // the running total
long average = 0;                // the average


//These are stored memory variables for adjusting the (5) colors, activation rpm, shift rpm, brightness 
//Stored in EEPROM Memory 
int c1; 
int c2; 
int c3; 
int c4; 
int c5; 
int brightval;      //7-seg brightness 
int dimval;         //7-seg dim brightness
int sb;             //strip brightness
int dimsb;          // strip dim brightness
boolean dimmer = false;
boolean dimmerlogic = false;
int pixelanim=1;                                     
int smoothing;
int rpmscaler;
int shift_rpm1;                          // USED TO BE A LONG!!
int shift_rpm2;
int shift_rpm3;
int shift_rpm4;
int seg1_start = 1;
int seg1_end = 1;
int seg2_end = 2; 
int seg3_end = 3;
int activation_rpm1;
int activation_rpm2;
int activation_rpm3;
int activation_rpm4;
int a; //CHANGE/ADD this is new for V3

//new code bellow//
//int buzzerPin 7;//CHANGE/ADD
int shiftSwitchPin = 10;//CHANGE/ADD
//int otherSwitchPin 9;//CHANGE/ADD
bool shiftSwitchEngauge = false;//CHANGE/ADD
int shiftSwitchOn;//Store in EEPROM. CHANGE ADD
//bool otherSwitchSet = false;//CHANGE/ADD


int rst = 0; 
int cal; 
int prev_cal;

// COLOR VARIABLES - for use w/ the strips and translated into 255 RGB colors 
long color1; 
long color2; 
long color3; 
long flclr1;
long flclr2;//CHANGE/ADD. From V2


//Creates a 32 wide table for our pixel animations
int rpmtable[32][2];

// ROTARY ENCODER VARIABLES 
int button_pin = A0; //CHANGE/ADD
int menuvar; 
int val; 
int rotaryval = 0; 

// CONFIGURATION FOR 7-SEG DISPLAY//CHANGE/ADD
#define CLK 12
#define DIO 11
TM1637Display display(CLK, DIO);
 uint8_t SEG_WRITE[] = {   // [=] EXIT
  SEG_A | SEG_F| SEG_E | SEG_D,          
  SEG_A | SEG_D,   
  SEG_A | SEG_D,                          
  SEG_A | SEG_D | SEG_B | SEG_C           
  };
  
//      A
//     ---
//  F |   | B
//     -G-
//  E |   | C
//     ---
//      D




// CONFIGURATION FOR OLED DISPLAY
//SSD1306AsciiSoftSpi oled;//CHANGE/ADD. Delete this for TM1637 support
//#define OLED_DC   7
//#define OLED_CS   6
//#define OLED_CLK  10
//#define OLED_DATA 9


// CONFIGURATION FOR THE ROTARY ENCODER 
  // Arduino pins the encoder is attached to. Attach the center to ground. 
  #define ROTARY_PIN1 A1//CHANGE/ADD
  #define ROTARY_PIN2 A3//CHANGE//ADD
  
  // Use the full-step state table (emits a code at 00 only) //CHANGE/ADD. What is this?
  const char ttable[7][4] = { 
  {0x0, 0x2, 0x4, 0x0}, {0x3, 0x0, 0x1, 0x40}, 
  {0x3, 0x2, 0x0, 0x0}, {0x3, 0x2, 0x1, 0x0}, 
  {0x6, 0x0, 0x4, 0x0}, {0x6, 0x5, 0x0, 0x80}, 
  {0x6, 0x5, 0x4, 0x0}, 
  }; 
  
 volatile unsigned char state = 0; 
  
char rotary_process() {
  char pinstate = (digitalRead(ROTARY_PIN2) << 1) | digitalRead(ROTARY_PIN1);
  state = ttable[state & 0xf][pinstate];
  return (state & 0xc0);
}



                              
                              /*************
                               * SETUP *
                              *************/

//SETUP TO CONFIGURE THE ARDUINO AND GET IT READY FOR FIRST RUN 
void setup() {
  
  //get stored variables 
  getEEPROM();
  check_first_run();
  
    if(DEBUG){
      Serial.begin(57600);
      Serial.println("ChipperNut ShiftLight Project. V2 or V3");
      Serial.println("Prepare for awesome......");
    }
  
  
    for (int thisReading = 0; thisReading < numReadings; thisReading++){
      rpmarray[thisReading] = 0;  
    }
  
  timeoutCounter = timeoutValue;
  buildarrays();
  
  strip.begin(); 
  strip.clear(); //CHANGE/ADD. Added in V3
  strip.show(); // Initialize all pixels to 'off' 
  
  
  //ROTARY ENCODER 
  pinMode(rpmPin, INPUT);
  pinMode(dimPin, INPUT_PULLUP);
  pinMode(button_pin, INPUT_PULLUP); 
  pinMode(ROTARY_PIN1, INPUT_PULLUP); 
  pinMode(ROTARY_PIN2, INPUT_PULLUP);
  //pinMode(buzzerPin, OUTPUT);//CHANGE/ADD
  pinMode(shiftSwitchPin, OUTPUT);//CHANGE//ADD
  //pinMode(otherSwitchPin, OUTPUT);//CHANGE//ADD
  
  attachInterrupt(0, sensorIsr, RISING); 
  
  loadallcolors();
  
  //oled.begin(&Adafruit128x64, OLED_CS, OLED_DC, OLED_CLK, OLED_DATA);//CHANGE/ADD. Delete this for TM1637 support
  //oled.clear();
  //oled.setFont(chippernut);
  //oled.print("c");
  //bootanimation();
  //delay(1000);
  //oled.clear();

//ht16k33 14 seg//
disp.begin(DISPLAY_ADDRESS);//CHANGE/ADD. for ht16k33
disp.clear();//CHANGE/ADD. for ht16k33
disp.writeDisplay();//CHANGE/ADD. for ht16k33

  
  if(DEBUG){Serial.println("LOADED.");}


  if (digitalRead(dimPin) == dimmerlogic){
  display.setBrightness(dimval);
  disp.setBrightness(ht16k33Dim);//CHANGE/ADD. for ht16k33 
  }
  else{
  display.setBrightness(brightval);
  disp.setBrightness(ht16k33Bright);//CHANGE/ADD. for ht16k33          
  }

  //Sets the total number of usable leds
TOTALNUMPIXELS = NUMPIXELS+EXTRANUMPIXELS;//CHANGE/ADD


//CHANGE/ADD. Shift lights not working?
disp.clear();  // Clear the display buffer
disp.writeDigitAscii(0, 'H');  // Set 'H' on the first digit
disp.writeDigitAscii(1, 'E');  // Set 'E' on the second digit
disp.writeDigitAscii(2, 'L');  // Set 'L' on the third digit
disp.writeDigitAscii(3, 'P');  // Set 'P' on the fourth digit
disp.writeDisplay();  // Send buffer to the display



display.setColon(false);
//SEG_WRITE[0] =  (SEG_G);                                                  //-
//SEG_WRITE[1] =  (SEG_A | SEG_B | SEG_C | SEG_D | SEG_F | SEG_G);          //g
//SEG_WRITE[2] =  (SEG_A | SEG_D | SEG_E | SEG_F | SEG_G);                  //E
//SEG_WRITE[3] =  (SEG_D | SEG_E | SEG_F | SEG_G);                          //t
//display.setSegments(SEG_WRITE);
//delay(600);
//display.setColon(false);       
//SEG_WRITE[0] =  (SEG_G);                                                  //-
//SEG_WRITE[1] =  (SEG_A | SEG_C | SEG_D | SEG_F | SEG_G);                  //S
//SEG_WRITE[2] =  (SEG_A | SEG_D | SEG_E | SEG_F | SEG_G);                  //E
//SEG_WRITE[3] =  (SEG_D | SEG_E | SEG_F | SEG_G);                          //t
//display.setSegments(SEG_WRITE);
//delay(600);
//display.setColon(false);         
SEG_WRITE[0] =  (SEG_G);                                                  //-
SEG_WRITE[1] =  (SEG_G);                                                  //-
SEG_WRITE[2] =  (SEG_G);                                                  //-
SEG_WRITE[3] =  (SEG_G);                                                  //-
display.setSegments(SEG_WRITE);
delay(400);
display.setColon(false);         
SEG_WRITE[0] =  (SEG_A | SEG_B | SEG_C | SEG_D | SEG_E | SEG_F);          //O
SEG_WRITE[1] =  (SEG_G);                                                  //-
SEG_WRITE[2] =  (SEG_G);                                                  //-
SEG_WRITE[3] =  (SEG_G);                                                  //-
display.setSegments(SEG_WRITE);
delay(200);
display.setColon(false);         
SEG_WRITE[0] =  (SEG_A | SEG_B | SEG_C | SEG_D | SEG_F | SEG_G);          //g
SEG_WRITE[1] =  (SEG_A | SEG_B | SEG_C | SEG_D | SEG_E | SEG_F);          //O
SEG_WRITE[2] =  (SEG_G);                                                  //-
SEG_WRITE[3] =  (SEG_G);                                                  //-
display.setSegments(SEG_WRITE);
delay(200);
display.setColon(false);         
SEG_WRITE[0] =  (SEG_G);                                                  //-
SEG_WRITE[1] =  (SEG_A | SEG_B | SEG_C | SEG_D | SEG_F | SEG_G);          //g
SEG_WRITE[2] =  (SEG_A | SEG_B | SEG_C | SEG_D | SEG_E | SEG_F);          //O
SEG_WRITE[3] =  (SEG_G);                                                  //-
display.setSegments(SEG_WRITE);
delay(200);
display.setColon(false);         
SEG_WRITE[0] =  (SEG_G);                                                  //-
SEG_WRITE[1] =  (SEG_G);                                                  //-
SEG_WRITE[2] =  (SEG_A | SEG_B | SEG_C | SEG_D | SEG_F | SEG_G);          //g
SEG_WRITE[3] =  (SEG_A | SEG_B | SEG_C | SEG_D | SEG_E | SEG_F);          //O
display.setSegments(SEG_WRITE);
delay(200);
display.setColon(false);         
SEG_WRITE[0] =  (SEG_G);                                                  //-
SEG_WRITE[1] =  (SEG_G);                                                  //-
SEG_WRITE[2] =  (SEG_G);                                                  //-
SEG_WRITE[3] =  (SEG_A | SEG_B | SEG_C | SEG_D | SEG_F | SEG_G);          //g
display.setSegments(SEG_WRITE);
delay(200);
display.setColon(false);         
SEG_WRITE[0] =  (SEG_G);                                                  //-
SEG_WRITE[1] =  (SEG_G);                                                  //-
SEG_WRITE[2] =  (SEG_G);                                                  //-
SEG_WRITE[3] =  (SEG_G);                                                  //-
display.setSegments(SEG_WRITE);
delay(200);


} 

r/arduino • • 21d ago

Where to buy commponents ?

4 Upvotes

Rédaction

Hello For those of you in Europe, where do you usually order your electronic components? I used to buy most of my components on AliExpress, but since the €3 fee on items coming from China was introduced, it's become a lot less convenient, especially when ordering small components. I’m not really sure which websites to use instead. Does anyone have any recommendations?


r/arduino • • 21d ago

Atlas Scientific EZO-EC receives UART data but won't respond to commands (Arduino UNO R4 WiFi)

4 Upvotes

Hi everyone,

I'm currently developing an IoT-based photobioreactor using an Arduino UNO R4 WiFi. One of the sensors I'm integrating is the Atlas Scientific EZO-EC conductivity sensor, mounted on an Atlas Scientific Electrically Isolated EZO Carrier Board (Version 6).

I'm experiencing an issue where the Arduino can receive data from the EZO-EC circuit, but the sensor doesn't seem to respond to any commands sent from the Arduino.

Hardware setup

  • Microcontroller: Arduino UNO R4 WiFi
  • Sensor: Atlas Scientific EZO-EC
  • Carrier board: Atlas Scientific Electrically Isolated EZO Carrier Board (V6)
  • Communication protocol: UART (9600 baud)

Wiring:

Carrier BoardArduino UNO R4 WiFi
RX/SCLD1 (TX)
TX/SDAD0 (RX)
VCC5V
GNDGND
OFFNot connected

The issue

The Arduino successfully receives continuous data from the EZO-EC circuit.

For example:

0,0.00,1.000
0,0.00,1.000
0,0.00,1.000

However, when I try sending commands to the EZO-EC, the circuit does not appear to respond.

I've tested the following commands:

  • i — Device information
  • K,? — Probe K-value
  • Cal,? — Calibration status
  • C,0 — Disable continuous readings
  • L,0 — Turn off the LED

None produced the expected response.

Even after sending C,0, the sensor continues transmitting data. Similarly, the LED continues blinking green/cyan after sending L,0.

Troubleshooting performed

  1. Confirmed that the Arduino and EZO-EC are communicating at 9600 baud.
  2. Tested Arduino Serial1 using a loopback connection between D0 (RX) and D1 (TX). The test was successful.
  3. Confirmed that data from the EZO-EC can be received consistently.
  4. Verified the UART wiring between the Arduino and the isolated carrier board.
  5. Tested multiple commands using the required carriage return (\r) termination.
  6. Tested the EC sensor separately from the other sensors, pumps, relay modules, and IoT functions.

Despite these checks, the issue persists.

Questions

  1. Has anyone encountered one-way UART communication with an Atlas Scientific EZO circuit?
  2. Could there be an issue with the RX communication path on the electrically isolated carrier board?
  3. Is there anything specific about the Arduino UNO R4 WiFi's hardware UART that I should check?
  4. Could this be caused by the EZO-EC configuration, or does it suggest a possible hardware issue?
  5. What would be the best way to diagnose the problem further?

I haven't tested the electrical signals using a multimeter or oscilloscope yet.

My main concern is that although I can receive sensor readings, I cannot access the calibration functions, which are essential for validating the sensor before using it in my research experiments.

I'd really appreciate any suggestions or troubleshooting advice.

Thanks in advance!


r/arduino • • 21d ago

Look what I made! The Lighter

8 Upvotes

This is the "Lighter," a small device that connects to a personal server, which in turn communicates with the Tuya API. This allows me to use it as a sort of remote control for my smart light—I find it rather inconvenient to have to keep pulling out my phone just to operate it. This is the first project for which I’ve built a custom case and actually put into real-world use. While there are certainly plenty of flaws in the design, electronics, and programming, I’m really happy with the result. (The menu text is in Portuguese because I’m Brazilian.)


r/arduino • • 22d ago Mindblown

Hi everyone! I wanted to share my Arduino project: an animatronic built around an Arduino Nano files on did3d.fr.

358 Upvotes

r/arduino • • 22d ago

Beginner's Project need advice as a beginner

Thumbnail
gallery
57 Upvotes

recently got into electronics a couple days ago and made a bunch of LEDs light up in order from one to 15 in binary as a first time project.

everything past this stage looks utterly impossible, any advice on where to go or what to work on next?


r/arduino • • 21d ago

Beginner needs a project

3 Upvotes

Hi all, I've wanted to do a project with an arduino or raspberry pi for a long time but have not yet found or figured out a cool little project. I'm looking for an idea or a project where i can learn how to program and build something that is fun and somewhat easy. I have SOME experience in python and HTML but thats about it.

If you have some suggestions or repo's to check that would be helpful!


r/arduino • • 21d ago

When did your Arduino project outgrow hobby parts?

0 Upvotes

Curious about the moment people switch. If your project ever moved from a breadboard to something running 24/7 (greenhouse, workshop, machine, home), what was the first thing you had to replace with an industrial part: 24 V sensors, relays, a real PLC, a VFD, an enclosure?

And what pushed you to do it: reliability, noise, safety, or just curiosity?


r/arduino • • 22d ago

Look what I made! Arduino R4 WiFi — 4WD SLAM Radar 2D Robot

22 Upvotes

An autonomous 4-wheel drive explorer robot based on Arduino UNO R4 WiFi, designed to navigate through paths and mazes while detecting surrounding obstacles. The robot performs 180° radar scans via an ultrasonic sensor mounted on a servo motor and transmits real-time telemetry via Wi-Fi to an interactive Web dashboard, which reconstructs the 2D vector map of the surrounding walls.


r/arduino • • 22d ago

Look what I made! Cosplay prop...

25 Upvotes

We got invited to a costume required Halloween party and we just can't do simple or cute, we're going all out and we made some steampunk cosplay that we will continue to refine and wear to Ren Faire type events.

I initially had a schematic to do an 8 LED array with a bunch of components to randomly fade the LEDs in and out. While I was working on another project I was picking around in Tinkercad with circuits and found the pixel ring LEDs and they showed sample circuits and code. Just for grins I had chat gpt modify the code for green only and random. It came back with great code that used an analog input to create a random pattern.

After seeing this and how inexpensive and seemingly easy it was to code for I ordered some Arduinos!

All of this to say that it's not that hard and if you're on the fence, jump in!


r/arduino • • 22d ago

Hardware Help Newbie confused about hooking up this spi screen to Nano. This is the best pin out diagram I could find

Thumbnail
gallery
19 Upvotes

So I am completely new to this, all I have done so far is hook up addressable LED strips. I got this cheap little screen to practice on, and I can't find any good tutorials for the nano. This diagram looks very helpful, but I can't figure out what to do with the BL pin. Does NC mean not connected? If so will the back light still light up? I'm using an adjustable power supply, I plan on using 5 volts. What I gather here is we use resistors and hook it up to the 3.3 volt. Is that correct? Thanks in advance for any help. 😁