2022 Developer Survey is open! Take survey.

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
-1 votes
0 answers
8 views

Reading sensor data via 4G/LTE connection from my laptop

I have a temperature sensor connected to an Arduino MEGA 2560 R3. I have also connected the Arduino with SIM7600 modem. How can I send data from Arduino to my laptop via 4G without the need to POST ...
user avatar
-1 votes
1 answer
29 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 ...
user avatar
  • 101
1 vote
1 answer
55 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 ...
user avatar
0 votes
1 answer
40 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 ...
user avatar
  • 350
1 vote
0 answers
14 views

Error while burning bootloader onto ATMega 8A using Arduino Mega 2560: stk500_getsync() attempt 10 of 10: not in sync: resp=0x80

I'm using an Arduino Mega 2560 to burn the bootloader onto an ATMega 8A without a 16MHz crystal. When I press the 'Burn Bootloader' button, it gives me this error: Arduino: 1.8.19 (Windows 10), Board: ...
user avatar
  • 11
0 votes
0 answers
29 views

Controlling stepper motor function with Nextion display, works on display but not starting motors

I am using 2 StepperOnline NEMA 23 steppers that need to move simultaneously. I am using the StepperOnline DM542 driver and an Arduino Mega rev3 and 4 optical sensors as end/home stops. The motor ...
user avatar
  • 350
-1 votes
0 answers
34 views

Control 2 Nema 17 stepper motors

const long interval = 0; const long interval_alt = 0; unsigned long dirPin = 2; unsigned long dirPin_alt = 8; unsigned long stepPin = 3; unsigned long ...
user avatar
-1 votes
0 answers
21 views

RF24 issues on an Arduino Mega and Nano

This is an issue a friend of mine has been having for a while now. He needs to send data using an Arduino Uno and receive data using an Arduino Mega. The purpose is to eventually be able to keep track ...
user avatar
1 vote
0 answers
31 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 ...
user avatar
-1 votes
1 answer
37 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 ...
user avatar
0 votes
1 answer
24 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 ...
user avatar
1 vote
0 answers
50 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 ...
user avatar
1 vote
1 answer
67 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 <...
user avatar
1 vote
1 answer
46 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 <...
user avatar
2 votes
1 answer
59 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 ...
user avatar
  • 21
2 votes
1 answer
41 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 ...
user avatar
  • 21
1 vote
0 answers
42 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 ...
user avatar
3 votes
0 answers
97 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 ...
user avatar
4 votes
1 answer
59 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,...
user avatar
1 vote
1 answer
46 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 ...
user avatar
1 vote
0 answers
43 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 ...
user avatar
0 votes
2 answers
40 views

Library the 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 ...
user avatar
0 votes
1 answer
27 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 ...
user avatar
-1 votes
1 answer
64 views

i am tying to make a automated parking lot with a gate, sensor, button, keypad, how can i time how long has each car spent inside?

the project requires a automated parking lot, I have been able to connect and function the sensor and button for exit and enter, and the led(red lights when parking is full, green when there is spots)....
user avatar
0 votes
1 answer
63 views

How many ADS1115 ADCs can I connect to a single Arduino Mega 2560

I know we can connect 4 ADS1115s to an Arduino Mega 2560. Is there any limit on the number of ADS1115s we can connect to the Mega giving each a different address? I have to connect at least 36 ...
user avatar
3 votes
1 answer
175 views

get data from arduino using python

I am trying to read potential meter data from Arduino using python, with the program on Arduino as follows : #include <cvzone.h> SerialData serialData; int sendVals[2]; void setup() { ...
user avatar
1 vote
0 answers
56 views

PID cooler temperature control

Hello Hello I am making a controller of a small cooler (dry ice) PID but Im not sure if I am using the indicated mosfet Im trying with a NPN 222a and my second option is IRFZ44 Which would be the best ...
user avatar
1 vote
1 answer
56 views

Issue with input from weighing scale controlling a stepper motor based valve

Hello and thanks for any help in advanced. What changes do I need to make to my code to get rid of the issue of the valve opening up again at end of cycle in "Auto" function. Hardware: ...
user avatar
  • 11
1 vote
1 answer
60 views

fingerprint scanner and GSM module- how do i put a timer condition using if statements?

I am using a fingerprint sensor and GSM module on Arduino MEGA 2560. I want a fingerprint to be scanned every minute, if a minute elapses with no finger scanned, then the next code for the GSM to send ...
user avatar
  • 11
-1 votes
1 answer
44 views

UART connected device communication only works one way

As the title implies, I have two Arduino devices (Uno and Mega) connected to each other over UART (the Mega is hardware UART, the Uno is software UART); I need the Mega to send a command to the Uno, ...
user avatar
  • 63
-1 votes
1 answer
58 views

Can't get 1 second on a ATMega168 timer

TCCR1A = 0; TCCR1B = 0; OCR1B = 0xFF00; TCCR1A = (1<<WGM10) ; TCCR1B = (1<<CS12) | (1<<CS10);; //set the pre-scalar as 1024 TIMSK1 = (1 << OCIE1A); This doesn't ...
user avatar
1 vote
1 answer
20 views

Unable to use rising edge interrupt for external clock Arduino 2650

I'm messing about with an Arduino Mega2560r3 and failing to get timer 4 to trigger on the rising edge of an external clock. It only ever triggers on the falling edge. I've tried TCCR4B = (1 <&...
user avatar
1 vote
0 answers
85 views

Encrypting and decryption RSA (Or other asymetric encryption) on Arduino Mega

I want to encrypt and decrypt like 200 char strings on arduino mega, but I failed to find any library/code that can do that. Do you have any experience with doing that? Thanks. I'd like to use any ...
user avatar
  • 305
1 vote
0 answers
40 views

Controlling DC motor with joystick using Arduino

I am working on modifying code to control two DC motors with a joystick using Arduino. The code I have works, but the motor accelerates very rapidly and is difficult to control. I would appreciate any ...
user avatar
  • 11
0 votes
1 answer
166 views

LoRa recieves only 2-4 packets, then stops working

I'm working on LoRa project using [Ai-Thinker RA-01 SX1278 433MHz LoRa][1] with [sandeepmistry/arduino-LoRa][2] library. I modified LoRaReciever example so it looks like this #include <SPI.h> #...
user avatar
  • 305
2 votes
4 answers
519 views

My program is using too much memory

I work in a warehouse and I was tasked to make a device which will show the location of any product when Product ID is given. All of our product has 3 things. Product ID, Rack Number and Gap number. ...
user avatar
0 votes
1 answer
70 views

Hello, Please can someone assist me with in checking my code?..I try to generate a high freq signal (at least 150KHz) with Arduino Mega, CTC Mode

void setup() { pinMode(9, OUTPUT); pinMode(10, OUTPUT); TCCR2A = TCCR2A & B01010000 | B00000010 ; // CTC mode activated, Toggle OC2A TCCR2B = TCCR2B & B11110000 | B00000001;//...
user avatar
2 votes
0 answers
52 views

Simulink resets arduino

I am working on servo motors control through serial communication protocol, I am sending data from Simulink to arduino and vice versa, The problem I am getting is that once I open Simulink Servo ...
user avatar
  • 21
1 vote
0 answers
62 views

Servos "jump to fixed position" at startup when powered by external power supply only, but not by board

My question is about something that is happening ONLY when I use external power supply. When I use the power from the Arduino Mega directly, there is no problem. However, I need to use an external ...
user avatar
  • 119
1 vote
2 answers
62 views

LCD TFT 2.4"" changes the values of analog read of Arduino Mega

I have a Arduino Mega with LCD TFT 2.4"" with reading 5v signal on A8 pin (Arduino mega pin) from a raspberry pi (just to test). They are grounded together. When the Arduino is without the ...
user avatar
5 votes
1 answer
422 views

Delay() and millis() functions don't work in cpp external files

I'm currently facing an issue using delay() and millis() functions in an external cpp file. The issue is that when I used delay() in my main program (meaning .ino file) it works well but when I call ...
user avatar
1 vote
0 answers
66 views

Arduino mega ethernet Udp client randomly failing

I have a keyestudio board identical to the arduino mega 2560. I use the matching keyestudio ks0156 W5100 ethernet shield. My code uses the following library for ethernet paulstoffregen/Ethernet@0.0.0-...
user avatar
1 vote
0 answers
54 views

Where to save time and other values so I can read them after arduino powered down?

I need to save some values (and be able to update them frequently) that will stay there even after powering down the Arduino. (I didn't specifically choose any board yet, but UNO or Mega will be ...
user avatar
  • 305
3 votes
2 answers
439 views

MPU6050 Arduino Jeff Rowberg library interrupt Issue

I was trying to get the data from MPU6050 using the Arduino library mentioned here. The following code is an edited version of the sample code given in the library folder which seems to be working ...
user avatar
  • 171
2 votes
0 answers
121 views

External Interrupt and Input Capture pin | Arduino MEGA

I have a code for finding the rpm of one system calling here as engine , the engine have a hall sensor output and I have tried the following Code #define SERVO_MIN 2000 #define SERVO_MAX 4000 struct ...
user avatar
  • 171
6 votes
5 answers
2k views

What is the best technique to design a 20 push button circuit

I will be controlling a robot with more than 10 motors which means I'll need 2 buttons each to control moving forward and backward. My controller is an Arduino mega. Is 1 pin = 1 button the best ...
user avatar
  • 81
3 votes
1 answer
77 views

False interrupt triggering Arduino Mega

I am using Arduino mega with 4 interrupts to find the rotation speed of 4 motors . For this I have used INT2, INT3, INT4, INT5 and the code for the same is given below struct Pulse { uint32_t ...
user avatar
  • 171
2 votes
1 answer
167 views

Programming ATMega4809 via Atmel-ICE with Hex File from Arduino IDE - why doesn't the code loop / work?

Background I am programming a 40-pin ATMega4809 (datasheet) using ATMEL-ICE programmer. I'm simply using the Atmel Studio to upload a HEX file to the chip. I generate the HEX file using the Arduino ...
user avatar
  • 384
1 vote
0 answers
27 views

Using Arduino Click shield with NDIR Click CO2

I am trying to use (NDIR CO2 sensor Mikroelectronika) with Arduino Mega 2560 utilizing the Click shield. Mikroelectronika provides libraries for their platform (likely proprietary), hence i have no ...
user avatar
2 votes
2 answers
130 views

Update the ESP to espduino via NodeMCU Flasher

I am using Cactus Micro Rev2 and I'm trying to communicate with ESP via Mega32U4. I guess I have to update to espduino to be able to program the ESP side. And I don't know current ESP firmware version....
user avatar

1
2 3 4 5
36