Today was a productive day.
After a lot of testing of the PWM circuit, we had a good result.
The circuit is now working, but we only need to modify this.
We use now 4 single Op-amps (741) , in the future we go build this
with a quad op-amp IC.
This is a video of our signal:
And this evening, we are started with the LM35 Temperature sensor.
Here is also a first good result: we can read in the output of the sensor with the labjack.
This is the testcode where I send the measured signal on the input to the output but with a factor of 10 higher, so that it is easier to measure. Because the LM35 rise 10mV/°C.
---------------------------------------------
Public Class Form1
Dim spanning As Double = 0
Dim Checkken As Integer = 0
Public Sub New()
' This call is required by the Windows Form Designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Start()
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
lj.LabJack.EAnalogIn(-1, 0, 0, 0, 2, spanning)
lj.LabJack.EAnalogOut(-1, 0, (spanning * 10), 0)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Timer1.Stop()
End Sub
End Class
---------------------------------------------
Video:
No comments:
Post a Comment