Most Popular
1500 questions
7
votes
1 answer
Why does increasing resistance make a capacitive sensor more sensitive?
From the Capacitive Sensor Page on the Arduino website, it states the following:
The capacitiveSensor method toggles a microcontroller send pin to a new state and then waits for the receive pin to change to the same state as the send pin. A…
Kenneth .J
- 393
- 1
- 5
- 11
7
votes
3 answers
Sending and receiving different types of data via I2C in Arduino
I have found a few good tutorials on how to send and receive data via I2C in connected arduinos. My limitation is now how to transmit different types of data like for instance, long, float, etc. Right now the communication via I2C using the wire…
Camilo
- 359
- 2
- 5
- 12
7
votes
2 answers
arduino creates strange files in SD card
I'm new to Arduino and electronics. I want to make a project including SD data-logger, but I had a problem. I would appreciate if someone show me where I made a mistake.
Firstly, circuit was set up as in picture:
I am using 8 Gb micro SDHC card…
dursung
- 71
- 1
- 1
- 2
7
votes
5 answers
Programming arduino via bluetooth module issue
I followed a tutorial on how to setup arduino and bluetooth so it can be programmed without usb cables. I didn't use capacitors or resistors asthere doesn't seem to be a need for them. I have the serial output appearing on arduino serial console via…
DominicM
- 597
- 3
- 7
- 13
7
votes
1 answer
Arduino sizeof Servo array objects is.. wrong?
After searching for a quite long while over the internet, I have no choice but to try asking someone if they can explain me this apparently strange situation.
I'm doing some tests using some servo motors, trying to move them almost together using…
briosheje
- 173
- 2
- 6
7
votes
1 answer
Playing audio files with sine wave from arduino
So, when searching for a way to play audio files through the Arduino, I came across this site: How to play WAV audio files with Arduino Uno and MicroSD card
This seems like a really good library (although I haven't had the time to really play around…
jaredad7
- 173
- 7
7
votes
1 answer
Communication with two XBee's and Arduinos over serial
I have two XBee's connected to two Arduino Uno boards (one for each XBee). I connected each XBee to the X-CTU software, and have set the following:
XBee 1
Pan ID = 4270
DL = 10
MY = 20
XBee 2
Pan ID = 4270
DL = 20
MY = 10
Both
DD = 10000
IC =…
nathpilland
7
votes
4 answers
Adjust time calculation after Timer0 frequency change
I have an Arduino Nano with an 328P and need all 6 PWM pins.
Thus, I had to adjust the prescaler and WGM Mode of Timer0.
It is now in phase correct PWM mode with a prescaler of 1.
TCCR0A = _BV(COM0A1) | _BV(COM0B1) | _BV(WGM00);
TCCR0B =…
Splitframe
- 173
- 5
7
votes
2 answers
Level detection of 3.3V from 5V arduino
A quick question about microcontroller digital level on I/O pins. I have a photo interrupter which is powered at 3.3V which is interfaced to Arduino UNO running at 5V.
For microcontroller to detect high or low level is determined by signal higher…
David Norman
- 173
- 1
- 6
7
votes
2 answers
Control/count rotations of a DC motor
Using an Arduino and an L293D IC, can I control the number of rotations a DC motor makes? Or can I only control the direction and speed of the motor?
I purchased a two-wheeled robot platform to learn Arduino programming and electronics. The platform…
Michael Cornn
- 173
- 1
- 4
7
votes
1 answer
How shiftOut function works internally? (explanation on source code)
I were examining shiftOut() function code in wiring_shift.c and I didn't quite understand what is going in digitalWrite function. I see !!(val & (1 << i)) is taking the bit value from val but how exactly it works?
The whole function is below.
void…
wizofwor
- 298
- 2
- 5
- 13
7
votes
1 answer
strange behaviour of dtostrf()
I'm trying to program a little bit in Arduino, but I'm stuck with probably something trivial.
This is what I have:
char ang[3], lat[9];
dtostrf(GPS.angle, 3, 0, ang);
dtostrf(GPS.latitude, 9,5, lat);
Serial.println(lat); …
stUrb
- 351
- 2
- 5
- 10
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,515
- 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
- 810
- 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