Hi,
I am doing a project for an electronic class I am taking.
What I have to do is : Using an arduino as a counter ( 8 bits Counter) connected to a DAC0832 and in the output generating a Sine wave ( I can't use arduino for generating the sine wave. I will use amp ops later ). The last part I haven't simulate yet.
The problem is the following: I want the wave output to be triangular at first, with steps ups and downs . But now I am only getting the steps going down ( I am using an AMP OP inverter) and it's not going up ( Why not? ) . As you can see in the image, the arduino code is working 100%. It's going from 0 to 255 then 255-0. ( I am only showing part of it).
![ArduinoContagem.PNG ArduinoContagem.PNG](https://www.electro-tech-online.com/data/attachments/93/93638-f0e5ba732145bb38764a9fcb7f83224d.jpg)
Thanks a lot!
Sorry for the bad english![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I am doing a project for an electronic class I am taking.
What I have to do is : Using an arduino as a counter ( 8 bits Counter) connected to a DAC0832 and in the output generating a Sine wave ( I can't use arduino for generating the sine wave. I will use amp ops later ). The last part I haven't simulate yet.
![Cicuito Proteus com simulação.PNG Cicuito Proteus com simulação.PNG](https://www.electro-tech-online.com/data/attachments/93/93637-6b67f23c44a5de7c62d62d1f18cb90bb.jpg)
The problem is the following: I want the wave output to be triangular at first, with steps ups and downs . But now I am only getting the steps going down ( I am using an AMP OP inverter) and it's not going up ( Why not? ) . As you can see in the image, the arduino code is working 100%. It's going from 0 to 255 then 255-0. ( I am only showing part of it).
![ArduinoContagem.PNG ArduinoContagem.PNG](https://www.electro-tech-online.com/data/attachments/93/93638-f0e5ba732145bb38764a9fcb7f83224d.jpg)
Thanks a lot!
Sorry for the bad english