Most Popular

1500 questions
4
votes
5 answers

Why do I get avrdude: stk500v2_ReceiveMessage(): timeout error when uploading to Arduino Mega?

I have an Arduino Mega clone and I haven't used it for a while. I remember it not working so when I plugged it in and tried uploading the code to it and sure enough it didn't work. So I plugged in an Uno and it worked. The Mega is a 2560 Atmel.…
techset
  • 59
  • 1
  • 1
  • 6
4
votes
3 answers

Powering up LED strip - How many amps?

I want my Arduino to drive a LED strip. The LED strip in particular is the 3528 non-waterproof type. To power this up, I need a 12V power supply. My LED strip is going to be 5 meters. Now my questions are: Is it important on how many amps, my…
user1584421
  • 1,425
  • 3
  • 26
  • 36
4
votes
1 answer

Huge nested loop in Arduino

I am completely new to programming and I am trying a brute force programming on my garage door opener. I want to use an Arduino for learning purposes. I wrote the following program that finally did what it should and now I am wondering whether there…
AndreasL
  • 41
  • 1
4
votes
4 answers

How useful could the Arduino Yun be in computer vision in a robotics project?

I've recently ordered an Arduino Yun and several other components to begin on a small robotics project (based on an old 4x4 RC Truck). Although not mandatory for what I'd like to do, I was wondering how feasible it would be to mount a small camera…
cnsumner
  • 193
  • 1
  • 7
4
votes
1 answer

Arduino Uno as keyboard

I am trying to make Arduino Uno to act as a keyboard. I have successfully flashed the USB-HID firmware in it using this link also and programmed it like this. uint8_t buf[8] = { 0 }; int inpin1 = 7; int inpin2 = 8; int val1 = 0; int val2 =…
Mayank Pal
  • 41
  • 1
  • 4
4
votes
1 answer

How to fix compilation error for tone() using same timer as other function

I am trying to integrate tone() with the open source program for the Amped heart rate monitor. The error: Tone.cpp.o (symbol from plugin): In function `timer0_pin_port': (.text+0x0): multiple definition of…
rur2641
  • 291
  • 1
  • 3
  • 10
4
votes
2 answers

Equivalent for PORTB in Arduino Mega 2560

Like I said in the subject, I would like to know the equivalent for the instruction: PORTB |= 0x01; PORTB &= ~0x01; More precisely I was using it to trigger a fast pulse conversion on my shield-ADC on an Arduino Uno. Now I am using an Arduino Mega…
4
votes
1 answer

How to convert Arduino example sketch to a complete c++ project?

I'm experimenting something new with my Arduino Leonardo. I removed its original bootloader and flashed it with LUFA mass storage example with added functionalities(now its a firmware). I'm trying to now add RFID reader(read/write) example to my…
Isuru
  • 151
  • 1
  • 1
  • 8
4
votes
1 answer

Flash String Helper object as variable

So I have a Bunch of commonly used char arrays to build commands in my library. So to preserve memory, I have them put into flash, via PROGMEM ext, typedef const char PROGMEM ProgChar; ProgChar AT[] = "AT"; ProgChar AT_RST[] = "RST"; Then in my…
4
votes
2 answers

Multiple tones with one piezo buzzer

I have figured out how to make a piezo buzzer play two tones at once with analogWrite() and tone() but how would I make an actual song by playing both bass and treble, such as this one. Here is the circuit I had to do it: and here is the code I had…
user29569
4
votes
4 answers

Any problems taking arduino(esque) devices through airport security?

I'm flying out for vacation, and I want to take some of my half-done arduino projects with me to work on. I'm concerned that aiprort security might mistake my devices for something sinister or at bare minimum 'suspicious' and be confiscated. Has…
Paul
  • 371
  • 4
  • 16
4
votes
1 answer

How is the bootloader activated when device is running?

For the sake of specificity I am referencing my question to Arduino. It applies to all AVRs with hardware USB and a bootloader though. The bootloader is capable of receiving new program data over the USB interface, and, after programming, releases…
polwel
4
votes
2 answers

No valid serial ports for Arduino UNO on Mac

UPDATE: The issue turned out to be with my work laptop. Our IT department has them configured in such a way that the assignment of serial ports is different somehow. When I plugged in on my personal Macbook Pro it all worked perfectly. I just got…
Jonathan Miller
  • 151
  • 1
  • 6
4
votes
1 answer

Leonardo-based tachometer?

I'm new here. I'm not a native speaker, so pardon my English. I just received my Arduino Leonardo today. I tried some basic calculations and stuff like blinking and LCD interfacing. Its interesting. I am now trying to make a tachometer with the…
x0x
  • 149
  • 4
4
votes
3 answers

Connect 9 V battery to Arduino Mega 2560 directly?

Is it safe to connect a 9 volt battery to an Arduino Mega 2560 directly to power it?
Waqas
  • 41
  • 1
  • 4
1 2 3
99
100