Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

49
votes
11answers
265k views

How do I split an incoming string?

I am sending a list of servo positions via the serial connection to the arduino in the following format 1:90&2:80&3:180 Which would be parsed as: servoId : Position & servoId : Position ...
0
votes
1answer
310 views

Upload Code on Arduino Mega using FTDI Cable

I would like to upload my code to the Arduino Mega 2560. The USB is fried hence I have to use the FTDI I've a FTDI cable, but it has only 4 wires, Vcc,GND,TX,RX How do you upload, as the ATmega is ...
0
votes
1answer
37 views

Arduino Nano, Uno and Mega - XBee connection difference

I have a simple sketch working on arduino Uno and Nano sending data using an XBee. However, if I run the project on an Arduino Mega it does not work. What differences between Uno/Nano and the Mega ...
1
vote
0answers
1k views

Arduino Bluetooth data (large data files) transfer efficiency using HC05 module

Im using an HC-05 Bluetooth module connected to my Arduino MEGA. The Arduino has an SD card with some data files stored (sensor readings). After the sensor readings are done, the Arduino then connects ...
-2
votes
0answers
21 views

Arduino Fault Detection [on hold]

i am looking for sample code with arduino mega/ Arduino Due. I have 8 digital input and 8 digital output. I have connected 8 LED at output end i am looking for sample code where i wanted to ...
0
votes
0answers
12 views

Arduino menu coding problem by Keypad and 128*64 graphic LCD

I am trying to modify on the menu code to be able to use a keypad shield and arduino for scrolling between lines. after uploading and trying the code the following has happened: 1- I can not scroll ...
1
vote
2answers
1k views

16Hertz Uno R3 Board vs Arduino Uno R3 Board

I bought a 16Hertz Uno R3 Board. When I installed the driver and the Arduino IDE, in the IDE`s menu I saw: Tools -> Board -> Arduino Uno was selected by default which is great, but... ...
5
votes
2answers
930 views

How can an Arduino Mega 2560+Wifi Shield 2.0 (SeeedStudio) receive data from database in a XAMPP server on my PC?

I'm trying to connect my Arduino Mega via Wifi to my XAMPP server. My main objective is get a value from my database and store it on a variable in Arduino code. With this new variable I'll be able to ...
0
votes
1answer
2k views

How to connect an Arduino and a WAMP server's MySQL database?

I'm trying to connect an Arduino Mega to my WAMP server's database using MySQL connector for attendance logging. But it shows "Connection failed". What is my WAMP server's IP address? I connect my ...
0
votes
1answer
82 views

Can a push button be used for TFT LCD screens?

I am trying to link my TFT LCD touch screen to a few push buttons. May I enquire why my code is not working? I'm trying to link the screen and the button so I'm trying to make the image display a ...
0
votes
0answers
20 views

Arduino Stepper motor control programming problem

I want to control the speed and position of stepper motor by a 4*4 keypad and monochrome graphic lcd interfaced with arduino. some open sources gave me good hint points to start controlling the ...
-2
votes
0answers
54 views

My own version of Mega [closed]

i wanted to do my own version of Mega. So i did the schematics from the link below. Could someone very good at electronics to confirm if i have done it right or if there are any mistakes? Thank you ...
0
votes
1answer
1k views

Did not find fingerprint sensor :( Arduino Mega 2560 Adafruit Fingerprint Sensor

I'm getting the following error when I try to enroll fingerprints using the Arduino Mega 2560 microcontroller along with a Fingerprint Scanner: Did not find fingerprint sensor :( The exact devices ...
1
vote
0answers
180 views

Web Page doesn't load when data is being received from Xbee

I have an Arduino Mega I am using as a simple web server. Right now the web page is two simple lines of text. There is an XBee radio attached to the unit to receive data from another unit. However, ...
0
votes
1answer
57 views

C: No communication to a connected serial port?

I'm trying to connect to an arduino Mega At2560 unit connected via usb serial port in my linux based PC. Using C code, I'm trying to send and receive simple text strings, just I'm able to send and ...
1
vote
0answers
51 views

Erratic behavior from 'randomly' generated values in array

Currently working on a data collection algorithm on the Arduino MEGA (ATMega1280) and I've run into a problem with some of the code I've written. I feel my problems may be stemming from the way in ...
-3
votes
0answers
24 views

how I get battery percentage of my Bluetooth module [closed]

how I get battery percentage of my Bluetooth module Bluetooth HC-05 battery 300 mah
-1
votes
1answer
23 views

'myservo' does not name a type

I keep getting 'myservo' does not name a type as an error message, I have already looked other solved questions like this one but I can´t find the mistake. I would be very glad for your help. /*******...
0
votes
2answers
266 views

Use of additional i/o ports in Arduino Mega

I'm a newbie in Arduino and I bought an Arduino Mega instead of the Uno. I want to know what the so-called additional i/o pins do. Are they the same with PWM and SPI? What can they do?
0
votes
1answer
20 views

Arduino Mega not recognized on Raspberry Pi 3b+

I'm developing an interactive LED table for an university assignment that is being controlled by an Arduino Mega2560 which gets the information about which LEDs should be lit in which colour from a ...
0
votes
0answers
21 views

Problem Writing/Reading EEPROM on MEGA

I want to make a program that writes on the EEPROM some structs, the final device will take structs of RGB LED data: typedef struct{ unsigned char r; unsigned char g; unsigned char b; } ...
0
votes
1answer
2k views

Nextion Dual State Button

I am having an issue with my Nextion display. I have uploaded the following code via Arduino IDE to my Arduino MEGA 2560. My Nextion Editor shows the button as ID:9 on page0 named floor. I am not ...
1
vote
0answers
557 views

Arduino Mega + ESP8266 - Post Data to website issue

I'm trying to post data to my SQL database and it seems that I'm not sending the data correctly. My PHP file is working since I have tried it and it writes to the database. I am getting an esp.find("...
1
vote
1answer
356 views

SPI communication Problem Arduino

I'm trying to set up SPI communication between two Arduinos (UNO and Mega), I want to read the status of the slave output pin from the master. I connected a diode to pin 9 of Mega and I wanted to ...
1
vote
0answers
781 views

Arduino Mega 2560 SoftwareSerial Not Working

We have an xBee Pro S2C that is using this library (https://github.com/andrewrapp/xbee-arduino) very well on a Software Serial connection to ports 2 and 3 on an Arduino Uno. However, when we take the ...
1
vote
0answers
758 views

Connect to Ethernet2 by hostname

I´d like to connect my Ethernet2 with WIZ550 using DHCP but instead of Local IP, I want to use Hostname. This is my code, it works. I get a Local IP Address and I can connect to Arduino using this IP,...
1
vote
0answers
395 views

Send .wav file from SD card to NodeMCU via serial port

I was able to send a text file in the SD card to NodeMCU using the serial port of an Arduino Mega using this code: if (readSerial1 == "Okay I'm ready") { myFile = sdf.open("uid.txt", FILE_READ); ...
0
votes
1answer
34 views

Generating variable frequency of 3 phase SPWM

I got a sample of program to generate 3 phase SPWM from this Controlling output frequency of 3 Phase SPWM Inverter. As far as I understood, the frequency generated is constant. My question is how can ...
0
votes
1answer
26 views

Communicating with Arduino Mega 2560 Serial ports through x2 RS232

I am trying to driver a stepper motor using an Arduino Mega 2560. There will ideally be two RS232 signals being read into / written from the Arduino, each using male USB 3.0 connectors; one of these ...
0
votes
0answers
27 views

Arduino 3.5" TFT Display going blank after sending data through I2C

I'm trying to use I2C to send and receive commands between an Arduino UNO R3 and an Arduino Mega R3, with a 3.5" TFT display connected to the Mega. I have verified that my display is fully functional ...
0
votes
0answers
33 views

I2C between two arduinos

I have 4 gyro sensors that communicate to arduino uno using I2C and then arduino uno sends the data to arduino mega. I was wondering if I could use i2c for this purpose or if I should look for other ...
0
votes
3answers
58 views

Code getting stuck waiting for GPS Output

I'm basically trying to make a device that pulls the GPS information from a SIM808 and pushes it to a server online via GPRS. I am sorry as I am not good at programming so ive spent days trying to ...
0
votes
1answer
41 views

RDM6300 continuous RFID tag read

I have an RDM6300 connected to an Arduino Mega and code that can read the tag just fine: // Function prototypes void setup(void); void loop(void); // RDM6300 packet details #define ...
0
votes
1answer
41 views

servo starts rotating whenever it is plugged

I am making a fish feeder using an Arduino Mega 2560, servo motor SG90 and RTC DS3231. I want to make it rotate twice a day, i.e. morning and 9 o'clock evening. Whenever I plug my Arduino board to ...
1
vote
1answer
503 views

NEO GPS 6M connecting to Lilypad Arduino

I'm working on a project that has something to do with receiving gps data from the satellites. With this, I've used GPS NEO 6M with an arduino Lilypad for wearable purposes. I've already tried using ...
1
vote
2answers
3k views

ESP8266 error: espcomm_upload_mem failed while uploading sketch

First of all, I would like to apologize for posting this error once again to this community. However, I have been studying articles for last many days to resolve this error. Unfortunately, I did not ...
0
votes
0answers
13 views

Is there any possible way to display data from different sensors received from serial port individually? [migrated]

So i am working on a rc car which is equipped with a gps module(NEOBLOX 6M) and a geiger counter(Diy Kit). The data read by sensors is to be displayed on a c# application using xbee modules. On my C# ...
0
votes
1answer
28 views

How to get more than the 16 Analog INs on a Arduino Mega for using like 24 piezo sensors

i bought an Arduino Mega2560 and flashed it with usbmidi. So now it comes up as a midi device. I need more than those 16 analog ins to be able to put all my 24 piezo sensors into it to receive midi ...
1
vote
0answers
40 views

Unicast image transmission using Xbee

I've been working on image transmission using XBee S2B Pro modules and Arduino Mega. Main task is to transmit a jpg image taken by a jpeg serial camera at the transmitter and send it to a microSD ...
1
vote
0answers
1k views

Interfacing MPU6050 with Arduino through Simulink S-function

I am interfacing MPU6050 with Arduino using Simulink S-function builder. I'm implementing MPU6050_DMP6 code in Simulink s-function builder by following this video. By following this tutorial I ...
1
vote
0answers
198 views

Making '*' key on keypad a backspace key

Using a 4x3 membrane keypad and I want to make the '*' key a backspace if the wrong number is entered. I am a newbie and having a hard time trying to figure out how to code that, any help would be ...
0
votes
1answer
30 views

How to connect the following ESP8266MOD to Arduino Mega?

I am trying to connect the following ESP8266 to Arduino mega. However, I am unable to find the specific connection sheet for the same. Can anybody suggest the same?
0
votes
0answers
31 views

Stop getting values from arduino after some time

I have a strange problem, I have Arduino UNO/MEGA and I need to get Gyro sensors's data and I want to see the data in the serial monitor. Seems like a simple task, I wrote a simple C program which ...
1
vote
0answers
227 views

Interfacing MAX6675 with Arduino Mega 2560

I'm trying to use a thermocouple k type and a MAX6675 IC. I bought the MAX6675 chip and made the circuit (just a 1 nf capacitor on +5 V and GND near the IC) with the help of the datasheet I used the ...
1
vote
1answer
55 views

Mega <> esp8266 comms sending baffling data

I have Wemos Mega-ESP8266 board. I have uploaded a simple WebSocket server on the ESP... #include <ESP8266WiFi.h> #include <WebSocketsServer.h> const char* ssid = "SKYNET"; const ...
1
vote
0answers
25 views

MKR1010 serial communication

Is communication using tx/rx from an arduino to mkr1010 the same as any other serial communication? I ask because I can't find any tutorials or info on connecting an arduino to mkr1010, but there are ...
0
votes
0answers
11 views

Arduino NRF24L01 transceiver reading trouble shooting

I bought a NRF24L01 from Amazon a few days ago but am having trouble getting readings. When ever I open my serial motor instead of a message I get a stream of "?"s I know that I did something right ...
-3
votes
2answers
49 views

Coding multiplexer for 64 IR-sensors [closed]

I'm new to arduino and I was hoping if anybody can show me how to code a multiplexer (CD4051BE) for 64 IR-sensors? Really need it! Okay, To be more direct the problem is a software and not a hardware ...
0
votes
1answer
195 views

Arduino Mega resets when DFPlayer speaker plugged into amp!

I have a MP3 DFPlayer Mini connected to a Mega2560. I'm using serial to control it. The Mega is powering/grounding the DFPlayer, and USB is powering the Mega. If I plug a small speaker directly to the ...
1
vote
0answers
50 views

Ethernet shield reconnection problem after power cut

I am using arduino mega and this ethernet shield. Everyting is okey and connection is good. however, the device does not connect to the internet again after a power cut. if I press the reset manually ...