Questions tagged [input]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
3answers
183 views

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 = ...
5
votes
1answer
2k views

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- ...
3
votes
2answers
86 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
2answers
18k 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 ...
2
votes
1answer
376 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
2answers
141 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 ...
2
votes
1answer
6k 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,...
2
votes
3answers
3k 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 ...
2
votes
1answer
254 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, ...
2
votes
2answers
2k views

How can I tell the resistance of an internal pull-up resistor?

I have a SparkFun ESP8266 Thing Dev board, to which I want to perform a digitalRead() on one of the GPIO ports. I'm using D15, and I'm configuring it for input like this pinMode(15, INPUT_PULLUP); ...
2
votes
1answer
155 views

Reading Ground/Open signal wire combonations to power specific LED's - Can it be done?

This might be a super easy question to answer. I ordered an Arduino Uno anyways for the sole purpose to understand this. Would not mind getting a jump on things before it's here. I would like to ...
2
votes
1answer
46 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 ...
2
votes
1answer
901 views

Uno as a composite USB HID keyboard

I'm looking to create a USB device that would be basically a HID keyboard. I am able to do that with Uno. I flash new firmware with a HID keyboard descriptor and on the arduino side I loop and check ...
1
vote
3answers
638 views

digitalRead keeps giving 1

I am new to arduino programming and I have bought arduino UNO a few days ago. I am trying to read the value of pin 4 using digitalRead with pinMode INPUT_PULLUP but it keeps giving me 1 even when the ...
1
vote
4answers
292 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(); ...
1
vote
1answer
689 views

Can I use the PWM pins as regular digital input/output pins?

In regards to the arduino which has pwm pins, can I use these pins as normal input/output digital pins or not? Thanks in advance.
1
vote
3answers
1k views

does INPUT_PULLUP uses power?

When using a digital pin as input, one has the option of using the internal arduino resistor, which is connected to VCC; that is setting the digital pin as INPUT_PULLUP, and then the pin reads HIGH. ...
1
vote
1answer
301 views

Can Arduino accept HDMI input video stream, and output it without any modification to the video?

I'd like to know please whether an Arduino can accept an HDMI signal from a satellite receiver, let it flow without any modification to the stream, and output it to TV?
1
vote
1answer
2k 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
2answers
656 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 ...
1
vote
2answers
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 ...
1
vote
1answer
472 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 ...
1
vote
1answer
332 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
vote
2answers
53 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. ...
1
vote
1answer
523 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?
1
vote
1answer
586 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 ...
1
vote
4answers
3k 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); } ...
1
vote
1answer
86 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
2answers
2k 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 ...
1
vote
1answer
110 views

How do I connect my Luxorparts keypad to my Arduino?

I just bought a 12 digit keypad from Luxorparts and it doesn't come with any schematics showing how it's wired at all. How do I figure out how to connect it to my Arduino?
1
vote
1answer
51 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
vote
2answers
242 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
693 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 ...
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 ...
1
vote
1answer
840 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 ...
1
vote
2answers
47 views

User interface solutions [closed]

Are there "user intefrace" solutions for Arduino based gadgets? Solutions, that is, accepted as something more or less standard by the community. I am unaware of the relevant keywords, if there are ...
1
vote
0answers
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
2answers
1k 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
4answers
126 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
41 views

Does a pin (input pin Arduino) still float when connected to GPIO on RPI?

I am currently testing my application on an Arduino, and I experience floating pin issues. My program reads the pin status of input pins, which are configured as pinMode(5, INPUT); digitalWrite(5, ...
0
votes
2answers
7k views

Digital pin input stays high after receiving a high signal

I don't know why but when a pin set to input mode receives a high signal, then a low signal, it stays high for a seemingly random amount of time. #include <LiquidCrystal.h> LiquidCrystal lcd(7, ...
0
votes
1answer
54 views

Digital Inputs have gone crazy

My digital inputs are behaving as if they were floating, even though I've properly connected them with a resistor. I've tried the pull-down configuration pictured below, as well as a internal pull-up....
0
votes
1answer
309 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
1answer
777 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 ...
0
votes
3answers
2k views

How to add more inputs on Arduino?

I'm building an instrument that has 72 buttons that can be pressed. Now I'm planning on using Arduino to send data to computer via USB cable about which buttons are pressed. So I figured I'd need 72 ...
0
votes
2answers
34 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'...
0
votes
1answer
29 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
2answers
1k views

How to input text from Serial monitor into a character array? [closed]

I'm using a Mega 2560 and Uno and want to input text to the serial monitor which can be stored in character array char in[]; I want array specifically as I'll be breaking each character to trigger ...
0
votes
1answer
229 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
1k 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 ...