Arduino

r/arduino649.4K subscribers122 active
Monthly digest for 2024-04 :ArduinoUno: Monthly Digest :ArduinoUno:
Subreddit Insights

Following is a snapshot of posts and comments for r/Arduino during the month of November:

TypeApprovedRemoved
Posts1,3001,000
Comments10,200581

During the month of April we had approximately 1.5 million "views" from 19.5 thousand "unique users".

NB: the above numbers are approximate as reported by reddit when this digest was created and do not seem to account for people who deleted their own posts/comments.

Arduino Wiki and Other Resources

Don't forget to check out our wiki for up to date guides, FAQ, milestones, glossary and more.

You can find our wiki at the top of the r/Arduino posts feed and in our "tools/reference" sidebar panel. The sidebar also has a selection of links to additional useful information and tools.

Moderator's Choices
Top Posts
Look what I made posts
TitleAuthorScoreComments
First Uno killu/Mr-Zaxi046971
My New Teabag dispenseru/fire-marshmallow34832
A pet feeder that teaches your cat to p...u/Healthy_One298233048
I turned a shop vac into a giant Roombau/Bobthedude5624233
Early stages of my first projectu/R2RTheReal21178
I believe that it is possible to build ...u/0015dev19326
Stellar Proximity Detectoru/okuboheavyindustries14529
Guys, it's finally workingu/Sgt_Paul_Jackson13816
happyu/yariyaribro13417
I made a prototype of Wall-E’s head rem...u/_ndrscor1336
fun little buddyu/mamadduh1308
First projectu/prgrmmr71108
SSG-48 - Adaptive 3D printed open-sourc...u/SourceRobotics934
Mandelbrot set with dithering on 0.96 1...u/Trotztd834
I just do my first Arduino project. Thi...u/joudni818
I Made a Mini Cybertrucku/TheHackingDoctor8016
My first “non-blinky light” projectu/mk98367310
My tiktok brainrot has become too advan...u/Nuke-A-Nizer7014
I build a filament dry boxu/Purple_Search63486821
SMARS Nuclear Exploration Unitu/GeneralBamisoep509
Tamaguino Virtual Pet Build, CNC made C...u/SandwichRising453
I started with Arduino. Now I get to da...u/Hapiel4212
First Arduino Projectu/WilhelmWalrus425
First try of my DIY Nokia 5510 display ...u/STUPIDBLOODYCOMPUTER426
My work did a "design a department mini...u/BolaSquirrel414
The Y-Box - a motivational device for o...u/Machiela3923
It's finished 😮‍💨u/Tiskfully359
ATTINY85 internal doorsensor 433mhzu/b03tz3323
Making an attiny85 based IR interpreteru/Shyne-on299
So I made a machine that keeps you depr...u/Assasins1312818
Digimon Tamers Music Box - Gift Project...u/Einar_Olsson253
I call it the “CNC Machine-gun”u/Space_Bear_v2184
Arduino Nano, MAX7219 Spectrum Analyzer...u/christian_suryanto80
Arduino rc car modu/InsectOk826882
ESP32C3 that will take a DS18B20 temper...u/Reacher-Said-N0thing72
Temperature Logging - Uno R4 Wifiu/YngFijiWtr74
I DIY replicated a Warp Core with light...u/dadwithtowel60
Update on the lifting platform for my a...u/venomouse34
Gameboy Printer... but better(?)u/Vortetty30
I have just made my second project.What...u/WassimSarghini23
B200 Arduino Clock; assembly overview v...u/Civiltronics20

Total: 41 posts

Summary of Post types:
FlairCount
ATtiny851
Algorithms2
Beginner's Project61
ChatGPT6
ESP3215
ESP82662
Electronics9
Hardware Help244
Look what I found!7
Look what I made!41
Mac1
Matlab Help1
Mod's Choice!5
Monthly Digest1
Nano6
Potentially Dangerous Project1
Project Idea19
Project Update!3
School Project47
Software Help123
Solved28
Solved - Solution Inside!2
Uno13
Uno R4 Wifi6
Windows2
no flair532

Total: 1178 posts in 2024-04

Pinnedby gm310509Moderator400K :400K:, 500k :Arduino_500k:, 600K :600K:, 640K :640K: ...
4
1
30d
We Want to Hear From You! Share Your Thoughts with Arduino in 2 Minutes

Hi! At Arduino we are always curious to find out more about our community – that’s you! – so we can serve you better than ever. Take 2 minutes to answer a few quick questions in this form: it’s your chance to let us know what’s on your mind, and shape our ecosystem according to your needs!

Pinnedby officialarduino:Arduino_Verified: Verified
12
2
5d
1 Line Blink in Arduino without delayLook what I made!

Well 1 line without the void loop and void setup ....

U can just add this line and u got the led blinking as long with ur code. I mainly use this to detect if my code is stuck at some point or if it crashed (it will stop blinking at hat point)

The line is as simple as this:

digitalWrite(2 , ((uint32_t)(millis() /500)%2 == 0));
Win10 doesn't recognize SparkFun Pro Micro

Plugging in Sparkfun Pro Micro via USB C in Win10, it does not show up in device manager in any category.

There is no COM port for me to choose to upload sketch.

The only thing that happens when I plug it into the computer is the LED on the SparkFun Pro Micro lights up red.

I have: -installed Arduino IDE -installed SparkFun AVR board package via Arduino IDE board manager -verified USB cable -tried different USB cables -tried different Win10 computers -reinstalled Arduino IDE -held reset button when plugging into PC, Pro micro shows up as mass storage device, saved a simple sketch on device, unplug and plug back in -figured it was a faulty board, exchanged for another, getting the exact same results.

Card Reader with Arduino Mega

Hi all, I'm a complete noob so spare me. I got an Arduino Mega for free and was wondering if there is a way to directly interface a simple generic RFID card reader from an old access control system to trip a function such as a servo if the correct card is scanned. Is this possible? TIA

Edit: Picture of the only markings on the reader:

https://imgur.com/a/eWRlSMl

ESP32+LVGL E2E TESTSSoftware Help

I'm looking for a way to write automated tests. Is there a way to run my code runs on an esp32 emulator with screen (cyd) and test behaviors as if I was a user?

I want to write tests for this project

https://github.com/AllanOricil/esp32-mfa-authenticator

Can Arduino Uno RX from one device and TX to another?Hardware Help

I'm trying to receive data from my ESP32 (this is necessary because it requires wireless data from another board), send that to an Arduino Uno R3 (I got this working using RX), and then send to my DMX Shield (CTC-DRA-10-R2) which I just saw online someone say that it requires TX. Would it cause a conflict if I RX and TX to/from different devices at run time?

Arduino based smart blind stickSchool Project

I'm an 11th grade student in the Philippines, planning to make an Arduino based smart blind stick for our research project. My team is thinking of making the stick compatible with the surroundings/environment here in the Philippines but sadly, we have very limited knowledge on how we could make it according to our liking. Here are some potential issues we would need to address:

  • needs to be waterproof (due to rain/puddles)

  • what if it overheats? (it's hot here)

  • affordability

  • bumpy pathways

  • battery life (battery or rechargable?)

  • stick may potentially be misplaced or stolen (needs a beeping/tracking system?)

  • limited range (there are lots of risky drivers here and few sidewalks to unnecessary stuff dumped on it. Unless you're in the city.)

  • fragility/quality

  • maintenance

  • potential sensor malfunctions

  • comfort/weight

Majority of our research proposals have been rejected and this is our final resort. I am also looking through some related literatures but it is taking up more time and we are tight on schedule. I hope someone could enlighten me and give some ideas :) Thank you in advance!

-
1
46m
Upgrading a welding positioner with arduino?:LightBulb:Project Idea

I've got a welding positioner I imported from china and it works, but it's finicky at best due to the controls mostly. It uses motor about 200w ac controlled from some kind of controller that is run by the front panel. The front panel is just a potentiometer and a small timing panel with push buttons for seconds. You set the speed and then time a full rotation and enter that time on the timing panel. The switches are for either auto control or the foot pedal, the direction of rotation, and whether or not the welder is controlled on and off by the machine or not.

The problem is the pot and the timing panel honestly. If you bump the pot and move it just a little bit you have to reset the timing. It would work much better if I could swap the ac motor for a dc stepper or small servo with an lcd that has a readout for the speed. It always needs to make one full rotation for a weld, it's just the speed that changes which is why I think a stepper or servo would work best, the steps for one full rotation will always be the same. An lcd readout would be helpful to dial in and record settings for various size pipes (different OD's and speeds).

My question is whether or not this is possible with an arduino. I already built a CNC pipe coper using a step controller and mach3 but I don't want to have to hook up a PC to control this thing through mach3/4.

[Image]

[Image]

[Image]

Slack Message with Opta

Hey all, been working with Ardunio a long time and have a good number of projects under my belt. We just fired up a new indoor farm and I am using the Opta wifi version to control the lighting. Was a bit of a learning curve to get it going as I had to connect to Supabase to get the schedule and then report the status of the lights to supabase. Thats all good.

Sending a Slack message has been another issue. For some reason, I cannot get it to work. I have done all the usual tests (check Slack with postman etc) but it constantly will not connect. Very confused on what to do next. I can send code but just wondering if anyone has a webook working with the Opta. And just to make it even more confusing, I had code working on it at one point but now it doesn't. Any help you can give to get me in the right direction would be appreciated. This should be pretty easy to do. I can do it from an arduino, pi, d1 mini all day long. Just issues with the Opta.

thanks!

Arduino mega 2560 shorted and heating upHardware Help

Hello everyone! I was using this board with ramps 1.4 for 3d printer! I accidentally shorted regulator on the ramps with one of drivers! After the my arduino works fine , recognize by pc , the codes can be uploaded to it , and it runs the code with out problem! But the top of processor started to heat up even when i just plugged in usb! When i plug 12 v jack in both processor and voltage regulator gets hot so i changed the bad voltage regulator and problem persisted! Then i removed the voltage regulator and saw that pins of voltage regulator place on pcb are shorted! Then i found out that the 5v and gnd are shorted!(3.3v and gnd is not shorted ) So im looking for a component that may cause shorting! Do you have any idea which component may cause it???

Wiring of an esp32, a LiPo battery, two switches and LEDs. Hardware Help

Hi everyone, I have wired the parts mentioned in the title as shown in the diagram. I am not familiar with circuit diagrams - I hope I have drawn everything clearly (I have used a generic image of the esp32, the numbers of the GPIOs are only symbolic. The battery is connected to the jst connector.).

Details of the esp32: ESP-WROOM-32, Matrix Core. Details of the battery: 3.7 V, 2000 mAh, 7.4 Wh, LP103450.

[Image]

The circuit supplies an esp32 and LEDs with power from the LiPo battery. One switch controls the esp32, the other switch interrupts the current flow and switches off the LEDs and the esp32. The esp32 has an integrated circuit that charges the LiPo battery when the esp32 is charged via usb. I would like to use this charging function to charge the battery when it is empty. To charge the battery, I have to close the corresponding switch. This also supplies the LEDs with power. My impression is that this should not be a problem - of course the battery charges more slowly this way. If I switch off the LEDs (digitaly) during charging, only the esp32 should consume power.

The circuit apparently works. However, the battery is now defective. Have I made a mistake with the wiring? Is there room for improvement?

Many thanks for reading :)

Confused with LiquicCrystal Code

I'm a beginner and just started out working with Arduino, and ran into this problem here when trying to output a custom character to a lcd screen using the .write() function:

void setup() {
  // put your setup code here, to run once:
  lcd.begin(16,2);

  lcd.setCursor(2,0);
  lcd.createChar(0, heart); // <----
  lcd.cursor();
  lcd.write((byte)0);

When calling the .createChar function after the .setCursor() function, the lcd screen displays nothing, and even the cursor is not positioned at (2,0), but when .createChar() is called first:

void setup() {
  // put your setup code here, to run once:
  lcd.begin(16,2);

  lcd.createChar(0, heart); // <-------
  lcd.setCursor(2,0);
  lcd.cursor();
  lcd.write((byte)0);

}

, then it works properly. Can someone explain this please?

5
0
11h
Design pcb

Hello

What is the best place to design custom pcb ?

0
3
5h
Is this video using female-male and male-male jumper wires?Hardware Help

I'm looking at this video on how to connect up to 992 servo motors to an arduino using I2C.

At the 3:12 minute mark, he solders a male pin header to both ends of the rainbow cable. Is that just the same as a male to male jumper wire? Could I just buy a male to male jumper wire instead of the pins and cable and solder and it would work the same?

Also at the 3:28 minute mark, he connects a yellow, orange, brown set of wires between the PWN driver and the arduino, is that a female to male jumper wire?

Thanks in advance :-)

3
6
11h
soldering wire safety -- does the material matter?Hardware Help

I'm a beginner looking into buying a soldering kit, preferably one that includes everything I need including the solder wire, stand, etc. I was thinking of just buying one off aliexpress since it's cheaper, but all the ones I'm looking at just call the solder wire "solder wire" without being explicit about what the exact material of the solder wire is.

Are certain types of solder materials like lead vs rosin vs tin, etc safer for hobbyists? Or is the difference negligible and I don't have to worry about what exactly the solder wire is made of? If the second is the case then I could buy the cheaper ones off aliexpress, but if it makes a safety/health difference then it'd be nice to know before buying.

4
15
11h
Uno R4 WiFi vs Nano ESP32

I'm new to all this and I have some Wi-Fi code that's running fine on the Uno, is there any reason why it wouldn't work with a nano esp32? I understand without seeing the code that's going to be guessing - but if it compiles, it should work right?

I'm just looking for a smaller form factor with built in WiFi.

Camera to ChatGPT:Arduino_AI: ChatGPT

Reddit please lend me your wisdom once again 🙏

I’m wanting to make a project that might be above my skill level so I was wondering what y’all think is best.

I want to have a camera connected to a board that could send the image captured to chat gpt weither that’s through Bluetooth to a phone or through GSM or WHATEVER! How should I do it?

Also what’s the best camera? Doesn’t have to be the best quality and preferably on the small side. This isn’t crucial since I can figure it out myself but if I’m already here..

MPU6050 problem with Arduino Pro MicroSoftware Help

Hi everyone,

I recently got an MPU6050, and started to prototype the code using an Arduino Mega (that's what Ihad lying on my desk, so i just went with that), and after getting everything to work, i decided to switch to a Pro Micro, since it's a lot smaller and that's what I need.

The problem is:
With the library I'm using (MPU6050 by electric cats), I need to connect Pin 2 to the Int pin on the MPU6050, while SDA to SDA and SCL to SCL. On the Pro Micro, Pin 2 IS SDA! I cannot find a way to change the pin 2 used for the interrupt function, and I'm stuck at this point. I tried to look into the library files, but I didn't see anything that could help me.
I even created an issue on the Github of the library I'm using, but i figured that since Reddit is a more active community, I'll have better chances posting here too.

Link to the library: https://github.com/ElectronicCats/mpu6050
Pinout of the Pro Micro: https://cdn.sparkfun.com/assets/9/c/3/c/4/523a1765757b7f5c6e8b4567.png

Does anyone have any type of idea how i could solve this problem? I consider myself an almost-total beginner, and I cannot think of how I could solve this.

Thanks in advance to whoever willing to help me, I'm lost and in need of your help.

Does anyone know if this Nema 23 motor will work with an Arduino Nano to satisfy this Conveyor Belt application?Hardware Help

My current application;

I have a 1m long conveyor belt carrying a roughly 1kg load constantly. I need to conveyor belt to pause and move in alternating 1cm and 3cm steps (with half a second pauses in between). The pulley radius is 4.5cm. And I need around 1 metre of total travel in 40 seconds average.

I have been using a geared DC motor so far, which has the required torque (rated at 15kg.cm at 6rpm) but it isn’t precise in its steps.

Would this NEMA 23 motor from aliexpress work? It’s listed as having only a voltage of 3, which seems fishy to me, but the price is really good…

(https://a.aliexpress.com/_EHvWwPN)

Does this one have enough torque to deal with that sort of speed and load?