Questions tagged [input]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
258 views

Arduino Yun Analog Read Problem

I am having some major issues with my Arduino Yun. When attempting to read a value from the analog pins, the Yun is giving me incorrect constant values. I have attached everything to a common ground,...
0
votes
4answers
2k views

How do I check if a password is right? (keypad input)

Im having a problem with my arduino code.Im trying to make an alarm system with a pir sensor.So when the pir activates and the buzzer starts buzzing i want to be able to type a set password in the ...
0
votes
2answers
210 views

Can I use the same Data Registry for both input and output pins?

This is for a class in which we are not allowed to use the Arduino Library (Not my choice or preference). I know to use DDRB for the B pins. This is the code that I have so far: //Global pointers ...
0
votes
1answer
78 views

Computer to Arduino to hardware, controlling on / off state of hardware via user input on computer

First time coding for Arduino. I'm working on code to operate an electronic valve switch. We have a laptop connected to an Arduino Mega, and that Arduino is hooked up to the valve (hardware) on Pin 53....
0
votes
1answer
80 views

Arduino digital I/O pins

I heard that using digital io pins in INPUT_PULLUP mode is much reliable and stable than in the case of using them in INPUT MODE.Then why is INPUT MODE still used...I mean Why isn't INPUT_PULLUP mode ...
0
votes
1answer
35 views

User input for utility program

I am writing a utility program to test relay boards. I'd like to be able to accept a user input of the number of relays on the board. Is this doable via the serial monitor since when I'm testing ...
0
votes
3answers
802 views

How to check if a pin is set from bank?

How would you go about checking if an input pin has been set using the entire bank? I am thinking that I need to use bit twiddling with a bit mask but I have not used this enough to figure out how to ...
0
votes
3answers
839 views

Why should a pin be set as an input if it can read input when set as output?

I recently created a circuit to read the value from two sets of buttons using only two analog pins. It involves setting one pin HIGH and reading the input on the other pin and then swapping. With both ...
0
votes
1answer
38 views

USB control panel with endless turn knobs

I understand that some arduinos are capable of presenting themselves as a USB HID device to a PC. I would like to use one to build a custom input controller that lets me read maybe 8 or so turn knobs ...
0
votes
2answers
76 views

Handling arduino output current

I need to power an actuator that requires 12 volts and consumes between 5 and 10 amperes depending on the weight it is charging. Therefore I bought a power supply of 12 volts and 10 amperes. My ...
0
votes
2answers
101 views

Stacking adc's when making an midi controller ( lots of potmeters)

I'm making a midi controller with the Arduino uno. It contains approximately 50 analog inputs with potentiometers. I have enough MCP3008 adc's here but I have no idea how I connect 2 or more adc's to ...
0
votes
1answer
651 views

Arduino YUN Rev. 2 power supply

I want to connect my YUN Rev. 2 to 7.4V. I read that the older version only provides exactly 5 V at the Vin Pin. Is the Rev. 2 similar to it? I read that the power supply should be improved, but what ...
0
votes
1answer
114 views

attachInterrupt for mega 2560 not triggering

I recently bought a mega 2560 to toy around with as a hobby. It's pretty fun so far, but I've recently gotten stuck while trying to use attachInterrupt with a button. I'm using the CHANGE mode, and ...
0
votes
1answer
594 views

Binary addressing and coding to control a 96 input mux matrix

I’m trying to wrap my head around using binary addresses in a mux. Failing miserably. For the circuit I have six 16 channel analog multiplexers CD74HC4067 as slaves to an eight channel multiplexor ...
0
votes
1answer
524 views

4x4 matrix keypad - Multiple inputs cause extra readings

I have the following matrix keypad - I am using this as a sort of controller with my Arduino (Mega2560) but I can't get real multiple inputs to work. I am able to have say two individual keys ...
0
votes
1answer
55 views

Simon Says Project - Can't go from random lights to user input

I'm new to using an Arduino and I am attempting the Simon Says game. Right now, I do not understand why my program will not go from activating the random lights to the user input. Currently it is ...
0
votes
2answers
1k views

How can the sensitivity of capacitive touch sensors be limited?

I have an Adafruit circuit playground classic, and the touch-pads are so very sensitive. From a centimeter away, they trigger. I would be happy to just have regular inputs, or to have the sensitivity ...
0
votes
1answer
61 views

Get when a button close the circuit

That seems to be a bit stupid to myself but I can't figure out to get to know when my button is pushed (closed) or released (open). You must know that this not just a simple push button. Actually it ...
0
votes
1answer
7k views

Reading serial buffer taking newline character instead of user input

I am trying to compare whether the user input matches a user ID or not. When I read the input from serial, the program is taking the last character which is newline char '\n' and moving it into the ...
0
votes
2answers
90 views

What is wrong with this processing code?

I have written a processing code to work along with my arduino code for the arduino UNO. In this I'm trying to control the colour of the processing window by the arrow keys. However, I'm doing this in ...
0
votes
1answer
48 views

How to encode resistance change (reed) for Arduino?

I have a water counter which switches reed on each 10 liters of water. I would like to count these values with Arduino. I wrote a program which counts changes from analog input and connected counter ...
0
votes
1answer
238 views

ATtiny85 (Sparfun Clone/Trinket), detect/read operation voltage

I just started with Arduino programming and currently I'm using this Sparkfun clone board: o http://nl.aliexpress.com/item/Digispark-kickstarter-Micro-development-board-ATTINY85-module-for-Arduino-...
0
votes
2answers
2k views

'Keyboard' not found when trying to use Keyboard.write from the <Keyboard> library

I am trying to get a response from the arduino when I press a key, but when I try to upload the code it says that it could not find 'Keyboard' with 'Keyboard.write'. Here is my code. Ignore the bits ...
0
votes
1answer
35 views

İs there any way different way than GND's Arduino

İ'm making a project on my arduino uno when i figured out i had no more GND left to finish the circuit. İs there any other way to optimize, use pins as input maybe. İ tried whit other websites, ...
0
votes
0answers
35 views

Why Serial.begin does not use INPUT_PULLUP on RX

Im programming esp32 using arduino framework and today i run across some noise issues on serial lines and i went to see the underlyings of the Serial.begin() method. In the execution of this function, ...
0
votes
1answer
40 views

Is it possible to exit a loop on the change of an input state?

I would like to exit a particular loop if the state of an input changes from LOW to HIGH. This is the current loop: void brakeFade() { pixels.clear(); pixels.setBrightness(255); pixels.fill(16711680, ...
0
votes
1answer
56 views

Using the LED pin for input

I have an Arduino-like device with few GPIO pins (DigiSpark clone). It is based on an 8-pin AtTiny85 IC so there are Power, Ground and six other pins, two of those six are being used for USB keyboard ...
0
votes
1answer
31 views

How to code an arduino to execute a particular code using a slide switch

I’m pretty new to arduino. I need help concerning a project I’m making. I’m using a SPDT slide switch to switch between what code(method) should be executed.i.e when I shift the switch to the left, ...
0
votes
2answers
44 views

Can't get actual output when, both input logic is high

I want When, light=0, ir=0 then output will pin 8 high & pin 12 low. light=0, ir=1 then output will pin 8 high & pin 12 high. light=1, ir=0 then output will pin 8 low & pin 12 low. light=...
0
votes
0answers
50 views

Issue with TTP223 capacitive buttons

I got some TTP223 to be able to trigger some inputs from an Arduino Nano thru a plastic cover without drilling anything (and hiding the buttons was cool so no one knows that there is functionality ...
0
votes
0answers
101 views

Not Able to get INPUT_PULLUP pinmodes to work on multiple pins

I am working with an Arduino nano, and ic2 128x32 OLED display and a 1x4 membrane keypad. Problem is that only one of the 4 pins are detecting the button press. it's not the Arduino, I already was ...
0
votes
0answers
25 views

Loop failure after unset amount of time

I am building an art piece that takes in input from three rotary encoders and two buttons. and outputs data to a large neopixel display and 2 large 4 digit seven segment displays. The displays are ...
0
votes
0answers
39 views

Input value constantly

The code is for a DC motor position control PID system. I need the angle I need to move to "setpoint" and change it throughout the process. Though it is only changing once and then nothing happens if ...
0
votes
1answer
929 views

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 <WebServer.h> #include <WiFi.h> #...
0
votes
1answer
108 views

Averaging input from multiple input over a fixed amount of time (estimated)

I am trying to average input values for a number of inputs and have it then store those averages into a string to write to a txt doc on a sd card. I am using: // read 6 sensors and append to the ...
0
votes
1answer
150 views

If I use a biasing circuit for a signal going into an analog input pin, will it affect the ADC operation?

If I have a single 100Hz AC signal biased by two 1 M-ohm resistors (as per schematic below), and then output to an Arduino UNO analog input pin, with the UNO sampling at around 1 kHz using delays, ...
0
votes
2answers
7k views

Arduino simultaneous push button for a counter

I am a newbie with arduino. I am trying to have a counter with 3 buttons. Each Button when pressed will increase the number of counts. The counter should still count if button 2 is pressed while ...
0
votes
1answer
485 views

Too low voltage on digital input on attiny45

I'm using one of my attiny's pins as digital input. I use it with a pulldown resistor. As input I use simple square wave generated by a separate waveform generator. igh state for square wave is 5V, ...
0
votes
0answers
111 views

Safe way to setup I/O to read switch AND manipulate LEDs at the same time

I would like make educational shield for playing with Arduino, where (at least couple of) pins would be connected to grounded switches (so could be configured as INPUT, or INPUT_PULLUP a digitalRead() ...
0
votes
0answers
44 views

Arduino Robot motors disabled when AnalogInput is connected

I have attached a solar panel to the Arduino Robot, connecting the - to the TK3 Input GND, and the + to the TK3 Input Analog Pin. I want to turn the robot around and "scan" the voltage. But the motors ...
-1
votes
2answers
91 views

Can I change Vcc to some other pin?

I was working on an Arduino Uno and while carrying it to my teacher the wire's pin got stuck into the Vcc of 5 V. Can I set Vcc to other inputs? If so, then how?
-1
votes
1answer
327 views

How to write arduino code which reads the value of a flex sensor?

Since this is this the first time im doing Arduino, im really confused what the code is to: write a code which reads the value(nae the value 'flexValue') of a flex sensor connected to analog input ...
-1
votes
1answer
27 views

Ultrasonic Sensor as Unlock Sensor

Is it possible to use ultrasonic sensors maybe HC SR04 type as unlock sensors? I'm figuring out if it can replace matrix keypad? For example 6 HC SR04 are used to be an input sensor waiting for a ...
-1
votes
1answer
1k views

3 buttons digital inputs [closed]

I have 3 digital button inputs, I want to do a continuous scan of 3 of them until a button is pressed and to know which button has been pressed. Please help, I'm new to programming and arduino. ...
-3
votes
4answers
126 views

How should I connect 5 buttons to arduino so that I can use the least number of inputs all the buttons are connected to ground

The problem here is that I want to connect 5 input buttons to an Arduino but I do not want to utilize 5 input pins of Arduino, is there any matrix like connection using which I can reduce the number ...

1
2