Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Next, on your Visual Studio Design Form, double-click on Timer1 and enter the following code under the Private Sub Timer1_Tick event. Make sure you write
Next, on your Visual Studio Design Form, double-click on Timer1 and enter the following code under the Private Sub Timer1_Tick event. Make sure you write the correct COM port number in your code Dim com 1 As 10.Ports. SerialPort = Nothing Light1.State = ToggleSwitch 1.State 'power ON/OFF If Light1.State = True Then 'check if the POWER is ON Try 'Insert correct COM port here (i.e. COM Port your Arduino uses) com1 = My Computer Ports OpenSerialPort("COM7") 'Set baud rate here com1.BaudRate = 9600 KARENA TAS 201 4
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started