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

Receiving live astronomical coordinates on Arduino Mega using telnet and ESP8266 wifi module

I'd like to receive on my arduino live coordinates of planets of solar system. Because there are already websites listing every planet coordinates, I thought it would be easier to just use a wifi ...
0
votes
0answers
19 views

xxx.cpp error: 'xxx' does not name a type

I've written my first small Arduino Library and have tried to use it. It is basically just a Class to store some data in an organized way. When I use it, I get this compiler error in the IDE: \...
0
votes
1answer
13 views

EPS8266 ESP-01 Blue led stays lit unless 3.3v logic divider is bypassed, works when reconnected

I am having a very weird and frustrating issue with this ESP01. I am creating a shield on protoboard, and everything checks out as far as I can tell. I am using a 3.3v voltage divider (1k and 2.2k) ...
0
votes
1answer
16 views

SIM900 TCP Connection issue

I am having a strange issue where if I try and create a TCP connection to my service, it doesn't work. But any other website, such as google, works fine. The serial monitor output is also slightly ...
1
vote
1answer
14 views

Connect to Arduino 2560 using a RS232 Connection

Is it possible to connect to an Arduino 2560 using a RS232 (DB9) connection rather than the regular connection using USB cable? I am thinking of this connection scheme: PC -> USB cable -> USB ...
0
votes
1answer
17 views

Arduino 2560 as an Interface to 4 Serial Hardwares

I am writing a software that runs on the PC that has a Arduino 2560 connected to it via USB. This PC needs to communicate with multiple devices through RS232. Is it possible to use the Arduino's 4 ...
0
votes
1answer
13 views

Arduino Mega 2560 Only Powers on with USB

I have an Arduino Mega 2560 board running a ramps 1.4 shield for a 3D printer. For some reason, I can only power the Mega with USB. It does not get power from the ramps shield and it also will not ...
0
votes
1answer
43 views

ESP 8266 does not respond for any

I have ESP 8266 Wifi module and Arduino mega Board connected. I use external 5 to 3.3v regulator to power up the module.and mu common (-ve) line on the external power source and Arduino mega GND is ...
0
votes
1answer
35 views

How do I read numbers from a serial sequence

I have read through a number of posts including How do I split an incoming string? However I cannot work out how to extract numbers from a serial string. My challenge is this; I send a serial ...
-1
votes
1answer
37 views

Steppermotor+Arduino Mega+ Adafruit

I have 2 Stepper Motors (QMot stepper motor1 Amp, 5.3Ohms, 5.3 volts and 200 steps/rev.) , which are connected to the Adafruit shield2.4, they are mounted to Arduino Mega, the motors pull generally 2 ...
0
votes
1answer
26 views

Arduino - RF 433 Mhz transmitting string and but receiving ASCII values of those characters

When I am using RF 433 MHz module with ARDUINO MEGA then it is transmitting any text or anything in ASCII values. Now how to decode those ASCII values to alphabets? If I use ASCII conversion programme ...
0
votes
1answer
21 views

Why does my servo execute an action in the beginning when the odds are almost 0?

I made a servo motor turn if the result of random(0, 10000) is less than or equal to 1. If that is the case, the motor turns to 130 degrees, to 50 degrees, and then to default position(90 degrees). It ...
0
votes
1answer
14 views

do i need an I/O shield for quadcopter motors

I would like to know if I need an I/O shield for the 4 ESC's on a Quadcopter I am building using Arduino Mega2560. The current to the ESC's should come from the battery itself and the data from the ...
0
votes
0answers
22 views

Arduino Serial Communication Fast Protocol

I am sending data to Arduino from Raspberry PI using USB Serial communication at 115200 baudrate to run two stepper motors in real time.Protocol defined is of format < motor1Angle,motor2Angle >....
0
votes
1answer
16 views

Cannot open file with underscores using the SD library

So I'm trying to create a new file that has underscores in its name. However, when I try this, no file is created. This works String fileName = "NMEA.txt"; mySensorData = SD.open(fileName.c_str(), ...
0
votes
1answer
33 views

How can I make a servo turn an ultrasonic sensor without using delays?

I am making a RC robot that will have multiple sensors and will display the data on an lcd screen. It will also have a mode where it will avoid obstacles, using an HC-SR04. When the sensor is within ...
0
votes
1answer
31 views

Interfacing to scale over RS-232

Objective: interface and Arduino MEGA to a Mettler Toledo SB32001 using the RS-232 communication protocol described in the manual. Equipment Used: SB32001 Mettler Toledo 32 kg scale Arduino MEGA ...
0
votes
0answers
55 views

SIM808 module : GSM location command (AT+CIPGSMLOC=1,1) giving wrong value after execution of sending message command(AT+CMGS=+91xxxxxxxx)

I wrote the code that if interrupt generated, get gsm location and send a message. first time interrupt generated, got correct gsm location using (AT+CIPGSMLOC=1,1) and successfully send message ...
0
votes
1answer
18 views

How to use Aiduino module to connect to computer network?

I have 4 usb Hard Drives and I just want to connect them to computer network directly without a traditional computer. Is there an any module with 4 usb ports and one RJ45 port. The module should able ...
1
vote
1answer
21 views

How to detect cancelled download?

I have a server with files that may be downloaded. How do I go about detecting when a download is cancelled by a client? The function that handles reading files for download: void readFile() { ...
0
votes
1answer
46 views

Custom ATMega 2560 board won't execute Arduino code

I have a custom PCB with an ATMega 2560 microcontroller on it. To test if the ATMega was working properly, I uploaded the following code: void setup() { Serial.begin(9600); Serial.println("Test ...
0
votes
1answer
19 views

Getting "Undefined reference to vtable for {classname}

I have a large collection of libraries that compile correctly but won't link. I am using Visual Micro for Visual Studio 2015. Here is the complete collection of error messages: CommandPattern3.cpp.o:...
0
votes
1answer
30 views

Should I control each of the four robot wheel separately or wire two from each side together?

I am making a remote controlled Arduino robot. I has 4 DC motors for wheels. I have 2 motor drivers available that control two dc motors each. I was wondering what the downsides are of wiring 2 dc ...
0
votes
1answer
27 views

Engine Speed Control Observation

I am using an Arduino Mega to control the speed of an internal combustion engine. The speed is sensed via a Variable Reluctance Sensor (VRS) on the crankshaft. This signal is then converted into a 5V ...
2
votes
2answers
52 views

How to get readings on serial monitor in every 10s?

I am doing my final year project and here I am attaching the code I am using. According to the code, I will get the sensor output in serial monitor. But I want to get reading once n 10ms. Since serial ...
0
votes
1answer
42 views

Is it possible to use a usb camera with Arduino?

It is necessary to recognize the motion and record video live. upd Save enough on your memory card. PS Maybe I'll repeat the question, but I am not guided in English. Sorry for my English.
0
votes
1answer
19 views

SD test is taking long answer when it fails

I am working on an Arduino application that logs sensors values into SD files. It is essential that the SD is inserted and working when a test is started, thus I need to check the presence of the SD ...
0
votes
1answer
46 views

Why does Serial.print print out the wrong thing?

I am using a flame sensor. I am reading the state and then printing it. Here is my code: void loop(){ flameState = digitalRead(flamePin);//variables already defined and are global existsFire();//...
0
votes
1answer
34 views

Why does servo library conflict with irremote?

I am building an Arduino Mega robot. I am planning to use IRremote.h library for it. I am using multiple libraries in my code and I do not know which timers are taken. I always get errors when ...
0
votes
0answers
27 views

For statement break problem

I'm trying to make a timer but running into a problem. The seconds segment is working fine, however in the minuets segment I have a problem. I've currently got a commented out break to stop it ...
0
votes
0answers
24 views

Ardupilot APM 3.1 to run DC motors using motorshield

I am working on APM 3.1 to make an autonomous vehicle. I checked on net most of people are using brush-less motors with esc which I know how to connect to APM and r/c receiver. I want to use separate ...
-1
votes
1answer
34 views

12v 6A power supply for arduino

i have 3 motors which work at 12 3A, i have attached a 12v 6A power supply and seems to be working fine. However i was wondering if this can also power the Arduino as well. thank you.
0
votes
1answer
31 views

How do you use an Arduino to control a 4 - 20 mA transmitter?

I am using an Arduino Mega to control the speed of an AC pump. This can be done by connecting to the variable frequency drive. Here is a link of the relevant datasheet, pages 66 and 67 relate to what ...
0
votes
0answers
23 views

Splitting large CSV files

I'm using an Arduino Mega to acquire some Analogic data and transfer them both to Excel (using PLX-DAQ) and recording them into a .csv file. However, when I reach 1048576 lines in Excel 2007 while ...
1
vote
1answer
29 views

Quadrature Encoder:Interrupts: Reset Count

I'm working on a quadrature encoder(with a 500ppr codewheel) with a Channel A, B and an Index pulse output. Using an Arduino Mega I'm counting the number of pulses on Channel A on the rising edge. ...
1
vote
1answer
35 views

Why send my Arduino sometime Hex and sometimes the wrong?

Hi i have an Arduino mega 2560 i send data from the Arduino over USB to PC. That works when i test a simple Serial.print("Hello"); but that is not that what i need. I send a timestamp as a longe Value ...
0
votes
1answer
29 views

Sparkfun Can-Bus Shield Example not Working

I recently bought a Sparkfun Can-Bus Shield (https://www.sparkfun.com/products/13262) and tried the SparkFun_CAN_Demo from here but the program only prints "CAN-Bus Demo" and then does nothing even ...
0
votes
1answer
67 views

How can you speed up the ADC on an ATtiny85?

I'm reading input from a camera and trying to reach a fast frame rate. Problem is my ATtiny85 has a pretty slow conversion time (65 - 260 µs Conversion Time). Is there any way to make this faster? I ...
1
vote
1answer
26 views

How can I get analog-in reading from Digital-PWM-out on the same board?

I have a wire going from PWM4 to A0 but I don't dare turn on my Arduino Mega in case this is incorrect. PWM4 will eventually go to an analog device but I want to make sure the read value is what I ...
3
votes
2answers
55 views

Why/when to use IoT publish/subscribe protocols rather then RESTful HTTP?

I am sending data (GPS coordinates) from Arduino once a minute with HTTP POST request to REST API (in OpenShift PaaS). Data is then stored to MySQL db. Would so called "IoT" publish/subscribe ...
1
vote
1answer
55 views

Why doesn't this work on a Mega2560 although it works on an Arduino Uno

So, This is your code slightly altered. I am using it to read the readings of the roll and pitch of a quadcopter. I have tried using this code for a mega 2560 but it does not work in ports A0 and A1. ...
1
vote
1answer
49 views

Arduino Mega Hall sensor interrupt for a speedometer

I am having difficulty setting up an interrupt to count how many times the magnet passes so that I can count something like every 100 ms the actual speed. I have a little code put together from the ...
1
vote
1answer
16 views

How is the integration time set for a camera?

I using the TSL1401R-LF Linescan Camera Module, which reads in a 1 X 128 line of pixels, and I'm having trouble understanding how the integration time is set for this device. I understand from page 9 ...
1
vote
1answer
37 views

Problem in using COZIR W-100 with arduino

I was using the COZIR W-100 carbon dioxide sensor with an Arduino Mega 2560 with the example code from this site. But the measured value of carbon dioxide by sensor was 90 ppm in fresh air and that ...
1
vote
1answer
32 views

Not getting data from GPS

When I run FullExample program from TinyGPS++, I get following types of entries, Sats HDOP Latitude Longitude Fix Date Time Date Alt Course Speed Card Distance Course Card Chars ...
0
votes
0answers
9 views

Send data from Mobile to Arduino

I want to send data from Android/iOS to Arduino Mega with Ethernet Shield. I have tested OSC but it only works with TouchOSC as I know. And I cant create my own mobile app with this. Have another ...
0
votes
0answers
15 views

backing up arduino [duplicate]

Let me clarify first. This is not an question rather a brainstorming topic. The idea is , can we clone an arduino with it's program memory as if we did a dd image of the whole arduino. It can be ...
0
votes
1answer
76 views

Why didn´t send my Arduino the right to USB?

I have an Arduino Mega2560 and want monitoring an asynchronous databus at 4800 bps. I have 64 member on the bus and 1 master station they communicate with a 9 bit protocol. For the 9-bit protocol I ...
0
votes
0answers
17 views

Arduino MEGA Canbus

I was wondering regarding the support for the CAN protocol on the Arduino mega. I am aware that CAN shields do exist and only use a minimal number of ports but they seem to be quite old and are not ...
0
votes
1answer
26 views

Compile Error for Arduino Mega

I am using the Arduino IDE 1.6.0, There is a project that has compiled both for Due and MEGA on another computer. But On my machine, it only compiles only for Due. When Compiling for "MEGA or MEGA ...