Hi all. I'm trying to make an Arduino MIDI device. I've done this before, but I lost the code. I want it to transmit the midi over USB, but not serial, I want it to appear as a normal midi device. I'm on an esp32-s3, which I know works as it is the same as my last project. I'm on platformio. I've been trying all day an I'm going round on circles with dependencies and errors. Help would be appreciated.
ERROR: c:\Users\User\Documents\Arduino\libraries\DabbleESP32\src\LedControlModule.cpp: In member function 'virtual void LedControlModule::processData()':
c:\Users\User\Documents\Arduino\libraries\DabbleESP32\src\LedControlModule.cpp:36:33: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
36 | ledcAttachPin(pin,currentChannel);
| ^~~~~~~~~~~~~
| ledcAttach
c:\Users\User\Documents\Arduino\libraries\DabbleESP32\src\LedControlModule.cpp:37:33: error: 'ledcSetup' was not declared in this scope
Have any of you tried replacing the little Arduino buttons with arcade buttons?What do I need to be aware of if I want to do this? Don't need the led feature.Thanks for the answer.
Motor doesnt turn. motor beeps when powered. Im just trying to get it to spin at all and nothings happening. it will be apart of a drone and will have others connected similarly but not even this one works. Both esc and motor were purchased on amazon and do not provide datasheets. The ESC's brand is aneegfpv, it is a 40a max ESC with 2-6s input which is in range of our lipo. The motor is CENPEK A2212 1000KV Brushless Motor 13T. multiple variations of code has been tried.
Codes:
/*ESC calibration sketch; author: ELECTRONOOBS */
#include <Servo.h>
#define MAX_SIGNAL 2000
#define MIN_SIGNAL 1000
#define MOTOR_PIN 9
int DELAY = 1000;
Servo motor;
void setup() {
Serial.begin(9600);
delay(1500);
Serial.println("Program begin...");
delay(1000);
motor.attach(MOTOR_PIN);
motor.writeMicroseconds(MAX_SIGNAL); // Wait for input
motor.writeMicroseconds(MIN_SIGNAL);
}
void loop() {
if (Serial.available() > 0) {
int DELAY = Serial.parseInt();
if (DELAY > 999) {
motor.writeMicroseconds(DELAY);
float SPEED = (DELAY-1000)/10;
Serial.print("\n");
Serial.println("Motor speed:");
Serial.print(" ");
Serial.print(SPEED);
Serial.print("%"); } } }
/*ESC calibration sketch; author: ELECTRONOOBS */
#include <Servo.h>
#define MAX_SIGNAL 2000
#define MIN_SIGNAL 1000
#define MOTOR_PIN 9
int DELAY = 1000;
Servo motor;
void setup() {
Serial.begin(9600);
delay(1500);
Serial.println("Program begin...");
delay(1000);
motor.attach(MOTOR_PIN);
motor.writeMicroseconds(MAX_SIGNAL); // Wait for input
motor.writeMicroseconds(MIN_SIGNAL);
}
void loop() {
if (Serial.available() > 0) {
int DELAY = Serial.parseInt();
if (DELAY > 999) {
motor.writeMicroseconds(DELAY);
float SPEED = (DELAY-1000)/10;
Serial.print("\n");
Serial.println("Motor speed:");
Serial.print(" ");
Serial.print(SPEED);
Serial.print("%"); } } }
#include <Servo.h>
Servo esc;
void setup() {
// put your setup code here, to run once:
esc.attach(10);
esc.write(180);
delay(2000);
esc.write(0);
delay(2000);
esc.write(20);
delay(2000);
esc.write(0);
delay(2000);
}
void loop() {
// put your main code here, to run repeatedly:
esc.write(1000);
delay(5000);
esc.write(0);
}
#include <Servo.h>
Servo esc;
void setup() {
// put your setup code here, to run once:
esc.attach(10);
esc.write(180);
delay(2000);
esc.write(0);
delay(2000);
esc.write(20);
delay(2000);
esc.write(0);
delay(2000);
}
void loop() {
// put your main code here, to run repeatedly:
esc.write(1000);
delay(5000);
esc.write(0);
}
I want to thank you for helping me with my Arduino nano program problem. Now I have a question. I'm using a 0.91 OLED display, but when I connect it to the 5V of the Arduino, the Arduino turns off.
Hello everyone. I need your help, please. I am designing a submarine equipped with a camera. However, when I put it in the water to test submerging and surfacing, I encountered two notable issues. The first relates to the center of gravity: the submarine doesn't stay horizontal but sits at an angle of about 40 degrees. I think I can easily fix this by shifting the weights (two cut-down 1.8 kg dumbbells) inside the ballast tanks, but I’m not sure exactly where to position them. I was wondering if there is a mathematical or physics-based method to determine the right spot. Secondly—though I had anticipated this—the connection via nRF24L01 antennas cuts out as soon as the submarine dives. I’ve considered two solutions: either creating a float to keep the antenna on the surface while connected to the sub (which seems simplest and cheapest to me), or using a different communication method. I would appreciate any opinions you might have. Please keep in mind that I’m not an expert and have limited resources, so I hope you’ll be polite with me regardless. Thanks a lot in advance.
I just got an esp32, tried to imput some basic copy-pasted code and got exit status 1. I’m pretty sure i have a data transfer cable, as I have tried with multiple ones and the one im using makes the computer do the connected sound when plugging it in. I have also tried with several driver versions (various versions of the esp32 by espressif systems). I have also tried the two ussually recommended links in the board manager and i dont know what to try next. The error is exit status 1
I am doing only my second ever arduino project, but im struggling to find a power supply solution to it. Long story short I have x4 SG90 servo motors which I am trying to power from a battery pack that contains x4 AA batteries (just the regular off the self ones, from any local store).
But they are struggling as the servos are not behaving right. All other elements in my circuit are fine (as ive tested them) so ive narrowed it down to a power supply issue.
Can anyone recommend me a method to power these servo motors effectively? The solution has to be mobile and so a power supply from a computer or wall outlet will not work. Its not shown in the schematic, but the battery pack connects to the power rails of the bread board.
I am working on building a Korb Pusher Eurorack module that uses a Nano as it's main processor. I had purchased the Nano R4 and attempted to flash the hex files provided on the Pusher's Github page. In the process I went down the rabbit hole of different programming softwares and came to the realization that I needed a specific flash programmer for the Renesas processor if I wanted to upload the compiled hex file directly.
I attempted this and it seemed to take, however afterwards I found I was unable to connect to the Nano via USB. I realized afterwards that the hex file was compiled for an ATMega chip, not the RA4M1. Therefore the hex file likely didn't take properly.
In an effort to clear the Arduino and start over, I have tried the double tap reset method, and also the Boot-Ground method and neither have made a difference. When I plug in the Nano, I get the green power light and that's it.
Is it possible the Nano is bricked ? Would anyone have any other suggestions before I just buy a new one ? Hoping I can somehow recover it.
I also realize now the proper way to upload is likely to open the .ino file (available on Github) and make updates so the sketch is compatible with the new processor first.
Hii, I'm in need of assistance for my group science project. Our group was planning to create a solar tracker that powers the Arduino itself while it works. I tried researching numerous Arduino videos but they only stated "the Arduino needs external power". I'm not sure how, and what we should connect the solar panel to the arduino. That's our main issue for now, we were able to find other tutorials for the rest of our project. Any advice or suggestions is very much appreciated! Thank you!
Hello! So I am new to the Arduino IDE, but I still need it for a project.
So I'm trying to program code for an RS422-shield, and I have connected it to the PC through a USB. The terminal block at the RS422-shield is connected to a male Sony 9-pin connector, which I was originally supposed to connect to a female connector - USB adapter, but unfortunately I couldn't find that in any electronics store. I could only find a male connector - USB ( also, it's a RS232-connector, so perhaps that is the problem ), which is why I am using a female - female adapter ( the gray cables you can see ) to connect those two. Do not pay attention to the white cables in the background, they are not supposed to be there...
I was unable to find " RS422-shield " in the " Boards manager ", so I instead chose " Arduino UNO R4 Minima ", since that is what I envision the RS422-shield will be connected to for the end product.
However, when I try to compile ( upload ) code, I get an error message saying: " No DFU capable USB device available ", even though I have connected a USB to a RS422-shield. Do I need an actual Arduino card, or can I program with the shield alone? Or what is the issue here?
I appreciate any help as fast as possible. My project is due on Monday...
I'm sorry if I sound like a noob, because I kind of am...
Okay I kind of think I'm screwed, I'm a total newbie at Arduino and I've never tried it before.
I need to create an automatic pet feeder that uses a weight sensor, timer, and RFID technology and a touchscreen interface for the user to adjust the time interval for their pet's food to dispense and how many grams of food they want the pet feeder to dispense.
The RFID is for a gate mechanism where if the pet gets near the gate at the certain distance, it will open with some DC motors connected to a DC power supply.
I really want to know what parts I should be using, if Arduino UNO is alright for this project, and if this is doable or am I being too ambitious? I have four other groupmates but I doubt they would really try to research it.
The current parts I plan to use are:
RFID tag and scanner (those ones you buy online that needs to be plugged in with USB)
Arduino UNO
Not sure if I should use Raspberry pi, but I heard it's good for interfaces like the touchscreen one I mentioned
Breadboard and wires
Planning to get a whole Arduino beginner kit
Sorry if this seems like a lot and as if I'm basically asking you all to do my research for me, but literally no teacher has told me if this would be too much to do, and no teacher can help me either. I also did my own research but I just want to know if this is doable and if I need specific parts especially since I'm a newbie. Thank you in advance if anyone tries to answer.
Hi everyone. I need to make something for a client, it can be bought off the shelf, but I'm in South Africa and it appears to be impossible.
The function is to play a short clip with audio when a box opens (easily done with a reed switch and a magnet). When reopened, the clip should start from the beginning.
I've considered photo frames, but they're primary use is still images. I've considered a pi with a screen live a waveshare but that means a lot of components. Once all the other components are considered (battery, voltage regulator, batteries etc) the pi and screen would also need a good 2/3A.
Ideally need minimal boot time, so a pi would need to be permanently on.
Fascinated by things I saw on Instagram. If I had to learn Adruino how/where should I start? What do I need ?( Don't wanna spend too much rn) Some wisdom from you experience would be extremely helpful🙏🏻
Hey guys! Me and a few friends are working on a group project for an exam, and one of the requirements is that we have to use Arduino for it to be approved. We've been struggling with it for a couple of days now, and we were hoping the people of Reddit could help us out.
We want to use either one Arduino board + two breadboards, or two Arduino boards + two breadboards. The idea is that they should be connected and able to communicate with each other.
Here’s the goal of the code: We’ll have two identical prototypes, let’s call them P1 and P2. Each one has its own light and its own button. When the button on P1 is pressed, the light on P2 should turn on. That light should stay on until the button on P2 is pressed — but pressing that button won’t send a light back, so we avoid an endless loop. After that, everything resets, and either button can be pressed again to send a new light.
If you're curious about the idea behind the project, here’s the background: We’ve been interviewing some elderly people to try to find unmet needs, and this is what we came up with based on their input. The prototypes will be shaped like flowerpots, and the idea is that the users can press a button to send a small light signal to family or friends — just as a way to say “I’m thinking of you.” It’s meant to be a super simple form of communication that can help families stay connected, especially when they have busy schedules and aren’t able to visit as often as they’d like.
We’d really appreciate any help or advice, especially from anyone with experience with Arduino.
And if anyone’s interested, we’d be happy to share updates or photos of the finished product once it’s done!
I'm facing an problem uploading code to an Arduino UNO r3 duplicate . The ON led and the L led is always turned on when I try to upload a code it give me an avrdude error please help
Hello everyone! I have questions about the project I'm working on. It's about agroclimatic monitoring. The point is that it'll be autonomous, use five sensors, and take measurements every hour for 10 seconds for a month. The consumption estimates are 414 mAh for that month. I want to choose a battery that meets certain specifications, such as: regulated 5V output, overcharge protection, low-current mode, direct USB connection with Arduino and without the need to use modules to raise voltage. I have researched and have a few options for power banks but I am not sure if my choice will be the right one. That is why I am turning to you please, for guidance as I don't want my system to be damaged. I share with you the battery options I have consulted: •Xiamo ultra slim power bank 5000 mAh •Haitronic 5V 3200mAh lithium battery
Sorry if i misspelled, english is not my native language 😅