Most Popular

1500 questions
4
votes
3 answers

Getting a fixed sampling rate

Ultimately I will move to a generic smart phone for this project. I'm trying to read 4 analog inputs from my arduino with a fixed 1kHz sampling frequency. I managed to set it to read at 1kHz as you can see from this link. The issue is that after…
Isra
  • 95
  • 3
  • 11
4
votes
6 answers

Why can't I use just the digital pins and a ground to use a potentiometer?

First of all I am a newbie. So please excuse. After doing the first basic project, in which I had hooked up the positive of a LED to a digital input of the Arduino and the negative to the ground of the board, I am assuming that the digital pins in…
enoob
  • 51
  • 1
  • 3
4
votes
3 answers

SMPTE Timecode Reader with LCD display coding question

I've managed to adapt some code from the Arduino forums to display timecode on an LCD display. What I would like some extra help with is first is there a way of defining the one_time_max etc differently depending on the high low state of a pin? This…
user3316519
  • 41
  • 1
  • 4
4
votes
1 answer

Understanding Soil Moisture Sensor Values

I have soil Moisture sensor inserted into the pot soil, wet in state. (not too damp) and soil moisture sensor is connected to Arduino Mega 2560. This is the soil moisture sensor I am using: Soil Moisture Sensor VCC is fed by 4.95 coming from Mega's…
Ciasto piekarz
  • 575
  • 3
  • 12
  • 28
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
1 2 3
99
100