Questions tagged [atmega2560]

Low-power 8-bit AVR microcontroller with 256kB flash.

Filter by
Sorted by
Tagged with
2
votes
2answers
3k views

Arduino crashing during serial print for no obvious reason

I've written some Arduino Code which kept crashing and i couldn't find out why. Then i reduced the code as much as i could in order to see the problem. The reduced code currently doesn't do anything ...
1
vote
1answer
171 views

Controllino Debugging

Its a well known fact, that you can debug your arduino board with the help of an Atmel Ice. However, you might know the Controllino which is an arduino compatible device. It has an ATmega2560 on it. ...
1
vote
1answer
4k views

Rotary encoder I2C LCD menu

I am trying to make a menu for a monitoring/control system. I am not sure how to make this without interrupting my current code which needs to be monitoring my system at all times to shut off if it ...
1
vote
2answers
2k views

Read and store data with the usb

Hi i am new to Arduino and I want to know if it is possible to read the data from a sensor that it is connected to the Arduino, I am using the Arduino mega 2560, which is already working, as I have a ...
1
vote
2answers
239 views

mega2560- Interrupts reading digital input

Hi I am very new to Arduino, with very little programming experience. I am using mega 2560 and trying to understand how interrupt works. I have a code written, it is very similar as the example ...
2
votes
2answers
1k views

Error while boot loading Atmega 2560 using Arduino Mega 2560

I have developed custom board using Atmega 2560. I am doing boot loading process using the process of migrate from an Arduino board to a standalone microcontroller. I have followed this steps... 1) ...
3
votes
1answer
436 views

Bootloader and Boards Definition for Atmega2560V-8AU at 8 MHz / 3.3v

I am working on a home made project,where i am using Atmega2560V-8AU (note the suffix, this part has an 8 MHz maximum clock rate) as my main controller, supplying 3.3V to this chip. I want this ...
0
votes
1answer
293 views

Atmega2560 USART UDR r/w conflict possible?

I'm having a really weird issue with my project right now. I have an Atmega2560 using hardware serial, and the software on the other side is doing full duplex read/write at 500kbps. If I change it to ...
0
votes
3answers
1k views

2.4Mhz clock for 3-wire SPI using Arduino Mega 2560

I am trying to develop an Arduino sketch for ADS8320 ADC IC, which is 3-wire SPI. I need a 2.4MHz serial clock for the SPI interface. I tried the code below, but I don't know how to generate clock ...
2
votes
2answers
376 views

Is there an ICRn CTC mode interrupt vector?

I can use the CTC waveform generation mode to loop to OCRnA and trigger the corresponding TIMER1_COMPA_vect interrupt. // CTC mode TCCR1A &= ~(1 << WGM10); TCCR1A &= ~(1 << WGM11);...
3
votes
4answers
2k views

If else statement not mutually exclusive?

When I'm running some test on my encoder motors using the following provided code by Makeblock, it appears that the if..else.. statement is not mutually exclusive ie. I can control Encoder_1 and ...
0
votes
1answer
58 views

Value appears to change sign suddenly

When slot == SLOT_1 is true, speed_value is positive but when slot == SLOT_2 is true, speed_value becomes negative. I printed the value of speed_value immediately after the statement speed_value = -...
1
vote
2answers
554 views

7 segment displays arduino mega 2560

I'm trying to use an Arduino Mega 2560 to use 7-segment displays, 6 displays... I use 3 CD4543B to pilot the 6 displays. It works very well for 4 displays as you can see in this video. But when I ...
0
votes
1answer
64 views

Get when a button close the circuit

That seems to be a bit stupid to myself but I can't figure out to get to know when my button is pushed (closed) or released (open). You must know that this not just a simple push button. Actually it ...
5
votes
4answers
2k views

Will an ATmega2560 board be faster than a Uno for hard real-time data logging?

I am designing a hard real-time data logger. The Uno is a bit marginal in processing speed. a) Would it be faster if I changed to an ATmega2560? b) On the datasheet, ATMEGA2560 has 135 instructions; ...
1
vote
3answers
1k views

Understanding writing to input pins and pull up resistors

I am new to Arduino, and am trying to understand the following code. The question is: Is my understanding correct, or if not, what is happening here? I have to reverse engineer an existing ...
-1
votes
1answer
101 views

What software should I use to program my ATmega2560? [closed]

I have written code in Atmel Studio 7. First off, I have to create a hex file of the code. How to create a hex file using Atmel Studio 7? Secondly, I want to upload the code to my ATmega2560, so ...
0
votes
1answer
219 views

Extrapolate require MCU from Arduino MEGA2560 performance

I am running a control program for an ebike on an Arduino MEGA2560 which uses this MCU: http://www.atmel.com/devices/atmega2560.aspx. Currently, the program loops every 100ms which gives me a sample ...
1
vote
1answer
305 views

Did I just brick my ATMEGA 2560?

I bought an ATMEGA2560 on eBay and programmed it with Arduino IDE 1.6.9 using the USB cable, and the LED blinked as expected - All well and good. Now I wanted to program the mega from my UNO as ...
0
votes
0answers
62 views

Is there an easy way to connect and control 3 servos?

I need to connect and control three Parallax Standard Servos to an Arduino board, and apart from the USB connection, nothing else will be connected to the board. My predecessor used a setup of and ...
1
vote
2answers
5k views

Arduino with 12 bit DAC (MCP4725) Not Working

I have an Arduino Mega AT2560 and need to have real DAC. I purchased the Sparkfun 12 bit DAC, however I don't think it is working properly. I am using the Arduino wire library to communicate with the ...
1
vote
0answers
216 views

Intermittent wifi/hotspot connection

I have an Arduino Mega 2560 with a cc3000 Wifi shield that is sending messages to dweet.io. Here is the relevant portion of my code: // Post data to dweetio char data[125]; sprintf(data, "?t1=...
1
vote
0answers
114 views

Arduino not responding while trying to flash over BLE

I'm working on wireless uploader for Arduino from iOS devices. I'm using HM-10 BLE module which seems to work ok. PIO 2 is used as DTR for resetting (see A [0x41] T [0x54] + [0x2B] P [0x50] I [0x49] O ...
2
votes
2answers
1k views

Programming ATmega2560 processor with FTDI instead of ATmega32

Has anyone tried to program an ATmega2560 with an FTDI chip as is done in the Arduino Nano (this is for a custom design). Will it work?

1 2
3