For a project, I want to use Simulink to design a controller.
I need to use the Arduino board to supply voltage to the circuit and also be able to see the output result in Simulink.
For now I've just simply connected the DAC0 to pin 4 on the board and wish to see the same sine wave on the scope.
The output of the DAC is the desired sine wave as I checked with an oscilloscope so the problem must be with reading the signal.
Can anyone point me in the direction of what I've done wrong?
I should have clarified this a bit more.
Any circuit that is needed for identification or just simply showing the step response. Mainly for use in a laboratory and for research purposes. however, the circuit is irrelevant here since I've connected the two pins directly.
ard_newbie:
DAC0 outputs between 1/6 * 3.3V and 5/6 * 3.3V. Pin 4 of arduino DUE is NOT an analog pin !!!!
My bad. By pin 4 I meant the analog input pin 4 (A4) of the board.