Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [digital-in]

The tag has no usage guidance.

0
votes
4answers
92 views

How much voltage and current can a Arduino uno digital input sink?

I am having a digital output of 24VDC and 0.5A from ABB IRC5 controller. I need to feed this digital output to the digital input of Arduino uno. How can I do that?
0
votes
3answers
49 views

How to monitor state of 50 Digital Inputs

Good day. I have a specific project need and I spent the past couple of days searching on forum, blogs, etc and I'm still not clear if that's feasible to do with Arduino or not. I need to monitor ...
1
vote
0answers
45 views

Correct wiring?

I'm doing some Home automation and am currently trying to automate my intercom system. My overall aim is to be able to detect when someone has pressed the buzzer and then to be able to open the door ...
1
vote
2answers
64 views

How to set sampling rate for digital pin input? [closed]

I have an ADC that have sampling rate up to 40 MSPS, but i use 8 MHz clock so it will be 8 MSPS. The board used is arduino nano. The problem is i have to sampling it just 2 MHz (because the capacity ...
-2
votes
1answer
59 views

USB reset fails on arduino due because of 5v on digital pins

I have the signal channels of four 5v magnetic encoders connected directly to the digital pins of the arduino due. I am aware that this is not allowed according to the specification which says that ...
0
votes
1answer
58 views

Digital Pins reads 1 when configured with internal_pullup

I work with Arduino DUE. I would like to configure few of my digital pins as INPUT pins. When the µc sets these particular 4 pins , the DUE must be activated. Something like a DATAREADY pin in the SPI,...
1
vote
2answers
567 views

Reading input from digital pins 36, 37, 38 in Arduino Mega 2560 is giving a problem

I wrote a program to read digital input from pins 36, 37, 38 and print on LCD when they go HIGH. I've connected those pins to a switch to test. The program looks like this: #include "LiquidCrystal.h"...
1
vote
1answer
37 views

Additional Digital Input Pins

I require additional digital input pins for 5 PIR sensors. Can I use the shift register (74HC165) to read these input? And will I be able obtain real time values from all the 5 sensors?
2
votes
2answers
172 views

Mixing analog reads with raw port reads

I'm reading two digital inputs and one analog input. For [reasons] I must use A0 and A1 as digital ins, and A2 as an analog in. I'm uncertain about how the Arduino hardware deals with mixing analog ...
1
vote
2answers
277 views

Arduino digital pin reading string numbers

Using for example 433MHz RF Receiver modules, they are connected to a digital input pin with interrupt. Looking at the most basic meaning of digital readings (e.g. 1/0, on/off, HIGH/LOW), how does the ...
0
votes
1answer
259 views

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

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
votes
1answer
51 views

RasPi GPIO into Arduino Digital Inputs

So I'm making a Robot for my AP Comp Sci Class, and I'm borrowing an Arduino, as well as a Pi from the school. What I plan to do is have my Pi output from the normal GPIO pins and into the Arduino's ...
2
votes
3answers
2k views

At what frequency/rate does the digitalRead function read an input?

Consider the following code: void loop() { // read the state of the pushbutton value: buttonState = digitalRead(buttonPin); // check if the pushbutton is pressed. // if it is, the ...
1
vote
2answers
1k views

Arduino read PWM duty cycle value with input (analog / digital)

I am working on comparing autopilots like Ardupilot, CC3D, KK2.1.5. The comparision is about system reactions/behaviors that it gives during flight. For this purpose, I need to read the PWM duty cycle ...
1
vote
2answers
2k views

Reading multiple DI pins in parallel as one byte/word

I need to capture a single parallel 'snapshot' from a 10-bit shaft encoder. I understand that I can read individual bits and shift them into position, but any given input pin might change while ...
0
votes
3answers
269 views

Digital read on voltages between 1 and 31 volts?

Hello Arduino comunity! I am working on a circuit that uses an Arduino Mini to read values from certain points of a boost/buck converter circuit to determine things like input state, output state, ...
1
vote
2answers
147 views

Arduino - Turn on LED when Potentionmeter is used

I'm very new to the Arduino/Microcontroller-world, so please be patient :) I have 4 potentiometers and I want my LED to blink up, when one of these is beeing used. So far., so good.. the ...
0
votes
1answer
30 views

Can I close an input?

I wan't to build a diversity controller similar to this one. A diversity controller is basically a circuit which detects the strongest RSSI Signal of multiple receivers and provides the data signal ...
1
vote
1answer
1k 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
1answer
49 views

Having 3 buttons with only 2 input pins

for the purpose of learning, I'm trying to have a kind of digital/binary input where I'm using 3 buttons but only 2 input pins. I thought of 01 = Button 1 10 = Button 2 11 = Button 3 My first ...
5
votes
1answer
3k views

ArduinoMEGA: 64 digital inputs cause random digitalRead values

I have 64 hall effect sensors (magnetic field sensors) (DRV5023AJQLPG) connected to an Arduino MEGA 2560. For that, I use 48 digital pins and 16 analog pins as digital input pins. The program in the ...
-2
votes
4answers
1k views

Can you connect ACS712 sensor to digital input of Arduino? [closed]

I have a home automation project and am looking to use multiple current sensors (ACS712) for multiple appliances. I just need to know whether current is present or not instead of the current value. Is ...
4
votes
2answers
259 views

How to confirm a pin is fried

How do you confirm a pin has been damaged and is unable to work as a digital input? I tried detecting a pushbutton (connecting ground to pin 11 with a pullup resistor enabled) on a fresh Arduino Uno ...
0
votes
2answers
970 views

Comparators for digital input mode

I've asked another question in electronics about what to use to compare 2 input voltages, the answer was to use comparators. Digging around a bit, turns out most of the comparators outputs are pull-...
2
votes
2answers
91 views

Are there any Analog pins on the mega that can not be used as Digital?

I am using both Arduino nano and Arduino mega boards in my projects. I got a nasty surprise the other day when I learned that, on the nano, Analog pins 6 and 7 can not be used as digital pins. Are ...
0
votes
2answers
1k views

Reading a photoresistor

I have a wire with a 0-5v current. I want to detect if the current is there or not (HIGH/LOW.) I'm using an optocoupler to avoid putting too much current into my micro, as it is only a 3.3V micro. I'...
2
votes
4answers
2k views

Best way to protect a digital output?

I am looking for a way to protect my Arduino's digital outputs from unwanted, outside voltages. My project uses about 20 different outputs, each connected to a wire (run) that can range from 20 to 100 ...