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.
-3
votes
0answers
5 views
http://getmenshealth.com/max-gain-xtreme/
This is a decent decision to take just amid preparing. Maintain a strategic distance from it for lengthy drives (past 1h/1h30) due to conceivable bloating. - Maltodextrin is a get together of ...
1
vote
1answer
17 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
6 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
9 views
Surge corrent interfering with A/C DIMMERS. SNUBBER. ARDUINO. Valve Solenoid [migrated]
I have an issue with SURGE CURRENTS interfering with my dimmer modules on a Arduino-Mega home automation system.
I would be very much grateful for any help in configuring an adequate RC SNUBBER ...
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
38 views
Why send my Arduino only the number 254 over USB
i have an Arduino mega 2560 and want monitoring an asyncon databus with 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
10 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
9 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 ...
1
vote
2answers
30 views
What is the difference between running code with the scope of the void setup() or void loop() vs. outside their scope?
Good evening everyone,
I have bene playing around with making my own library, specifically for the controlling Timer1 on the Arduino Mega 2560. I'm sort of new to OOP but I am trying my hand at it ...
0
votes
0answers
10 views
Arduino Sketch is not Uploading into Arduino Mega 2560
I am trying to upload a sketch into Arduino Mega 2560, but it's not uploading. It's showing an error message-
avrdude: verification error, first mismatch at byte 0x0000
0xbf != 0x06
avrdude: ...
0
votes
0answers
9 views
Issue with PN532 and Topaz 512 chip
I have a PN532 NFC Board connected to my MEGA and it reads Mifare Classic tags & cards and returns me the UID. Currently the NFC Board is configured on mode I2C.
When I try to read a Topaz 512 ...
0
votes
1answer
32 views
How to send Serial.Print only If Serial Connection is open?
So I looked through the Arduino Mega2560 documentation and searched the web for a solution, and so far I haven't had any success.
What I'm trying to accomplish is fairly simple. I need to send a ...
-1
votes
0answers
14 views
arduino step motor drive help [on hold]
I'm new to the Arduino.
1 Piece Arduino mega my hand, 1 piece has 28byj-48 stepper motor.
Make this request;
If I send serial monitor screen, enter one of the stepping motor from the starting point ...
0
votes
1answer
20 views
Multiple HC-SR04 with one 5v 7805 regulator
I am working on a autonomous track vehicle. I have mounted
3 HC-SR04 sensors
1 Sharp infrared distance sensor
3 infrared led distance sensors
1 Arduino Mega 2560
1 H-bridge Board HG7881
I am ...
0
votes
3answers
36 views
Passing pointers between setup and loop
I'm new to the Arduino world. The last time i was programming microprocessors, was back with the Z80 in assembly language.
I am also teaching myself C++ and seems to be going quite well.
I have ...
1
vote
1answer
28 views
How to user timer interrupts for times longer than can TNCTx can keep track of?
I am trying to program my Arduino Mega 2560 to effectively create a PWM signal on any digital pin using timer interrupts and timer1. The pins will pulse a finite amount of times (not indefinitely). I ...
0
votes
0answers
7 views
Watchdog resets AVR Atmega 1281 continuously once triggered
I am using a modified Arduino board: Gizduino X with Atmega 1281 MCU chip on-board. The application is uploaded to MCU using Arduino IDE programmer. I attempted to use the Watchdog timer reset feature ...
0
votes
1answer
15 views
how to interface WCS2750 with aurdrino to make an automatic feeder for a masala chakki (MILL)?
it senses the current and rotates the shaft of a auger dispenser (like used in a cat feeder) using a servo motor to make it fully automatic and efficient.
and turn off the motor when there is no load ...
0
votes
1answer
42 views
How can you reduce the clock frequency of an Arduino Mega?
I'm trying to debug a problem and need to reduce the speed of the clock on my Arduino Mega from 16MHz to 8MHz.
I can't find any simple way of doing so, so I wanted to know if there were any gurus ...
0
votes
1answer
25 views
Ethernet Controlled Arduino Arm
Good day, I am currently attempting to write code that will allow a user to connect to an Arduino Mega via ip address and control a robotic arm on the X and Y axis as well as open and close the claw. ...
0
votes
1answer
18 views
Calibrating ESC and then using it
i have 30Amp ESC which i can move motor by providing values ,
but i am unable to know what is the minimum and maximum throttle speed of the motor....
how to achieve that level of info through ...
0
votes
1answer
43 views
Significant drop in speed between Arduino IDE and Visual Studio?
So, I'm not sure what is causing this, but maybe I'm overlooking something simple. I have a simple program designed to read the analog input at 640 Hz, it looks like this:
int Ch0 = 0;
int count = 0;
...
0
votes
0answers
26 views
Choosing motor shield for Polulu/Arduino Mega
I am relatively new to Arduino, and the following is my setup. Essentially, I am trying to read data from the sensors and move several motors (mostly Polulu micro metal gearmotors) in response to the ...
0
votes
0answers
45 views
Multiple joystick axes without conflicting numbers
I am programming a system for a four motor control system for an underwater ROV. The four motors are in this configuration for horizontal movement:
/ \
\ /
The motor drivers we use control ...
1
vote
1answer
43 views
Atmega2560 + weather station freezing
i made a weather station which is build on a ATmega2560 mini pro, Esp8266 module which communicate with atmega on serial1 which sends values to thingspeak, an TSL2561, 2.4 tft lcd, BMP180, DHT22 and a ...
4
votes
1answer
42 views
How can you check how long a timer interrupt really is?
I'm trying to set a 33 ms interrupt on my Arduino Mega and I'm not sure if I a in fact getting that kind of delay time. Is there a way to check?
I've calculated that that I need 515.6 ticks to achive ...
-1
votes
0answers
14 views
MPPT P&O algorithm code is compiled but no output in the circuit
mppt code:
int maxDuty = 800;
long csPin = A0;
long vsPin = A2;
int numberAnalogReads;
int duty;
long prevPower;
long prevVoltage;
void setup()
{
Serial.begin(9600);
TCCR1A = 242;
TCCR1B = 25;
...
0
votes
1answer
33 views
How to connect the 3.3v pin of arduino mega to multiple sensors
I am connecting 3 accelerometers to an arduino mega. I have everything except how to connect them to the 3.3v pin. I know that I can just connect the 3 of them to the same ground pin but I have been ...
0
votes
2answers
37 views
Timeout error uploading code to Arduino Mega 2560
I am new to Arduino programming, and my first sketch (from a tutorial) failed to upload. I am having trouble trying to figure out what is causing it (have tried to upload the sketch using different ...
0
votes
0answers
35 views
How do you set the prescaler for a timer interrupt?
When creating a timer interrupt how can you chose the ratio of the timer interrupt? I know what part of my code is the prescaler but I don't know how to set it up as a 1:2 ratio or 1:8 ratio. The way ...
0
votes
1answer
23 views
How can you determine the duration of a timer interrupt?
So I understand that when setting a timer interrupt you don't use nanoseconds or milliseconds, but the actual number of clock cycles. However, I don't understand how you would be able to setup a ...
1
vote
1answer
28 views
How to wake up Arduino Mega when in Power Saving Sleep Mode?
I'm using sleep mode to turn off my device after the routine has finished executing and want to use interrupts to wake it up every 33 milliseconds. Basically, the idea is that if the routine completes ...
0
votes
1answer
31 views
Why does this not put my Arduino Mega to sleep?
I have the following program which is supposed to print the words "Program is on" once and then go to sleep. However it doesn't go to sleep and continues to print "Program is on" over and over again.
...
0
votes
1answer
23 views
Why is there already text in the serial monitor before the Arduino initializes?
I have encountered this several times before and I would like it if someone was able to give an explanation. In almost any sketch that I've ever created with Serial communication involved, I notice ...
0
votes
2answers
29 views
Is there a way to set an interrupt to go off after a certain period of time?
I'm trying to save power by putting my device to sleep once it has run through the code once and turn it back on every 33 milliseconds. So basically, if the code finishes executing in 20 milliseconds ...
0
votes
0answers
11 views
Using read() / readBytes() with Max
I am trying to use an Arduino board to monitor the voltage of two MCP 4725 DAC's with different values.
I input the value through a Max patcher (Max 6, from https://docs.cycling74.com/max5/tutorials/...
0
votes
1answer
42 views
Computer to Arduino to hardware, controlling on / off state of hardware via user input on computer
First time coding for Arduino. I'm working on code to operate an electronic valve switch. We have a laptop connected to an Arduino Mega, and that Arduino is hooked up to the valve (hardware) on Pin 53....
1
vote
2answers
54 views
Unable to create a desired periodic signal with Arduino Mega 2560 and DAC0808
I wrote the code to produce the periodic signal by using arduino and DAC0808 where i turned on and off the respectively pins of PORTA by using a logic in iterative manner and created the periodic ...
0
votes
1answer
32 views
Is it possible to overclock the baudrate from the mega to 230400 bps?
i have a Arduino Mega 2560 and want send data with 230400bps to my laptop without any framingerror.
I want send the data over USB with serial.print ist that possible or must i use the ethernet?
When ...
1
vote
0answers
51 views
How can I control 4 DC motors with an Arduino?
In a few months, I am planning to construct an Arduino robot with multiple sensors etc. I will use an arduino mega and a 4wd chassis like the one here: Chassis. The chassis uses 4 DC motors. I was ...
0
votes
1answer
28 views
Arduino Mega different SPI Pins
I am working on a project that uses Arduino and Water Level Sensor MS5540C sensor that uses SPI to communicate with Arduino.
When I use Arduino UNO, it was working like a charm using pins 11, 12 and ...
0
votes
1answer
39 views
How can i receive data from Mega2560 on PC with Visual C#
How can i receive the data from my Arduino Mega 2560 with Visual C# on my PC.
I send a short databyte (2 bytes) and a timestamp (4 bytes) over USB to PC
//initialization
const int RX = 0;
const int ...
1
vote
1answer
18 views
how can i fix the error ? stk500v2_getsync(): timeout communicating with programmer
I bought this Chinese Arduino Mega 2560 16AU.
This was the first time to deal with Arduino boards. When I try to upload a sketch I always get this error:
stk500v2_getsync(): timeout communicating ...
3
votes
1answer
42 views
Setting Frequency of Timer Interrupt
still pretty new to AVR programming, I don't really understand what's going wrong here, and I don't know really how to solve it...
The Concept:
Play a sine wav saved as a char array in PROGMEM ...
0
votes
0answers
19 views
CC3000, How to find Client IP?
I have asked here, Arduino.cc forum, and Adafruit forum this question related to finding client ip using the Adafruit CC3000 Shield. Answer from TisteAndii here: Client IP seems to be on-track, only ...
0
votes
1answer
27 views
How to get data from 9DOF razor IMU directly to arduino mega
My final project goal is to make Brushless gimbal for drones using only Arduino MEGA 2560 and 9DOF IMU for control. On Instructables I found two excellent tutorials. Both are different than mine in ...
0
votes
0answers
25 views
Wiring for Arduino mega to PN532 Board when using NDEF Library
I have been trying to get the simple example code for reading and writing to RFID tags to work from NDEF and PN532 library but I cant get the board to be recognized. I have gotten the board to read a ...
1
vote
0answers
28 views
Attempting to use 3 BNO055 sensors via Arduino Mega 2560
I am working on a project that uses data taken from 3 separate BNO055 sensors and transmits it to an Arduino Mega 2560. I only have a basic knowledge of the code, and am having trouble figuring out ...
0
votes
2answers
64 views
how to implement PWM LED fading into a random case switch?
Ive recently bought my self a arduino Mega 2560 and managed to get a sort of RANDOM function to work with different cases which go of by the number selected.
My question is is there a way to also make ...
0
votes
1answer
38 views
Arduno Mega + SIM808 GSM + GPS Module + Program Switch ON without pressing Push Button?
I am new to IOT and tried out integration and small test code with Arduino Mega with SIM808 + GSM + GPS Module it works fine with SIM808 Library.
My requirement is to put it in enclosure but when the ...