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
-3
votes
1answer
34 views

What is PWM actually? [closed]

tcommand=(pwm_value-480.0)/8.22; flapmag=(pwm_value-880)/41.0+10; In this piece of code used in arduino, I don't understand why PWM value is subtracted and divided like this. This is not my code. Any ...
0
votes
0answers
26 views

Extra `eecfbba=.@aa` file in sd card

I am doing a project, and I need an SD card. Everything worked well, but after a while when I read the SD card from my PC(Windows 10 64 bit, Intel Core), I found a file called eecfbba=.@aa. It's so ...
0
votes
1answer
30 views

Why is this RISING interrupt repeatedly triggering?

I've set up an ISR to trigger on the RISING edge of pin #2, but I find that if pin 2 is held high, the ISR triggers repeatedly. Here's a trace of the voltage measured right at the pin: I can see a ...
0
votes
0answers
20 views

ECDSA keys not printed correctly

I am experimenting with ECDSA keys through secp256k1 curve using the micro-ecc library (downloaded through the library manager). I am running Arduino 1.8.9 on Arduino UNO ATmega328P. My code (derived ...
2
votes
3answers
100 views

What is the correct way to interpret the built-in Analog-to-Digital Converter output?

When using the built-in analog to digital converter of the Arduino Uno Rev 3's Atmega328P with a reference voltage of 5V, what is the appropriate function to interpret the output? There is conflicting ...
0
votes
0answers
8 views

Connect a Switchboard to Arduino [migrated]

Sorry if that‘s a simple question, but i‘m quite new to Arduino. What i‘m looking for is a way to connect 100+ strain gauges to one arduino board. Now, those each need a separate ADC (HX711) to ...
-1
votes
2answers
59 views

Why does my circuit work only when I do not use the Serial port?

I am a newcomer to working with Arduinos (and circuits in general) so when I was tasked with making a simple push-button circuit to control an LED's state, and to send a message back using Serial....
-2
votes
1answer
59 views

Powering Arduino MEGA 2560 safely without computer [closed]

How can I safely power my Arduino MEGA 2560 and have it run programs without being connected to my computer? If I am actually able to do so I assume that means it needs a new external power source, ...
0
votes
1answer
25 views

Arduino Nano Fried on Music Reactive Led Strip

I'm doing a project that involves an Arduino Nano, a sound detection microphone module and a RGB Led strip (individually adressable leds). I also bought an accumulator so I can connect everything ...
0
votes
1answer
38 views

Arduino encrypted Radio communication

Is there any way or library to communicate two Arduino devices with encrypted connection using modules NRF24L01 or "433Mhz RF" ? Similar encryption like CCMP in Wi-Fi network.
0
votes
1answer
43 views

Generate number

I wanna make some sketch to generate number to represent sensor value, with range from high (900) to low (670), that number decrease with range between 1-10 and with some delay of switching number ...
0
votes
0answers
6 views

Need help deciding Arduino board and ZigBee module for a wireless sensor network [duplicate]

I need to create a ZigBee network in a star topology with Arduino boards collecting the sensor's data at the router nodes of Zigbee. The sensors which I use are a temperature+humidity sensor and IMU. ...
0
votes
0answers
27 views

Arduino encrypted wireless communication [duplicate]

Is there any way or library to communicate two Arduino devices with encrypted connection using modules NRF24L01 or "433Mhz RF" ? Similar encryption like CCMP in Wi-Fi network.
0
votes
1answer
67 views

HX711 - Inconsistent Readings

simulate this circuit – Schematic created using CircuitLab Wiring is based on the scheme presented below - (Reference: https://electronics.stackexchange.com/a/174580) I am using Arduino Mega ...
0
votes
1answer
22 views

How to make a dynamic menu with a sub-menu ( Arduino mega or Arduino Uno)

I have an arduino mega with a LCD shield (from keyestudio KS2056). I am trying to create a menu with a submenu that would have addable and removable strings based on inputs from a RFID scanner(addable)...
0
votes
1answer
47 views

How to transmit data from Arduino to Raspberry Pi

I am planning to build a network with five Arduino Mega devices, each of which will collect data using multiple sensors. Each Arduino will periodically transmit the sensor data to a gateway Raspberry ...
0
votes
1answer
27 views

MCU to MCU communication over UART

What would be the best way to send the following information from one MCU to another? Now I'm just sending the sentence over as is eg. Serial.print(sentence in here) Example sentence: 1306,60.123456,...
-2
votes
1answer
30 views

I am not able to understand the error. Please help. The code and the error are in the body [closed]

CODE: int MS = A0; int LMF = 12; int LMR = 13; int RMF = 11; int RMR = 10; void setup() { pinMode(LMF, OUTPUT); pinMode(RMF, OUTPUT); pinMode(LMR, OUTPUT); pinMode(RMR, OUTPUT); pinMode(MS,...
0
votes
0answers
37 views

Arduino Mega Speaker can't play music but noise

I'm struggling that my Arduino doesn't play music. Here is my circuit. It proforms normally when I only connect this circuit to Arduino UNO. But when I change the whole circuit to Arduino Mega the ...
0
votes
1answer
27 views

using multiple hc-05 with one arduino mega [closed]

please anyone help me build my project, i want to connect multiple smart phones to arduino mega using blutooth module hc-05 , I am working on real life home automation project and i don't have idea ...
0
votes
2answers
44 views

How can I upload a sketch remotely from a distant location onto an arduino that is power by a battery

Of course after developing a success full embedded product the next step would be making upgrades to compete favorably with new products in the market. Well making upgrades would require making ...
1
vote
2answers
53 views

Is there some hardware that can be used to upload sketch source code via USB flash disk (Automatically By plugging it in)

Well am asking this basically to know if it is possible to create a bootable flash drive that automatically uploads any source code onto the arduino just like creating a bootable flash drive when ...
-1
votes
2answers
109 views

Detecting when a timer interrupt does not run

I am dealing with code thatt i received that relies heavily on timer interrupts. i am using arduino Mega (Funduino) More specifically, when a signal arrives in a pin, an interrupt is run that starts ...
-2
votes
2answers
56 views

Troubles with motors for arduino

Why won't my motors work? My setup is as followed: arduino mega 2560 -> L296N motor controller -> Gikfun 3-6v dc motors. To power the motors the setup is as followed: arduino mega 2560 5v -> ...
0
votes
1answer
56 views

Serial doesn't initialise on Arduino Mega 2560 when not powered via the USB port

I am working on a project with a Mega 2560 and a Sim800L module. Everything works fine, however if i don't connect the USB port (at least once) and power only externally (either by Vin unregulated 7-...
0
votes
2answers
110 views

Coding issue with for loop

I have an issue with this piece of code concerning the use of 3 capcitance sensors each outputting a midi note chosen from one of three scales selected with a pot. Regarding the sensors triggering ...
0
votes
4answers
39 views

How to link a computer processor to an Arduinno on a board? [closed]

I am completely new to Arduinno, so please forgive if the question is stupid. Here is the problem: I have a project where I want an Arduino (or similar microchip board) to handle some sensors and ...
1
vote
2answers
50 views

Mixed structure with int and string

I want to create a structure like this: struct commands { int cmd; char descr[25]; }; commands cmds[] = { {16, "Hammond Organ"}, {17, "Percussive Organ"}, {18, "Rock Organ"}, { 0, "" ...
-1
votes
1answer
17 views

How do i Connect multiple sensors in one arduino. Which are namely a accelerometer, GPS, microphone and a GSM module [duplicate]

I am a noob in the Arduino world and have only started reading about it. I have zero experience with Arduino some suggestions to increase my level will also be highly appreciated. But I have a lot of ...
0
votes
0answers
24 views

FreeRTOS single thread vs Function call

Good day to everyone, I am currently working on project using ATmega2560. I want to use threading, that is why I decided to use FreeRTOS. However, I cannot make one thread to work fine, so that I ...
0
votes
1answer
37 views

Which arduino will be suitable with bill acceptor

I want to connect a bill acceptor (protocol ID003) and 3 switches and an Ethernet shield to Arduino. I am building a system that accepts bill and pass on the information to our software. Which Arduino ...
0
votes
1answer
37 views

Porting “far” flash memory access from Arduino Mega to Due

I have a project that runs on the Arduino Mega 2560 which takes up almost the complete amount of flash memory available (https://github.com/fredlcore/bsb_lan/blob/master/BSB_lan.ino). Because of this, ...
0
votes
1answer
53 views

Why is my MPU6050 DMP failing to initialize but I can still get raw accel values from MPU6050

I have been using MPU6050 modules for some time now for yaw measurements using the integrated DMP chip. Everything has gone swimmingly until yesterday, when my initialization code started reporting ...
0
votes
1answer
31 views

How to connect accelerometer, GPS, microphone and a GSM module to a Arduino? [closed]

I am a noob in the Arduino world and have only started reading about it. I have zero experience with Arduino some suggestions to increase my level will also be highly appreciated. But I have a lot of ...
0
votes
0answers
22 views

How do I write my code to reverse the motors in the opposite direction so the RSLK can move backwards?

I've assembled the TI RSLK Robot Maze Edition for a final project for my embedded systems class. Instead of using the MSP432P401R LaunchPad that came with the kit to control the power board, I've used ...
0
votes
0answers
36 views

Control Stepper Motor Nema17 with Arduino mega 2560 and Ramps 1.4

I have an Arduino Mega 2560, 1 Ramps v1.4, 1 NEMA17 stepper motor and 1 A4988 driver. I try to control this motor but i can't. I try to test my motor in the X-axis with my code, please help me if i ...
0
votes
0answers
18 views

Get value from protected member of class

i'm really new to Arduino. I have Arduino Mega, a USB host shield and a barcode scanner. I'm using this library >> link and modified it example so barcode scanner worked (Got it from here) to read ...
0
votes
1answer
46 views

Arduino One Wire Bus DS18B20 self developed driver missing bits or extraneous bits

I recently got to code my own driver for the One-Wire-Bus specifically with the ubiquitous DS18B20 temperature sensor in mind for an application. I am running that code on an Arduino Mega 2560. ...
0
votes
1answer
35 views

Use JYETech 2.4 Inch LCD Display Screen Module with Arduino?

I have this JYETech 2.4 Inch LCD Display Screen Module that I would like to use for a project I have in mind, however, I'm not sure how to wire it up with my Arudino Mega. Here is the datasheet for ...
-2
votes
1answer
38 views

Can you use a 128 pin LCD on an atMega?

I found a couple old calculators and their LCD's have about 130 pins. I was wondering if I can build an LCD driver to reduce the number of I/O pins, because I don't want to use like 14 I/O extenders; ...
0
votes
0answers
54 views

How to upload file from SD card by Micro SD adapter to ftp server using Filezilla?

I use Arduino Mega 2560 to send a file stored in a micro sd by a module "Micro SD adapter" to ftp server. I use the sim800l evb v2.0 module and I proceeded as follows: I insert the AT command : AT+...
1
vote
1answer
86 views

unable to read RS232 output on Arduino mega with MAX232 shield

I am trying to read data from an RS232 equipped sensor using a serial monitor connected to an Arduino Mega with RS-232 shield but I do not receive any data. I am unable to detect the exact cause of ...
0
votes
2answers
48 views

How do I segment Arduino program when line count is so large that code maintenance is difficult?

I'm looking for the Arduino/C++ equivalent of COBOL's 'copy' statement. I'm working on a program that is approaching 600 lines of code in the TopLevel.cpp source file. This is hard to manage ...
0
votes
0answers
27 views

ESP8266 - Garbled output when using serial Swap

I want to use two serial ports Serial1 - for debugging - No RX needed Serial - to read from a different device I receive garbled output instead of valid characters Here is code for NodeMCU #...
1
vote
0answers
39 views

Problem burning bootloader to ATmega chip using nano/uno

I designed a custom PCB that has the chip, an oscillatorm, decoupling capacitors, and all other connections for the ATmega along with the rest of my circuit. I followed all steps in the tutorial for ...
0
votes
0answers
54 views

Function parameter of type int not working as expected

I am attempting to write a small sketch with the Arduino IDE (1.8.10) to set the colour of an RGB LED, however my function for setting the colour of the LED is behaving strangely. Here is the full ...
0
votes
0answers
20 views

Arduino Killing USB-C Mini Dock

I've been having some issues with my Arduino Mega Board. I built a PCB that would sense LM35 reading, low-pass filter it and send it to A0 into the Arduino. This is the input for a PID controller ...
0
votes
0answers
26 views

Constantly getting RC=-2 error with Arduino Mega and ESP8266 as the wifi module for MQTT

I am trying to use the ESP8266 as the wifi module. My connections are as follows: ESP8266 <-----------------> Arduino Mega VCC ------------------> 3.3V (converted 5V from Mega to 3.3V ...
0
votes
2answers
42 views

Measure Natural Gas Pressure with arduino?

I am looking to measure Gas pressure in order to turn off Gas Heater when there is low gas. As in Pakistan alot of deaths occur when flame turns off because of low pressure of gas and then gas comes ...
0
votes
1answer
23 views

How to connect 2 Fingerprint Sensor to Arduino Mega? Please help

My project was to open the door from inside and outside the room using fingerprint sensors, currently I used separate arduino on 2 different fingerprint sensor. Please help, my arduino detected only 1 ...