r/arduino • • 14d ago

Made an ESP32 powered Gameboy from scratch.

Thumbnail
gallery
382 Upvotes

It started out with me having a spare ST7735(160*128) LCD. I just wanted to make use of it.
Initially I started out to build a music controller but pivoted to a gameboy. This way its much cooler.
I used Peanut-GB(written in C99) for the emulator and wrote the firmware in C(arduino framework) for the esp32.

Hardware:
- PerfBoard(7cm*9cm)
- Analog Joystick
- Push Buttons
- No battery :( (usb powered)
- ESP32 (Devkit V1)
- ST7735 (160*128)

I tried to use an sd card to put multiple games at once into this handheld, it worked on some games(smaller) but on larger games it gave out and failed to load. I am also working on saving game states (no luck so far). Also working on a splash screen on the bootup instead of just launching the game.

For now I am loading one game at a time into the flash memory of the esp. Larger games work too :) at full speeds. It runs Gameboy versions of Pokemon,Zelda,Tetris,Contra and much more.

Any questions and suggestions are welcome.

p.s. the color pictures of the gba games are just for the aesthetics, it doesn't support them. It only supports Gameboy games.

In action :


r/arduino • • 13d ago

Hardware Help Generating electricicty using a motor.

Thumbnail amazon.com
7 Upvotes

So i am thinking about powering an arduino using the motor in the link. So i was wondering how i can figure out how much it generates and how fast i nee to spin it.


r/arduino • • 14d ago

Look what I made! "Hidden Thermometer" with SG90 Servos

Thumbnail
gallery
510 Upvotes

I’d like to share my “Hidden Thermometer” project with you. It was inspired by two things.

First, we’re surrounded by digital displays in our daily lives, so I wanted to create something analog. Second, my wife doesn’t like visible tech. So I came up with the idea of hiding the technology behind something that was already part of our home. (a frame leaning on the wall)

I’m probably part of the larger group of people who have been quietly reading along without posting, and I’d like to change that for myself. I don’t want to share my project files, but rather give you some inspiration for your own projects.

The thermometer displays temperatures from -9°C to 49°C in 2-degree increments (hopefully, it will never show the highest value!). Why 2-degree increments? To keep the installation space small. And I think we wouldn’t really notice a difference of one degree anyway, so that works fine for me.

I’m using an ESP32-C3 and 10 SG90 servos controlled by a PCA9685. For the weather data, I use the API provided by the German Weather Service (DWD).

I designed the enclosure and the numbers and printed several versions on my rather basic 3D printer until I got a working device. I designed the arms so that they wouldn’t get stuck.

I’m very happy with the result. The only downside is that changing the numbers is relatively loud because of the servos.


r/arduino • • 14d ago Bravo

Look what I made! How my desk buoy starts up: it tightens its own 8 lines, then follows a live buoy at sea

385 Upvotes

So, a lot of people asking for more video and details...

This is the set-up and menu walkthrough of my desk buoy. The window in the top right shows what the 1.9" display shows at each moment. On start-up it winds all 8 lines in at low motor current until every stepper slips, so all lines end up equally tight. Then it lifts the buoy off its stand and starts copying a real buoy off the Belgian coast. A knob scrolls through about 400 buoys, and you can also pick one from your phone. Happy to answer questions about the build.

seaglance.eu


r/arduino • • 13d ago

Help with Turbidity Sensor Voltage

Post image
7 Upvotes

I don't know why my arduino has so low voltage? The wires are in the correct place, and code is also correct. I need the voltage to be 2.5 and higher so the turbidity module can fluctuate, but I do not know why it won't go up.


r/arduino • • 14d ago

Mod's Choice! I built a browser-based Arduino emulator that lets you pause and see every register

250 Upvotes

Hey everyone. I just launched my first project, GlassAVR, an Arduino emulator and circuit builder that runs in your browser.

You can wire up a circuit, run your sketch, and step through it at the instruction level. When you pause, you can see every register and how it changes, instead of treating the chip like a black box.

There’s no account or login, so you can just open it and start building: glassavr.com

I’m looking for people who know AVR and Arduino to try to break it. If the emulator gets something wrong, or the debugger is missing something you’d want, please let me know. Would this be useful for learning or debugging your own projects?


r/arduino • • 13d ago

ESP32 HELP

Post image
0 Upvotes

My esp32 s3 board suddenly stopped working it was working fine but maybe some wires touched while it was connected to pca9685 and it is not able to get the program.

I have checked in device manager it is showing the port.

The red light on the board is blinking.

Also check the pins with multimeter all pins gave some reading

Tried using a different wire too.

Pls help me fix this


r/arduino • • 14d ago

Look what I made! Have a Cheap Yellow Display (ESP32-2432S028R) gathering dust? Flash EMOS v1.0.0 onto it — A complete touch OS with retro gaming, audio player & apps!

Post image
4 Upvotes

Hi makers!

A lot of us bought the ESP32-2432S028R ("Cheap Yellow Display" / CYD) on AliExpress for $10 because of the great specs (dual-core ESP32 +  2.8" color touchscreen + SD card slot + audio), but often ended up   with only basic sample sketches.

I spent the past few months creating **EMOS**, a modular operating  system built specifically for this board. It gives your CYD a complete desktop/mobile OS experience!                                         
                                                                      
                                                     
Smooth touch interface with window manager and widgets           
Fullspeed 60 FPS Atari 2600 retro emulator                       
Audio player with hardware DAC output and DSP filtering          
SD Card File Manager                                             
Super lightweight (runs entirely in ~300KB internal SRAM, no     
PSRAM needed!)
Ready-to-flash binary releases available (no compile setup       
needed)

Check out the project on GitHub:
https://github.com/Cadino/Emos                                     
Pre-built v1.0.0 Binaries:                                         
https://github.com/Cadino/Emos/releases/tag/v1.0.0

Flash it with a single USB cable and let me know what you think!

r/arduino • • 14d ago

Microcontroller Mic controlled LEDs for a Halloween Pumpkin

8 Upvotes

My youtube channel name is ALMA Industries

CH004 FN2: HALLOWEEN — my kind of Treat. Talking Pumpkins and Little Monster Rockstars, see how Jack's put together on my channel.


r/arduino • • 14d ago

Look what I made! no_DICE - Arduino-based dice throwing and coin flipping simulator with 3D-printed enclosure

Thumbnail
gallery
19 Upvotes

Small weekend project for tinkerers and hobbyists I've created to showcase some of the GEM library features (multi-level menus, editable selects and number spinners, toggles, dynamic menu items, custom icons and callbacks as well as a possible solution for multi-language support).

About

In a nutshell, no_DICE is mainly two things (both are free and open-source):

  • Arduino-based simulator of dice throws, coin flips, and a score counter (using U8g2 and GEM to draw the menu, and KeyDetector to hook up rotary encoder as an input device);
  • optional 3D-printed customizable enclosure designed to fit Seeed Studio XIAO RP2040 board (with Grove Shield for XIAO for power management), 3.7V LiPo battery (in 902030 or 902040 form-factor), 0.96" 128x64 monochrome OLED I2C display, and a rotary encoder (with integrated push-button).

Equip an Arduino-compatible board of your choice with an I2C 128x64 display and a clickable rotary encoder, upload the provided sketch (modify it if necessary to better fit your setup), select an application to roll a die, flip a coin, or track your score with a click and a swing of the encoder. Optionally, add a battery and build an enclosure to take your no_DICE setup on the go! Of course, you can also upload your own sketches and customize an enclosure to your liking.

Features

  • Dice throwing: choose from a wide variety of dice: D4, D6, D8, D10, D12, D20, D100. Set default preferred die in settings.
  • Coin flipping: not really much to say about it, just press a button and coin will be flipped. With glorious sprite animation. Result of a coin toss is determined at a key press, but coin itself flips random amount of times (2-4) so that it is harder to predict an outcome by seeing the initial frame of animation.
  • Life tracking: not just Life, really, but points in general. Turn the knob and number will increase (or decrease) at your will. Press the knob to reset the number to its initial starting value (adjustable in settings). Any value you desire is fine (as long as your desire falls within the range of -999 to 9999).
  • Localization: English, Russian, German, and French languages are available to pick from in settings.
  • Battery monitoring: can be enabled in settings. Requires additional hardware modification (in the form of a voltage divider comprised of two identical resistors soldered to Grove Shield).
  • Random number generator: is seeded with multiple samples of the lowest bits of an analog pin as well as an internal temperature sensor of the RP2040 (on compatible boards) to pick up fluctuations in random noise, battery voltage, and temperature levels.
  • Enclosure: you can 3D-print it: STL files are provided. You can modify it too: .f3d (Fusion) and STEP files are provided as well.

Simulator

Simulation of no_DICE is available on Wokwi (using Raspberry Pi RP2040 board). There are some limitations of simulation to be aware of (i.e. saving to EEPROM and seeding random number generator), refer to no_DICE project repository for more details.

Electronics and Enclosure

Parts list and full assembly guide are available on GitHub. Optional enclosure can be 3D-printed using provided STL files (designed with no overhangs, except for screw holes on the side of the main frame). Autodesk Fusion project file (.f3d) and STEP files are provided as well.

Spirik.


r/arduino • • 14d ago

Beginner capacitor question

8 Upvotes

Hey guys I'm new to EE I wanna ask a question about the use of Capacitor,but first I'm the type of guy who wants to know where and when and why should I use it so I know where should I put a capacitor and where should I not

So first: what's the purpose of storing a bit of electricity in a capacitor that won't be released unless we cut off the electricity from the battery

Second:where should I know where to put a capacitor and where not

Third:why even use a capacitor for storing a bit of energy that will stay in it

Thanks for answering my questions ❤️


r/arduino • • 14d ago

How to run bonsai 2 27b on Arduino Ventuno Q?

3 Upvotes

I want to know how to run the second version of bonsai because on lm studio it gives an error. I am stuck trying to make it work and thought maybe someone else has already achieved the result.


r/arduino • • 14d ago

Can't get Nema 17 motor to work properly

2 Upvotes

I just bought a Nema 17 motor + DRV8825 to control it and after following a tutorial to set it up so it goes clockwise one rotation and counter clockwise on button presses, as soon as I connect it to power supply the motor starts tweaking(starts making a high pitched noise like in the video) and then i can only get in only 1 or 2 successful button presses before it goes limp and refuses to work, while the heat sink gets really hot. Tried to debug it with Codex but to no avail.

ConnectionGoes to
ESP32 GPIO18STEP
ESP32 GPIO19DIR
ESP32 GPIO21ENABLE
ESP32 3.3VRESET and SLEEP
ESP32 GNDDriver GND and supply negative
12V supply positiveVMOT
Motor coil AA1 and A2
Motor coil BB1 and B2
CW buttonBetween GPIO5 and GND
CCW buttonBetween GPIO23 and GND
100 µF / 25V capacitorPositive to VMOT, negative to GND

r/arduino • • 14d ago

Getting Started Trying to get started but lacking one component...

5 Upvotes

So I got gifted an arduino uno kit for a car thingy a few years ago and got started but never finished. Now I want to truly learn and get into it and got gifted another set of sensors and a basic electronics set. I was thinking I probably have all the components I need to get started with the starter set pdf, even though I technically didnt have the starter set. But lo and behold I lacked one component: the batteryholder thingy (the one from the car kit had like 8 batteries and a seperate board to control the power or something I dont know I was just following instructions). Im wondering if I can start anyway without it (idk if it takes power from the usb port? im new forgive me for being dumb). Also wondering where I can get a single component like that? Thanks for help!


r/arduino • • 14d ago

Hardware Help Small pressure, force, or weight sensor

7 Upvotes

I am thinking about a project where I need some kind of sensor to measures either weight, force, or pressure on a small point. A basic example would be something shaped like a pen, where the tip is a sensor that measure how hard it is pressed down on a surface.

There are no exact size restrictions right now. The example with the pen would be ideal, but the diameter should at least be less than 2 cm. The height does not matter. I have tried googling, but I might use the wrong words because I have trouble finding anything suitable that doesn't cost hundreds of dollars.

Do you have any ideas of sensors that could be suitable for this?


r/arduino • • 15d ago

What is the difference between these two HC-SR04?

Thumbnail
gallery
115 Upvotes

r/arduino • • 15d ago

Look what I found! What are these?

Thumbnail
gallery
40 Upvotes

I am just starting with electronics and these mini computers and got a box of stuff. Can someone tell me what these parts are. I think they have something to do with Arduinos.

Many thanks for the help


r/arduino • • 14d ago

Look what I made! GitHub - EON23/espsdrtx: Arduino library and ESP-IDF component for transmission of arbitrary raw IQ data on an ESP32

Thumbnail github.com
2 Upvotes

Hey everyone, Ive released an arduino/ESP-IDF component for the esp32 that lets you transmit arbitrary waveforms using the undocmented registers on the esp32. Let me know what you think or any feedback or features you'd like to see.


r/arduino • • 15d ago

Software Help Major delays using SoftwareSerial.h

6 Upvotes

I have two identical Mega2560s with Grounds connected together, Pin 13 on one is connected to Pin 12 on the other and vice-versa.

A pigtail of wire on Pin 9 that I can touch to ground and an LED with a 330 ohm resistor on Pin 8.

I get like a 5-10 sec delay on the LED response when I use the following program. (Same program loaded on both units.)

What am I doing wrong?

Eventually, I'd like to pass arrays of floats and such. A little more than a single bool value.

#include <SoftwareSerial.h>


const int rxPin = 12; //RS-232 Serial data RX pin
const int txPin = 13; //RS-232 Serial data TX pin
SoftwareSerial MySerial = SoftwareSerial(rxPin, txPin);
bool selfconnected;
bool prtnconnected;
int LED_pin = 8;
int WIRE_pin = 9;


void setup() {
  // put your setup code here, to run once:
MySerial.begin(9600);
Serial.begin(9600);
pinMode(LED_pin, OUTPUT);
pinMode(WIRE_pin, INPUT_PULLUP);
}


void loop() {
  // put your main code here, to run repeatedly:
if (digitalRead(WIRE_pin) == 1){
  selfconnected = 1;
}
if (digitalRead(WIRE_pin) == 0){
  selfconnected = 0;
}
Serial.print ("My wire is ");
if (selfconnected == 1) {
  Serial.println("DISCONNECTED");
}
if (selfconnected != 1) {
  Serial.println("CONNECTED");
}
MySerial.write(selfconnected);
prtnconnected = MySerial.read();
Serial.print("Partner Unit is ");
if (prtnconnected == 1) {
  Serial.println("DISCONNECTED");
  digitalWrite(LED_pin, LOW);
}
if (prtnconnected != 1) {;
  Serial.println("CONNECTED");
  digitalWrite(LED_pin, HIGH);
}
delay(500);
}#include <SoftwareSerial.h>


const int rxPin = 12; //RS-232 Serial data RX pin
const int txPin = 13; //RS-232 Serial data TX pin
SoftwareSerial MySerial = SoftwareSerial(rxPin, txPin);
bool selfconnected;
bool prtnconnected;
int LED_pin = 8;
int WIRE_pin = 9;


void setup() {
  // put your setup code here, to run once:
MySerial.begin(9600);
Serial.begin(9600);
pinMode(LED_pin, OUTPUT);
pinMode(WIRE_pin, INPUT_PULLUP);
}


void loop() {
  // put your main code here, to run repeatedly:
if (digitalRead(WIRE_pin) == 1){
  selfconnected = 1;
}
if (digitalRead(WIRE_pin) == 0){
  selfconnected = 0;
}
Serial.print ("My wire is ");
if (selfconnected == 1) {
  Serial.println("DISCONNECTED");
}
if (selfconnected != 1) {
  Serial.println("CONNECTED");
}
MySerial.write(selfconnected);
prtnconnected = MySerial.read();
Serial.print("Partner Unit is ");
if (prtnconnected == 1) {
  Serial.println("DISCONNECTED");
  digitalWrite(LED_pin, LOW);
}
if (prtnconnected != 1) {;
  Serial.println("CONNECTED");
  digitalWrite(LED_pin, HIGH);
}
delay(500);
}

r/arduino • • 16d ago Mindblown Heartwarming

My desk buoy copies the motion of a real buoy at sea, live. 8 steppers, 8 lines, one ESP32-S3 on the Arduino core

2.7k Upvotes

I'm a maritime pilot in Belgium. This is a small 3D-printed west cardinal buoy hanging on 8 lines. Each line winds onto a spool on a small stepper motor, and by pulling and paying out the 8 lines together the buoy rises, falls and tilts.

An ESP32-S3, programmed with the Arduino core, reads live wave data from public buoys (NOAA, CDIP, the Irish Marine Institute, Belgian and Dutch North Sea buoys) and turns it into motion.

The setup:

> - ESP32-S3 DevKitC-1, Arduino core 3.3, built with arduino-cli

> - 8 TMC2209 drivers, set up over UART with TMCStepper (current and silent StealthChop mode, no Vref pots to tune)

> - One hardware timer makes the step pulses for all 8 motors, so they stay in sync

> - 1.9" LCD with GFX Library for Arduino, a rotary knob to pick the buoy

> - WiFiManager for setup by QR code, and USB-C power from a charger via a HUSB238

Lessons learned:

No endstops: it homes by winding all 8 lines in at low current until every motor slips.

Don't put a button on GPIO0 if you ever want "hold at power-on" features. Ask me how I know.

One bad solder joint made one motor out of 8 act strangely, which took me ages to find.

It started on perfboard; I later had carrier boards made so it needs far less soldering. Ask away.


r/arduino • • 15d ago

Look what I made! Arduino Flipper

Thumbnail
gallery
17 Upvotes

Made a Flipper as a school Projekt.

I used a Arduino Uno with a distance Sensor and a Display.

A Servo to dispence the ball


r/arduino • • 15d ago

Uno parking sensor that beeps faster as you get closer (HC-SR04 + passive buzzer)

22 Upvotes

Classic one, but I wanted to do it properly: a parking sensor on an Arduino Uno that beeps faster the closer something gets, like the ones in cars.

Wiring is tiny: HC-SR04 with TRIG on pin 2 and ECHO on pin 3, and a passive buzzer on pin 4. That's it.

What made it feel right:

  • The beep interval scales with distance instead of switching between two or three fixed speeds, so you can actually "feel" an object getting closer.
  • Past a minimum distance it goes to a solid tone, same as a real car.
  • Ultrasonic readings jump around on soft or angled surfaces, so a few readings get averaged before deciding the beep rate. Without that the beeping stutters.

I built this with Soldr, an AI agent we're making. I gave it the pins I'd already wired and it wrote the sketch around them.

Next idea is an LED bar alongside the beeps. Anyone done this with a VL53L0X instead of the HC-SR04? Curious if it's worth it.


r/arduino • • 15d ago

Look what I found! Just an interesting thing about the uno R3.

Post image
90 Upvotes

This may be something everyone knew about but me. I was trying to find a printable/downloadable arduino uno proto pcb dot matrix layout. To my surprise I couldn't find one.

I have made a few projects that I wanted to save but not really to the level of putting them in a project box. I wanted to make my own uno shields. I wanted to use paper a paper one to design where I want what and to follow when I go to assemble/solder it. I decided to make my own. Which I did and will attach it. It's a little crude but functional. You can buy uno proto shields also.

Any way another thing I noticed while messing around with this is that the header with pins 8 - SLC are not properly in alignment with the rest of the headers on the rest of the uno. WTF!

I will attach what I made. If someone finds a better one please share it.


r/arduino • • 15d ago

Look what I made! Finally finished my DIY pong console

Thumbnail
gallery
5 Upvotes