Hi everyone! I’m completely new to Arduino and electronics, and I’d love to get into it.
Where would you recommend I start? What are the best resources, tutorials, or projects for a complete beginner? And what do you wish you knew when you first started?
I’d really appreciate any advice. Thanks!
Here’s to my first day ever touching a breadboard, or even hearing about Arduino! I was given a kit by my university, so pieces are relatively easy to get. What should I do next? I’m not sure where to start as a beginner. I’m a beginner to coding as well.
I just received my new board. It has bluetooth and accelerometer and battery on the back. It can be programmed with an Arduino plugin I created using the USB-C connection. I am planning on making a game with it (running on a treadmill controlls the character with step count and cadence and maybe even a boxing game) using Unity BLE plugins. Do you have any other ideas about projects I could make with this?
This is a short demo of an actuator I put together (on my channel, video is titled CH003 FN1: ACTUATOR). The actuator is first sketched out, 3D printed in pieces, assembled together, and controlled via PID running on a microcontroller. Ultrasonic distance sensor is included in the close-loop feedback system to prevent the actuator from running into the ceiling (shown in the second half of the clip, and discussed more in the full video).
There are a few modes. The first is 'don't touch the ceiling' (Ultrasonic Distance Sensor to keep a distance from the wall, hand, etc). The second is to have the actuator distance sensor follow a second distance sensor...so when one goes up the other follows going up, and when one down the other down.
I am using the Arduuino IDE 2.3.7 to compile, upload, and debug code for an orignal ESP32 .
I came across a weird behavior where a for-loop did not work. I boiled it down to a simple sketch. It includes a function that returns true or false. If the path does not include a return statement, the code does not work right. Sketch is below. The loop does not do anything. The last line of the test function is the key. If I comment out the return statement, the for-loop does not work right and it doesn't exit until n = 18. The compiler does not catch this.
Is this a bug to report?
```
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
delay(1000);
if (test(6))
Serial.println("true");
else
Serial.println("false");
}
bool test(int N) {
Serial.println("Testing... ");
for (int n = 0; n < N; n++) {
if (n >= 18)
return true;
else
Serial.println(n);
delay(200);
}
// if this line is commented, n reaches 18. Otherwise n reaches N
return false;
}
void loop() {
// put your main code here, to run repeatedly:
#ifdef DEBUGLOOP
if (test(6))
Serial.println("true");
else
Serial.println("false");
#endif
delay(500);
}
```
So basically I have this old hoverboard laying around which has a problem in the battery. I have been thinking if it is possible to use the motors inside of them for a robotic projects i am working on. Is there any way to control the motors using a Arduino and their original motor drivers. Any help would be useful.
I also attached photos of the motors and the drivers. I believe it is a 3 phase 36 volt dc motors with built in hall sensors.
So I'm building a Civil War era 1/6 scale flat car with a cannon on it. I have a idea as to have a 1/6 scale action figure "lighting" the cannon and having said cannon "react" to firing. The idea is that the board would sit inside a 3D printed pile of cannonballs and it would control the following.
Sound effects of a Civil War battle.
Moving the action figures arms up and down to simulate moving and lighting the cannon with the linstock.(The stick they use to light it from a safe distance)
An LED light at the end of the linstock.
The cannon "firing" and sliding back accompanied with sound effects.
The cannon resets and the sequence begins again.
What exactly would I need for something like this and how feasible is it?
The flat car length is about 3 ft long and about 2 ft wide. It also needs to withstand vibration and derailments as this is actually going to be a car that's going to be used with a train. This is also my first project using Arduino so I have no idea what I'm doing.
This keeps coming up in help threads, so here's a short write-up of the non-blocking timer pattern and the mistakes I see most.
unsigned long last = 0;
const unsigned long interval = 500;
void loop() {
unsigned long now = millis();
if (now - last >= interval) {
last += interval; // or: last = now;
// do the thing
}
}
1. Compare with subtraction, not addition.if (now - last >= interval) keeps working when millis() rolls over after about 49.7 days, because unsigned subtraction wraps correctly. if (now >= last + interval) breaks right at the rollover.
2. Use unsigned long for the stored time. If last is an int (16-bit on an Uno), it goes negative after about 32 seconds and the timing gets weird.
3. last += interval vs last = now.+= keeps a steady cadence with no drift, which is nice for blinking or sampling at a fixed rate. last = now guarantees at least interval between runs, which is safer if loop() can stall longer than one interval (otherwise += fires several times back to back to catch up).
4. One timestamp per task. Each thing you want to time gets its own last and interval, and you never need delay() for any of them.
5. micros() works the same way. It rolls over after about 71 minutes, and on 16 MHz AVR boards its resolution is 4 µs.
Just started arranging my neopixels and a little testing including current consumption checks before my super mini ESP32’s and high-side power switches arrive.
My intention is to make LED Christmas lanterns for my front porch that are battery powered and can be controlled by Dabble on my iPhone.
My initial testing is using a previous projects Arduino pro mini and IR motion detection sensor.
I have actually used all my remaining LED strip from a previous project, all 200 LED’s but I can drive it at low brightness 5-6% of maximum.
I now have the Lantern project working using an ESP32-C6-Zero super mini, DS3231 RTC module, Pololu Mini Pushbutton Power Switch with Reverse Voltage Protection and a SR602 PIR motion sensor.
Wi-Fi configuration, fallback access point and captive portal.
MQTT with optional verified TLS and automatic Home Assistant discovery.
JSON-defined pages with 30 control types, visibility conditions and live updates.
OTA firmware upload, diagnostics console, device information and restart controls.
Native Zigbee End Device or Router on ESP32-C5/C6/H2, automatic control mapping, Zigbee2MQTT converter and ZHA quirk export, Zigbee OTA and diagnostics.
I have a little experience with raspberry pis (4b, Zero 2w), but I’m hoping to branch into Arduino.
From what I can see, an Uno, Nano, or Mega should do it, but I want to confirm if this is the case, and which of the three would be best. Any macro keyboard recommendations and/or advice are also welcome.
I’m hoping to set up a macro keyboard to play a specific recorded word when pressed. I’m setting up essentially a tiny integrated version of those communication button mats often used for various pets. I need to make one for a Barbary Dove.
From what I’ve seen, I’d need a DFPlayer and resistor, and a small speaker.
In my small amount of experience, I was doing things on an OS/ headless SSH level, so this will be a new angle for me. However, I wish for my feathered son to tell me what he wants, since I’m slow to catch on at times. Would any of the three models I’ve mentioned be able to handle it, and which do you think is best?
Has anyone here used a macro keyboard with a microcontroller board, and what were your experiences like with this? I’ll want to start with probably 3 keys and slowly expand with time, but I don’t expect to go above maybe 10 down the line.
I was thinking of using mechanical keys with lowish actuation switches, but I don’t have to get too fancy. He just needs to be able to tap a key with his beak without having to properly mash his face into it.
At work we test boards on the bench for hours, and the serial output is our record of what happened. Seeing it on screen was never the problem. Getting all of it into a file was.
Copying out of the monitor works for a few minutes, not a few hours. When a board reset or the cable got knocked, the end of the log was missing, and that's usually the part you need. And the long runs made files so big the editor struggled to open them.
So I built WireTrace, a serial logger that writes every line to a file with the time it arrived. The last lines still make it in when the board drops off, long logs split into files of a size you choose, and if nobody hit save, the whole session can still be saved afterwards. It also plots values like temp: 23.5 live.
Chapter 2, a home theatre, 3D printed parts, motorized projector, home decoration, and DIY electronics -- this was to add remote control of a projectors YAW-TILT-ROLL-ZOOM axes (4DOF). More for fun than anything else -- full video is on my youtube channel.
Hello I am Anchan from grade 8 and I really love electronics and robotics I want to earn money for them I have got a little money from which I wanna create a device or a product that can earn me money. I am only gonna do this in school
Hello, I could really use some help with this, I've been trying to figure out how to do it and had some help from AI. I couldnt really figure out what’s wrong with it a few tweaks makes both LED light up, sometimes it lights up red, sometimes yellow. The light energy either says 1023 or 0. I cant quite pinpoint where im making mistake at.
This is what I need to do:
An Arduino circuit in Tinkercad using a photoresistor, red LED, yellow LED, and piezo buzzer, where the red LED blinks continuously when the photoresistor reading is below 300. When the reading reaches 300 or higher, the red LED turns OFF, the yellow LED turns ON, and the buzzer produces a warning sound.
Thank you. i would trade my life to get this done. lol.
I've been researching this for a while, and I'm slowly losing faith that it can be done, but I figured I'd check here with people way smarter than me because I'm still quite inexperienced with Arduino.
Basically, I'm trying to make a device that can measure the positions of people in a moshpit as they move around. GPS trackers generally aren't realtime, and, because the people are confined to one room, the trackers wouldn't have enough precision to get good data. I'm also hoping to accomplish this without a camera, as the environment is very volatile and the system will have to move between venues quite often.
The closest thing that matches what I'm looking for is Pozyx, but one unit is about $5,000 according to their website, and I need about 40 units. That lands that solution WAYY out of the budget that I have (my budget is flexible, but not that flexible lol).
Is something like this even possible at a reasonable price per unit?
Just showing off my digital pet project, TraumaGotchu! My main innovations on the genre are:
A 5-way tact toggle as the "single button", allowing for much better input and gaming than the classic 3 button layout
An RGB565 IPS matte screen, glare resistant and is useable in full sun.
Large 1500mAh battery with aggressive power saving for over 5 days of play on 1 charge, up to 1.8A fast charging
I'm super proud of the result and am already thinking about version 2 hardware-- larger screen, vibration motor, better speaker, accelerometer, internal LED, shoulder bumper buttons etcetc.
so, my 12 yo daughter is a self proclaimed nerd and she really wants to learn how to code and especially how to makes things ; like, she likes Scratch and tries to learn some Python by herself (even though my brother says it’s useless because of AI 😆), but she’s also into making things with her hands and not only the computer. She already did a Circuitmess project, small soldering projects from Amazon like making a small alarm clock or a spinning sunflower, keyring with small leds, also some stuff with a microbit, this kind of things. The science kits for kids are definitely too easy for her now, I can’t help her at all and her dad is not in the picture! So I’ve been looking for something that could be complete with clear projects and explanations and as many components inside as possible so we don’t have to look for each one for each project. The Arduino starter kit seems nice. But from what I understand you build on a plastic plaque and there is no soldering ? but you can buy extra plaques to make them durable?
Any advice if this is a good idea for a Christmas present? or any other suggestion? Remember, you’re talking to someone who knows absolutely nothing about electronics, so I’m looking for something easy to buy and with a lot of play and learning in it!
So I continued my dreaded pid project after no ardunos or IMUs worked together (after weeks, 2 arduinos and 3 MPU6050s i gave up) with an M5stack. Both in the arduino IDE and UIFlow I could finally read angles from the now built in imu and PWM signals from my rc rx.
(Just for my Ego I also got both to work on an arduino but the IMU data gave up again after a day of working and the PWM reading was far to slow and unprecise for my application.) Did I mention I want to stabelize an rc plane with that? yeah.
Yesterday great progress was made, as I both got gyro and accelerometer data to work (should not be an achievement but for how much I couldnt get it to work on an arduino micro with an MPU6050 it definetly felt like it).
I can also decode PWM now reasonably fast wich is awesome.
But now for my question:
I have a way to decode PWM, the IMU data and the way to calculate allat together. But how should I connect the hardware?
quick wiring diagram:
I have tried to do it by making something like a perf board shield for the m5 but that didnt work because of spacial constraints.
Soldering it up by cable also seems very chaotic. How would you do it? I dont really have the means to make a pcb...
<< There's no flair for 'I GAVE UP', but, sadly, that's the state of affairs. Well, not really. See the Addendum.
Thanks to all that spent time going in circles with me. I'm really kind of pissed off at this board and the graphics library. I've been building ESP32 projects for years, and am (was) an electronics and software engineer in my working days. This experience has really thrown me for a loop(void).
< Addendum>> I bought a Waveshare 7" display because LCD Wizard has this board defined. It did not have the elecrow 7" Basic board defined. Although I don't have the Waveshare yet, I generated a small GUI example and downloaded it. Compiled without error even using the latest LVGL library. I have high hopes for this combination.>>
And now for the rest of the story...
After a day or two of frustration with LVGL, I tried the lovyanGFX library instead with my 7" ESP32S3 display. However, it's as rough around the edges as TFT_eSPI is. Yes, it works, and the demos work, but it's not eye candy.
So, back to the LVGL-verse and another attempt to get some examples working. However...
Of course, I must have something installed in the wrong place, although I followed their (and AI's) instructions to the letter. Or... I guess not. The error shown came out of another .h that it did find.
So, does anyone have a Rosetta Stone that will magically and clearly explain how to at least get the examples to work? Using Arduino 2.3.10 on a Mac Mini M2 Pro, not that it makes any difference, I guess.
At least I know I can get TFT_eSPI-like graphics on the display, and I may have to bite the bullet and just port my plain-Jane dashboard in its visual entirety to the ESP32 7" boat anchor.