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

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.

1
vote
1answer
26 views

Midi controlled LED by USB

I am trying to create something that will allow me to control an individually adressable LED strip using an electric piano using its midi output. Some things to note: The piano can output midi ...
0
votes
0answers
14 views

Imporper results with FCDFT in arduino

I have implemented Full cycle DFT algorithm in arduino 2560. It works well with fundamental(50Hz). It attenuates all even harmonics. But surprisingly lets through all odd harmonics. What am I doing ...
0
votes
1answer
22 views

How to Create a reference to an External Print object

Right now I have an object: class Dog { public: Dog(uint8_t I2c, Stream& feedback); void Speak(); private: uint8_t _I2c; Stream& _output; }; Dog::Dog(uint8_t I2c, Stream&...
0
votes
1answer
32 views

Watchdog Timer for atmega 128

I am using atmega 128 for a smart vehicle tracker. I am trying to use watchdog timer for this controller.But problem is that I have found the maximum watchdog reset time is 2 seconds. I need watchdog ...
0
votes
1answer
23 views

Arduino loop over a function is always displaying 0 as final values

I trying to loop over a function in arduino to get values for 2000 times, and then divide it by 2000 to get an average offset: int16_t x_offset = 0; int16_t y_offset = 0; int16_t z_offset = 0; And ...
0
votes
1answer
41 views

Can I use a camera sensor from a not functioning smartphone in Arduino or Raspberry pi?

I want to use the OmniVision_OV16860 camera sensor from a not functioning Moto G4 plus phone to capture pictures using Arduino or Raspberry Pi. Is it possible to do that? If yes, explain the whole ...
1
vote
0answers
47 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
28 views

Stop phone charging using Arduino

I am developing an automated test tool for Android phones. For this, I need to know how to stop the charging capability of android phones whenever it is connected to the PC via USB. I need to do this ...
0
votes
0answers
16 views

Failed to communicate between 2 LoRa modules

I used Arduino Mega 2650 on transmitter end and Arduino Uno on receiving end. (2 LoRa RA02 modules with self made wire antenna with RPSMA-UFL Connector) Transmitting is working fine but I did not ...
2
votes
1answer
63 views

Arduino Mega and gyroscope erroneous values

I have Arduino mega2560 and MPU6050. I connected to Vcc pin of the gyro to +5V on the mega, the SDA to SDA pin, SDL to SDL pin, AD0 and GND to 2 GND pins. I used this code: #include<Wire.h> ...
0
votes
1answer
33 views

How to configure TinySine 3G module (SIM5320E) for HTTP GET request

I recently bought a 'TinySine 3G shield (SIM5320E) 900/2100Mhz' based on Adafruit_FONA libraries to use with Arduino Mega 2560 R3. It successfully registered with Vodafone AU. Other functionality ...
0
votes
1answer
36 views

Using Arduino wireless SD Shield to save data to sd card and send to PC over wireless network

new here. I'm using an Arduino Mega to monitor the current & voltage input to four different sensors. This works fine - the sensors work as expected and I can view the results via the Serial ...
2
votes
1answer
23 views

Why the MPU6050 gyroscope read write register value is 0x08 for a full scale of 500 degrees per second?

I am trying to connect a gyroscope MPU6050 to arduino ATmega2560 and read its raw values from its 6DOF (gyro and acc). I found the following code: //Activate the MPU-6050 Wire.beginTransmission(...
0
votes
0answers
35 views

How to read and change value of registers of MPU6050 to change the default scale range of gyroscope and accelerometer?

I want to read the value of I2C register of MPU6050, and other registers like the scale range selected of a gyro. The I2C address according to MPU6050 datasheet is 0x68. I wrote this code: #include ...
0
votes
0answers
16 views

Arduino Mega and MPU6050: Reducing the code [duplicate]

I am trying to work Arduino Mega AT2560mega and gyroscope MPU6050. There is a premade code on Arduino forums, where all registers of MPU605 are defined and the code is about 800 lines. I can't find ...
1
vote
1answer
40 views

When using an Arduino as an ISP, is the capacitor required or not?

Looking at Arduino as ISP and Arduino Bootloaders, it is stated The 10 µF electrolytic capacitor connected to RESET and GND of the programming board is needed only for the boards that have ...
0
votes
1answer
36 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
0answers
17 views

OV7670+FIFO, the 20 pin version connecting to Arduino

We've bought this new OV7670+FIFO camera which has 20 pins on it. The problem is that it is different with any codes for the OV7670 camera that exists in the forum or the entire net. Can you please ...
0
votes
1answer
12 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
23 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
43 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
32 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
20 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
25 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
0answers
36 views

bad audio quality

I want to do a project where I need a relatively small speaker, so I tried one of a door bell (16 ohm , 0.25 W), but the sound quality was so bad. Actually I don't know if it's because of the speaker ...
0
votes
0answers
37 views

Most efficient way to control more than the allotted pins on an Arduino Mega pro mini

I'm using the Arduino Mega pro mini and it has 54 pins. I need 160 controllable pins and the chips I'm going to use need to be the smallest for a PCB. So the 2 options I was thinking about were the ...
0
votes
1answer
26 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
40 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
56 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
0answers
39 views

Arduino Mega serial communication problem

I have a problem with a serial communication with Arduino Mega. I connect Serial3 to RS232-to-USB device and using hyper-terminal I get wrong characters (different from what I sent). For example when ...
1
vote
1answer
52 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
0answers
45 views

Simulation of PWM using timer

I'm currently trying to output a PWM signal from an Arduino Mega using register TCCR4A & TCCR4B manipulation. I'm able to have the attached motor spinning but I strongly doubt it's receiving the ...
0
votes
1answer
44 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
28 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
23 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
22 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
39 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
48 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
23 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
63 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
144 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
0answers
121 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
1answer
15 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
37 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
23 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
26 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
30 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
85 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
45 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 ...