Questions tagged [input]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
4answers
307 views

Why can I measure two pins simultaneously?

I would like to do an action if both buttons on my arduino pro micro are depressed simultaneously. I'm getting some strange results: // Buttons Bounce button0 = Bounce(); Bounce button1 = Bounce(); ...
0
votes
2answers
8k 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
58 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 ...
4
votes
2answers
100 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??
2
votes
3answers
5k views

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 ...
1
vote
4answers
186 views

Automotive Lighting Control Module

I am looking for an Arduino-based solution for an automotive lighting application. System Requirements: Able to Operate in Automotive (Interior) Environment (12 +/- 2V DC Voltage) Minimum 3 12 V ...
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 ...
1
vote
1answer
627 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 ...
2
votes
1answer
1k 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 ...
1
vote
1answer
471 views

Compilation issues on Arduino Due

I wrote an code on Arduino and I getting compilation errors. I am using Arduino Due . I wrote the following code : void setup() { Serial.begin(9600); analogWriteResolution(12); // set the analog ...
-1
votes
1answer
331 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 ...
0
votes
1answer
529 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
1answer
62 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
269 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,...
1
vote
1answer
55 views

Input-Output Circuit Issue

I have design a circuit with 2 led (red and UV) and 2 button.So, the circuit supposed to work like this: If i press the button for red led, the red led lights up and the uv led turn off, and if i ...
-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. ...
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 ...
1
vote
2answers
2k views

SIM808 module restarting repeatedly

I have bought SIM808 module, everything working fine. All AT commands are giving expected response, i'm accessing it through hyperterminal. My problem is that whenever i make or receive a call or SMS ,...
1
vote
2answers
401 views

Input Capture Pin Atmel ATmega328P

I have some code that relies on the input capture timer value. I assume the timer value (as defined by the pre-scaler etc) is not affected by other code running i.e. it is updated every nth clock ...
1
vote
2answers
57 views

Make something happen on a continous input just once and for a specific amount of time

My project is very complicated, but here is a visual synthesis The input actually comes from a kinect, that detects a person position through Processing, which I connected via Serial to Arduino. ...
0
votes
1answer
8k 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
1answer
374 views

Intermittent LOW reading from input pin set to INPUT_PULLUP

i have an output pin connected to a magnetic reed switch. The pin mode is INPUT_PULLUP. When the switch is closed, it connects the pin to GND and drags the pin to a LOW reading. I check the state of ...
0
votes
2answers
92 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 ...
1
vote
1answer
771 views

Get an additional analog pin?

I have the following board: As far as I can tell, there's only a single analog pin (A0). But I need at least 2 additional (for 3 total). Is there some way to fake analog input on GPIO pins?
0
votes
2answers
231 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 ...
1
vote
1answer
711 views

Prevent 5V output on Arduino Nano 5V pin

I just made an addressable RGB LED strip controller but im concerned about if I'm going to break the thing. I know it sounds vague so let me elaborate: there is an external power supply connected to ...
0
votes
1answer
50 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 ...
1
vote
4answers
4k views

Why isn't this pushbutton program working?

Here is my circuit: and here is my code: int LED = 13; int BTN = 7; void setup() { pinMode(LED,OUTPUT); pinMode(BTN,INPUT); } void loop() { if(digitalRead(BTN) == HIGH) { digitalWrite(LED,LOW); } ...
0
votes
0answers
46 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
vote
2answers
887 views

Reading Multiple switch inputs

I am trying to setup 20 input switches that can be pressed with hand. I am trying to get the output based on the pattern in which the input switches are pressed with the hand. Based on the pressure ...
2
votes
1answer
319 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,...
0
votes
1answer
250 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
1answer
81 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....
3
votes
1answer
6k views

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

Can an arduino tell between being powered by USB or by the jack?

I have an arduino mega that will be communicating through serial to a pc. One of the things I want it to tell the pc is whether or not it is connected to a wall power to 12V converter (where there is ...
1
vote
1answer
2k views

Digital input pin voltage treshold (voltage to register 1 or 0)

I was thinking of using multiple analog light sensors (variable resistance by light), but basically I only need to know if there is "a lot of light" or "not a lot of light". And would like to use ...
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 ...
1
vote
1answer
83 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 ...
2
votes
2answers
164 views

Port Manipulation - fastest implementation

I'm working on an Arduino program but am getting bogged down on what is the 'correct' implementation. I understand that multiple versions may work, so for my needs the 'correct' version will be the ...
0
votes
1answer
36 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 ...
1
vote
1answer
1k views

Measuring LPO (Low-Pulse Occupancy)

I'm using an Arduino clone (Seeeduino Lotus) together with a Shinyei PPD42NS sensor to measure air quality. The sensor reports its measurement as Low-Pulse occupancy. What would be the best way how to ...
2
votes
1answer
9k views

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

Digital Input with long cable - flickering values

I have an Arduino Nano with two attached Motion sensors "PIXNOR HC-SR501". This sensor puts 5V on its middle Pin, when it detects motion. I have connected this Pin to my Arduino and read the value ...
2
votes
2answers
21k views

Arduino: Read frequency of input from audio jack

I want to trigger an arduino from a sound from an audio jack from a mobile phone. The audio is a 1 Khz sound that the mobile will play. I want to avoid accidental triggering of the audio by testing ...
1
vote
2answers
881 views

do digital input pins act as a positive or negative

I've gotten contradicting information on the subject. Some say that digital input pins send out positive voltage, and if it goes to ground (for example) it reads LOW but if the pin is connected to ...
0
votes
1answer
37 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, ...
3
votes
1answer
457 views

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.
2
votes
3answers
3k 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
47 views

Input clock limit

If you use an external oscillator, and divide-by-8 internally, can you apply up to 160MHz on PB6? For example, can I use my 50MHz oscillator to clock my 328p @ 6250KHz? Note: when I say oscillator I ...
0
votes
3answers
858 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 ...