Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Premium Land with House for Sale
anil1961
Updated:
Friday at 10:15 AM
AWS Certified Solutions Architect-Associate + AWS Certified Cloud Practitioner
Sanjeewani95
Updated:
Aug 19, 2026
🚀 එක පැකේජ් එකයි - මාසෙටම Unlimited Internet! 🌐
sayuru bandara
Updated:
Aug 18, 2026
🎬 CapCut Pro 1 Month Access! LKR 600
sayuru bandara
Updated:
Aug 18, 2026
🚀 Google One AI PRO Plan (Gemini Pro Activation) – 18 Months Access! LKR 2200
sayuru bandara
Updated:
Aug 18, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
පරිඝණකයෙන් විදුලි උපකරණ හසුරවමු.
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Hasistranger" data-source="post: 13670736" data-attributes="member: 314292"><p><strong>පරිඝණකයෙන් විදුලි උපකරණ හසුරවමු 02.</strong></p><p></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">අපි මුල් Post එකේදී කතා කලේ කොහොමද Data Port එක පාවිචචි කරල බාහිර විදුළි උපකරණ පාලනය කරන්නේ කියල ,</span><span style="font-size: 18px"> එහිදී මම ඉදිරිපත් කලා Relay Interface පරිපථයක්.අද මන් කියල දෙන්නම් මෙම </span><span style="font-size: 18px">Relay Interface </span><span style="font-size: 18px">පරිපථයට ගැලපෙන වැඩසටහන් 2ක්. මුල් එක ඉතාම ප්රාථමික වැඩසටහනකි.එහිදී වරකට ක්රියාත්මක කල හැක්කේ එක </span><span style="font-size: 18px">Relay එකක් පමණී. මෙන්න එහෙනම් ඒ </span><span style="font-size: 18px">වීඩියෝ එක</span><span style="font-size: 18px">.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span>[YOUTUBE]1Oe1cNxU6gw[/YOUTUBE]</p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">අනෙක් වැඩසටහනේදී එකවර </span><span style="font-size: 18px">Relay කීපයක්ම ක්රියාත්මක කල හැක.එම වැඩසටහනේ</span><span style="font-size: 18px"> සම්පූර්ණ වීඩියෝ එකම දාන්නනම් ටිකක් අමාරැයි.මම කොටසක් පමනක් දැම්මා ( මූලික කොටස).ඉතිරි ටික ටයිප් කරන්නම්.එහෙනම් බලන්නකෝ වීඩියෝ එක.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"></span>[YOUTUBE]foJyWPsYMWg[/YOUTUBE]</p><p></p><p><span style="font-size: 18px"> </span></p><p><span style="font-size: 18px">මේකේ Timer එකේ Full Code එක පහතින් තිබේ.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: Blue">Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick</span></span><span style="font-size: 15px"></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"></span> <span style="font-size: 15px"><span style="color: SeaGreen">If (Relay_01.Checked = True) Then</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> Out(Val("&h378"), 1)</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> ElseIf (Relay_02.Checked = True) Then</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> Out(Val("&h378"), 2)</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> ElseIf (Relay_01.Checked = True And Relay_02.Checked = True) Then</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> Out(Val("&h378"), 3)</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> ElseIf (Relay_03.Checked = True) Then</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> Out(Val("&h378"), 4)</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> ElseIf (Relay_01.Checked = True And Relay_03.Checked = True) Then</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> Out(Val("&h378"), 5)</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> ElseIf (Relay_02.Checked = True And Relay_03.Checked = True) Then</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> Out(Val("&h378"), 6)</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> ElseIf (Relay_01.Checked = True And Relay_02.Checked = True And Relay_03.Checked = True) Then</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> Out(Val("&h378"), 7)</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> ElseIf (Relay_04.Checked = True) Then</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> Out(Val("&h378"), 8)</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> ElseIf (Relay_01.Checked = True And Relay_04.Checked = True) Then</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> Out(Val("&h378"), 9)</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> ElseIf (Relay_02.Checked = True And Relay_04.Checked = True) Then</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> Out(Val("&h378"), 10)</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> ElseIf (Relay_01.Checked = True And Relay_02.Checked = True And Relay_04.Checked = True) Then</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> Out(Val("&h378"), 11)</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> ElseIf (Relay_03.Checked = True And Relay_04.Checked = True) Then</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> Out(Val("&h378"), 12)</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> ElseIf (Relay_01.Checked = True And Relay_03.Checked = True And Relay_04.Checked = True) Then</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> Out(Val("&h378"), 13)</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> ElseIf (Relay_02.Checked = True And Relay_03.Checked = True And Relay_04.Checked = True) Then</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> Out(Val("&h378"), 14)</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> ElseIf (Relay_01.Checked = True And Relay_02.Checked = True And Relay_03.Checked = True And Relay_04.Checked = True) Then</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> Out(Val("&h378"), 15)</span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: SeaGreen"> End If</span></span><span style="font-size: 15px"></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"></span> <span style="font-size: 15px"><span style="color: Blue"></span></span></span></p><p><span style="font-size: 18px"><span style="font-size: 15px"><span style="color: Blue"> End Sub</span></span><strong><span style="color: Blue"></span></strong></span></p><p><span style="font-size: 18px"><strong><span style="color: Blue"></span></strong></span></p><p><span style="font-size: 18px"><strong><span style="color: Blue"></span></strong><span style="color: Blue"><span style="color: Black">මේ කොළ පාටින් තියෙන Code එක වැඩසටහනේ Timer_Tick Event එක තුලට Paste කරගැනීම පමනයි කරන්න තියෙන්නේ.</span></span></span></p><p><span style="font-size: 18px"><span style="color: Blue"><span style="color: Black"></span></span></span></p><p><span style="font-size: 18px"><span style="color: Blue"><span style="color: Black">ඒ කොටසට පස්සේ අපිට තියෙන්නේ </span></span></span><span style="font-size: 15px"><span style="font-size: 18px">බාහිර විදුළි උපකරණයකින් පැමිනෙන සංඥා කියවන එකයි.මන් අද ඒ කොටස ඉදිරිපත් කරන්නම්.</span></span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px"><img src="http://imageshack.us/a/img19/433/portprogramming13.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></span></p><p><span style="font-size: 15px"></span>[YOUTUBE]xAFRxnVQX2c[/YOUTUBE]</p><p><img src="http://www.elakiri.com/forum/xAFRxnVQX2c" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p><img src="http://imageshack.us/a/img853/2816/portprogramming15.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">අදට මන් මෙතනින් නවතින්නම්.ඉදිරියේදී මන් ඹ්ගොල්ලන්ට දෙන්නම් විවිධ Port Program වැඩසටහන් හා ඒවා කරන ආකාරයන්.</span><img src="/styles/default/xenforo/smilies/default/happy.gif" class="smilie" loading="lazy" alt=":)" title="Happy :)" data-shortname=":)" /> <img src="/styles/default/xenforo/smilies/default/happy.gif" class="smilie" loading="lazy" alt=":)" title="Happy :)" data-shortname=":)" /> <img src="/styles/default/xenforo/smilies/default/happy.gif" class="smilie" loading="lazy" alt=":)" title="Happy :)" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="Hasistranger, post: 13670736, member: 314292"] [b]පරිඝණකයෙන් විදුලි උපකරණ හසුරවමු 02.[/b] [SIZE=5] අපි මුල් Post එකේදී කතා කලේ කොහොමද Data Port එක පාවිචචි කරල බාහිර විදුළි උපකරණ පාලනය කරන්නේ කියල ,[/SIZE][SIZE=5] එහිදී මම ඉදිරිපත් කලා Relay Interface පරිපථයක්.අද මන් කියල දෙන්නම් මෙම [/SIZE][SIZE=5]Relay Interface [/SIZE][SIZE=5]පරිපථයට ගැලපෙන වැඩසටහන් 2ක්. මුල් එක ඉතාම ප්රාථමික වැඩසටහනකි.එහිදී වරකට ක්රියාත්මක කල හැක්කේ එක [/SIZE][SIZE=5]Relay එකක් පමණී. මෙන්න එහෙනම් ඒ [/SIZE][SIZE=5]වීඩියෝ එක[/SIZE][SIZE=5]. [/SIZE][YOUTUBE]1Oe1cNxU6gw[/YOUTUBE] [SIZE=5] අනෙක් වැඩසටහනේදී එකවර [/SIZE][SIZE=5]Relay කීපයක්ම ක්රියාත්මක කල හැක.එම වැඩසටහනේ[/SIZE][SIZE=5] සම්පූර්ණ වීඩියෝ එකම දාන්නනම් ටිකක් අමාරැයි.මම කොටසක් පමනක් දැම්මා ( මූලික කොටස).ඉතිරි ටික ටයිප් කරන්නම්.එහෙනම් බලන්නකෝ වීඩියෝ එක. [/SIZE][YOUTUBE]foJyWPsYMWg[/YOUTUBE] [SIZE=5] මේකේ Timer එකේ Full Code එක පහතින් තිබේ. [SIZE=4][COLOR=Blue]Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick[/COLOR][/SIZE][SIZE=4] [/SIZE] [SIZE=4][COLOR=SeaGreen]If (Relay_01.Checked = True) Then Out(Val("&h378"), 1) ElseIf (Relay_02.Checked = True) Then Out(Val("&h378"), 2) ElseIf (Relay_01.Checked = True And Relay_02.Checked = True) Then Out(Val("&h378"), 3) ElseIf (Relay_03.Checked = True) Then Out(Val("&h378"), 4) ElseIf (Relay_01.Checked = True And Relay_03.Checked = True) Then Out(Val("&h378"), 5) ElseIf (Relay_02.Checked = True And Relay_03.Checked = True) Then Out(Val("&h378"), 6) ElseIf (Relay_01.Checked = True And Relay_02.Checked = True And Relay_03.Checked = True) Then Out(Val("&h378"), 7) ElseIf (Relay_04.Checked = True) Then Out(Val("&h378"), 8) ElseIf (Relay_01.Checked = True And Relay_04.Checked = True) Then Out(Val("&h378"), 9) ElseIf (Relay_02.Checked = True And Relay_04.Checked = True) Then Out(Val("&h378"), 10) ElseIf (Relay_01.Checked = True And Relay_02.Checked = True And Relay_04.Checked = True) Then Out(Val("&h378"), 11) ElseIf (Relay_03.Checked = True And Relay_04.Checked = True) Then Out(Val("&h378"), 12) ElseIf (Relay_01.Checked = True And Relay_03.Checked = True And Relay_04.Checked = True) Then Out(Val("&h378"), 13) ElseIf (Relay_02.Checked = True And Relay_03.Checked = True And Relay_04.Checked = True) Then Out(Val("&h378"), 14) ElseIf (Relay_01.Checked = True And Relay_02.Checked = True And Relay_03.Checked = True And Relay_04.Checked = True) Then Out(Val("&h378"), 15) End If[/COLOR][/SIZE][SIZE=4] [/SIZE] [SIZE=4][COLOR=Blue] End Sub[/COLOR][/SIZE][B][COLOR=Blue] [/COLOR][/B][COLOR=Blue][COLOR=Black]මේ කොළ පාටින් තියෙන Code එක වැඩසටහනේ Timer_Tick Event එක තුලට Paste කරගැනීම පමනයි කරන්න තියෙන්නේ. ඒ කොටසට පස්සේ අපිට තියෙන්නේ [/COLOR][/COLOR][/SIZE][SIZE=4][SIZE=5]බාහිර විදුළි උපකරණයකින් පැමිනෙන සංඥා කියවන එකයි.මන් අද ඒ කොටස ඉදිරිපත් කරන්නම්.[/SIZE] [IMG]http://imageshack.us/a/img19/433/portprogramming13.jpg[/IMG] [/SIZE][YOUTUBE]xAFRxnVQX2c[/YOUTUBE] [IMG]http://www.elakiri.com/forum/xAFRxnVQX2c[/IMG] [IMG]http://imageshack.us/a/img853/2816/portprogramming15.jpg[/IMG] [SIZE=5] අදට මන් මෙතනින් නවතින්නම්.ඉදිරියේදී මන් ඹ්ගොල්ලන්ට දෙන්නම් විවිධ Port Program වැඩසටහන් හා ඒවා කරන ආකාරයන්.[/SIZE]:) :) :) [/QUOTE]
Insert quotes…
Verification
Hathara warak wissa keeyada? (Hathara wadi karanna 20)
Post reply
Top
Bottom