Skip to main content

Questions tagged [arduino-mega]

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.

67 votes
2 answers
230k views

With reference to the Arduino Uno, Mega2560, Leonardo and similar boards: How does SPI work? How fast is SPI? How do I connect between a master and a slave? How do I make an SPI slave? Please note: ...
Nick Gammon's user avatar
  • 38.9k
71 votes
12 answers
458k views

I am sending a list of servo positions via the serial connection to the arduino in the following format 1:90&2:80&3:180 Which would be parsed as: servoId : Position & servoId : Position &...
ValrikRobot's user avatar
29 votes
8 answers
40k views

Once you have uploaded a sketch to one of your Arduino boards, it is hard to know exactly what source code led to that sketch. Indeed, you may change the source code of your sketch on your PC without ...
jfpoilpret's user avatar
  • 9,162
10 votes
4 answers
8k views

While planning the lightning infrastructure (wall-switches and lights) of my new home (it's still under-construction) I choosed to go through the "automated route" way and due to my background (I'm an ...
Damiano Verzulli's user avatar
13 votes
3 answers
27k views

I have an Arduino Mega 2560 and it was working fine until about lunch time when I started getting this error: avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_getsync(): timeout ...
bladepanthera's user avatar
29 votes
8 answers
21k views

I'm relatively new at programming and many of the coding best practices I'm reading effectively state that there are very few good reasons to use a global variable (or that the best code has no ...
ATE-ENGE's user avatar
  • 941
2 votes
2 answers
10k views

I've been playing with my Arduino for a few months. But, I just bought a shield that says it needs to be used with ATMEGA328P. My box says I have a 328P, however, reading the chip, it's inscribed ...
PlayswDuinos's user avatar
1 vote
1 answer
515 views

I am using an ArduinoISP external programmer to upload a sketch to an Arduino MEGA. I set the processor type to MEGA 2560, and use Ctrl-Shft-U to upload using a programmer. My programmer is set to ...
Michael Molter's user avatar
0 votes
1 answer
894 views

I had an Xperia txt pro just laying around and tried to revive it. I burned it like an idiot using 5v in the battery pins by accident :/ So I decided to read it apart and got to the lcd, can I use my ...
user39366's user avatar
2 votes
2 answers
4k views

I am working on a human following robot project and I am trying to achieve this with 1 Ultrasonic sensor that makes sure the robot won't crash into something and 3 PIR sensors that will detect human ...
Imayan's user avatar
  • 93
2 votes
4 answers
6k views

Is it possible to connect more than one or to be specific 5 MPU9250 into 1 Arduino lilypad? How will I set the addresses, and where should I put the pins for SDA and SCL? I hope someone out there ...
Thomas's user avatar
  • 123
0 votes
1 answer
327 views

So I have a line scan camera attached to my Arduino Mega and I'm trying to send it a digital clock impulse and get an analog output back. The line scan camera is supposed to return 128 pixels. So far ...
Fortuna Iwasaki's user avatar
0 votes
1 answer
10k views

I want to get the GPS ordinates in degrees with 6 decimal accuracy. I can obtain this by creating a gps object with TinyGPS library. but In the TinyGPS example codes, its written Serial.println(gps....
Anum Sheraz's user avatar
10 votes
4 answers
33k views

Even on ebay's website it is mentioned that I can't use 2.4" TFT LCD Shield display on attach to Arduino Mega. The problem is that I bought this shield by mistake. I want to put this shield onto ...
Bay's user avatar
  • 303
10 votes
5 answers
7k views

I'm trying to bit bang DMX data and that requires 4us pulses. Not having much luck with the results I'm checking to see how good the Arduino is at delaying... Seems to be pretty terrible at it. Here'...
bwoogie's user avatar
  • 203

15 30 50 per page
1
2 3 4 5
8