Using PC to connect to Arduino Uno. Included Visual Basic 6 code. The VB6 may need an ActiveX file downloaded from Microsoft.
The VB app connects to the Arduino via the COM PORT that the USB drive created and connects the Arduino IDE, when the VB app is running you cannot program the Arduino. You need to enter to the VB app the port number in the way it is done with the IDE.
The app displays 4 analogue inputs A0-A3, 6 digital inputs D2-D7 and 6 digital \t outputs D8-D13
The VB app and code can be downloaded from my website: http://www.moty22.co.uk/usbio.php
EXPANDED TECHNICAL DETAILS
PC-to-Embedded Interface Bridge
This project explores the fundamental communication between a Windows/PC environment and low-level Arduino hardware.
- Serial Communication Protocol: The Arduino acts as an I/O expander for the PC. It listens for specific binary or ASCII commands over the USB connection.
- Bi-Directional Data Flow: The PC can command digital pins to turn on/off or set PWM values, while the Arduino continuously sends back the state of its analog and digital input pins.
Software Integration
- Host Application: Typically paired with a script or app (Python, C#, or Java) that manages the COM port.
- Industrial Prototype Utility: This setup is the basis for PC-controlled laboratory equipment, custom game controllers, or automated testing jigs where the heavy processing is done on the computer while the Arduino handles the physical interaction.