Skip to content

GreenShoeGarage/ArduinoXojoSerialCommsExample

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Arduino+Xojo: A Serial Communications Example

This is a quick and dirty example of how to connect an Arduino dev board, via a USB cable, to a Windows desktop application built using Xojo (a "Cross-platform App Development Tool").

My goal was to achieve the following goals:

  • Connect to an Arduino, by selecting the Arduino from a list of COM ports.
  • Read from the serial port (in this example, the A0 analog input pin)
  • Toggle a LED on the Arduino, by writing an "H" or "L" to the serial port
  • Write a date-time stamp and the analog pin value to a .CSV file locally on the computer

There are three subfolder under the "Software" folder:

  • "Arduino Firmware": Contains the .ino file that can be edited and flashed to your Arduino
  • "Xojo Project": The raw Xojo project file that can be edited to meet your needs
  • "Windows Executable": A .exe file that can be ran on a Windows 10 machine, as-is

Word of Warning: This code is provided as-is. It is experimental and not fully tested. Use at your own risk, and do NOT use for any production or other critical applications. You have been warned!

About

Xojo + Arduino: Sharing Data over a Serial Port

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages