Sign in to follow this  
marzubus

[Hardware Plugin] Firmata and Direct Serial for Arduino/Others on (MAC/*NIX/WIN)

Recommended Posts

I have written PsimaxSerial, a re-namespace and modification of System.IO.Ports with some added features. This allows KSPAddons to open a direct serial port and talk with an Arduino or any serial device.

Features:

  • Direct Serial Communication
  • Firmata Protocol Support

Source: https://github.com/unixunion/PsimaxSerial

Binaries: https://github.com/unixunion/PsimaxSerial/tree/master/release

So far I have only tested this on Mac and Windows, but I see no reason why it shouldn't run on Linux too.

I have a Arduino successfully talking over serial with KSP, using TVout and rendering some HUD elements over composite signal.

The HelloWorld and HelloWorldFirmata example basically just sends a few chars to represent the state of RCS when in control of a vessel.

HelloWorld sketch is in the comments of HelloWorld.cs, and the HelloWorldFirmata example requires FirmataStandard 2 to be flashed onto your Arduino, see http://firmata.org/wiki/Download#Firmwares

My Arduino running TvOUT

Screen shot of my Arduino Rendering on a LCD: http://imgur.com/Rara6US

Video Demo: http://youtu.be/NFfwT9tmdHQ

The arduino sketch I am running is up at https://github.com/unixunion/arduhud2 and it depends on TVout library and using a 1K and 440ohm to connect to a composite line input.

Regards!

/Kegan

Edited by marzubus
More Info

Share this post


Link to post
Share on other sites
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this