Questions tagged [digital]
Digital refers to signals which are either on or off (high or low, one or zero). This contrasts with analog signals which have a range of values.
128
questions
1
vote
0
answers
44
views
Digital potentiometer DS3502 question
I am using adafruit DS3502 breakout board for arduino. When I follow procedure written in
https://learn.adafruit.com/ds3502-i2c-potentiometer/arduino
My serial display shows correct voltage values.
My ...
1
vote
1
answer
69
views
Fast digital IO
I have a device programmable via an 8 bit digital parallel bus. I would like an Arduino to translate from a parallel 4 bit output of an existing device to 8 bit by intentionally reducing the ...
0
votes
2
answers
4k
views
Sending a digital signal from one Arduino to another to trigger an event
I am wanting to send a digital signal from one Arduino to another. The goal is for one Arduino send a HIGH signal to a pin on the receiving Arduino. While the pin is HIGH, do function
I initially ...
-1
votes
1
answer
199
views
How can I read this digital pin for Nano by using AVR's Atmel Studo?
How can I read digital pin 6 in AVR?
I set the pin as input as follows:
DDRD = B0100000; //this will set pin 6 as input
But how can I now digital read this pin?:
Another way of putting it: how can ...
1
vote
2
answers
64
views
How to increase pinout switching?
Consider this code:
void loop() {
digitalWrite(pinTest, HIGH);
digitalWrite(pinTest, LOW);
}
On an Arduino Mega 2560, running 16MHz (=0.06us), I would expect the width of the pulse to be ...
0
votes
2
answers
180
views
Is my Arduino skipping a statement?
So, I made this code (I'm rather new to this). The only thing that the Arduino should do, is when I press the button on pin 2, turn on the LED on pin 4 and emulate CTRL + R on the keyboard for the ...
0
votes
1
answer
85
views
Rotary encoder weird values
I am trying to understand this rotary encoder I have, but it makes no sense to me.
I am using this rotary encoder:
https://www.amazon.com/gp/product/B07DM2YMT4/
CYT1100 aka CY110 aka EC11
I am using ...
-3
votes
1
answer
341
views
If Arduino digital pins can be used as power supply pins then why do we need VCC pins? [closed]
If Arduino digital pins can be used as power supply pins then why do we need VCC pins?
VCC pins work the same as digital outputs , don't they? So why do we still need VCC pins to
power components
1
vote
3
answers
3k
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 ...
0
votes
3
answers
69
views
Cannot read LED state
I am running into a problem on a very basic functionality.
I want to read the state of an LED.
I have confirmed that under the specified circumstances, the LED receives 1.9V.
I try to read its state ...
0
votes
1
answer
137
views
Adjusting Threshold for Digital Pins
I am working on a project using Force Sensors to build a keyboard for MD patients.
I have connected the sensors (each with 4 input pins) to digital pins to Arduino Due.
I want to adjust the threshold ...
1
vote
0
answers
72
views
HOW convert momentary button to touch sensor TTP223?
I am trying to convert
this project https://maker.pro/arduino/projects/simple-fm-radio-receiver-with-arduino-uno-and-rda5807m
to 3 touch sensors TTP223.
But so far my new code don't work.
Please can ...
1
vote
0
answers
33
views
Transfer a single pulse from Tektronix function generator to Arduino UNO
I have set up a single pulse (width of ~400 ms) using the burst feature on the Tektronix AFG3102 function generator and I want to transfer this signal to the digital pin of Arduino UNO. Essentially I ...
2
votes
0
answers
87
views
Arduino Micro digital output pins floating / high Z
so i recently got an arduino micro for a project needing the control of two stepper motors with the A4988 driver. previously i was prototyping on an arduino uno and everything was working fine, but on ...
3
votes
2
answers
19k
views
What does “LSB per degree per second” mean?
I'm currently working with a digital output gyroscope. Its sensitivity is given as 120 least-significant bit per degree per second.
While every single component of that unit is easy to understand I ...
1
vote
1
answer
199
views
How to digital read and send the data through serial to PC with speed around 2 MHz?
I would like to read analog data with frequency sampling around 2 MHz and send it to PC to be processed with python for digital oscilloscope. I use Arduino Nano. I have found ADC (AD9057, PDF) that ...
2
votes
1
answer
504
views
How does Arduino Servo.h library manage to output PWM when a Servo motor is connected to a non-PWM pin? [duplicate]
While learning more about Servos, the main thing i have learned is that, Servos (SG90) need PWM signal with the frequency of 50Hz. And the duty cycle of the frequency is used to rotate the angle of ...
1
vote
2
answers
99
views
Digital Pins Question
I am new to the world of Arduino and need a little bit of help. I have an Arduino Uno and I am trying to supply 5V to an actuator using the digital pins. It is my understanding that the board I have ...
0
votes
2
answers
229
views
Plug in analog sensor into digital pin
If I take an Arduino (samd21, if it matters) and plug in an analog sensor/pot into a digital pin and then set that pin to be an input, would digitalRead(#) trigger HIGH and LOW at some threshold point?...
2
votes
1
answer
110
views
So many missed bytes with serial comm
I have a setup with serial comm from Raspberry Pi to Arduino. It's communicating at baud 9600 on both devices, and from Raspberry Pi 3b+ GPIO-14,UART0,TX0 to Arduino Nano RX0. There's a level shifter ...
2
votes
2
answers
1k
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 ...
1
vote
1
answer
92
views
How to test custom cables?
I'm trying to make a cable checker to help me make custom cables for my computer. I'm thinking I plug the cable ends into sockets on the device, then the Arduino checks between different pins to make ...
2
votes
4
answers
3k
views
PWM on non PWM pins
Why does this code not function in a similar way to the example fade sketch?
I have had to resort to using bit-banging as a way to implement PWM onto non PWM pins due to a lack of available free pins ...
0
votes
2
answers
633
views
How can I add a potentiometer and more buttons to my custom game controller?
I'm new to using Arduino, and know next to nothing about programming. I'm currently trying to add a potentiometer, and possibly a few more button inputs to my 3D-printed guitar controller project
It ...
8
votes
8
answers
68k
views
What's the difference between analogWrite and digitalWrite?
As the title states. What's the difference between the two?
analogWrite(pin,0-255) vs digitalWrite(pin,LOW-HIGH)
2
votes
1
answer
317
views
digitalRead() function of Arduino doesn't read Input value sent by sensor after detecting the object
I'm trying to turn ON the LED(inbuilt/PIN13) when photoelectric proximity sensor(12v) senses any object. Sensor is connected on pin 2. Assigned pin 2 as INPUT, I've got a 12v spdt relay for switching. ...
0
votes
1
answer
107
views
Does setting a value always mean setting a Arduino pin?
One thing that always confused me was why we use int or other commands to set the variables to have pin numbers as if those commands were always restricted to pin numbers only. For example
int ledPin =...
1
vote
1
answer
560
views
SoftWire Library Programming Questions for I2C with Digital Pins
I am trying to use 3 TOF10120 Laser Sensors with one Arduino that all have the same, fixed I2C Address. I don't believe it is possible to change the I2C address of the TOF10120, but if I am wrong, ...
0
votes
2
answers
123
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 ...
4
votes
0
answers
111
views
What’s the most stable digital communication protocol for sewable electronics? [closed]
I’ve spent the past few days trying researching communication protocols and I have a few issues. With sewable electronics, you need to work with cables with a fairly high resistance that are ...
3
votes
2
answers
596
views
How to count positive electrical pulses?
I have a device that has one blinking LED.
I want to count the number of blinks. I planned to do it using Arduino. I will connect two terminals of LED input to Arduino digital input pins, and I will ...
1
vote
5
answers
9k
views
How do you configure ADC7 on the Arduino Pro Mini as a digital output?
I'm attempting to use the pin labeled 'ADC7' from the Atmega328p TQFP package. The Atmega documentation suggests that can be used either as an analog or digital I/O point. I'm trying to configure it ...
2
votes
2
answers
181
views
Detecting an incoming 7.875 kHz pulse to use as trigger
I have written a code that detects an incoming pulse (square) of 7.875 kHz to trigger the output High for the entire duration of pulse, and trigger the output low if the pulse is off or not detected.
...
1
vote
1
answer
408
views
Nano: All digital pins do not output anything
New user here. Using the examples provided on the Arduino IDE software I could produce melodies with a piezo buzzer, or have a blinking LED.
Not anymore. No digital pin is giving anything. I can see ...
0
votes
2
answers
2k
views
Controlling an MCP41HV31 Digital Potentiometer
I need to control a 10kOhm digital potentiometer in rheostat mode in 256 steps. I found an Arduino tutorial, which works with an MCP41010 (I added a viper resistance according to the datasheet). This ...
1
vote
1
answer
206
views
Is it possible to overload the digital pins for an Arduino?
I worked on an Arduino project for school that was a self-driving security robot that also acted as a smart home system.
It was essentially a self-driving Roomba-like car that included several LED's(...
1
vote
1
answer
37
views
Confused as to how 2 of my interrupts are firing from just 1 pin input?
I have the following code which uses interrupts to set a flag for whether serial IO should happen to update my PC about a particular pin input. So I have interrupts on pins 2 and 3.
I am using the ...
-1
votes
1
answer
109
views
Dynamically control the output voltage of a 60V DC input
I am hoping to control a 60V DC input source dynamically using my Arduino so that the output voltage could vary between 0v to 60v. At first i was looking into digital potential meter, however I couldn'...
1
vote
2
answers
746
views
Controlling an RC car using Arduino
I'm trying to replicate this: https://zhengludwig.wordpress.com/projects/self-driving-rc-car/ using pretty much the exact same controller and car.
I've soldered 4 wires to the controller, 1 for each ...
1
vote
1
answer
3k
views
DHT11 analog or digital?
I saw some projects with DHT11, some connect it with analog pin, others connect with digital pin.
Is there any difference / advantage connecting to the analog?
0
votes
2
answers
69
views
Read amount of I/Os in code
I want to write an Arduino code, that runs on several different Boards. The code can perform digitalRead/Write operations, but the pin number will be set from the user/outside. I want to include a ...
0
votes
2
answers
204
views
Is it possible to use the Arduino Due's specials pins for digital writing and reading?
Hello the arduino documentation on the due specifies the pin mapping of the pins.I am making a custom board using the dues schematics and i am running still a bit low on pins. Also some of the special ...
1
vote
2
answers
392
views
Need to "Extend" a Arduino Digital Signal
Here's the scenario:
We have 1 arduino uno accepting DMX and converting that to a signal that is being sent out digitally (PIN 3). The digital signal then goes to several IR LED senders that control 3,...
2
votes
1
answer
328
views
Consequences of dynamically changing input/output configurations of digital pin?
I am creating an IC checker for a large chunk of the 74ls series (basic TTL logic chips), which means that I have 14 pins running to the IC to verify its functionality. One pin is power (+5V) and ...
0
votes
1
answer
7k
views
Read frequency of input in digital pins
This is a somewhat theoretical question:
Let's say I have some sensor that sends digital signals to one of Arduino's digital ports.
Now, I don't know the frequency it sends those signals in.
For ...
-1
votes
1
answer
96
views
How can we use two devices at the same time with arduino?
I am using fingerprint module r307 and LCD together. In that, I am using 2,3 digital pins of arduino for data transfer to the fingerprint.(I tried other pin configurations for this but it didn't work) ...
0
votes
1
answer
972
views
Using a water sensor with a NodeMCU make it less sensitive?
I'm trying to digitalRead from a water sensor (the one in the picture) using NodeMCU v3,when I try the sensor with an Arduino board it works fine, but when I try it with an ESP8266 NodeMCU v3 it ...
14
votes
6
answers
80k
views
Is there a way to play sounds from an Arduino without using a sound shield?
I would like to play a wav file (spoken words) from my Arduino. I do not want to add a sound shield. Is there a way to play a sound through an output pin? The quality does not have to be great.
0
votes
1
answer
64
views
Is my code triggering the N-Channel MOSFET as I have intended to
I have a certain bit of code that I believe after 10 seconds will send a high signal to the second digital pin for 50 seconds. After it will not do anything.
For some reason the nichrome wire is not ...
1
vote
1
answer
152
views
Help combining digital and analog code in arduino programming
So I'm making a device that does 3 things,
Measures frequency of an audio signal through a microphone
Checks whether there is a weight placed on a pressure pad (my pressure sensor works through the ...