Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 37622

The Arduino Uno is the most common of the Arduino boards. It is based on the ATmega328P microcontroller.

5 votes
Accepted

Why doesn't pin 3 blink? It blinks in another program

In the tone function reference you can read: Use of the tone() function will interfere with PWM output on pins 3 and 11 (on boards other than the Mega). analogWrite() is PWM
Juraj's user avatar
  • 18.2k
1 vote

clear serial buffer not working

the second parameter of findUntil(target, terminator) is of type char* not char your Serial.findUntil(answer, '\n') doesn't work and you patched it with do while. use Serial.findUntil(answer, "\n") …
Juraj's user avatar
  • 18.2k
1 vote

Concatenate integers as string

Serial.write(b) prints one byte not a string. Use print() to print strings and numbers. Serial.print(digitalRead(r1)); Serial.print(digitalRead(r2)); Serial.println(digitalRead(r3));
Juraj's user avatar
  • 18.2k
2 votes
Accepted

Minimizing Digital input code

I made the code with if else statements is there any shorter way to do that? j = 1 + (digitalRead(k1) | (digitalRead(k2) << 1) | (digitalRead(k3) << 2) | (digitalRead(k3) << 3)); or j = 1 + d …
Juraj's user avatar
  • 18.2k
0 votes
Accepted

How come my switch is triggering with out pushing the button?

I want the relay to trigger and stay open only while the button is pressed. However for some reason touching pin 2 triggers the relay and sound, even if I'm not connecting it to the ground. T …
Juraj's user avatar
  • 18.2k
3 votes
Accepted

how to read all line except the first line?

skip first line bool firstLine = true; while (myFile.available()) { int c = myFile.read(); if (firstLine) { if (c == '\n') { firstLine = false; } } else { Serial.write(c); } …
Juraj's user avatar
  • 18.2k
0 votes
Accepted

(YX5300 MP3 player) Why is this code not working?

You use pins 5 and 6 for SoftwareSerial and as INPUT for sevenAmPin and eightAmPin. SoftwareSerial can't work if you set the TX pin as INPUT. I assume you didn't wire the buttons to this pins yet.
Juraj's user avatar
  • 18.2k
2 votes

Need help on Arduino as ISP

There are more ways to flash a bootloader to new AVR chip. To which you refer? If you replace the chip on Uno to burn a bootloader to it with a programmer, then it is very unclear what you are asking, …
Juraj's user avatar
  • 18.2k
2 votes

How to use? ATmega328P Development Board for Arduino UNO R3 Bootloader Project DIY

The purpose of this board is to flash (Arduino) bootloader to Atmega 328 chips. It has not a build in programmer, only a ICSP header to connect the programmer. So wire it with a programmer and then c …
Juraj's user avatar
  • 18.2k
1 vote
Accepted

Connect two or more modules sharing the same pins?

pins 11 MOSI, 12 MISO and 13 SCK are SPI bus. You can connect more devices to the bus. A 'slave select' ('cable select') pin determines which device will communicate. In your table both devices use pi …
Juraj's user avatar
  • 18.2k
1 vote

Number of cycle depending on the number and type of statements

When the serial buffer (64 bytes) is full the print waits until bytes are send away at 9600 baud.
Juraj's user avatar
  • 18.2k
1 vote

Will a delay() function in a void SerialEvent() also stop the code that is running in the vo...

This is the main function of the Arduino core: int main(void) { init(); initVariant(); #if defined(USBCON) USBDevice.attach(); #endif setup(); for (;;) { loop(); …
Juraj's user avatar
  • 18.2k
0 votes

ADS1115, ZMPT101b and Arduino Uno listing program for AC measurement

The ZMPT101b is a transformer which converts voltage. You can read the output with analog pin. The ADS1115 is an analog to digital converter. It reads the analog voltage the same way as the analog pi …
Juraj's user avatar
  • 18.2k
1 vote

esp8266- how to use GPIO0 as an input?

Don't use the voltage divider and never set the Uno pin HIGH. Pull io 0 of esp8266 LOW with pinMode of the Uno pin. pinMode(TO_ESP_IO0, OUTPUT); // sets the pin LOW pinMode(TO_ESP_IO0, INPUT); // …
Juraj's user avatar
  • 18.2k
1 vote
Accepted

invalid conversion from 'const char*' to 'char*' [-fpermissive]

strtok modifies the char buffer entered as first parameter. It replaces the delimiters with terminating zeros. To parse a constant string with strtok, you must first copy it into a working char buffer …
Juraj's user avatar
  • 18.2k

1
2 3 4 5
12
15 30 50 per page