Hi all ,
I'm kinda new on the eletronic and arduino world and i have a simple question about how to connect the DAC0808 with the arduinoUNO.
I don't know if this will make difference but i need to send a signal to the DAC - i will use 8 pins to send data to it , and the arduinoUNO has 6 analog pins.
If i use the digitalwrite using this 6 analog pins and 2 other pins ( ex: digital write to a0 , a1,a2,a3,a4,a5 ,P6,P7) , the DAC will read the input properly? or i need to use 8 analog pins to send an input to it?
THANKS.
That DAC is not a good choice for connecting to the Arduino although it can be done. You will need 8 digital outputs to connect to the chip. Use the typical application circuit in the data sheet.
The problem is that you can not change all 8 outputs from the Arduino simultaneously because the way the ports are mapped. The best you can do is to have two port manipulation instructions. This means there will be a glitch in the output whenever you change the value.
Look for a D/A with an I2C or SPI interface or even one with an output latch to solve this.
i need to use 8 analog pins to send an input to it?
No you need DIGITAL outputs.
What output rate do you want? What are you trying to do?
Hi Mike,
Attached is the schematic. Actually i'm reproducing a tutorial on a pneumatic system that uses this circuit attached.
The idea is to write a digital value on the arduino code , the DAC send the current to the OP amp and the OP amp gives an output voltage from 0~~ 10V to be used on a valve.
Following the schematic of the tutorial it says to connect using ports a0 ,a1,a2,a3,a4,a5 and p6 and p7 .
My doubt was on this ports , if it will be a problem using 6 analog and 2 normal ports.

if it will be a problem using 6 analog and 2 normal ports.
No problem, apart from the glitches which will apply what ever you use. The analogue pins can be used as digital pins and work exactly the same use pin 14 for analog 0, 15 for analog 1 and so on.
the tutorial it says to connect using ports a0 ,a1,a2,a3,a4,a5 and p6 and p7 .
Very bad idea to use Pin 0 and 1 as they are used for serial data uploading code and anything connected here could interfere with the loading process. Also the loading process will produce random fluctuations on the output of the D/A and drive your output.
Grumpy_Mike:
No problem, apart from the glitches which will apply what ever you use. The analogue pins can be used as digital pins and work exactly the same use pin 14 for analog 0, 15 for analog 1 and so on.
Very bad idea to use Pin 0 and 1 as they are used for serial data uploading code and anything connected here could interfere with the loading process. Also the loading process will produce random fluctuations on the output of the D/A and drive your output.
Thanks you for the explanation !!! it helped me a lot. I will do some test at the lab and if i have more questions i will ask on the forum again!
Have a good one!