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.

learn more… | top users | synonyms (1)

-1
votes
0answers
10 views

what's wrong ? i'm working on send sms from arduino via sms Gateway (arduino mega and Ethernet shield )

**#include <SPI.h> #include <Ethernet.h> // Enter a MAC address for your controller below. // Newer Ethernet shields have a MAC address printed on a sticker on the shield byte mac[] = { ...
0
votes
0answers
15 views

Can't get LCD(1602A v2) to communicate with AVR ATMEGA2560

I have written the following code to communicate with an LCD display yet I can not get data to appear on the screen. All I get is white boxes on the display. I am properly controlling the RW, RS and ...
0
votes
1answer
47 views

how to call URL with Arduino Ehernet shield?

I'm working on Arduino and Ethernet shield need to call URL how can do it ? (this url is HTTP API to send sms to my phone ) ** url: ...
0
votes
2answers
36 views

Arduino R/C compatible transmitter and reciever

I want to make a RC buggy or something down those lines (using Legos of course) and I'm confused while looking what transmitter/receiver to use. Would like a simple classic remote and any compatible ...
0
votes
0answers
19 views

Ethernet shield and sd card not working togather on arduino mega

I am making a web-client with an Arduino mega and Ethernet Shield. I am trying to receive data from a web-server running a php script and saving that data to the SD card located in the Arduino ...
1
vote
1answer
20 views

How I could make a bus connection in a prototype shield?

I am a programmer but pretty new to electronics , I recently bought a prototyping shield like the picture : In my view there is no bus connections here . I have lots components need connect to ...
0
votes
0answers
11 views

Problem with the GY-85s accelerator (ADXL345). Not sure if hardware or software

I have a GY-85 IMU (ITG3205 + ADXL345 + HMC5883L) hooked up to an arduino mega. When using the razor AHRS headtracking code, I have a problem where the accelerators z-axis doesn't change from 511. ...
0
votes
0answers
11 views

Trying to play audio files on arduino via Usb Host Shield

I want to build a program that will seek audio file inside a USB DOK (DisK On Key/Pen Drive) when it is inserted to the Circuits@Home USB Host shield. After a specified file will be found i want it to ...
1
vote
1answer
58 views

How to clear FIFO buffer on MPU6050?

my MPU6050 works very unstable , the problem is unable clear excessed FIFO buffer on MPU6050, I am using Jeff Rowberg's MPU library and according to his DMP example but without using ...
0
votes
2answers
38 views

Multiple interrupt lines connection

in my project need to connect more then 10 I2C sensors(MPU 6050) to Arduino Mega and each sensor an interrupt line is essential. Since in Arduino it only got several interrupt slot(digital 2, 3, ...
2
votes
1answer
62 views

Why does the pin 2 of arduino Mega stay always HIGH?

Without declaring the pin 2 as INPUT or OUTPUT, it remains constantly HIGH. Can anyone explain why is it so?
0
votes
0answers
15 views

cc3000 WiFi distrupting DS18b20 temp measurements

I am trying to post temperature measurements from DS18b20 thermal sensors to an online repository using a cc3000 WiFi shield on an Arduino Mega. It works great, once. All the temperatures get read ...
0
votes
1answer
37 views

how to send input values from host computer to arduino [closed]

how to send input values from host computer to arduino,such that speficing the number of rotations for a stepper motor etc
0
votes
0answers
19 views

Charging Li ion cell using arduino

2days back I opened my cousin brothers laptop battery as it was a spare one left unused over a year. I disintegrated it and found 6x 18650 batteries when I checked them with voltmeter individually I ...
-1
votes
1answer
46 views

I Want to use nested if in arduino , can anyone help me out?

I'm working on Home Security Project and in that I'm using DTMF to unlock the door and PIR sensor to switch on lights , Laser counters to count number of persons entering and leaving the room. the ...
1
vote
0answers
26 views

Problem reading HMC5843 - Magnetometer in Simulink

I'm having a SparkFun 9 DoF sensor stick including the following components: ADLX345 - Accelerometer ITG3200 Gyroscope HMC5843 - Magnetometer Im currently working on a project in which I need to ...
1
vote
2answers
71 views

Detect movement on moving robot? PIR Sensor

I am working on a human following robot project and I am trying to achieve this with 1 Ultrasonic sensor that makes sure the robot won't crash into something and 3 PIR sensors that will detect human ...
1
vote
0answers
46 views

Issues with PIR Sensor triggering by itself

I am currently working on my first Arduino project and I am having some issues that I am seeking help with. The robot I am building must have human following capabilities and to do so I am using 3 PIR ...
0
votes
1answer
47 views

Arduino Mega 2560: Busted Atmega 16U2

I just bought an Arduino Mega2560 R3 and it doesn't connect to my Laptop. The connection is somewhat random, sometimes it connects and sometimes it doesn't. Can someone help me identify whats the ...
0
votes
3answers
36 views

trying to delay between sequences

I am trying to build a set of four stars using an Arduino, potentiometer and a four channel relay to control how fast it speeds across the stars. My question is how can I delay the process, say for 20 ...
0
votes
0answers
49 views

Wrong characters received with Bluetooth Mate Gold using Software Serial

I have a Bluetooth device from Sparkfun which I would like to use with the Arduino Mega. If I connect the module via the hardware serial pin everything works fine but when I use other pins like 12 and ...
0
votes
1answer
27 views

How to interrupt a code after delay

I have a functionality on my mega 2560 to connect with other devices. Sometimes, devices can't answer. I don't want to wait for a longwhile. So, how can I interrupt the chunk of program after the ...
1
vote
1answer
64 views

RTC and SD works separately but not together

I am running small project. I wanted to use Arduino Mega 2560 v3, PIR sensor, microSD card module and RTC1307 module, some leds, buttons and buzzer. To enable and disable motion detection and when ...
2
votes
1answer
217 views

Control Speed of DC FAN Using Arduino PID Library

I want to make a circuit that control speed of DC fan Using Arduino PID Library to get thing at specific temperature. The circuit looks like this but can be changed, The dc fan motor connected to ...
1
vote
3answers
28 views

Question regarding powering Arduino through the USB Port

If powering the Arduino (Mega) through the USB port, is a voltage of 5.19VDC acceptable?
0
votes
0answers
47 views

Obfuscate .hex file

I've wrote a code for arduino mega, and want to force it from copying (this is commerce project). How can I obfuscate .hex file before uploading to arduino?
0
votes
1answer
64 views

How to compile and upload the specific (.cpp + .h) code?

I have a specific arduino code (no .ino files) https://github.com/justintconroy/MdbBillValidator , which can't be opened by arduino IDE. How can I make & upload this code? I have an arduino 2560 ...
0
votes
1answer
20 views

Remote wireless inputs [closed]

I have an Arduino Mega with 6 wired remote controls each one with 4 switches connected to 24 Arduino's digital inputs. Now I would like to change these remotes to wireless connection. What should I ...
0
votes
2answers
32 views

Error while saving data in text file

I created a function that saves the timestamp in a text file, but it saves unreadable. Full of invalid characters, example: Ÿ@ O ƒº!¥ Ÿ@ O ƒº!¥ Ÿ@ O ƒº!¥ Ÿ #include <Wire.h> ...
1
vote
1answer
38 views

do two arduinos that are linked to a common 9v rail and ground still need a common negative connection for a serial tx rx connection?

so that there a 2 wires rather than 3 to connect between the two for purposes of serial communication. And the same question for 3 arduino megas on a common rail and using serial connections?
3
votes
1answer
99 views

What is the maximum wire length for serial communication between two Arduinos?

I am building a project in which two Arduinos will be linked by three wires: TX an RX for serial communication and a common GND. What would be the maximum length of the wires here before communication ...
0
votes
1answer
169 views

How to generate gcode for Arduino Mega 2560 and Ramps 1.4 CNC Router

I had a Prusa I3 3D Printer which use Arduino Mega 2560, Ramps 1.4 and Pololu - A4988 Stepper Motor Driver. I want to convert my 3D printer to CNC Router using my Dremel with Flexible shaft like ...
0
votes
0answers
43 views

Why is my interrupt code not working?

Background I'm trying to write a code to read signals from a 6 channel RC receiver on an arduino mega 2560. Currently I am keeping the code to just read 1 channel to make things easy to troubleshoot. ...
0
votes
1answer
41 views

Is PulseIn fast enough for Quadcopter?

I've been trying to use interrupts to control a quadrotor with a tx/rx to no success. I'm using an arduino mega as my control board. I have successfully read a singe channel using attach interrupt and ...
0
votes
1answer
102 views

Reading I2C sensors with a timer interrupt

I would like to read a sensor connected via I2C using Timer3 and Arduino Mega. Values are read from the sensor in the interrupt service routine and timer3 is set to trigger an interrupt at 200Hz. ...
0
votes
0answers
126 views

Simulation of Arduino Mega 2560 with GSM Module using Proteus

I have really been suffering with my simulation! Tried connecting my arduino mega 2560 to COMPIM (used as GSM Module) in my circuit and also loaded sample code but damn! In vain! I wanted to view the ...
1
vote
1answer
60 views

Bizarre compilation problem — only compiles with the addition of a single Serial.println() line?

I have a SwitchDoc Labs DS3231 Real Time Clock Module that I am using with an Arduino Mega. It's connected to 3.3V and the SDA(20)/SDL(21) pins. I'm also using SwitchDoc's RTC_SDL_DS3231_ARDUINO ...
1
vote
2answers
100 views

16Hertz Uno R3 Board vs Arduino Uno R3 Board

I bought a 16Hertz Uno R3 Board. When I installed the driver and the Arduino IDE, in the IDE`s menu I saw: Tools -> Board -> Arduino Uno was selected by default which is great, ...
0
votes
0answers
36 views

arduino mega number of simultaneous pulse inputs

I'm looking at this specification page: http://arduino.cc/en/Main/ArduinoBoardMega2560 It says there are 54 digital input pins. How many of those can be used at the same time to measure pulse input ...
1
vote
3answers
120 views

What happens if an interrupt is triggered while sending data via serial?

I would like to use an inertial sensor to measure acceleration and send the results to an Android app using a serial communication with a bluetooth Mate Gold module. The sensor provides a data ready ...
2
votes
2answers
79 views

Difficult between atmega328 & atmega2560 when coding & compiling in a pure c

I have an arduino uno with atmega328p controller. I found the code to deal with some specific uart protocol, named mdb: https://github.com/Bouni/MateDealer/tree/master/arduino But it's compiled just ...
0
votes
1answer
49 views

Programming Arduino Mega processor with FTDI instead of ATmega32

does anyone tried to program the Arduino Mega with an FTDI chip like in the Arduino Nano (this is for a custom design) Will it work? Thanks!
0
votes
1answer
29 views

Can I connect an RFID reader to the ICSP header?

I am connecting an RFID reader to my Arduino mega. The directions that I have found say that I need to use pins 50-53. I also noticed that the ICSP header contains (what looks like) a secondary ...
0
votes
1answer
96 views

Use an ethernet shield and RFID rc522 together on a mega?

I am using an Arduino Mega and I would like to connect a rc52 RFID reader and a network shield. My problem is that both are set to use the same set of pins: 50 - 53. Can I redefine the pins used so ...
-1
votes
2answers
208 views

Powering an Arduino Mega with external USB Power Bank?

I am making a robot with arduino mega r3. I want to power the arduino with a usb power bank. How should I do that?
-2
votes
2answers
65 views

Code for four road junction

This is the Arduino code for a four road junction. In the below code, the if case must be tested after every road without delay. Can any one guide me? int redLed1 = 7; int yellowLed1 = 6; int ...
1
vote
1answer
125 views

How to accept user input (array, variables,…)

I am working on a project using my Arduino mega2560 that triggers a solenoid (maximum of three solenoids), my camera and my flash (maximum of two flashes). The core routine is there, and working. ...
6
votes
1answer
201 views

Can you query the current serial port's speed?

Is there some code I can use to find out what the a chosen serial port's speed is running at ?
-1
votes
1answer
142 views

how to send SMS from Ethernet shield via SMS Gateway

how do i send SMS from Ethernet shield via SMS Gateway? this site provide free sms (Clickatell) does anyone kno how to do this or Is there some other way to do it ?
1
vote
1answer
106 views

error: 'CLASS' does not name a type only when creating object inside another object

I'm trying to use Adafruit's LED Backpack library within a custom class. When I use the Adafruit library directly within a sketch, it compiles fine. When I use an example sketch provided with the ...