กลับไปหน้ารวมไฟล์
arduino-inputs-outputs-on-pc-737c3c-en.md

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.

ข้อมูล Frontmatter ดั้งเดิม

title: "Arduino Inputs Outputs on PC"
description: "VB6 app to connect Arduino Uno ports to Windows PC"
author: "moty"
category: "Lab Stuff"
tags:
  - "communication"
  - "data collection"
views: 21373
likes: 7
price: 1499
difficulty: "Easy"
components:
  - "1x Arduino UNO"
tools: []
apps:
  - "1x Arduino IO"
downloadableFiles:
  - "https://projects.arduinocontent.cc/7dc490d8-738d-4726-8033-89f1e33eb746.ino"
documentationLinks: []
passwordHash: "351216cf7c2d4111d32aaba26527326ee3fb9f867ab43d2b26a44f851a145cba"
encryptedPayload: "U2FsdGVkX1+XCI2KRM3Oe5tDDfbefvxmI1JMms1RCznQRi7uy/NNR/C5FSdT4DdmGU5AzMM0KJSeRRjnvGIqFYQE9GmDXV+TOChWTe/Sx38="
seoDescription: "Connect Arduino Uno ports to Windows PC via VB6 app. Manage Arduino Inputs Outputs directly on your computer."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/arduino-inputs-outputs-on-pc-737c3c_cover.gif"
lang: "en"