Questions tagged [input]
127 questions
5
votes
2 answers
Multiple Push buttons to one input
So I am trying to use one input to control an LCD display. The goal being that once one of the buttons is pressed it delivers a message. I have watched quite a few tutorials and can get the program to work sometimes. Yet, it is still pretty buggy…
David Wisniewski
- 183
- 10
5
votes
3 answers
How do I create a 9 bit number based on values from 9 digital inputs?
I have 9 pins that are inputs from 9 IR LEDs. I want to combine all their results into one 9 bit number.
example:
pin1 = high,
pin2 = high,
pin3 = high,
pin4 = low,
pin5 = high,
pin6 = low,
pin7 = low,
pin8 = high,
pin9 = low
9 bit number =…
user3216081
- 51
- 1
5
votes
1 answer
Arduino Analog Input Oscillating
I'm making a simple Infrared detector using a thermopile. I have a few extra capacitors than what that schematic says. I'm currently following another, but this is the gist.
Schematic and Breadboard-
I can add breadboard picture if needed. I don't…
Luke
- 153
- 1
- 6
4
votes
4 answers
Why am I receiving random input values in my Arduino?
I want to use a switch for my Arduino using digitalRead(), but I keep receiving random inputs. Whenever I connect energy to that pin, it always returns HIGH, but otherwise it goes completely random.
I have tried using a resistor for the input pin,…
john papp
- 57
- 1
- 4
4
votes
2 answers
just a silly doubt about glowing an LED
what will happen if i insert the anode of a LED to pin 12 and cathode of the LED to pin 11 and set pin 12 to high and pin 11 to low,will the led glow??
4
votes
3 answers
How to detect if LED is switched on in external circuit using Arduino NANO?
I want to detect when an LED is powered on using an Arduino NANO. The LED is part of an external circuit. The LED uses about 1.8V. Would the circuit below allow me to detect when the LED is switched on? Is this the correct method of doing it? (The…
user37547
4
votes
2 answers
Read int from Serial
with the following sketch I should be able to read and store what is entered in the Serial monitor
void setup() {
Serial.begin(115200);
while(!Serial);
}
void loop() {
Serial.println("Enter Zone Number: ");
while(!Serial.available()){
}
…
rebrid
- 185
- 1
- 1
- 9
4
votes
1 answer
ATtiny85 and INPUT_PULLUP
I have read some conflicting sources about what pins have internal pullup resistors available for the Attiny85 microcontroller. Can all I/O pins work with INPUT_PULLUP, or just some of them? And if so, which ones?
Thanks!
Alex Wulff
- 309
- 1
- 2
- 16
3
votes
1 answer
Input Oscillating Wildly
I'm trying to read an input from a switch but instead of getting 0 and 1 for closed/open, I'm getting 0 and a rapid series of 1s and 0s. Originally I tried (and failed) to simply read a rotary encoder but when I swap it for a standard rocker switch…
WillM
- 39
- 1
3
votes
2 answers
Is it bad practice to multitask without timing constraints
Going through resources such as several things at the same time and with some greatly appreciated assistance on here I'm finally getting a grasp on how to multitask a microcontroller.
Most examples use the millis() approach to nonblocking…
Zhelyazko Grudov
- 367
- 2
- 15
3
votes
3 answers
How to wire a three-pin on-off-on switch for reading input?
I would like to read the output of an on-off-on switch with my Leonardo board, but I have very little knowledge of electronics and don't know how to wire it up.
This is the switch in question: E-Switch 200MSP4T1B1M1QE
The switch has three pins.…
Boonswaddle
- 33
- 1
- 3
3
votes
1 answer
How to avoid electromagnetic interference on ESP32 input
I've realized a simple circuit like the following, in order to implement a rain gauge that I can access via HTTP:
With the following sketch:
#include
#include
#include
/**
* This constant is calculated with…
Alessandro Dionisi
- 141
- 1
- 3
3
votes
1 answer
Creating a sine wave with a DAC and feeding it back
I want to produce a digital sine wave, send it to DAC0, and then receive it back as input on A0 and plot the graph. I am using an Arduino Due. I wrote the following code:
#define maxSamplesNum 120
#define Sample 50000000/maxSamplesNum // sample for…
Sam Thornton
- 45
- 5
3
votes
1 answer
What is the Maximum Current an Arduino can Supply?
I was wondering how much my Arduino I/O pin can output when it is set at Output and is at High.
I am using an Arduino Uno R3.
Thanks in Advanced.
Bryan
- 67
- 7
2
votes
0 answers
How to show repeated result on LCD while button is pressing
my results are here.
0 press--"a"
1st press--"b"
2nd press--"c"
3rd press-- still showing "c"
When button pressed 3rd time, It must be repeated to show "a" again. How can I repeat above 3 results to LCD?
#include
#include…
hfsrg
- 39
- 2