Questions tagged [arduino-mega]

A microcontroller board based on the ATmega2560 or 1280 chip. Use this tag for questions specifically regarding the Mega, and not just general Arduino usage.

Filter by
Sorted by
Tagged with
0 votes
1 answer
57 views

How many stepper motors can you run on one Arduino Uno? Ideas on how to run 9?

I am in middle school and new to Arduino. I just learned to set up and code a stepper motor on my Arduino Uno from watching YouTube videos. I want to set up 9 stepper motors to all run at the same ...
-1 votes
3 answers
66 views

Is there any way to efficiently code reading of four sensors and sending a serial output once it does detect a reading?

I am actually wondering if there's a way to efficiently do this block of code. There are two things in my specifications and these are: Four IR Sensors that detects blockage. Basically just to ...
-1 votes
0 answers
62 views

Random characters returned in latter part of http response from ESP8266 to Arduino

I've been working on giving my Arduino project Internet connectivity using a ESP8266 WiFi module. I'm using the StateMachine library to manage AT commends sent from the Arduino to the WiFi module and ...
  • 101
0 votes
0 answers
21 views

All led lights on Arduino Ethernet Shield W5100 are red, and the board is not working correctly

I'm trying to hook up my arduino mega 2560 to a W5100 Ethernet Shield. However, every time I try to upload my sketch and test, all of the LEDs blink red. The pwr LED is on consistently. I know this is ...
0 votes
1 answer
52 views

How to architect streaming data from multiple plant monitors to single Arduino?

Premise: I'm trying to determine a good way to architect getting data from 4 plant monitors to a single Arduino. For context, that Arduino will have a Wifi connection that will transmit the data from ...
  • 103
0 votes
1 answer
35 views

Balancing pendulum using PID

Dear all, referring to the video at here on how to make a PID balancing pendulum as shown in the picture and the author also provided the arduino code in the video description. May I ask whether this ...
-2 votes
1 answer
90 views

How to find the correct navigation course by gps navigation with Arduino?

I have a problem for about days ago and here it is : I have an RC plane and wanna make it autonomous via GPS navigation by Arduino I have an Arduino Mage 2560 onboard connected to a GPS Ublox-Neo-M8N (...
1 vote
1 answer
57 views

The file "Project.ino" needs to be inside sketch folder of same name, but it is

I've just installed Arduino IDE (v2.0.1, 2022-10-27) and try to open an existing project that I created about a year or so ago. I'm receiving the following error message: The file "ProecessStart....
0 votes
1 answer
41 views

Arduino Mega, 6 push buttons for each analog input (A0-A9) - closing one results in reading by other

On day to day basis I'm more of a high level programmer, with little electronics knowledge, apologies in advance if I lack some nomenclature or basics. I communicate with my Arduino Mega via firmata, ...
  • 103
-1 votes
1 answer
53 views

Arduino outputting 4.7V instead of 3.3V when using I2C communication/sensor?

TOF050C-VL6180X Sensor was not responding, so I checked it with a multi-meter, and the VIN, GND solder pins on it read 4.7V. Double-checked Mega voltage, without anything connected, and it shows ...
  • 11
1 vote
1 answer
33 views

MFRC522 board not detected. Red LED lighting

Mega 2560. I can't get the RFID board detected. The code is below, and outputs "Didn't find MFRC522 board.". I also tested some other library and test code with success. I triple checked the ...
  • 11
1 vote
0 answers
43 views

Need help with calling an API using an Arduino system

As stated in the title, I need help with calling an API. I'm trying to integrate make a call using the Verkada API but it seems to be using a cURL library that I'm not entirely certain I can get to ...
2 votes
2 answers
132 views

Voltage reading problem in Arduino mega based 10 cannel battery capacity tester

I want to make a 10 channels Arduino mega-based battery capacity tester using 4.7 ohms 10w resistors controlling them with IRFZ44n MOSFETs with respected digital pins. An 8.4V battery powers the ...
0 votes
0 answers
31 views

Post request to pythonanywhere gives 400 response [closed]

I have a flask server running which is supposed to receive post request. I am using Arduino Mega 2560 and Ethernet Shield 2. When I run the server locally on 192.168.0.103:1337, it can read the ...
1 vote
0 answers
38 views

ArduinoMega2560 throws avrdude: com-state error after pressing the reset button a few times

I have recently switched to an ArduinoMega2560 (authentic) from the Arduino Uno and have been having a bit of trouble with uploading sketches after the reset button has been pressed a few times. This ...
0 votes
3 answers
48 views

Standalone ATMega328 - do I need to burn the bootloader?

I want to get an ATMega328 off of the Digi-Key, and use it like an Arduino (without requiring the whole Arduino board). When it comes to programming, do I need to do anything special like burn the ...
0 votes
1 answer
47 views

Using Millis instead of delay to reboot relay

I want to reboot relay (turn off , waiting 4 seconds and turn ON) it works perfectly if I use delay(4000), but code is blocked while delay (4 seconds) and I cant start relay 2. How can I use Millis ...
  • 101
1 vote
0 answers
42 views

ESP8266 TIMEOUT: 428

this is the code I used: #include <Wire.h> #include "WiFiEsp.h" // Emulate Serial1 on pins 6/7 if not present #ifndef HAVE_HWSERIAL1 #include "SoftwareSerial.h" ...
1 vote
0 answers
36 views

Trying to understand stepper behavior, and I have some specific questions

I'm using a repurposed MKS Gen L V1.0 board (arduino MEGA + RAMPS, basically) to control a pair of IR sensors and a NEMA 23 stepper with TB6600 driver. The application is simple: raise and lower the ...
0 votes
1 answer
49 views

Error while burning bootloader onto ATMega-8A using Arduino Mega 2560: avrdude: invalid byte value

So, I'm trying to burn the bootloader onto an ATMega 8A with an Arduino Mega 2560 as ISP. I made the necessary connections, and got this error: C:\Program Files (x86)\Arduino\hardware/tools/avr/bin/...
  • 13
-1 votes
1 answer
155 views

Avrdude verification error when uploading to Arduino Mega 2560

I have been getting the error avrdude: verification error, first mismatch at byte 0x036c 0xb8 != 0xf8 avrdude: verification error; content mismatch avrdude done. Thank you. When trying to upload the ...
-1 votes
1 answer
36 views

Arduino Serial to USB=>serial data issue

I am using Mega 2560 to receive serial data from another device but the data appears on the serial terminal are strange characters. then i connected my USB to serial cable (HL-340) to the device and ...
  • 3
0 votes
1 answer
55 views

Servo not moving with PIR motion sensor

I am working on this code to turn a servo when the PIR motion sensor detects no motion, but it is not working. Some symptoms include: Servo is turning extremely slowly PIR is not turning the servo ...
  • 21
1 vote
0 answers
38 views

I’m having trouble getting a motor to run for 10 seconds and then reverse direction every time push button is pushed down

i am brand new to arduino and was looking for a little help. i am looking to activate a motor once the button is pushed for 10 seconds and then have it stop. then the next time the button is pushed, ...
  • 11
0 votes
1 answer
39 views

Connect an MPX10DP Pressure Sensor to an Arduino Mega 2560

I'm literally new to using Arduino, i am trying to build a Pitot Tube to measure airspeed using an MPX10DP differential pressure sensor and i am working with an Arduino Mega 2560. Honestly, i have ...
1 vote
1 answer
78 views

How can I clear two FastLEDs strip ws2812b separately? One strip is connected to pin 7 of UNO and other strip to pin 6 of UNO

The power supply is external. I want to clear one strip say pin 7, and meanwhile i dont want other strip say pin 6 to switch off...I use FastLED.clear(); FastLED.show(); But it clears all the led ...
0 votes
2 answers
56 views

How to display only specific data in the serial monitoring?

I got the following data as shown in the figure from imu razor which is connected to Arduino Mega 2560 in the serial monitoring and I want to get only the data that starts with "#A-R= " Can ...
  • 11
0 votes
1 answer
119 views

Funduino USB Host Shield problems

I'm currently working on connecting a Funduino version of usb host shield onto an arduino mega board. But the serial output shows "osc did not start", which means the board can't find the ...
1 vote
2 answers
337 views

Using Software Serial on Arduino Mega

So Im using this sensor: https://wiki.dfrobot.com/Serial_6_Axis_Accelerometer_SKU_SEN0386 with this library https://github.com/DFRobotdl/DFRobot_WT61PC Im using 2 sensors but got poor frequency on ...
1 vote
1 answer
48 views

Fluctuation in 4 half bridge load cell via combinator

I'm currently using a Sparkfun 4 Half-Bridge load sensor (50 Kg) with combinator and amplifier both are from the Sparkfun. Link:https://www.sparkfun.com/products/10245 (For Load Sensors)https://www....
  • 13
0 votes
1 answer
57 views

Unpredictable behavior of a 74HC595, Q0 has no output and LED flickering

Below is my schematics: I am using a 74HC595 shift register and to test my connections, I have placed 8 LEDs to the output and shifted 0xFF into the shift register (1111 1111), this should light up ...
-1 votes
1 answer
40 views

How to shift binary into a shift register (serial in, parallel out) sequentially

I'm trying to make a continuity tester at work where I connect the input and output of a harness into a test fixture powered by an Arduino. This tester tests whether the position of the connects are ...
-1 votes
1 answer
38 views

Arduino battery capacity selection based on the current measurements

I'm sorry for this stupid question... I'm not an electronic/electric expert.. In order to select the battery capacity as well as the solar panel I'm measuring the Arduino current consumption. So, I ...
  • 101
1 vote
1 answer
601 views

Sending float values from Python to Arduino using Serial communication

I need to send an array of floating-point numbers from python to Arduino Mega. For that, I read many sources [this this this this this] this] and many more links for the same I referred. But unable to ...
0 votes
1 answer
53 views

Using a 5 pin button with Arduino Correctly

I am trying to build a simple motor test sketch, currently, to test a NEMA 23 stepper motor and the DM542T stepper driver. Here is the code, and I am having trouble figuring out how to properly wire ...
  • 350
1 vote
0 answers
80 views

Nema 17 stepper motor speed problem

This code is quoted from here. May I know how to increase the speed of the NEMA 17 stepper motor further? I tried to increase the step speed to 2000rpm but it does not even work. It only works for ...
-1 votes
1 answer
55 views

Displaying multiple temperature outputs w/Thermistors

So I asked this question a couple days ago but did some more work with some of the coding, but I'm really stuck and need some help. I'm trying to display the temperature for each separate thermistor ...
0 votes
1 answer
44 views

Having trouble reading multiple thermistors w/ Arduino 2560

I'm trying to get my code to read multiple thermistors and I can't quite seem to get it correct using my arduino 2560. The first issue is it's not reading more than the first thermistor. The next ...
1 vote
0 answers
180 views

Can no longer select a port in Arduino IDE on Linux?

I am trying to upload to my Elegoo Mega 2560. I previously had it set up properly with the board installed and selected and the port automatically detected. Now when I go to Tools and hover my mouse ...
1 vote
1 answer
298 views

How to pass non-static class member to callback on avr platforms?

I am using the PubSubClient library in my own Arduino library. I'm having trouble with trying to assign a class member as the client library setCallback callback function. MyClass.cpp: #include <...
1 vote
1 answer
104 views

MAX30100 and ESP8266 NodeMCU Serial Errors

This is my final year project and for some reason, the max30100 sensor defaults to static values once the HTTP post request has been performed. #include <ESP8266WiFi.h> #include <...
2 votes
1 answer
81 views

Communicate with Sparkfun CAN Bus Shied

i have a Arduino Mega 2560 R3 and a Sparkfun CAN Bus Shied. Im using the SparkFun_CAN-Bus_Arduino_Library-master. I want to communicate over SPI (they have diffrent SPI pins), so i had to change it in ...
  • 21
2 votes
1 answer
76 views

ELEGOO Mega 2560 USB and Vin simultaneously?

I'm powering my Arduino clone with an LM317 circuit that regulates Vin voltage to 10V (measured with a multimeter). While the Arduino is powered by USB only, everything works. When it's powered ...
  • 21
1 vote
0 answers
112 views

CONTROLLINO MEGA – Timeout communicating with programmer

I’ve been using my CONTROLLINO MEGA since long time ago, but today I uploaded a sketch and now the board is not working. Everytime I try to uploud a sketch, ARDUINO IDE remains in “uploading..” mode ...
3 votes
0 answers
195 views

Integration of MAX30100 and DS18B20 Thermal Probe Integration

This is for my final year project that I have been tasked with designing a patient monitoring system. However, during the last stretch of model prototyping, I am experiencing issues with my MAX30100 ...
4 votes
1 answer
85 views

Arduino Array Scope with SPI

when I try the following code the SPI works correctly (see oscilloscope plot) #include <SPI.h> void setup() { SPI.begin(); } void loop() { SPI.beginTransaction(SPISettings(100000, MSBFIRST,...
1 vote
1 answer
91 views

Arduino u8glib Problem

I am Trying to make tetris on a 128x64 oled 1.3", and I am using the u8glib library. Here Is My Code: #include "U8glib.h" U8GLIB_SH1106_128X64 u8g(13, 11, 10, 9); int val = -53; int ...
1 vote
0 answers
84 views

Can't get 433 RF to work

I am trying to have two Arduino's to communicate to each other via 433Mhz units. My project is a bit more complex, but I since it was notworking I reduced it to most basic form in order to exclude the ...
0 votes
2 answers
58 views

Library that pulls ID3v2 info from MP3s

I'm using an Adafruit Music Maker with a TFT screen on my Mega 2560. I can pull ID3v1 data from the end of an MP3, but I'd like to get the ID3v2 data as I can then push the album cover art to the TFT ...
0 votes
1 answer
41 views

Mega 2560 with Adafruit Music Maker and TFT - Pin reroute

I'm building a custom headunit for my motorcycle using the Arduino platform. I wanted to try it as the modular nature of the board and shields looked very versatile. While there does seem to be plenty ...

1
2 3 4 5
36