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.
0
votes
0answers
7 views
Advisability of Using Bit Fields in Structs
I have to track a large amount of data (for an Arduino) in a program while taking care of a fair amount of other business.
I started with a struct like this:
struct MyStruct
{
// note: these ...
0
votes
1answer
46 views
Arduino Ethernet Client crashes after obtaining values from string
My Ethernet server keeps crashing after pulling the RGB values from the string. It remains connected if I'm just toggling a pin, but whenever the string has the rgb values in it, the RGB values are ...
0
votes
1answer
27 views
Problem with NFC on Arduino MEGA
My Objective :
I am trying to send my Mifare's unique number with some other parameters to my server database. As soon as the tag come closer to NFC, it detects, and some additional details are ...
0
votes
1answer
34 views
Minimum Amperes or Power for Arduino Mega
I wanted to use the Cigarette Lighter Receptacle of a car as the power supply for the Arduino Mega. From 12 V, I will convert it to a 7 V supply, but my problem is, what must be the minimum ampere or ...
1
vote
2answers
35 views
If I connect a battery to the vin pin on the arduino, will the 5V pin be activated?
My wording might be a bit confusing, if I plug an 8 volt battery into Vin, will the arduino be powered and will the 5V pins work?
0
votes
1answer
66 views
Arduino and visual basic Serial data
I am trying to send command serially through Vb.through serial monitor working fine . But Through VB it not detecting port
My arduino code:
int ledPin = 2; // the number of the LED pin
void setup() ...
1
vote
1answer
26 views
Servo library unable to control more than 11 servos
I am working on assembling the ROFI robot from Project Biped (http://www.projectbiped.com/prototypes/rofi) and I have not been able to run any arduino program as they will not function correctly.
To ...
0
votes
0answers
35 views
My arduino board are short circuited how to fix it?
My arduino get damage by a Short circuit so i tried my board with a simple code it gives me wrong results so is there any way to reset or format it ?
0
votes
1answer
49 views
Code to use an Arduino Mega 2560 to transfer UART <-> USB to debug an other Microcontroller
I have the following circuit and want to use the Arduino Mega 2560 as an debugger for an other Microcontroller.
So I am looking for the code to redirect the UART input from "P17 (RX2)" to the serial ...
0
votes
3answers
37 views
Optmizing print code when writing to file, and reducing print time
First things first, I have found some solutions to this problems but they all involved for printing to serial monitor. I am trying to take the information from the sensors and write them to an sd ...
1
vote
2answers
64 views
Mega2560 R3 pin functions
When I read about mega2560 I saw it has 54 digital that can be used as input or output.
later on I saw the some of them are used for things like communication.
So I would like to know if the ...
2
votes
1answer
84 views
File Size Problem with EyeFi SD Card and Arduino Mega
I've been writing to an EyeFi SD card with an Arduino Mega. I've managed to get the files to upload wirelessly, but I noticed that my data gets cut off when the file reaches a size of 24 kb. If I ...
0
votes
1answer
85 views
ArrayList implementation fails for string object
I'm using a customised C++ implementation of ArrayList based on the method found in Processing. The original code is by Obed Isai Rios, but I've added a version to Github with more explicit file ...
0
votes
1answer
52 views
SD datalogger sometimes skips readings
I'm using the Adafruit SD shield with a Mega board and wrote a simple program to log data. I am outputting a constant stream of data at 115200 baudrate from another Arduino to the Mega. The data ...
3
votes
1answer
37 views
How do I specify a working directory when saving to SD card?
I'm trying to datalog to a EyeFi SD card by writing to a file with a jpg extension. Here's that portion of my code so far:
// see if the directory exists, create it if not.
if( ...
1
vote
2answers
53 views
Mega 2560 powered with 7V don't work correctly
I have an Arduino Mega 2560 with a GPRS seeedstudio shield and an USB Host CircuitsAtHome shield which work fine when powered with USB or with an adjustable voltage regulator set at 8V.
When I set ...
0
votes
0answers
61 views
SIM 900 + Arduino Mega attachGPRS problem, GPRS_READY
I have connected my GSM module to my Arduino. Using AT commands I am able to connect to internet.
Using the following link of tutorials, I tried to connect to internet
...
0
votes
0answers
50 views
SPI Communication Failure
I am trying to program an AD5930 with my Arduino Mega, and I suspect that I have a software issue or a broken Mega. I am fairly new to coding Arduino's so I am hoping someone here knows better.
Here ...
0
votes
0answers
131 views
Arduino Mega 2560 - TFT 3.5 Display is not working with libraries suggested
I attached 2 images of the shield!
TFT Front image
I bougth an Arduino Mega 2560 R3 with a TFT 3.5 Display shield in China.
What I knew in my researches was:
There are No datasheets available in ...
2
votes
2answers
110 views
Attiny13 + Arduino
I started my first try in programming an ATTINY13 with my Arduino 2560.
Everything seemed fine, however when I wanted to run the blink example, my LED did not blink, it keeps lighting.
I am using 5V ...
1
vote
2answers
58 views
Computer not detecting my Arduino MEGA 2560 R3
I've tried different USB cables, computers, ports and none of them can detect my possibly bricked Mega 2560 R3. Nothing shows up at all in the Device Manager, not even "Unknown Device".
When the ...
1
vote
2answers
96 views
Raspberry pi -Arduino bridge
I am building a small wireless controlled robot using the Arduino and the raspberry pi. It works by the user wirelessly connecting through to the raspberry Pi (using vnc or some other form wirelessly) ...
0
votes
1answer
46 views
Problem with interpretting and using the IMU data
I am using MPU6050 IMU for getting accelerometer and gyro data. I could read the data using the code from the I2Cdev library here, but the problem I have is that I can't use this data in a meaningful ...
0
votes
1answer
206 views
Sending MPU6050 data over serial to Java/C# Program
I am using a MPU6050 Accelerometer/Gyro breakout (GY-521) to retrieve data and send it to a java program. I have tried several ways, but I couldn't find a way to send the float values calculated from ...
2
votes
0answers
61 views
Arduino + Web Service [closed]
I am doing my CBT, and i need help...
I need a Webservice in C#, and it will send commands to my Arduino( Mega 2560 + Ehternet Shield )...
My Webservice will recibe commands from Android and Web
...
0
votes
1answer
82 views
How do I set Grove GPS to use A-GPS?
I am using a grove GPS http://www.seeedstudio.com/wiki/Grove_-_GPS
I attached the GPS to Serial1 of Arduino Mega 2560.
The baudrate of the GPS is set to 9600.
Library wise, I am using TinyGps to ...
1
vote
0answers
14 views
Client or WiFiClient wrapper for adafruit CC3000 wifi other than web [duplicate]
Basically I want a contact to a socket (keep open) for sending strings and characters as well as receiving them. I do not want anything to do with web. I am writing my own server in vb and actually ...
1
vote
1answer
97 views
Mega 2560 Doesn't Respond
When trying to upload to my Mega r2, it simply times out during uploading.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
I tried ...
0
votes
1answer
133 views
How do I install the firmware on an Arduino Mega clone?
I have a brand new board which is a clone of the Mega2560. I need to install the USB firmware on the 16U2 and the bootloader on the 2650 chip. I have Atmel Studio and a JTAGICE-3. Using those, I can ...
2
votes
3answers
1k views
3.5" TFT LCD Display is not working with Arduino Mega 2560 R3
Even I can't do similarly with my 2.4" TFT LCD in here still: 2.4" TFT LCD Shield isn't working on Arduino Mega
Now, I have bought 3.5" TFT LCD display for my Arduino Mega 2560 R3 to try ...
1
vote
0answers
51 views
GPS - Speed doesn't update as should - EM408 & Arduino Mega & GSM
I'm developing a system that will get the GPS signal and send it though the GSM with information about position, speed and temperature from some digital sensors.
Currently I'm using the GPS EM408, ...
0
votes
1answer
98 views
How to send multi variable information over serial?
I would like to send information between my Arduino and my computer. Is there a way to send multiple variables from one Arduino? If so, how would I go about separating the variables?
1
vote
1answer
87 views
Are these lcd and motor-shields stackable?
first of all, I'm kindly apologizing for asking such stupid questions, but as my electronic-knowledge is dramatically limited, you are my only hope to get my problem solved.
I'm pretty new to Arduino ...
1
vote
3answers
189 views
Prevent Arduino Mega from setting all Outputs to HIGH on Reset
The Arduino Mega 2560 Rev 3 has multiple relays connected to its digital output pins.
Whenever the Arduino is reset (using reset button, turning on Serial Monitor etc), the Arduino turns on all ...
4
votes
2answers
272 views
What is the cheapest way to add wifi to Arduino?
I am trying to find some sort of wifi adapter for Arduino, it needs to be as small as possible (not a shield) and as cheap as possible.
So far I can only seem to find shields that cost about £10+ ...
1
vote
1answer
218 views
Using arduino mega with linear encoder to control movement of dispenser
My goal is to deliver very small quantities (100 microliters) of fluid to the (approximate) center of a 25mm x 75mm surface. My first idea was to repurpose an old inkjet printer for the project. I ...
-2
votes
1answer
39 views
timestramp in arduino
int sensorArray[32] ;
int selectPinZero = 8;
int selectPinOne = 9;
int selectPinTwo = 10;
int selectpinthree=11;
int Enablepin=7;
int inputPinOne = 0;
int inputPinTwo = 1;
int sensor1;
int ...
2
votes
2answers
259 views
Arduino to Raspberry Pi wired communication
I am new to Raspberry Pi (just brought mine before writing this post), and I am looking to see what is the most ideal way for two way communication between an Arduino and a Raspberry Pi (USB, SPI or ...
0
votes
0answers
43 views
Arduino message hang
I'm using an Arduino Mega, with an Arduino Ethernet shield, to recieve messages via a self hosted MQTT broker(http://mqtt.org).
Upon receiving the string "print-node-1", the Arduino then scrapes a ...
0
votes
0answers
15 views
How to create time frame in arduino [duplicate]
Dear all.
This my circuit i build. Here i am using arduino UNO Board to read the values.
Question are
How to create time frame here. In arduino timer library available . Where function like ...
-1
votes
1answer
133 views
Data packet format when USB initialized as COM port
Does anyone know how the data in data packet looks like when the USB is initialized as COM port?
I have a Arduino Mega 2560. I have initialized COM port with a baud rate of 9600. I know that there ...
1
vote
1answer
74 views
Setting time frame in Arduino Uno
I have built the circuit below using mux ICs. In a particular interval the respective selector pins get selected and analog signal from hall sensors are read and give a particular analog value out. ...
2
votes
1answer
130 views
What is the circular gold pad on arduino mega 2560 v2 and above?
Could someone point me to the documentation that describes the gold dot and surrounding gold circle on the front of my arduino mega v2 board. It is right above the ICSP header and reset button, and ...
1
vote
0answers
41 views
Arduino Firmata Disconnecting Randomly
I am currently using an Arduino Mega 2560 with a Windows 8 laptop. On the Arduino I have uploaded the StandardFirmata code with only one modification. The samplingInterval was changed from 19 to 99 ...
3
votes
1answer
174 views
How to make XBee module interrupt/wake arduino
What I am trying to do is, to have arduino in low power mode and waking up only when a packet is received and is available to be read from the buffer.
A scenario : Zigbee XBee module is not ...
0
votes
1answer
106 views
Can I load programs through the RS232 pins?
Can I upload new programs onto a MEGA2560 through a serial port connected to pins 2&3? (through the correct RS232<->TTL level shifters)
I know the 16U2 chip acts as a USB->serial converter ...
0
votes
1answer
94 views
error: no '' member function declared in class 'SonarSRF08'
Hi, I am a pretty novice coder and I am getting this error consistently with a library I have installed. Here is the code I am trying to run:
#include <Wire.h>
#include <SonarSRF02.h>
...
0
votes
1answer
200 views
Can Arduino Mega2560 Use this 24VDC Relay?
Can a Arduino MEGA 2560 R3 provide enough current out of its pin to activate the Songle srd-24vdc-sl-c relay? Will powering the Arduino with an external power supply help?
0
votes
1answer
119 views
Multiple definition of '__vector_36' (intterupts)
I'm having some conflicts between the core HardwareSerial.cpp and an external DMX library.
For DMX I'm using the Four Universes DMX 512 Library. Using the library standalone, it all works perfectly. ...
-1
votes
2answers
250 views
Arduino Mega & WiFi Shield; why webserver everytime says my A7 pin reads 0V?
I have got Arduino Mega 2560, Arduino WiFi Shield and resistor 1.5K. Now PWM 2 is attached to Res. then attached GND. 5V is attached between PWM2 and resistor's up point. I want to read Arduino Mega's ...