Most Popular
1500 questions
7
votes
5 answers
Alternatives to Wire library for I2C
I am looking for (reasonably easy to use and well tested) alternatives to the Wire library. Wire works very well, but: I only need the Arduino to act as I2C master and the Wire library seems to be a real waste of resources:
My goal is to send out…
fuenfundachtzig
- 1,535
- 1
- 14
- 26
7
votes
3 answers
How does this Motor Circuit not ruin the Microcontroller
I came across this instructable about using no external hardware but two pwm pins to control a motor in both directions. Usually you would use an H bridge. However, ever since I have had my Arduino I have heard that you are not supposed to connect a…
NULL
- 820
- 1
- 9
- 20
7
votes
1 answer
Mic input and Speaker output using arduino
I am trying to make a small project. Firstly, I want to record voice using a small microphone(electret) for the time button is pressed and on releasing the button, the speaker of my laptop should output the recorded voice or a speaker attached to…
Sahil Babbar
- 71
- 2
7
votes
1 answer
What is the physical location of the U1A symbol on Arduino Uno?
I'm trying to find an easy way to allow an Arduino Uno to determine if it's being powered from USB or the DC barrel jack. In this thread, one user recommends wiring the output of the on-board comparator op-amp (U5A pin 1) into the digital input…
Cerin
- 1,688
- 2
- 28
- 44
6
votes
3 answers
How can I filter out noise from ADC lines without delay or signal change?
I'm working on a project with a joystick and I'm trying to keep everything a simple and low latency as possible. I am reading the pots with the onboard 10bit ADC on the ATmega 32u4 but may be upgrading to either a 16bit ADC or 24 bit ADC. How can I…
user862
- 71
- 1
- 1
- 2
6
votes
2 answers
Problem importing a library in .h file
I have following code:
MyApp.ino:
#include "DfRobotLcdShield.h"
void setup() {
}
void loop() {
}
DfRobotLcdShield.h:
#include
When I try to compile, I'm getting the error:
In file included from…
Thomas S.
- 566
- 3
- 8
- 21
6
votes
1 answer
LEDs on TX/RX lines interfering with the programmig of the device
I have recently designed a shield to my Arduino Duemilanove, which has 8 LEDs, on the digital GPIO, from 0 to 7, but it won't program with the shield on because the voltage drop is too much on the RX and TX lines. My question is: can I have a LED on…
Electropepper
- 115
- 1
- 7
6
votes
4 answers
How to avoid blocking while loop reading Serial?
I am currently playing with a MindWave Mobile headset. I am parsing bluetooth data received from a connected BlueSMIRF Silver.
The code I started from is a sample from the MindWave wiki and it works using hardware Serial.
For reference here is the…
George Profenza
- 311
- 1
- 6
- 17
6
votes
2 answers
EEPROM endurance and page size
I would like to estimate the effective (minimum) endurance of the EEPROM of the Arduino in terms of single-byte writes.
The datasheet of the ATmega used on many Arduino boards says (page 20):
The ATmega48A/PA/88A/PA/168A/PA/328/P contains…
fuenfundachtzig
- 1,535
- 1
- 14
- 26
6
votes
3 answers
What are the main differences between Arduino and mbed?
I have been working a lot with the Arduino platform over the last year. Arduino makes it very easy for beginners (in my opinion) to get started and has a large community and a lot of libraries for all kinds of peripherals.
Now, I am considering to…
fuenfundachtzig
- 1,535
- 1
- 14
- 26
6
votes
1 answer
How to turn off the display of line numbers on Mac Arduino IDE?
I'm trying to turn off line numbers on the Mac Arduino IDE but don't see the option for it after navigating to Arduino IDE > Preferences. Below is a screenshot of what I am seeing.
I saw this question asked previously, but there is no File >…
ttoshiro
- 181
- 1
- 5
6
votes
1 answer
Can I compile c/c++ code on the linux part of the Arduino Yun?
Can I compile c/c++ code on the linux part of the Arduino Yun?
How complete is the linux part of the Arduino Yun?
Can I scp some c/c++ code onto the Atheros AR9331 chip compile it?
Or must I first crosscompile all software and then put them onto the…
Johan
- 415
- 3
- 9
6
votes
3 answers
Does any board provide more than 1024 analog input values?
The Arduino boards provide an analog input range of 0V to 5V which translates to 0 to 1023 integer values. The range is determined by the on-board ADC, which in the case of the Uno is a 10 bit ADC (2^10 = 1024).
Do any of the official boards have a…
asheeshr
- 3,847
- 3
- 26
- 61
6
votes
3 answers
Location of examples folder in Ubuntu
I'm trying to add some additional example files to the Arduino IDE in Ubuntu 14.04. However, I can't for the life of me find where the examples are stored in my system. I checked the Arduino website, but can't find any information there. Does anyone…
detective6
- 141
- 1
- 1
- 5
6
votes
2 answers
Do you actually NEED external resistors for switch connecting IO pin to ground?
Years ago, I encountered a fairly long debate at AVRfreaks.net about whether or not it's OK to directly connect AVR pins that are configured as inputs with internal pullup enabled directly to ground through a button or switch.
From what I recall,…
Bitbang3r
- 561
- 1
- 3
- 14