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
0
votes
0answers
16 views

Comparision doesnt seem to work

The loop in the below function never stops. Have I made a stupid mistake or is the compiler doing some optimization? Why does the textbook for loop not stop? void countdown(uint8_t x, uint8_t y, ...
0
votes
0answers
26 views

I'm coding 3 DC Motors to a Mega2560 Arduino (With motor sheild) and an error popped up saying DC_Motor.h:NO file or dictionary,even tho its correct? [duplicate]

heres my code reduced to minimum */ #include <DC_Motor.h> void setup() { } void loop() { } heres the error- /tmp/982713958/Animated_snowman_M1_M2_Arduino/Animated_snowman_M1_M2_Arduino.ino:...
-3
votes
0answers
52 views

Im coding 3 DC motors on 2560 board (with motor sheild) and a error popped up saying DC_Motor.h: No such file or dictionary? [closed]

*/ include DC_Motor motor(9,10,1); void setup() { } void loop() { motor1.set_speed(10); motor1.forward_with_set(); delay(2000); motor1.motor_speed_zero(); delay(5000); motor1....
0
votes
1answer
37 views

I have a question,an error occured in my code saying TIMSK was not declared in the scope(There are no errors)

#include <SmartInventor.h> void setup() { SmartInventor.DCMotorUse(); } void loop() { // M1, M2, M3 // CW, CCW, STOP // 0-100 // 0-360 SmartInventor.DCMotor(M1, CW, 10); delay(...
2
votes
0answers
27 views

Problem connecting Arduino and ADC AD7606

Question is about using ADC AD7606 paired with Arduino (Arduino Mega). I can’t reach the stated speed of this bundle, the question is also whether it is possible or not. ADC output mode is 16-bit ...
0
votes
0answers
27 views

How to power high voltage motors with arduino? [closed]

I want to power a 1/2 HP motor with my Arduino Mega. Please provide me with a suitable dual H-bridge motor driver and codes, schematics, and libraries to run the motors. Thank you and regards
0
votes
0answers
23 views

How to program GPS and Compass guided robot? [duplicate]

I am using the following things... Ublox Neo 6m GPS module HMC58883L magnetometer HC 05 for BT HC SR04 for obstacle avoidance Arduino mega I am using the following libraries (given as links): 1....
0
votes
0answers
41 views

Need a list of all the instances & codes [closed]

I am trying to build a GPS guided robot. I am new to GPS and want to get some help. I want some codes which I would need in order to achieve my feat... The robot would also be facilitated with a ...
0
votes
0answers
20 views

Detail for power regulating circuit for Servo MG996R [closed]

All this info is part of 1 project: So I am using an Arduino mega to control 6 servos. Along with that I've got 4 Sharp IR sensors on my sensor board connected to the Arduino powered by a 10000mAh ...
0
votes
2answers
53 views

Arduino Mega LED doesn't light as expected

I wrote this for my Arduino Mega 2560: int LED[14] = { 28,29,30,31,32,33,34,35,36,37,38,39,40,41 } ; ... ... (some other code like setup(), etc. Note:pinmode output for this 14 leds wich pins is ...
0
votes
0answers
56 views

Synchronous Full-duplex RS485 Communication with Arduino Mega

Context I have a really niche device called a "BIU" I'd like to communicate with using my Arduino Mega, but I want to get a second opinion before attempt anything as I cannot get another BIU if I was ...
-1
votes
0answers
29 views

as I finished coding for my 3 DCMotors Why does it say error :'TIMSK' was not declared in the scope [duplicate]

include void setup() { SmartInventor.DCMotorUse(); } void loop() { // M1, M2, M3 // CW, CCW, STOP // 0-100 // 0-360 SmartInventor.DCMotor(M1, CW, 10); delay(2000); SmartInventor....
-2
votes
1answer
35 views

Having issue with a redeclaration as a different kind of symbol

Been struggling with this for a few days and I suspect that i have several issues but I cannot find them. Project: Need a serial count that counts by 5-50 and a button interrupt should trigger a ...
0
votes
0answers
34 views

How to set up “ESP8266 Wifi Bee” on “Gravity: IO Sensor Shield For Arduino Mega Due”

I'm new to sensors and Arduino, trying to send the live data from my hydroponic garden to Thingspeak. I obviously found tons of info and tutorials on how to connect to Thingspeak - that I can handle. ...
0
votes
1answer
18 views

Reading data from an Ohaus Defender 3000 with a RS-232 shield

I have a project where we have to read the weight from an Ohaus Defender 3000 by using an Arudino Mega 2560 and a RS-232 shield. Right now we have the RX of the Arduino to the TX of the shield, and ...
0
votes
0answers
30 views

serialEvent only read 63Bytes and this is not the complete data incoming

hi everybody im working in a software for a pcb based in the chip ATmega2560 im use this with Xbee in API MODE, so im driving short string data and long string data. with the short data i dont have ...
0
votes
1answer
35 views

How to switch between multiple BMP180 sensors?

I have six BMP180 sensors for measuring temperature and pressure. The problem is that I can get the value from one sensor but I need values from all six sensors using a single Arduino Mega board. How ...
0
votes
0answers
47 views

How to extract fingerprint template from Arduino Fingerprint Sensor

How to extract fingerprint template from Arduino Fingerprint Sensor and store it to sd card module using adafruit library and then search/import it from sd card module when tapping the fingerprint? ...
0
votes
0answers
11 views

RFID reader(125kHz) switching between antennas

My arduino application wants multiple separate cards in multiple separate (nearby) locations to be readable at roughly the same time. I am using a RDM6300 module, with a multiplexer to switch between ...
0
votes
0answers
48 views

Esp32 and 74hc595 problem

I am using 74hc595 in several projects where I need more I/O and always worked fine using arduino pro mini or arduino mega. Now I connected same 2 of 74hc595 to an esp32 and does not work. Is there ...
0
votes
1answer
39 views

2 Fingerprint scanner using 1 arduino

I have problem in using 2 fingerprint scanner in arduino mega, every time I need to register I need to go and register my fingerprint on each fingerprint module, what i am planning to do is when I ...
0
votes
1answer
62 views

Why does my Arduino 3.3v fluctuate?

For some reason, my 3.3v on my Arduino is fluctuating a lot, and I am not sure why. The multimeter is measuring dc voltage and is connected between GND and 3.3v of an Arduino Mega. The multimeter ...
-1
votes
1answer
22 views

Dynamically control the output voltage of a 60V DC input

I am hoping to control a 60V DC input source dynamically using my Arduino so that the output voltage could vary between 0v to 60v. At first i was looking into digital potential meter, however I couldn'...
0
votes
2answers
81 views

How to multitask with interrupts on Arduino?

I am trying to build a cashless RFID based water dispensing unit. I am using Arduino mega 2560, PN532, relay, flow sensor. Here is the flow of the program in I2C mode; I have two functions, one to ...
0
votes
0answers
15 views

Arduíno MEGA 2560 and LORA SX1276 stop receiving

Hello I'm experiencing a problem with LORA SX1276. My communication configuration is LORA P2P: Raspberry PI (as a master) using SX1276 Arduino MEGA 2560 (as a node) using SX1276 The system works ...
0
votes
1answer
20 views

How can I make the Serial Monitor work with the Serial Commands library?

I am using the library SerialCommands and I am just trying to print the first text message in the Serial Monitor. But this code does not work for some reason. The expected result is that the Serial ...
0
votes
0answers
29 views

ESP8266 + Arduino Mega

I am currently carrying out a project where I am using an Arduino Mega2560, to recover data from two ultrasonics sensors (HC-SR-04). For the purpose of my project, I must add HTTP requests to this, ...
0
votes
0answers
32 views

Using SMS to receive password, then to choose whether to turn the relay on or off

I'm trying to use SMS messages to turn a relay on/off but before doing that i need to have a password system before allowing the user to turn the relay on/off. Basically, you have to send the password ...
0
votes
1answer
64 views

SIM800L - AT Commands not doing anything on Arduino Serial Monitor

I am trying to send AT commands to SIM800L through Arduino's Serial Monitor. However when I type any command in the serial monitor nothing happens. I'm using an Arduino MEGA 2560 and the TX/RX of the ...
1
vote
1answer
52 views

Reading 4-20ma signal on arduino

I want to read a 4-20 mA analog signal from a 24V flowmeter. I've read the simplest way is to convert it into 1-5V signal using a 250 ohm resistor. The thing is I want my reading to be precise so my ...
1
vote
1answer
20 views

i am having Strange issues when trying to read form gps serial connection

I have an Adafruit Ultimate GPS connected to a MEGA2560. I am trying to get the data from the buffer and do other data processing at the same time, however. when i allow other processing to be done ...
0
votes
0answers
16 views

Arduino Mega with Makerfire BLHeli_S ESC strange shaking and shorks

I'm trying to use Arduino to control brushless motors with Makerfire BLHeli_S ESC through Servo library. However, I've encountered the following issue. First, when the Mega board was updating ESC ...
0
votes
0answers
21 views

How to specify pin in Servo library?

Here's what caused the original confusion. As one know, Arduino nano and UNO use analog pin as PWM pins, while Arduino Mega use digital pin output as the PWM pins, which this webpage ignored to ...
0
votes
0answers
42 views

ESP8266 as ISP for Arduino Mega2560

I'm trying to use an ESP8266 Node MCU 1.0 (ESP-12E Module) as an ISP to program an Arduino Mega2560 over Wifi with no USB cable. (USB connected to ESP8266 module just for power). I used the sketch '...
0
votes
2answers
44 views

how to get serial data to wait until a certain length is reached

I have a code that loops through 2 different serial inputs on the arduino mega, and sends them to serial constantly: int RFIDResetPin = 13; void setup() { Serial.begin(9600); Serial1.begin(9600);...
0
votes
0answers
40 views

Arduino Sketch Crashes in working procedure when adding extra call

I am trying to drive a couple of motors to make a car. I successfully wrote some code then tidied it up to procedurise it and it just kept crashing. I've put some debug code in and narrowed it down a ...
1
vote
1answer
53 views

Where are the traces connected to RESET-EN leading?

Once again, I am following this schematic, and I am confused as to where RESET-EN connects: This is how I have it mocked up it Fritzing, but I feel like this is incorrect:
0
votes
1answer
55 views

Power 5v from l298n to 5v pin arduino

im using the l298n module, and 3x 18650 batterys (near 12v total), and supplying 12v to the 12v pin of the l298 module. Can i use the 5v pin of the module to power the 5v pin of arduino? Or i need a ...
0
votes
0answers
32 views

Regarding Geared motor encoders

I wrote a simple code to count the number of pulses when the motor runs. The code just counts the number of interrupts from the encoder, but the output is very weird. Even when the motor is not ...
-1
votes
1answer
23 views

Nested For Loop Controlling speed [duplicate]

I have a servo motor That I am trying to determine the delay speed in between pulses with a nested for loop. This issue is instead of running together like 0,0 1,1 2,2 its actually going up like 0,0 0,...
-1
votes
2answers
165 views

stepper motor doesn't work but get no error message

So I work for a department that uses arduino to move a stepper motor for a wave machine and I am encountering a issue. They gave me the code that they used to use but it doesn't move the motor and ...
0
votes
1answer
63 views

Missing buffers with serial communication

I am currently facing a problem with Serial communication with my arduino MEGA 2560. My project is to collect data from an encoder. There are 2 signals : ACP and ARP. For 1 rotation, there are 16 384 ...
7
votes
1answer
1k views

What are these stray resistors on the Arduino Mega schematic?

I am using the Arduino Mega schematic found here and it's mostly clear, but there are a few resistors floating in the middle and I'm not quite sure what they're for or where they go: Does anyone know ...
-3
votes
1answer
54 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
1answer
48 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
33 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
30 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
113 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 ...
-1
votes
2answers
62 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
71 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, ...

1
2 3 4 5
32