Questions tagged [input]

122 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…
5
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??
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 =…
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
  • 4
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
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
  • 14
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
  • 1
  • 11
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.…
3
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
  • 175
  • 1
  • 1
  • 9
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
  • 6
2
votes
2 answers

Looking for a very simple board

I’ve worked with esp8266/esp32 boards in the past and they were great. But now I have a very simple project where both of these are way too powerful. I want to read one analog input over USB per COM. That’s it. No wifi, no Bluetooth, no 32 bit or…
boop
  • 129
  • 2
2
votes
2 answers

How do I fix my code so that it reads text from the serial monitor?

I have created a code that should print out "Enter true to deactivate alarm" in the serial monitor, then store the user's answer and print "alarm off" if they enter true and "alarm on" otherwise. However, it is returning "alarm on" every time, even…
Jillian
  • 21
  • 1
2
votes
1 answer

Arduino changing output based on wire voltage

I’m new to arduino and I want to build myself smart switch that can be turned of both manualy and via wifi, is there any way to change position of relay based on if another wire is live or not? Im from europe so we have 230V outlets. Thanks for the…
krystof18
  • 315
  • 4
  • 10
1
2 3
8 9