We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [digital-analog-conversion]

Filter by
Sorted by
Tagged with
-1
votes
1answer
32 views

Distorted audio from mcp3002

I have setup a MCP3002 to convert an analog signal to digital signal. When I read it directly through serial and convert it to a wav file, it sounds relative clear. Serial is limited for samples per ...
0
votes
2answers
34 views

Creating and Arduino synthesizer without the tone library

I am thinking about trying to make an Arduino synthesizer using the true analog output on the Due. However I would like to be able to play multiple notes at the same time on a single buzzer. Is this ...
0
votes
1answer
33 views

Operating AD5780 EVAL Board Via MicroController

OK, so thanks in advance because I am new here. I am reading the AD57XX drivers here https://wiki.analog.com/resources/tools-software/uc-drivers/renesas/ad5780 and am struggling to understand how to ...
1
vote
1answer
800 views

Using Analog Comparator on ATmega32u4

I am (currently) parsing a PPM analog signal using an Arduino Uno R3 using the analog comparator ASCR and analog hardware interrupts using AIN0 and AIN1. I am applying a specific negative comparison ...
-1
votes
1answer
1k views

analogWrite(DAC0, X), Analog voltage on DAC0 pin is higher for lower X value - is this normal?

I am using an Arduino DUE. Using the analogWrite(DAC0, X) command I am writing an analog value to this pin. X = 0 - 255 as I understand it. I am observing that when X is lower, the voltage on DAC0 ...
14
votes
6answers
43k 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
1answer
58 views

How to convert digital signal to analog value

I have spwm output from arduino, and when i read on analogread it shows only 1023 and 0, because it is digital signal. Is there any way to convert these spwm value into analog value reading
0
votes
2answers
69 views

Stacking adc's when making an midi controller ( lots of potmeters)

I'm making a midi controller with the Arduino uno. It contains approximately 50 analog inputs with potentiometers. I have enough MCP3008 adc's here but I have no idea how I connect 2 or more adc's to ...
0
votes
1answer
29 views

How can I scan for a HIGH signal on digitalRead during the main loop, while running other things?

I'm working on a program which listens for certain bytes on serial through an if/then/elseif ladder. I want to also check if a pin (say, A15) has been given a HIGH state, by another Arduino with ...
0
votes
1answer
65 views

Connecting DAC output from Arduino Due to another arduino

I have an Arduino Due and I want to connect the output from the DAC as an input to an Arduino Uno's analog input pin. From this link http://forum.arduino.cc/index.php?topic=164763.0, user DuaneB ...
3
votes
1answer
173 views

SPI Connections to DAC [closed]

I'm hoping to construct a feedback loop for a laser using an Chipkit UC32 and an analog-digitial converter ( the one of I have is an AD5780 evaluation board). I've been reading through Digilint's SPI ...
0
votes
2answers
4k views

Arduino with 12 bit DAC (MCP4725) Not Working

I have an Arduino Mega AT2560 and need to have real DAC. I purchased the Sparkfun 12 bit DAC, however I don't think it is working properly. I am using the Arduino wire library to communicate with the ...
0
votes
1answer
58 views

Attaching Microcontroller to DAC evaluation board

For an independent undergraduate research project I'm trying to construct a digital feedback loop. I have never used an Arduino, or done much electrical/computer engineering, so I'm just taking things ...
1
vote
1answer
107 views

Arduino Uno ADCH register stuck at 255 when read from ISR

I'm working on a project that will essentially become an oscilloscope in the long run. I am following this guide. My code is uploaded here for more reference. In my .ino file I have called functions ...
0
votes
4answers
2k 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 ...
1
vote
3answers
219 views

Arduino 3.3V Conversion

I am fairly new to Arduino. As far I know all official Arduinos run on 5 volts. Or there is Arduino versions that run from 3.3V? I need use Arduino with devices which chipsets all use 3.3V logic level....
-1
votes
1answer
973 views

Arduino Due DAC pins with 0V

I know the DACs on the Arduino Due only allow for a range of output voltages from 1/6*Vdd to 5/6*Vdd (see here). This suits my needs, for the most part. My question is if it is possible to have 0V on ...
1
vote
1answer
665 views

Using an esp8266, how can I create a circuit to measure 2 different analog inputs (not simultaneously) with only one ADC pin available (A0)

I'm currently using a circuit with 2 separate transistors that can be switched on or off to measure 2 separate voltage inputs. The reason for this is because I'm using an esp8266 which has only one ...
-1
votes
2answers
3k views

Analog pins for 4x4 matrix keypad

I am working on a project on nano and want to use analog pins for 4x4 matrix keypad input. My connections are for keypad are as follows: Digital pins are D10-D13 and Analog pins are A0-A3. A0->14, ...
1
vote
1answer
877 views

Output frequency from an SPI DAC (MCP4922) is lower than expected

I'm using a 2-channel, 12-bit DAC (MCP4922, datasheet) with an Arduino Uno, using the library written for it here. With the clock divider set to 2, I should have the SPI clock frequency at 8MHz. If ...
1
vote
1answer
446 views

Communicating with I2C DAC (LTC2631)

Firstly, let me say that I'm new to using I2C devices, especially with Arduino. I have an 8-bit DAC (LTC2631) that I'm trying to control with an Arduino Uno. I thought I would be able to use the ...
0
votes
2answers
167 views

How to Read Voltage Level? [closed]

I want to read voltage level by my Arduino board please help in this regard. I am using this syntax. volts = analogRead(A3); // read the input pin Serial.println(volts)
2
votes
2answers
2k views

Arduino Uno Digital to Analog Converter

I'm trying to read in an analog signal (a heartbeat) to pin A0 on the Arduino Uno and then convert it to digital. I'm hoping to use the digital signal to make an LED light up every time the voltage of ...
0
votes
1answer
424 views

Arduino as analog to digital converter for temperature sensor

I have an ESP8266 module that must receive some data and send it to a server, my problem is that this data is given by a temperature sensore and a light sensor which must be connected to analog pins ...
1
vote
3answers
4k views

Use photocell as digital input

I need to use multiple photocells as input, but its more than the amount of analog pins that my arduino has. I'm wondering if theres any way to use a photocell as a digital input, with the photocell ...
0
votes
1answer
131 views

Trying to read analog signal with digital pin using outside ADC

Is there a way to route an analog signal from a simple temperature sensor through an ADC, MCP3008, into a digital pin. I have used all the analog pins on my Arduino Mega 2560 and am trying to utilize ...
0
votes
1answer
41 views

Trouble reading analog (PWM)

I'm trying to test my analog signal before I send it to an actual analog device. I've written some code and considering the analog square I have expected to see a digital ON or OFF during a single ...
1
vote
1answer
191 views

It seems as if there is a 220K pull-down resistor on analog pin 0

So I am building a project that uses the analog pins for precise measurements of resistance through a voltage divider and I have been having some seemingly unsolvable problems with nonlinear response ...
0
votes
1answer
1k views

Producing a sine wave with the DAC?

Its being a few days i am trying to achieve something that I dont really know if possible. Using the Samd21 chip(Arduino Zero), I am using a timer and a DAC to produce a sine wave. The required ...
1
vote
0answers
315 views

Connecting Arduino Due's DAC output to pc sound card with protection

I would like to connect the DAC outputs of my arduino board to my pc sound card input so that I can use my sounds card as an osciloscope. I have two questions: 1- if I don't use an amplifier, how ...
0
votes
1answer
539 views

Arduino to DAC to ADC back to Arduino?

My question is simple. Is the following possible? I am using one Arduino Mega 2560 board and its SPI functionality to adjust voltages (0-4.096V) through a 12-bit DAC (MCP4822). I would like to ...
1
vote
2answers
1k views

Is it possible to make a mathematical function generator using Arduino?

I want to build a function generator but not the ones which outputs square wave or sawtooth ect. I will input a discrete function lets say f(n) = e^n for n=0 to n=100 and the output array will be ...
0
votes
2answers
962 views

Are DAC pins useful for anything besides working with audio?

Whenever I run into information about DAC, it seems to be related to audio processing. Are there any other use cases where DAC might be useful, or have any advantages over regular ADC PWM output on an ...
0
votes
1answer
394 views

PWM-FILTERS -DAC

I want to implement a digital controller C(z) on an Arduino Uno (transfer function in the z domain) in order to control a plant G(s) = 3750/[(s+10)(s+30)(s+100)]. I have implemented G(s) with ...
0
votes
2answers
3k views

How do you send data via I2C without the wire library?

I have the following digital potentiometer: DS1803-100 which, according to the datasheet, can be controlled using a two-wire serial interface. I have managed to get it working using Wire, however I ...