Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
0answers
9 views

How to read data from L&T Energy meter [on hold]

I am using L&T EM101+ energy meter. I want to read parameters like Voltage,current and Watt from the energy meter through serial port. kindly suggest possible ways to read the data. Thanks & ...
0
votes
1answer
25 views

RFID RC522 reads the previous tag serial with different tag

I hope someone can help me. I'm using a Mega with RC522, and this happens: I use a tag, it reads the right serial (e.g. AA:BB:CC:DD). Then I use a second tag and sometimes it gives me the correct ...
0
votes
0answers
21 views

How to make Variable Frequency Drive (VFD) Inverter using Arduino

I have a VSI SPWM Inverter Project, but my supervisor ask me to upgrade it to a VFD Inverter. I've found a code about how to generate 3 phase SPWM in this article, and i've tried the code. The output ...
0
votes
2answers
24 views

Error compiling a sketch to class/library conversion

I'm trying to take a sketch and turn it into a class for a library I'm making, but I'm getting compile issues. This is not a duplicate as suggested. as i explain in the comment and my answer. Thank ...
0
votes
0answers
23 views

How to generate 4 square signals using Arduino Mega 2560 below 30hz using timers

I would like to generate 4 square signals of different frequencies below 30 hz using timers of Arduino Mega. I was able to generate 30.6hz signals but I have no idea how to generate lower frequencies....
0
votes
0answers
42 views

Code not working

Basically, it's an Arduino project in which I am stuck. I using inputs as two sensors and LED as output, for further details and concept video had been attached. I did the wiring and everything ...
0
votes
0answers
15 views

NEO 6M GPS with COMPASS Module, Arduino Mega

I'm doing a 4-wheel robot project. My goal is to detect the location of the robot and go to the coordinate points I have entered. I'm using the TinyGPSPlus library. The problem is that it doesn't ...
0
votes
1answer
16 views

Issue with analog readings on Arduino atMega with YL-69 moisture sensors

I've connected four YL-69 sensors to my arduino at-mega2560 on analogs pins 0-3. This is combined with four DHT11 sensors that are in digital pins. The DHT work fine, and I can work one YL-69 ...
0
votes
1answer
145 views

ArduinoISP external programmer produces verification error?

I am using an ArduinoISP external programmer to upload a sketch to an Arduino MEGA. I set the processor type to MEGA 2560, and use Ctrl-Shft-U to upload using a programmer. My programmer is set to ...
3
votes
2answers
2k views

Arduino Mega + SIM808 GSM + GPS Module + Program Switch ON without pressing Push Button?

I am new to IOT and tried out integration and a small test code with an Arduino Mega + SIM808 + GSM + GPS Module. It works fine with the SIM808 Library. My requirement is to put it in an enclosure, ...
1
vote
1answer
69 views

Looking for a waterproof SPI temperature sensor

In my current project I'm using a DS18B20, which seems to be the only temperature sensor to show up when googling for waterproof temperature sensor for an arduino. The sensor itself is fine, however, ...
0
votes
0answers
24 views

Arduino Mega and ADS1256 board

I found code for a Teensy board and now I added just digitalwriteFast library to code and changed port to SPI for Arduino Mega. And now I get just one number out: #include <SPI.h> #include <...
0
votes
1answer
32 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
1answer
39 views

Arduino hangs after some time

I am using Atmega328p with 5V power supply, My Arduino getting hangs [or auto restarts] after some times. I am using libraries: Wire.h CRC32.h EEPROM.h Arduino.h TimerOne.h RtcDS3231.h ...
0
votes
1answer
46 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 ...
0
votes
1answer
30 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 ...
0
votes
0answers
12 views

Is there software to make an interactive GUI for my TFT touch screen shield?

I was wondering this, because realized it takes quite time consuming due to all the lines of code I have to write.
0
votes
0answers
5 views

ros_serial loses sync with Arduino only when motors are running

We have an Intel NUC communicating with an Arduino Mega using ros_serial. There are several motors attached to our bot. The motors are controlled using a BlueRobotics Basic ESC Rev 3 which takes a PWM ...
0
votes
1answer
29 views

How to add if condition with RFID Example

Using a Arduino Mega 2560 and PN532 NFC/RFID module, I want to be able to scan a card and see if it's value is (0xF0, 0x21, 0x5D, 0xA7). It should print "accepted" in the serial monitor. However ...
0
votes
1answer
42 views

Arduino Uno: avrdude: stk500_recv(): programmer is not responding

I have an original Arduino Uno board purchased directly from the official arduino website. I have used it successfully with IDE v1.8.5 on my Windows 10 laptop for various projects in the last 6 months....
1
vote
1answer
637 views

Not getting data from GPS

When I run FullExample program from TinyGPS++, I get following types of entries, Sats HDOP Latitude Longitude Fix Date Time Date Alt Course Speed Card Distance Course Card Chars ...
0
votes
1answer
964 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 ...
0
votes
0answers
22 views

SD card module not responding [duplicate]

I am trying to read an SD card info by Arduino and an SD card module. But the SD card is not responding. I connected the wires carefully several times but it is not working. I am using this module : ...
0
votes
0answers
21 views

Encoder code using interrupts design question

I have an Arduino Mega 2560, an Omron Optical encoder with an Index (360 steps), a 60 led NeoPixel ring (no Clk wire) and another Arduino Uno. Here is my question, I have some code written that works ...
0
votes
0answers
22 views

How to use ESP8266 with Google API for GPS as well as controlling Arduino pins

I am working on IoT based project and I want to control the device using mobile App. Everything works fine, I can switch the load and get the status back on mobile app, but I want to use my ESP8266 as ...
0
votes
1answer
15 views

Mega attachInterrupt on pins 18 or 19 require EIFR bit set first (to clear it)?

Experimenting with external interrupts on a Mega. Pins 2 and 3 work with standard attachInterrupt(digitalPinToInterrupt(iPin),ISR,FALLING); coding and call my ISR. With pins 18 and 19 I had to add ...
0
votes
1answer
47 views

Cannot connect Mega to COM 9 but okay with other COM ports

I previously had issue updating code to Arduino Mega (clone). This is a continuation of this issue, but I think it should be made as separate thread. After some time spending with it. Turns out if I ...
0
votes
1answer
18 views

What are the negative PINs for on the IndustrialShield M-Duino 58 Analog

I am working as an internship on an Arduino based PLC. It is the M-Duino 58 Analog from IndustrialShields. I try to figure out how it works; Reverse Engineering. But i dont know why it has negative ...
0
votes
1answer
438 views

Error while uploading code to ESP8266 through Arduino Mega 2560

I am sorry for posting this question for the nth time but I am still not able to find a solution for this error. I am trying to upload the WiFiScan(Arduino IDE example program)program code to ESP8266 ...
0
votes
1answer
47 views

Arduino MEGA Timer Help

Nick Gammon posted some code to setup a counter on an Arduino UNO using timer2 to generate a 38KHZ signal, and I've used it on several IR projects. On my current project, I'm using FreeRTOS for the ...
0
votes
1answer
47 views

Does UNO and Nano have the same pins?

Do Arduino Nano Atmega328p have the same pins as Arduino/Gizduino Uno Atmega328p?
0
votes
1answer
961 views

Multiple Slaves(Arduino Mega 2560) response over SPI

I have problem creating Setup which have : A SPI Master (Arduino Mega 2560) SPI slaves (Arduino Mega 2560) ,which responds to the Masters request by sending float data (or Rather a 2D float array ,...
0
votes
1answer
59 views

Turning LED On/Off by using SIM808 with Arduino Mega

I am trying to turn an LED on/off by using GSM 808 module. Here #a0 = LED off and #a1 = LED on. I have used lcdShow function to display characters in LCD display. But nothing appears on display. What ...
0
votes
3answers
26 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 ...
4
votes
2answers
847 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
28 views

How to check whether my arduino-mega ADC is sampling correctly?

I have a code which samples the given input signals with sampling rate 256hz. I plotted the graph of FFT and was able to see the peaks at the expected frequencies.But I would like to know whether my ...
0
votes
1answer
35 views

esp8266 esp-01 printing garbage values on serial monitor

I am trying to up an esp8266 esp-01. While monitoring the serial monitor it's printing garbage values. I am using arduino-mega to write the code to the esp8266. The sample code i'm trying to write is ...
0
votes
1answer
20 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 ...
3
votes
2answers
358 views

Serial - Send data to Arduino while Arduino sending data

Arduino send data to PC each iteration. When I'm trying to send data to Arduino while receiving data from it, it takes too long. Serial.available() returns false even I sent data from PC. But if I add ...
0
votes
0answers
41 views

problem data I2C to sensor GY955/BNO055 (China)

I want to ask, I have a problem when running the Arduino sensor, I can't output data, but it's detecting that the sensor address has been paired. Like I2C has a problem or locks it. Last night it ...
1
vote
2answers
663 views

MISO pin issue in SPI

I have interfaced sd card and ADS1262 (ADC module) with Arduino mega board and sharing the SPI control pin i.e. SCK, MISO and MOSI. I have found that sd card is not initialized and ADS1262 is giving ...
1
vote
1answer
51 views

Dimmer.h issues with ATmega 128

I am using a ZCD circuit controlling a TRIAC. Now I am using Dimmer library for this purpose. It works fine with ATMega 328 but whenever I try to upload the code in ATMega 128 using Arduino IDE this ...
0
votes
1answer
75 views

Arduino Mega upload issue

I have made my own version of an Arduino Mega and I am encountering some issues. Whenever I try to upload any sketch to the Mega, I get the following error message: avrdude: stk500v2 ReceiveMessage():...
0
votes
2answers
298 views

Arduino Ethernet Shield 2: How can I automatically determine the MAC Address?

I'm using an Arduino Mega. I know that Ethernet Shield 2's come with a sticker with the MAC Address printed on it. This would imply to me that this address is hardcoded into the shield. Is there any ...
0
votes
2answers
530 views

delayMicroseconds- error?

running a very short program on a mega, just to generate a 8 microsecond wide clock pulse on pin 18, every 250 microseconds- closest 'delay' values I can get are delayMicroseconds(3), and (83) off, ...
1
vote
2answers
2k 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
1answer
170 views

Arduino with sensor

I am new to arduino and sensor. I am going to do a project related to E-nose to detect children breath odor. I wanted to use few sensors including Figaro TGS2602, TGS2600, TGS825, TGS2620 and TGS2180 ...
0
votes
1answer
116 views

analogRead always returns 1023 - Arduino Mega 2560

I have connected an FSR(Force sensitive Resistor) to as per image(edited name for avoiding mismatch). When i measure the voltage b/w two pins of fsr, voltage changing as per pressure applied. But ...
0
votes
1answer
31 views

What is the sizeof() Arduino's built in HIGH and LOW?

This might be a stupid question to ask but I'm curious. I decided to test this myself and I got a value of 2 for both HIGH and LOW, why would it output 2?
0
votes
2answers
36 views

expected unqualified id before token

here is the code. PROBLEM:- if I use for the loop the error comes "expected unqualified-id before for .......but if I use the void loop instead of for loop...the code is run without any error. ...