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
vote
1answer
15 views

My motor driver gets stuck in either high or low with a certain speed super randomly. Motor output stops going based on accelerometer input

Running a DC motor(6.5A max input), motor driver (MD10C 7Amp peak output), and arduino Mega. Basically, I am creating a stabilized object based on the accelerometer's input. It works great but all of ...
1
vote
0answers
9 views

Connect and detect multiple arduinos using firmata

i am trying to connect several arduinos to usb ports and have the abillity to define between them. i added Firmata.attach function on the arduino board. how do i call it from my python script? thank ...
-1
votes
0answers
16 views

Iso code and equipment help for led arrays w/ buttons [closed]

Looking to get some code for a project I am creating with 4 ws2811 strips of lights and a center of 9 rings in the middle of the 4strips. I would like to have a button to change the patterns and a ...
1
vote
0answers
23 views

Saving a value with a click

I have a rotary encoder and 2 buttons to a. Store the encoder value b. Reset the encoder value to 0. The reset buttons work fine the issue is with the set/store button. Where the value changes without ...
0
votes
0answers
25 views

Error compiling for board Arduino Mega or Mega 2560

#include <Servo.h> // Include Servo Library #include <NewPing.h> // Include Newping Library #include<SoftwareSerial.h> #include <dht.h> //Include the DHT library ...
0
votes
1answer
12 views

log STK500v2 commands while flashing a Mega

My final goal is to replicate the process with which the PC programs the arduino. I have gone through the commands.h file and made a couple of attempts to get the logic right. But no success at ...
1
vote
1answer
23 views

Timers, PWM pins and digital outputs on Arduino Mega

I'm using an Arduino Mega to control motors via PWM and Adafruit DRV8871 motor drivers. I also use TIMER1 for a timed interrupt. After adding the TIMER1 interrupt I discovered I had problems with ...
2
votes
1answer
36 views

I want a bar type display for my Arduino Project

I am trying to make a smart table project. But I have stumbled upon one problem, that is I don't know which display should I use. I need a display that has roughly aspect ratio of 2:1 but also has a ...
3
votes
1answer
115 views

Wrong documentation for Mega2560 SPI Pins?

This page https://store.arduino.cc/usa/mega-2560-r3 contains the following image under the Documentation section. It shows digital pins 10 to 13 with labels SS, MOSI, MISO, and SCK. However, this ...
1
vote
1answer
51 views

The analog read is not giving the correct waveform as that of an oscilloscope

I have this code that fetches analog input values from terminals A0, A1 and A2 of Arduino mega 2560. But, when I plot the data, it does not give the desired waveform. The desired waveform is parallel ...
1
vote
0answers
37 views

Several lines of code stop program from running?

After a lot of help from you guys (huge thanks) Ive completed my code and gone to test it. unfortunately though one line of code weight = (tip_read.get_units()); stops anything from happening and on ...
1
vote
1answer
25 views

Arduino array error

I'm writing a program that has a sub program that saves values to an array, but the sub program that saves the values to the array comes back with an error telling me that the array isnt declared in ...
2
votes
1answer
28 views

FastLED not performing as expected

I'm fairly new to working and programming with arduinos. The project I am working on is a digital clock which uses a string of WS2812 leds to light up the correct numbers. Each digit consists of 7 ...
0
votes
0answers
20 views

How to tell if there is a line break from Nextion display to Arduino at Serial

Well I am trying make language page with Nextion display and Arduino Mega. If user enter the language page Nextion display is sending page name with this commend to Arduino for which is current page. ...
1
vote
1answer
49 views

printing data from gps on Serial1 and sensors into Serial

I am having some trouble using my gps (on Serial1) with my other sensors. They both work great independently but when I use them in the same code, it's either the gps or the sensors that get to write ...
1
vote
1answer
27 views

About maximum length of matrix can be use for matrix invertsion on atmega32

what is the maximum length for matrix can be used for matrix inversion on atmega32,for example,can we implement matrix inversion for 15x15 matrix on atmega32? And if it can be done on atmega32..does ...
0
votes
1answer
26 views

I get an error saying, “exit status 1 expected initializer before 'void'.”

I will be wiring a switch to the Arduino that controls the voltage. When the I turn the switch it can adjust the voltage from 0 to 5. The overall task is to print the output voltage. The print is to ...
1
vote
1answer
23 views

Read two HX711 load cell amps

I need to read two values from hx711 load cells connected to strain guages. Ive found the code below that reads one guage, but being self taught and with little experience I have no idea how to adapt ...
1
vote
0answers
22 views

Function not delclared in scope [closed]

Its a bit of a long piece of code so thank anyone for your help, I'm having several problems with it. at one point in time when I was testing it when I called sub routines they worked fine. but now ...
1
vote
0answers
17 views

Which pin triggered MCP23017 interrupt

This is my first post here, so apologies in advance if I've done something against any forum guidelines! I have a project where I am monitoring multiple switch states with an Arduino using multiple ...
0
votes
1answer
64 views

Trouble programming custom ATMEGA2560 board

I need some help. I copied the heart of MEGA2560 design into a new project. I have the new PCBs with blank MCUs and now I need to get things programmed. (I have an existing project that runs on a ...
0
votes
0answers
43 views

Can someone connect more that one cable to a PWM input? [closed]

The Arduino im going to use provides me with 16 PWM inputs.But my design requires more than that.Is there a way I can connect 2 cables in 1 PWM input?
1
vote
0answers
20 views

How to create QR code [closed]

How to create qr code based on 30 digit number and send the generated qr code to wireless printer.
-1
votes
1answer
26 views

Sending data struct with 2 int fields from Arduino to Raspberry via NRF24L01

I'm trying to do wireless thermometer on max31865 arduino and nrf24l01 but I'm having problem sending whole data struct I can send int or char arrays but when I try to send whole struct I got output ...
-2
votes
1answer
45 views

What is the maximum size of Static Json Document in Arduino JSON?

I'm trying to do serial communication between Arduino mega and a esp8266, and having issues with determining the size of the JSON document. I have read that the receiver buffer size should be greater ...
0
votes
3answers
70 views

Better way for connecting to Arduino pins to a sensor than jumper cable

Well I have an dht21 and arduino mega. Dht21 leads look like this If I use jumper cable and soldering dht21 leads with jumper cable than plug-in my arduino's socket. it looks like this below image. ...
0
votes
0answers
22 views

HC-12 problem with reading momentarily strings

I'm new here, so I hope my question is not naive. I'm using Arduino mega connected with a pulse sensor and a GPS (and other things that are not related to our problem), pulse sensor and GPS data are ...
1
vote
1answer
52 views

Mega 2560 does not play audio file when I want. It plays when the first condition is met, but not the other

Okay, so I am making a jewelry box for my niece that will spin a necklace holder with a stepper motor, play an audio file and turn on LED lights. I am using an Arduino MEGA 2560. The flow is this: ...
0
votes
1answer
34 views

Is Arduino Mega Hackable Over The Air

After reviewing similar topics I've decided to ask this question below in the Security Stackexchange forum about 11 days ago. https://security.stackexchange.com/questions/235423/is-arduino-mega-...
1
vote
1answer
66 views

How do powering arduino both barrel jack and lipo battery together?

I have arduino mega and Lipo batterry such this and Lipo battery charger 5V USB Boost. I am powering arduino normally from barrel Jack with an 9 Volt adaptor. But if there is power cut occur, I dont ...
0
votes
1answer
41 views

how to fix mirrored text on 3.2 inch IPS TFT LCD Display ILI9481 480X320 36 Pins for Arduino Mega2560

i am working on a project on my arduino mega2560. I want to show reading of the sensors on the TFT display, the problem is the text displayed on the screen is mirrored. Since i am very new to arduino ...
0
votes
0answers
22 views

Adeept Arduino Mega 2560 isn't recognized

So recently, I purchased an Arduino Mega 2560 Kit from Amazon, which was customized from this company called Adeept. But when I tried to plug it into my computer, it didn't recognize it. This means my ...
0
votes
0answers
48 views

Atmega 2560 IR receiver returning random values with using NeoPixels

I am using atmega 2560 to control 590 LED lights with NeoPixels library. I also got an IR receiver connected so I could control the LED properties and it does work but only when the LEDs are not ...
0
votes
1answer
37 views

Compiling error at ATmega2560

I have a error.The error is showing as: exit status 1 Error compiling for board Arduino Mega or Mega 2560. The Code is: #include <Wire.h> #include <LCD.h> #include <LiquidCrystal_I2C....
0
votes
2answers
48 views

Is it bad to power a arduino mega with 6V via USB?

I'm working on a project where there is no external 5V voltage regulator available but only 6V. I can not power it through the power jack because via this way I do not have enough current and get ...
0
votes
1answer
28 views

What are the correct techniques for implementing functional client access to an asynchronous serial interface?

This is not a question for beginners. I am implementing a functional interface to an asynchronous serial device connected to the Serial1 port on a mega. To ensure clarity, I want to implement a series ...
2
votes
1answer
67 views

What is the name of this chip on Arduino Mega ? I am not finding its datasheet 56 TI MSP?

What is the using purpose of this chip?
0
votes
0answers
50 views

Two way serial communication between arduino mega and NodeMCU

I'm trying to create an IoT device that will collect data from the sensors and display them in a mobile app, also let the user control the device using the mobile app. So I need to set up two-way ...
0
votes
0answers
22 views

I'm able to send messages from SIM800a module and receive “+CMGS: 177 Ok” but I'm not able to receive it in the number entered in the code

#include <SoftwareSerial.h> SoftwareSerial mySerial(10, 11); char msg; char call; void setup() { mySerial.begin(9600); // Setting the baud rate of GSM Module Serial.begin(9600); // ...
2
votes
1answer
41 views

if I add a .cpp file, Serial becomes unusable

I am using the mega 2560. When I just use .ino and .h files, if I use Serial, it works fine, without even using: #include <SoftwareSerial.h> However, when I add a .cpp file I start getting 2 ...
0
votes
0answers
42 views

arduino LCD 16x2 rendering problem

I have an LCD screen that is about 5 years old. Recently I decided to set it up and I have the following problem occur at odd times: The actual code currently scrolls a character from left to right, ...
0
votes
0answers
25 views

Can anyone find out why when I run this code for a GPS and BME680 sensor I have no errors but nothing happens

Here is the code #include <Wire.h> #include <SPI.h> #include <Adafruit_Sensor.h> #include "Adafruit_BME680.h" #include <SoftwareSerial.h> #define BME_SCK 13 #define ...
0
votes
0answers
14 views

I am needing to combine the code for a GPS puck and a BME680 [duplicate]

GPS Code: #include <SoftwareSerial.h> SoftwareSerial gpsSerial(10, 11); // RX, TX (TX not used) const int sentenceSize = 80; char sentence[sentenceSize]; void setup() { Serial....
0
votes
0answers
34 views

usb host shield + wireless mouse (Read 5 times)

hello guys i have a problem , i have a usb host shield v2.0 from circuits @home attached to an arduino mega and to a usb wireless reciever mouse , this is the serial monitor output : x=0 dy=3 dx=0 ...
0
votes
2answers
100 views

Communication between 2 arduino boards

I am not really 100% too sure how to do this but I am trying to make my arduino UNO communicate with my arduino MEGA. The reason why I needed to do this was because I was using the RFID module along ...
0
votes
0answers
36 views

Problem with gps.encode() using TinyGPS library

First, see the schematics (attached). The GPS is working properly when I write code only for reading data from it as below: //Connect with pin 18 and 19 #include <TinyGPS.h> //long lat,lon; //...
2
votes
1answer
55 views

Mega: attachInterrupt on pin 18/19/20/21 not working

Task: I'm trying to create a fan-control with the arduino mega. I'm generating a PWM signal on pin 6 and 7 and want to use interrups to measure the rpm of the fans. Problem: On pin 2 and 3 everything ...
1
vote
0answers
23 views

Trouble with basic communication between two NRF24L01 modules

Introduction I am trying to setup a radio communication using the NRF24L01 module because I want to use it to control a tank. The first thing I did when I got the modules was watching some basic ...
0
votes
0answers
36 views

Display GPS module data to my TFT display

I am using Arduino Mega 2560 and I have written code for my GPS module (Neo-6m-0-001/GY-NEO6MV2) and it is working fine independently. I also have written code for Compass module (QMC5883L) which is ...
0
votes
0answers
26 views

WIFI Bee ESP8266, MySQL and PHP

I am trying to update a db table using a WIFI Bee. For the life of me, I can't figure out how to connect to and program the WiFi Bee ESP card. I've looked on DFRobot's website and other websites to ...

1
2 3 4 5
33