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)

0
votes
0answers
22 views

MEGA2560 + SIM900A - constantly blinking, not responding

recently I got new Arduino Mega 2560 and GSM/GPRS module - SIM900A v3.8.2 (there is the same - ebay. com/itm/MINI-V3-8-2-Wireless-Data-Transmission-Extension-Module-GSM-GPRS-SIM900A-/311402424851 ). ...
0
votes
2answers
33 views

Use of additional i/o ports in Arduino Mega

I'm a newbie in Arduino and I bought an Arduino Mega instead of the Uno. I want to know what the so-called additional i/o pins do. Are they the same with PWM and SPI? What can they do?
0
votes
0answers
21 views

2.4'' TFT Shield doesn't work on Arduino MEGA

I have bought an TFT LCD display shield (chip 35702) and i followed instructions from this post. I am testing on Arduino Mega. After i upload the binary on Arduino, the screen display shows this:
0
votes
1answer
16 views

embedXcode: Link Error using an Arduino library (Servo.h) within a header file

For various reasons, I am moving from the Arduino IDE to Xcode using the embedXcode plugin. The code in question compiles and uploads fine from the Arduino IDE, so I think the issue is related to ...
0
votes
1answer
40 views

Could you tell me what is wrong with this Arduino code ?

void fn( int pin, int pos) { Servo temp; temp.attach(pin); temp.write(pos); delay(15); temp.detach(); } void loop() { int pos = 0 ; for (pos = 0; pos <= 180; pos += 1) { // ...
2
votes
1answer
10 views

Arduino Servo Free Rotation

I have a project where I use 22 servos. I attach all 22 of the servos in the setup and in the loop , I use myservo.write() command to make a particular servo move to a particular position. The ...
1
vote
0answers
40 views

3.95 MCU Friend Arduino TFT LCD flickering

I got the 3.95LCD from aliexpres which uses IL9488. I used https://forum.arduino.cc/index.php?topic=366304.msg2524865#msg2524865 library . I am using MEGA as I need other GPIO to be used for other ...
1
vote
3answers
69 views

What does “Arduino compatible” mean?

I wanted to buy an Arduino (ATmega) 2560 (8 Bit MCU) via Amazon. But there was no Arduino visible. There was only a SainSmart 2560 and SunFounder 2560 On both websides (SainSmart and ...
1
vote
1answer
28 views

Marlin Firmware troubles

I am trying to upload the Marlin Firmware to my 3d printer's Arduino Mega 2560 and I am experiencing a problem. It keeps saying qr_solve.cpp:7:18: fatal error: time.h: No such file or directory ...
-1
votes
1answer
9 views

How to send a group message to multiple receivers using GSM900 and Arduino Mega2560?

I'm working on a project and it can send to one receiver only. What I need is to send a message to multiple receivers. I need a code sample that would satisfy my needs. Please help! I need to finish ...
4
votes
1answer
36 views

SD print in script works in setup but not loop

I am a bit of a novice with the Arduino, and have had to learn a lot for my High Altitude balloon launch. I am getting ready to launch this, but for some reason, my datalogger, printing to an SD card, ...
0
votes
0answers
26 views

Tips for not burning out my Ardunio Mega or catching something on fire when wiring a Prusia i3?

I'm reading about wiring up the electronic components to my Prusa i3 using an Arduino Mega 2650 and Ramps 1.4. I have step sticks, a heated bed, and a Switching Power Supply 24V 400W (more details ...
0
votes
2answers
22 views

Handling double (8 byte) in Arduino mega 2560?

I am receiving 8 bytes from serial. I want to convert and save in double variable. This is how i tried. union u_data { byte b[4]; double fval; } u; double BytesToDouble ...
0
votes
2answers
29 views

How to set address for using more than MPU9250

I am trying to build a project that contains more than one MPU 9250, until now I'm still confused to MPU9250. If I were going to that, does anybody here know how to set addresses to each of the MPU's ...
0
votes
1answer
29 views

Can I run a Mega 2560 on 14v?

I have a Mega 2560 with a ramps 1.4 shield. I noticed when I turn on the 14v power supply the mega would also power up and run. Am I damaging it running it at 14v? If not is there a solder or jumper ...
1
vote
1answer
37 views

Arduino Mega 2560 not showing up in Serial Port in IDE

I recently purchased an Arduino Mega 2560. As soon as I connected it for the first time with my macbook pro the led was blinking (default blink program). To stop the blinking, I uploaded an empty ...
0
votes
1answer
18 views

Converting ASCII value to String

I have this code. String incoming; // for incoming serial data void setup() { Serial.begin(9600); // opens serial port, sets data rate to 9600 bps } void loop() { // send data only when ...
0
votes
1answer
34 views

Supply arduino through Vin pin with a battery

is it dangerous for arduino the below circuit because GND pin is common with -12V battery pole? is it dangerous for lots of 5v circuit to be grounded on -12v battery pole? in case i don't connect GND ...
1
vote
2answers
74 views

Using more than 8 digits using the sevseg library

I am using sevseg and i can't get more than 8 digits to work. I really need 15. Does somebody know what I can do to get this? Shown is the original example This is using Gabriel Staples example in ...
0
votes
1answer
40 views

Migrating from ATMega2560 to ARM based — Teensy vs Due?

I currently have a project that is working on an AtMega2560 platform (heavily derived off the Arduino Mega). It mainly involves a GPS module and SD card. Going forward I am looking to add a few more ...
0
votes
0answers
40 views

Serial Communication, Arduino and Rpi , C library

I am currently working on a project on serial communication between rpi and arduino, this is the code that I am using from Rpi Side it's in C : int main() { //------------------------- ...
1
vote
0answers
19 views

Weird stepper motor behaviour on RAMPS in arduino

Following this tutorial: http://www.instructables.com/id/Complete-newbie-step-by-step-3D-printer-with-all-p/?ALLSTEPS I connected DVD stepper motor to RAMPS 1.4 on arduino with Marlin software with ...
0
votes
1answer
40 views

Array of Strings and Callbacks

I am trying to create an array of structs that contain pairs of Strings and Callbacks the problem I am having is assigning the callback function. I have the following code: #define UI_ROUTINE_ITEMS ...
1
vote
0answers
17 views

Advices on domotic project improvement

Some months ago I developed a project for school where, by using Arduino and Raspberry Pi, I've created a domotic system. All the main features can be viewed in this video . I don't know if I've ...
1
vote
1answer
51 views

Can I work with larger numbers than an unsigned long long in Arduino?

I would like to use larger numbers than an unsigned long long in Arduino. Is that possible?
-1
votes
0answers
31 views

GSM shield gives error message: “not connected”

I have an Arduino GSM shield connected to an Arduino (Uno and Mega) board. When I put my own SIM card, the connection works and the SIM card becomes available for use. I can call and send SMS to that ...
1
vote
2answers
156 views

Reset Arduino Uno R3 from Serial when it freezes (stops looping)?

I have an Uno that loops processing serial commands and reading from a DHT11 sensor. For whatever reason, the device often stops responding. I put an LED on a pin and gave it a blink to see whether ...
0
votes
1answer
35 views

Prevent Switch case from not being complete

I got this program. It controls a refrigeration room using a ds1280 temperature probe. The thing is, sometimes the probe reach 7.00°C then the refrigerattion cycle start (refrigeration cycle is on a ...
0
votes
1answer
26 views

Eclipse add library

I am completely lost here, I have no idea what I am doing wrong. I am using Eclipse Mars using the Eclipse C++ Arduino extension. I am also using the COSA library, this is where the problem comes in. ...
0
votes
1answer
38 views

Arduino Mega, ST7920 using COSA

I am trying to learn and understand the COSA Library using a 12864ZW (ST7920) 128X64 LCD Display. Right now I am able to use the LCD using the u8glib but also found that COSA has a library for the ...
2
votes
2answers
65 views

Arduino Variable Data Type?

Is there a variable data type available for Arduino? I have a class that should have a member that will differ in data type, in the past I have used the "variable" keyword in c++ but when I tried to ...
0
votes
0answers
50 views

Arduino MEGA and ESP8266

Hi I am Using ESP 8266 to Send Serial Data To My Arduino Board using single click ( or post Action )..... My arduino mega controls 6 lights by reciving a character.... for example: if i type 'U' in ...
2
votes
3answers
182 views

How many LED Strips can we connect to an Arduino Uno? Is there a way to connect 1-3 meters worth without needing extra parts (relays)?

I am looking at Adafruit to purchase some LED strips for a mod for my computer case, and want to power it with an Arduino. I am looking at the Uno, but the Mega looks good too. I hear the Uno is ...
0
votes
1answer
19 views

Buying Arduino Parts Different Manufacturers

I'm looking to buy my first arduino kit. However I have a concern. If my Arduino Mega is bought from one manufacturer, then can I buy shields or other parts from other manufacturers? Are there any ...
1
vote
2answers
53 views

How does this eBay relay board connect to the Arduino

I bought a single channel relay on eBay and besides the NC/COM/NO, it has six pins and a jumper. It is not possible to see the labels on the image, but the labels are: X X--X X X X VCC -IN+ ...
1
vote
2answers
66 views

Problems with Draw Loop using u8glib

I am using an Arduino Mega and a 12864ZW LCD with the u8glib library and the following code to draw to the LCD: U8GLIB_ST7920_128X64 Display(LCD_E_PIN, LCD_RW_PIN, LCD_RS_PIN, U8G_PIN_NONE); void ...
0
votes
3answers
50 views

How to check if a pin is set from bank?

How would you go about checking if an input pin has been set using the entire bank? I am thinking that I need to use bit twiddling with a bit mask but I have not used this enough to figure out how to ...
0
votes
0answers
26 views

arduino mega2560 and zte mg2639 communication problem

I am using Mg2639 Zte and Arduino Mega 2560 R3. it doesn't communicate, while when i connect mg2639 to Arduino Uno R3 (without changing any thing) it works like a charm. Some one told me it could be ...
1
vote
2answers
59 views

Arduino Mega2560 and Zte mg2639 RX / TX Issue

I am using Mg2639 Zte and Arduino Mega 2560 R3. it doesn't communicate, while when i connect mg2639 to Arduino Uno R3 (without changing any thing) it works like a charm. Some one told me it could be ...
1
vote
0answers
16 views

Stepper Motor does not work with Arduino Mega Ramps 1.4 with Johnny-five

I have an Arduino Mega with RAMPS 1.4 shield board. I think I uploaded the correct firmware for the board (Standard Firmata and Advanced Firmata) Here is my setting: AC to DC converter The board ...
6
votes
1answer
125 views

Event driven programming

I have ran across a couple of different event libraries that are available on the AVR and Andruino but I am not sure which one is the best option. What I would like to do is design my program in a ...
2
votes
1answer
54 views

Multiple servos noise

I'm building an application that uses 20 servo motors, and i control then with an Arduino Mega. The servos are having some instability, to the point where they make small random swings. Im powering ...
1
vote
1answer
35 views

Arduino using LCD

I am building a project that is using A12864ZW 128X64 LCD, the question I have is should there be anything in the circuit to prevent damage to the Arduino Mega or the LCD? I am using this example here ...
5
votes
2answers
119 views

OOP vs Inline with Arduino

I have been programming for quite a while now but I am new to Arduino and AVR Programming. The main question I have about programming these Micro-controllers is are there major differences in ...
0
votes
2answers
47 views

LED Control through bluetooth

I have an Android app that sends data to the arduino HC-06. It is however giving me colors i did not send to it. Eg. Red in place of green, white in place of red etc. Here is a snippet of my android ...
0
votes
0answers
24 views

Unstable reading from Raspberry Pi

I'm trying to send a signal from Raspberry Pi GPIO to Arduino. I made a sketch that basically reads the state of the digital read, but the reading are very unstable. I understand that there is a ...
0
votes
2answers
29 views

Power maximum output power for each pin

A have Arduino Mega 2560. I found in the spec that the maximum output current for each I/O pin is 40 mA. Can i use 40 IO in parallel? That's mean 40*40ma*5 volt = 8000 mw = 8 watt. What about the ...
1
vote
1answer
353 views

Communication between two arduinos over wifi esp8266

I have two arduinos one is Arduino Mega while other is Arduino UNO and I want to send data from UNO to Mega and vice versa over wifi using two ESP8266 wifi modules without use of any router in ...
1
vote
1answer
35 views

Connect Antenna to GPS Module ET314AC

How can I connect antenna to GPS Module ET314AC?(it is not on a breakout board). I have an antenna like this one GPS Active Antenna and Here is the datasheet of ET314ACET314AC Datasheet.I want to ...
-1
votes
1answer
16 views

Mpr121 multiple using breakout

I try more solution but there are not working. i use adafruit mpr121 lib, sparkfuns solution but there are not working. Some solutions say, cut the addr socket but i am not understand. maybe you show ...