Most Popular
1500 questions
14
votes
5 answers
NodeMCU - use flash button as input in loop()
I couldn't find a proper answer on the net so I came here as a last resort.
So I want to use the FLASH button as an input in the loop() method.
Is there a way the check if it's pressed or not?
sOnt
- 145
- 1
- 1
- 8
14
votes
4 answers
Some Arduino components seem ridiculously cheap
My project is an Arduino-based device, packed into a box.
It will need to use Speed, Latitude, Longitude and Altitude data to log hills it detects on to an SD. On the press of a button, it will need to upload the hill data to the server via Wi-Fi.
I…
R Harrington
- 273
- 2
- 8
14
votes
2 answers
How do I figure out if my board is approaching end of life?
I have a uno that I have been using for 3 years now. I will be using it again in a rather critical project in which failure on the part of the board could be rather expensive and dangerous. So, I would like to be sure that the board is not…
asheeshr
- 3,847
- 3
- 26
- 61
14
votes
1 answer
Arduino Nano ATmega328P bootloader difference
There are two ATmega328P bootloaders, old and current. What is the difference between these bootloaders?
I'm aware that Nanos sold by Arduino use the new bootloaders but I haven't been able to find any release notes about the bootloader.
Claus
- 243
- 1
- 2
- 5
14
votes
10 answers
Sensor for underground water tank level
In a similar way to the question "best way to determine if a 5 gallon water jug is getting empty", I'm looking for a way to measure water in a container. This is so it can be connected to an Arduino for logging and reporting. But it's a very…
Rob Hoare
- 243
- 1
- 2
- 6
14
votes
1 answer
Why can't my IF statement see a global?
I'm rather new to Arduino programming. I have a problem compiling the following bit of code:
const int relay1 = 10; //Power Relay 1
const int relay2 = 11; //Power Relay 2
const int relay3 = 12; //Toggle Relay
const int button1 = 3;
const int…
MikeB
- 243
- 1
- 5
14
votes
2 answers
Pattern library for addressable LED strips
Is there any central place that we can get drawing pattern functions for the addressable LED strips like the once based on the WS2812B component? These are sold on the Adafruit site under the NeoPixel name. For example I know of a few pattern…
Dan McCreary
- 307
- 1
- 3
- 11
14
votes
4 answers
When using Arduino Uno as ISP does "Yikes! Invalid device signature" mean a bad connection, bad config, or bad version of avrdude?
I'm using an Arduino UNO to program a pre-compiled hex image to an ATTINY45, using the avrdude in the Arduino IDE directory, on Windows 7. The Uno has the ISP sketch loaded from the examples directory and that works- the heartbeat LED pulses…
Yary
- 361
- 1
- 2
- 7
14
votes
6 answers
Rename device name (ch340 usb to serial) Mac OS
Can't upload sketches to Arduino Nano clone with USB to serial chip ch340.
After installing drivers and plugging in, device has the name cu/tty.wch ch341 USB=>RS232 fa130 (with spaces), but Arduino can't recognize the full name (only tty.wch).
Is it…
Sonique
- 353
- 1
- 3
- 10
14
votes
4 answers
Why do sketches take up so much space and memory?
When I compile this sketch for the Yún:
int led = 7;
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH);
}
I get:
Sketch uses 5,098 bytes (17%) of program storage space.
Maximum is
28,672…
hichris123
- 337
- 1
- 3
- 19
14
votes
1 answer
What's the difference between all the Software Serial Libraries? Which one is Arduino Nano compatible?
There are so many Software Serial Libraries, what are the differences between them? And which one I can use with my Arduino Nano? For my Arduino Nano I need one Hardware Serial Port and one Software Serial port at a baud rate of 115200.
On which…
William Roy
- 515
- 4
- 10
- 22
14
votes
4 answers
Can I use notepad++ for writing sketches?
Before I install the Arduino IDE, I was just wondering whether I could just use notepad++ to write the files and move them into correct location. I assume notepad++ doesn't support Arduino code, but I suspect there will be a mod for it, even though…
user3137
14
votes
5 answers
How to retrieve the data type of a variable?
I am using Arduino and I would like to know if there is a function that returns the data type of a variable. That is, I would like to run something as like the following:
// Note: 'typeof' is a sample function that should return the data…
user502052
- 439
- 1
- 4
- 7
14
votes
3 answers
Returning an int array from a function
I have a function that needs to return 3 int values. I currently use an array declared in the global scope and I ask the function to write into them. Is there a way to make a function return an array?
Here is what I want to do:
int function()
{
int…
Dat Ha
- 2,943
- 6
- 24
- 46
14
votes
3 answers
Serial data showing up weird
I have a simple sketch that prints out "Hello World" to the serial, but I'm getting a bunch of gibberish instead.
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("Hello World");
delay(1000);
}
Why isn't it printing…
sachleen
- 7,565
- 5
- 40
- 57