Most Popular

1500 questions
6
votes
1 answer

EPS8266 ESP-01: LED manipulation seems to interfere with serial communication

I'm playing around with this udp-example. Both this and the blink-example work perfectly. Now I would like to use the LED to indicate what the ESP is currently doing, as well as reading some data over Serial. My code looks like this: void setup(){ …
user2224350
  • 113
  • 6
6
votes
5 answers

Adding an LCD to Uno but not enough pins left

I am an absolute beginner and wanted to build a simple home automation system using DTMF module using this guide. My problem is out of 12 pins most of them are getting used in DTMF module(5) and the relay module(4). So how do i add an LCD display to…
Vaibhav
  • 61
  • 3
6
votes
2 answers

Serial.println(): Where is the text printed?

When I used Serial.println() in the code I naively believed I would see the characters that I sent displayed on that little black area just under the interface (just like a terminal). #include int moveServo; Servo myservo; void…
Fraïssé
  • 895
  • 5
  • 13
  • 16
6
votes
1 answer

Difference between PWM and regular output port for servos?

I have been controlling my servomotors for a while now only using pin 0. After some research, it has became apparent to me that the ports with ~ are the PWM pins. I thought that all pins sent out PWM signals, therefore the motor was able to move…
Fraïssé
  • 895
  • 5
  • 13
  • 16
6
votes
3 answers

Why does this button have a connection to ground?

I am testing this basic button example from the Arduino tutorial page. This circuit lets power flow to pin 2 when the button is pressed. When the button is not pressed, the power goes through the resistor to ground, but my question is: why would…
Kokodoko
  • 161
  • 1
  • 6
6
votes
3 answers

Arduino UNO hangs without visible reason

I'm having trouble with Arduino UNO. I bought a cheap clone (what obviously may be the reason) along with display+keypad shield (site in Polish). For my project I wrote a menu library, which (along with simple demo project) may be downloaded or…
Spook
  • 195
  • 1
  • 8
6
votes
2 answers

Arduino nano as HID Keyboard

I'm a bit of a noob in the Arduino area but I found an Arduino nano I bought a long time ago sitting on my shelf and collecting dust, so I taught "why not make a project". I game a lot of racing games so I wanted to make a simple ignition button…
brandon bondig
  • 61
  • 1
  • 1
  • 2
6
votes
2 answers

Source code for Arduino “firmware”?

I am wondering if anyone here knows where the source code for the Arduino "firmware" is available for reading? I think it must be more than the 'boot loader' but I am not sure. Thanks! p.s. I assume this kind of question is ok here, even though it's…
pitosalas
  • 161
  • 1
  • 3
6
votes
2 answers

How does Arduino IDE 'Get Board Info'?

I want my C# application to automatically select the correct COM port by way of a string equality check against a 'GetInfo'-type request to the Arduino board. I know the Arduino IDE can get info from the board; Tools > GetBoardInfo But I…
n00dles
  • 163
  • 1
  • 5
6
votes
1 answer

Why do MEGA2560 digital pins go high on serial disconnect?

I'm trying to set up a system using an that delivers a specific number of digital pulses to a device using one of the digital pins. The number of pulses delivered is specified over a the Mega's USB serial connection using a Python script (or…
c-wilson
  • 163
  • 3
6
votes
1 answer

Expected unqualified ID before numeric constant

After debugging and having some conflicting declarations about analog pins, I finally thought it was done, after compiling I got this error: 32:0, 1: 31:12: error: expected unqualified-id before numeric constant 2:5: note: in expansion of macro…
Dudamesh 192
  • 99
  • 1
  • 1
  • 8
6
votes
1 answer

How do I specify a working directory when saving to SD card?

I'm trying to datalog to a EyeFi SD card by writing to a file with a jpg extension. Here's that portion of my code so far: // see if the directory exists, create it if not. if( !SD.exists("/DCIM/100NIKON") ) { if( SD.mkdir("/DCIM/100NIKON") ) …
user2218339
  • 219
  • 3
  • 12
6
votes
5 answers

Arduino-based mains frequency monitor

I'm looking to put together a simple mains frequency monitor based on the Arduino platform. The mains here are 250 V @ 50 Hz, but obviously these fluctuate slightly, which is the whole point of the exercise. (I am not interested in capturing voltage…
Ozzah
  • 193
  • 4
6
votes
1 answer

Why can't I define the constant A0 (some pin) to something?

What I'm doing wrong or why is it not working: #define Uin A0; void setup() { } void loop() { analogRead(Uin); } Results in a Error (expected ')' before ; token. I thought #define just exists as a place holder.
TimK
  • 163
  • 4
6
votes
2 answers

Why bootloader sizes differs from 0.5 to 8 kilo bytes for different boards?

According to official web info bootloader sizes are 0.5, 2 and 8 kilo bytes for UNO, Pro mini and ATMega2560. I believe all three boot loaders do similar job of receiving serial link data and write to Flash memory. UNO and Pro mini use same/similar…
EEd
  • 904
  • 1
  • 13
  • 21