hi, i am new to labview and i just found out that we cannot branch/split the linx ref wire.
i am trying to build a lighting circuit together with temperature monitoring and control.
I did manage to get each sensor of the working separately but i do not know how to put all of them together.
My lighting circuit consist of :
a PIR motion sensor, A LDR and the light intensity will be variable using the PWM outputs of the arduino.
My initial idea was to branch the 2 sensors (PIR and LDR),
check my analog value of my ldr, compare it with a constant ( i already got my required threshold), then i suppose the output of comparing will be either HIGH or LOW. Given its high, the first condition will be met.
the second condition will check ( digital read) my PIR sensor and given its high, the second condition will be met.
Then i thought of Using something like a boolean AND of the two signals ( only both input HIGH will output HIGH).
the output of this ANDed result will the digital write to my arduino chnnel with the LED.
So, this idea is quite simple but i dont think i am doing it the good way. i dont even know how to wire the linx ref (pink one) for this design.
Given i manage to do this i will get an idea how to build up the rest of my design.
pls any help will be most welcome...i am sorry if my question was too basic but i am really stuck here..
hi, i am new to labview and i just found out that we cannot branch/split the linx ref wire.i am trying to build a lighting circuit together with temperature monitoring and control.I did manage to get each sensor of the working separately but i do not know how to put all of them together.My lighting circuit consist of :a PIR motion sensor, A LDR and the light intensity will be variable using the PWM outputs of the arduino.My initial idea was to branch the 2 sensors (PIR and LDR), check my analog value of my ldr, compare it with a constant ( i already got my required threshold), then i suppose the output of comparing will be either HIGH or LOW. Given its high, the first condition will be met.the second condition will check ( digital read) my PIR sensor and given its high, the second condition will be met.Then i thought of Using something like a boolean AND of the two signals ( only both input HIGH will output HIGH).the output of this ANDed result will the digital write to my arduino chnnel with the LED.So, this idea is quite simple but i dont think i am doing it the good way. i dont even know how to wire the linx ref (pink one) for this design.Given i manage to do this i will get an idea how to build up the rest of my design. pls any help will be most welcome...i am sorry if my question was too basic but i am really stuck here..
การแปล กรุณารอสักครู่..
