Most Popular

1500 questions
55
votes
12 answers

How do I print multiple variables in a string?

Say I have some variables that I want to print out to the terminal, what's the easiest way to print them in a string? Currently I do something like this: Serial.print("Var 1:");Serial.println(var1); Serial.print(" Var…
sachleen
  • 7,565
  • 5
  • 40
  • 57
54
votes
2 answers

What happens if I power the Arduino with both the USB and external power voltage simultaneously?

I am a new Arduino user. I am not sure whether I can connect both USB and external supply through power adaptor to Arduino simultaneously. Would this burn the controller? Basically, I want to automatically shut down the computer after saving all…
Jagat
  • 563
  • 1
  • 5
  • 5
50
votes
5 answers

What is the difference between Serial.write and Serial.print? And when are they used?

What is the difference between Serial.write and Serial.print? And when are they used? Both have been used to print on serial monitor, what are their actual differences?
shadab
  • 619
  • 1
  • 6
  • 7
49
votes
21 answers

Serial data plotting programs

I need to plot serial data from Arduino. I require support for: Various data formats (e.g. signed, unsigned, 8 bits, 16 bits); Plots several data on the same axes; Exports / Imports file data. As plotting serial data from Arduino is a common need,…
akellyirl
  • 2,156
  • 1
  • 15
  • 19
49
votes
11 answers

Is an Arduino capable of running 24/7?

I'm making a simple Arduino web server and I want to keep it turned on all the time. So it must endure to stay working continuously. I'm using an Arduino Uno with a Ethernet Shield. It's powered with a simple outlet power supply 5V @ 1A. My…
Butzke
  • 802
  • 1
  • 7
  • 21
48
votes
17 answers

How to trigger an alarm when toilet paper is low?

Anyone with kids knows they never help with the toilet paper. Anyone know how to track when it's low or out and sound an audible alarm? I just don't know what sensor to use that may help. Some that came to mind are: by weight, by reflection (the…
Jose Leon
  • 735
  • 1
  • 6
  • 11
47
votes
11 answers

Mac OSX Yosemite no serial ports showing for Uno R3

I have a MacBook Pro running OS X Yosemite (10.10.3). I connected my Arduino UNO R3 to my computer for the first time after the Yosemite upgrade - it worked fine before this! When I opened the Arduino IDE I selected Tools > Board > "Arduino UNO",…
revive
  • 571
  • 1
  • 4
  • 3
45
votes
2 answers

Warning when verifying sketch with VS code

I use Visual Studio Code to develop for arduino which uses Arduino Studio installed files and needs the installation to work. This works very well. Annoying is that when verifying a sketch it takes longer than in the Arduino IDE. I suspect the…
Uwe Hafner
  • 1,031
  • 1
  • 9
  • 12
44
votes
4 answers

What are (or how do I use) the power saving options of the Arduino to extend battery life?

For solar & battery powered projects, decreasing power consumption is a necessity. I know a little bit about using a timer and interrupt to put the microcontroller into sleep when it isn't doing anything. I have also read that you can disable some…
sachleen
  • 7,565
  • 5
  • 40
  • 57
44
votes
4 answers

Why does starting the serial monitor restart the sketch?

If I upload any sketch that sends serial data, I immediately see the TX/RX LEDs flash once the sketch is uploaded. If I then start the serial monitor, the sketch appears to restart. A bare minimum sketch that shows this behaviour: void setup() …
Cybergibbons
  • 5,420
  • 7
  • 34
  • 51
43
votes
5 answers

Serial.begin(): Why not always use 28800?

In a lot of the sample code online people add the line Serial.begin(9600) in the setup block. When I look up what Serial.begin() is on the official documentation, it says that it controls the bit per second data transfer. So the obvious question is,…
Fraïssé
  • 905
  • 5
  • 13
  • 16
43
votes
5 answers

Difference between Arduino.cc and Arduino.org

Recently I have noticed that there are two arduino sites, arduino.cc and arduino.org. They both have the Arduino logo and both sell what seems to be official Arduino boards. Also, arduino.org came out with the Arduino Zero board first. What is the…
NULL
  • 820
  • 1
  • 9
  • 21
41
votes
10 answers

Arduino Nano uploading gives error: avrdude: stk500_recv(): programmer is not responding

I have a Arduino Nano (Sainsmart) that I'm trying to upload a sketch to. Under the Arduino IDE, the device selected was Arduino Nano w/ ATmega328. However uploading the sketch gives me the error avrdude: stk500_recv(): programmer is not…
Nyxynyx
  • 1,419
  • 4
  • 23
  • 25
41
votes
10 answers

Programming an Arduino using Python, rather than C/C++

I am not very skilled with the C Language and I was wondering if there is a way in which python could be used to program an Arduino. This would most likely require a different IDE in order to be able to debug the scripts them self.
JVarhol
  • 1,903
  • 2
  • 17
  • 22
36
votes
6 answers

How to get HTTPS on Arduino?

Put plainly: is there a way to get an HTTPS connection on the Arduino? I have been looking in to it, and I have found it is impossible with the standard library and the Ethernet shield, but is there a custom library that can do it? What about a…
TheDoctor
  • 3,509
  • 1
  • 22
  • 39