Questions tagged [input]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1
votes
2answers
104 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=...
2
votes
1answer
2k views

Creating Sine wave with DAC and feeding it back

I want to produce Digital Sine wave send it to DAC0 and then receive it back as input on A0 and plot the graph. I am using Arduino Due. I wrote the following code: #define maxSamplesNum 120 #define ...
2
votes
2answers
99 views

Plotting data from Arduino and using the serial monitor in parallel

I'm very new to the Arduino world so bare with me. I would like to plot live data that I receive from my arduino. I use the Serial Monitor to read user input, show text, etc. The only way I found to ...
2
votes
2answers
518 views

Unable to use analog pins as digital inputs

I want to use the analog pin A7 as a digital input pin. As stated in the Arduino docs the analog pins can be configured in the same way like any other digital pin. However, when trying to configure an ...
2
votes
1answer
2k 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> #...
3
votes
3answers
791 views

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-...
0
votes
1answer
55 views

Drum game controller - Problem with Piezo inputs [closed]

I currently try to build some Drums for the game Clone Hero. The problem that I have is that I can't use both of my Piezo inputs that I have hooked up at the same time. I have a Arduino Pro Micro and ...
1
vote
2answers
116 views

how to config the Arduino ADC'S input on A0 instead of use default?

I am try to build this AC-DC meter, the code original used default A3 as input, how can change the input on A0? the link: https://simple-circuit.com/arduino-autoranging-ac-dc-voltmeter-with-trms/ ...
1
vote
0answers
54 views

Serial communication problems

When I run this script serial communication just stops after a random period of time. There is no error it just stops outputting data and does not respond to inputs in IDE. Does anyone know a fix for ...
1
vote
0answers
112 views

Writing multiple inputs to serial port using a while loop

I am trying to get the serial monitor to prompt me to input two settings - the PWM level and the Resonance level. I am being prompted to input the PWM level, but before I can input the Resonance level ...
2
votes
1answer
81 views

Analog input voltage rises when motor is working

I'm making automatic water plant system. I'm using: Arduino Uno 3.3-6V water pump -https://www.amazon.com/Vipe-Micro-Submersible-Motor-Water/dp/B01N0X3CW4 Capacitive soil moisture sensor - https://www....
0
votes
1answer
64 views

What is happening when digitalWrite(pinname, LOW) is invoked after pinMode(pinname, INPUT_PULLUP)?

I read the Arduino official docs on digitalWrite and am confused about what is happening from an electrical perspective when digitalWrite is invoked on INPUT_PULLUP pins. Say my code says this: ...
4
votes
4answers
2k views

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 ...
2
votes
1answer
52 views

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 ...
2
votes
2answers
334 views

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 ...
1
vote
1answer
38 views

Unable to make a really basic sketch work

I've been learning how to encapsulate my code within functions, and one of the examples I worked on is a simple INPUT_PULLUP button. When I upload the sketch from the arduino website everything works, ...
1
vote
3answers
58 views

Memory for inputs?

When a button is pressed, the Arduino might be busy with something (like drawing the screen). When the Arduino has finally time to check the button input, the uses might have release it already. Is ...
1
vote
1answer
82 views

Arduino analog input to iphone notification

I need some help :) Is it even doable? Is there anyone who wants to help me program it? My wish: I want to receive a iphone notification when 1 arduino analog input drop from 5 to 0 volt. Then (...
1
vote
2answers
57 views

arduino mega buzzer output

I have project by Arduino mega which have 22 inputs and 22 outputs and buzzer reset and output reset pushbuttons , it have two status if the input is high(not continuous ) the output will on and the ...
-1
votes
1answer
43 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 ...
0
votes
2answers
71 views

Turn on relay for amount of time by continuous input

I have a project having two input status first the input is not continuous the output buzzer relay will be on for 10 seconds and then turned off or it can be off directly by push button the second ...
1
vote
0answers
33 views

Changing the servo motor operating direction using arduino

I want to turn the servo motor 90 degrees with the first double high inputs, then I want to turn the motor 180 degrees with double high inputs, but the motor turns 180 degrees with one high input. ...
1
vote
2answers
207 views

Measure the time between 2 inputs

I am making a small project, and for that, I need to measure the time between 2 inputs. basically, a program to measure the time elapsed from when digital pin 2 is high to when it again becomes high.
2
votes
2answers
60 views

Rasberry Pi Controlling Arduino - Reads "Ghost" Input - Doesn't Complete Logic Loop

I am using an Arduino Atmega2560 clone, I have used it many times before with satisfactory results - although I haven't used it with my Rpi before. My Raspberry Pi is model 4 (B I think?). #define ...
0
votes
1answer
87 views

Attiny85 Clone Cannot set P1 to input [closed]

Everything i read about the chinese Digispark attiny85 clones says you can use p0-5 as digitlal I\O (p5 as after fuse reset) Simple test code for a button will not let me use P1 as an input tied to a ...
1
vote
1answer
51 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, ...
2
votes
1answer
33 views

Input state is stuck HIGH when function called using input also uses same input to call another function

I'm writing a choose-your-own-adventure style project for a class project. My Arduino Uno is set up with a 16-digit LCD display and two pushbuttons with pulldown resistors. I'm wanting each function ...
0
votes
1answer
34 views

Streaming integer data from Arduino to Java, integer greater than 0xFF

I need to send how many milliseconds elapsed since the beginning of the time the arduino runs to java using Serial.write(). However, the largest integer that I can throw in there is 255, naturally ...
-1
votes
2answers
45 views

Certain componenet does not seen to respond when given voltage

I am using a part off an electronics set I got a long time ago. It is off a electronic set called snap circuits rover deluxe Its a disc launcher and I have wired it to how it seems to want to be ...
5
votes
2answers
494 views

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 ...
5
votes
2answers
103 views

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??
0
votes
2answers
231 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
4answers
1k 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 ...
-1
votes
1answer
30 views

Longruner Nano ATMega 328P input stays HIGH for 1s longer than the reality

I have a Longruner Nano ATMega 328P (copy of arduino nano, main difference being the USB connector, CH340 instead of the usual FT232, from what I could find using google searches). I wrote a super ...
2
votes
3answers
4k views

Industrializing Arduino - 24V io? (Electronics)

I would like to make an arduino board that is capable of handling 24V i/o. Powering the Arduino would be done through either a linear or switching regulator of some sort. Low amperages, so efficiency ...
2
votes
1answer
334 views

PWM Every Other Pin Doesn't Read

Scenario I've plugged 6 pins from my RC receiver into my Arduino in order to read the incoming values. Problem I'm using Digital PWM~ pins 2-6. Oddly the Arduino only reads odd channels: 1480, 0, 1175,...
1
vote
2answers
3k views

Arduino nano getting powered through analog input?

I noticed something today. I am powering the Arduino Nano from a battery and a 5v step up converter. That works just fine and I'm getting a stable 5v output. I have a second cable coming out from the ...
0
votes
1answer
171 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 ...
1
vote
2answers
28 views

Generate 5VDC signal when external sensor input changes from high to low

I am new to arduino. I have a project in which I need an arduino to generate a +5VDC signal in response to a change of status, (high/5VDC To low/ground) from an external source. The external ...
1
vote
1answer
309 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
1answer
140 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, ...
1
vote
1answer
31 views

What is the name of a peripheral which reads servo output data physically?

I know the title is phrased terribly, but I'm not sure how to phrase it since I'm not sure of the name. I have a servo, that I cannot connect to, except for the output spine/shaft (physically). I ...
0
votes
2answers
2k 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 ...
-3
votes
4answers
159 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 ...
0
votes
2answers
523 views

How to read input pin on MCP23017?

I'm working to develop a simple code for MCP23017 that I want to use to run LCD128x64. I was succeeded to set IODIRB as output and blink LED as a test. Now I want to read the pin state, but I couldn'...
1
vote
0answers
313 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
1answer
47 views

Arduino Due Digital Inputs without Response

On two of my Arduino Due, when connecting the pin 3.3V to any digital inputs (37,36,35,34), no serial message nor LED_BUILTIN is thrown as output, only the Test message. Digital Pins are set as ...
0
votes
1answer
63 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 ...
1
vote
1answer
706 views

How do I choose proper diodes for a 74HC595 shift register with a wired OR connection?

I want to use a wired OR connection to connect some pins of the 74HC595 shift register to an Arduino Digital Input Pin. How do I choose proper diodes for this situation? Maximum rated forward current ...
0
votes
2answers
84 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 ...