Questions tagged [atmega2560]

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

Features

  • 8-bit AVR RISC-based microcontroller
  • 256KB ISP flash memory
  • 8KB SRAM
  • 4KB EEPROM
  • 86 general purpose I/O lines
  • 32 general purpose working registers
  • real time counter
  • six flexible timer/counters with compare modes
  • 4 USARTs
  • 16-channel 10-bit A/D converter
  • JTAG interface

The device achieves a throughput of 16 MIPS at 16 MHz and operates between 4.5-5.5 volts.

ATmega2560

Sources

133 questions
7
votes
1 answer

Adafruit_LEDBackpack library interfering with analog input reading

I'm trying to do something I think would be simple. I'd like to read the input of a electret microphone board and update the Adafruit 24-segment LED Bar Graph. I got each individual item working perfectly: I can read the input of the microphone on…
5
votes
4 answers

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; it is 4 instructions more than the…
EEd
  • 904
  • 1
  • 14
  • 21
3
votes
1 answer

False interrupt triggering Arduino Mega

I am using Arduino mega with 4 interrupts to find the rotation speed of 4 motors . For this I have used INT2, INT3, INT4, INT5 and the code for the same is given below struct Pulse { uint32_t last_toggle; uint32_t width; bool stateHigh; …
Lawliet
  • 183
  • 7
3
votes
2 answers

How to wake up Arduino with an rtc?

I am doing a data logger with an Arduino Mega2560 and I want to use a code to make it sleep when no measure is needed and wake it up with an RTC when time comes. The reason I want this is because I intend to run the code on a Pro Mini later so I…
JamesONeil
  • 75
  • 8
3
votes
2 answers

Arduino MEGA2560 Standalone

I had an Arduino UNO (ATmega168) standalone working, but I need more pins, and I decided to use the ATmega2560, I was searching for some schematics, and none of them shown an ATmega2560 standalone, only the full Arduino, with the FTDI, power…
Arnyminer Z
  • 197
  • 1
  • 2
  • 8
3
votes
1 answer

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 controller to work exactly same as standard…
Mudassir Hussain
  • 269
  • 1
  • 3
  • 12
3
votes
4 answers

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 Encoder_2 at the same time. How come? case…
zaraku27
  • 55
  • 7
2
votes
1 answer

ATMEGA2560 died inside a arcade game circuit

I am building arcade game with 10 player buttons (5 for each player) and one start button. All buttons have build in LED inside. Player buttons has LED for 12V and start button has led for 5V. I am using ATMEGA2560 pro boar. I have also 4 TM1637…
andz
  • 123
  • 3
2
votes
2 answers

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?
Arcu
  • 21
  • 2
2
votes
1 answer

GY-521 output and degrees

I am trying to make an observatory through 2 GY-521 gyroscopes and using the outputs I have to make a motor move, but I have a problem. When I move one of the two gyroscopes the outputs change, but then as soon as I leave it it returns to the…
2
votes
1 answer

Atmega2560 PWM on PH4

I am trying to convert the following code to output to pin 7 (PH4, OC4B) on an Arduino Mega. The code outputs to pin 6. This code is from a GitHub for the GRBL on the Mega "https://github.com/fra589/grbl-Mega-5X" out of the cpu_map.h It is clear…
Mr.Spriggs
  • 21
  • 1
2
votes
0 answers

External Interrupt and Input Capture pin | Arduino MEGA

I have a code for finding the rpm of one system calling here as engine , the engine have a hall sensor output and I have tried the following Code #define SERVO_MIN 2000 #define SERVO_MAX 4000 struct Pulse { uint32_t last_toggle; uint32_t…
Lawliet
  • 183
  • 7
2
votes
1 answer

Loading code to a mega 2560

As part of my application, I need to be able to update the code on my mega 2560 in the field with a download from the internet. I have found this code in the AT Mega 2560 data sheet ;-the routine writes one page of data from RAM to Flash ; the…
Thom
  • 173
  • 1
  • 8
2
votes
1 answer

Testing 433MHz Transmitter

Folks, There is a document named "Complete Guide for RF 433MHz Transmitter.pdf" available in the GitHub. There is a a connection diagram showing the Data pin of the Transmitter connected to the pin 12 of the Arduino Uno. The Transmitter sketch given…
Ranjith
  • 61
  • 2
2
votes
1 answer

Why is their need of response time needed in esp8266 AT commands?

I am writing an AT commands firmware for esp8266 via connecting it to atmega2560. Now the question is how will I come to know the response time for AT commands for writing its firmware to read the response? in fact prior to this thought, the…
Kunal
  • 81
  • 1
1
2 3
8 9