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
1answer
439 views

Interfacing with an SSI sensor?

I'm trying to interface with version RM08S of this rotary encoder using an Arduino Mega. The sensor supports a "Synchro serial interface (SSI), single ended" interface. I'm unfamiliar with this ...
0
votes
1answer
24 views

Can I use GSM and Data Logger Shield at the same time on one Arduino?

Me and my classmates are trying to make an arduino base project where we will be using sensors, GSM, and Data logger shield. We want the arduino to store the data collected and at the same time send a ...
0
votes
0answers
101 views

Reading raw values from MPU6050 using Arduino Mega

I am trying to connect Arduino Mega with a gyroscope/accelerometer with 6DOF, using MPU6050 micro ship. While searhing online, I found lots of codes with more than 200 lines, to just read raw values ...
0
votes
1answer
64 views

Difference in pinout (types?) Uno/Mega

As a hands-on guy, I've started my first ever Arduino project 5 hours ago with no prior knowledge about Arduinos (I have coding experience tho. included this in case I am missing something obvious to ...
0
votes
1answer
46 views

NOT realtime MP3 decoder

I know that MP3 is the most popular audio format out there, but I need to be able to convert them to wav files for bother project I'm working on. It can be done with a PC but I would like to know if ...
-1
votes
2answers
52 views

Time-bound LED program

I am trying to program a sketch such that an LED will light up for as long as a push button is pressed down. I have tested the components and electronics configuration before with a simpler program, ...
-1
votes
1answer
23 views

checking the line for the content of the word [closed]

I have such string: engine:255b How i can check is there a word (engine) in the line? And how i can got int 255? Please, help me)
-1
votes
1answer
30 views

Controlling servo via serial port without any delay [duplicate]

I have such code: void setup() { Serial.begin(9600); } void loop() { } void serialEvent() { while (Serial.available()) { Serial.println(Serial.readString()); } } When I send there ...
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
1answer
47 views

Help me determine the power consumption/rating of the circuit below? [closed]

Please help me determine the circuit's power consumption from the battery and help me outline the steps to calculate?
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():...
2
votes
1answer
71 views

Use an Arduino Mega in a incubator (high humidity)

I wonder whether it is possible to use an Arduino Mega in a cell incubator. In the incubator there is a temperature of 37°C, 5% CO2 in the atmosphere and a high relative humidity of around 95% - 98%. ...
0
votes
1answer
54 views

Memory chip for arduino

I know that you can't expand your ram because it is intern. But I want a extern memory chip (1024KBytes) that is very fast. I know that I need a library to access information on this chip. And ...
1
vote
1answer
67 views

Using the Arduino compiler, is it possible to use Atmega2560 interrupt pins that are unused by Mega?

Looking into the schematics for the Arduino Mega I noticed that pins PE6 and PE7 are interrupt-enabled (INT6 and INT7 respectively); however, they remain unconnected to any Arduino I/O pin. I'm ...
0
votes
0answers
35 views

Autonomous GPS navigation problems

I am trying to achieve autonomous GPS navigation on my RC car. I am using a very high quality GNSS/INS sensor (Advanced Navigation Spatial), from which I am getting lat, long and heading values. The ...
0
votes
0answers
43 views

Nextion controlling Neopixel

I am looking to control an addressable LED Strip (WS2812B) mode via a Nextion display. Below is a short version of my code. CODE ////////////////////////////// // LED LIGHT SHOW PRESETS // ////////...
0
votes
1answer
54 views

FIle not being found on sd card

I have some quite long code to copy a file from an SD to the same card, but under a different name. I have one version where the file names are built-in to the sketch, but to make it more portable, i ...
0
votes
0answers
53 views

Two Arduino Megas-Connecting through I2C gives wrong values

I have a problem with my Arduino. I am using two Arduino Megas connected through I2C. The master Arduino has two sensors attached to it while the slave Arduino is just supposed to collect data from ...
0
votes
0answers
35 views

Programming parallel FRam with Arduino mega?

I'm looking to program a FM28V100 on an Arduino mega. It is supposed to behave like SRAM (see datasheet: http://www.cypress.com/file/136646/download) Are there any libraries I could use? I looked ...
0
votes
1answer
374 views

Wiring for Arduino Mega and multiple MPU 6050/Gy 521?

I have an Arduino Mega 2560 that I need to connect 4 MPU 6050/Gy 521's to. I found some resources on the Mega and Uno, however I'm having trouble piecing them together. This resource gives great ...
-1
votes
3answers
471 views

Wait for ALL serial data to be received

Is there a way to make the Arduino wait until all the serial data has been received? Say I send a 32 byte long string over serial (the length is actually random), how would I make my Arduino wait till ...
0
votes
1answer
985 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
2answers
58 views

Trying to connect FT sensor to Arduino Mega using RX TX

I am trying to interface this sensor, https://www.robotous.com/forcetorquesensor (RTF60-HA01-C), with the Arduino Mega. The sensor has an input voltage of 5Vs and communicates using CAN/RS232/RS422. I ...
1
vote
1answer
64 views

Integrating Java program with arduino mega is it possible?

I have just written a java algorithm to get a chess move when a chess move is inputted in SAN notation the algorithm used : Monte Carlo. Is it possible to integrate this program with an Arduino mega ...
0
votes
1answer
69 views

How do I clear previous values while using strcat() to add strings?

Is there any other function to add strings into buffer and updating values as well. This is the problem I am coping with while using strcat() char temp[2] = "A"; char temp_end[2] = "a"; char buf_adc[...
0
votes
1answer
46 views

Serial communication between 2 arduino's doesn't works when Sending string in a program with a lot of functions

Note : This question is completely different from the questions that I have asked before although the code snippets might be the same, So please do not waive it as a duplicate right when you see ...
0
votes
1answer
32 views

Serial.print changes serial output before it is called

I'm making a project with an sd card where the user enters a file name over the serial port, and then the aduino does thing to that file. Right now i'm working on getting the serial input to work, but ...
1
vote
4answers
88 views

Arduino reads string from another Arduino only if the string is in a loop why?

In my setup I have connected two arduino's Serially. An Arduino Mega is the on that is sending the string and a Arduino Uno is the one receiving it. Arduino Mega : RX1(19),TX1(18) - Serial1 ...
0
votes
0answers
49 views

Arduino slowing down over time

My arduino is set up to copy a file on an sd card to the same card, but under a different file name. Lately, my arduino has been slowing down after running for a while (i have speed calculations in ...
0
votes
1answer
37 views

Unable to send SMS from interrupt routine

I am trying to develop a burglar alert system. I am using PIR sensor, Arduino Mega and SIM800L. I have connected PIR sensor to interrupt pin. Whenever motion is dected, a function corresponding to the ...
0
votes
0answers
26 views

Arduino reading string sent from Rpi multiple times

1.Reading strings sent from Arduino on RPI Below you can see that I am communicating between a rpi and arduino serially. I am sending "start", then move_played to the rpi. The readline() reads until ...
0
votes
2answers
212 views

Arduino Mega: Interrupt not working? Use any pin for interrupt?

I am using an arduino mega. I'm trying to use interrupts in one of my programs. I have 8 pins that I will need to make separate interrupts for. The pins are 40 - 47. These pins are attached to limit ...
2
votes
1answer
102 views

LCD prints weird characters when I place the print statement in setup after pinMode statements

#include "LiquidCrystal.h" const int rs = 7, en = 6, d4 = 5, d5 = 4, d6 = 3, d7 = 2; LiquidCrystal lcd(rs, en, d4, d5, d6, d7) void setup() { Serial.begin(9600); lcd.begin(16, 2); pinMode(22, ...
1
vote
1answer
162 views

Arduino MEGA2560 wake up using DS3231 RTC

I am trying to set the Arduino MEGA 2560 R3 into sleep mode and wake it up with an RTC DS3231 via interrupt. I was following this tutorial: Tutorial One of the libraries included is the "LowPower" ...
0
votes
0answers
53 views

Arduino Mega timer for reliable time recording

I'm making a slow control system using Arduino Mega. The Arduino board needs to measure temperature, magnetic field, switch on/off LEDs, and exchange messages with an external system via UART. All of ...
0
votes
0answers
99 views

TFT with Arduino Mega2560

I am using an LCD 5" SSD1963 TFT Display 800x480, Arduino Mega2560 and display 5 inch TFT Arduino Touch Shield w/SSD1963 for Mega/Due. I have also successfully interfaced flash IC W25Q128FV and ...
1
vote
1answer
157 views

exit status 1 no matching function for call to 'LiquidCrystal::LiquidCrystal(int, int, int, int, int)'

The code below // include the library code: #include "LiquidCrystal.h" // initialize the library with the numbers of the interface pins LiquidCrystal lcd(2,4,5,6,7); void setup() { // set up the LCD’...
0
votes
1answer
46 views

Arduino IDE giving a blow to battery back-up of PC [closed]

When I have serial plotter open in the Arduino IDE with serial communication going on, the fans of my PC go full speed. On checking I found that Java(TM) Platform SE binary(32 bit) is using about 29% ...
0
votes
1answer
42 views

LCD display not working properly + inconsistent results

I have soldered the pins to my 20x4 LCD display. The soldering is not very good, but this is the best i can do. I have measured the resistance between each of the pins of the LCD with my multimeter to ...
-1
votes
1answer
39 views

How to use control a 48 000 motor with Arduino

I am new to Arduino and I am just playing with it, I wanna control a 48,000rpm motor with 9v voltage via Arduino the plobrem is how could I make that motor slow down, slowly. Any ideas? I am using ...
0
votes
0answers
32 views

Save my data into different tables

I use this library EDB master I want to save my data into 3 different tables what's the best way to do this? #include "Arduino.h" #include <EDB.h> // Use the external SPI SD card as storage #...
2
votes
2answers
827 views

HC-05 bluetooth module not accepting AT commands

I have been attempting to program my HC-05 ZS-040 Bluetooth module for quite some time, and I cannot get the AT commands to return any values. I have searched google for quite some time, and I none of ...
0
votes
1answer
31 views

Output voltage of PIR sensor [closed]

Case 1 I am measuring output voltage of PIR sensor, I am getting 3.3v Case 2 I have connected a resistor and a led to output of PIR sensor. Now when I measure voltage at the output pin of the sensor, ...
1
vote
0answers
44 views

Can I track 70 pressure sensors from Arduino Mega?

I am a beginner at Arduino which I just received in the mail. My understanding is my Arduino Mega has 54 digital inputs and 16 analog inputs making for 70 inputs all together. I would like to track ...
0
votes
2answers
1k views

WiFi problem on Mega + WiFi R3 ATmega2560 + ESP8266

I've got 2 "Mega + WiFi R3 ATmega2560 + ESP8266" (link) and both have same issue when trying to use the ESP chip. Hope someone can point me toward something else to try in order to get them working ...
0
votes
2answers
61 views

Reed Sensor matrix for chess board query

NOTE: This is not a question that has been answered previously in similar questions. I am using an arduino Mega I have gone through Bergers Blog(schematic is in this link), but have been breaking my ...
0
votes
0answers
48 views

Arduino Mega 2560 Read AC Voltage

I would like to get realy fast ADC readings. I would like to get in 1ms atleast 5 or more measurment. Something like osciloscope but i need this for other application not for osciloskop. Do you ...
0
votes
1answer
117 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 ...
-2
votes
1answer
33 views

currentbuttonstatus [closed]

I'm trying to use momentary push buttons to switch bi color LED between RED and GREEN. I've got one working, but when I try to adapt the code for more buttons, it doesn't work. I'm just changing the ...
0
votes
0answers
157 views

Creating a Driver for PNI RM3100 compatible with Arduino

I am currently developing a driver for the RM3100 magnetometer but am running into issues reading and writing to the registers. Currently, I am trying to read the STATUS register to determine if the ...