Hi - this post is for those who have purchased a Teensy++2 board and are wondering how to go about using it for a light show. This is not the only way to configure the board - but it is a quick and relatively simple way to get some results.
This is written for those with little, to no IT/programming/electrical experience - please don't take offence to this - as I don't know the ability of those reading this post.
Insert all the usual waivers here... these are just the steps I've taken to get Teensy ++2 working... You follow these steps at your own risk - don't blame me if things go bang and you let the smoke out :p
This is a quick and easy, step-by-step guide to configure your shiny new Teensy++2 to talk with Vixen 2.1.
Outline:
software you'll need:
Vixen 2.1
Arduino 1.0 Software - http://arduino.cc/en/Main/Software
Teensy Loader - http://www.pjrc.com/teensy/loader.html
serial_install.exe - http://www.pjrc.com/teensy/usb_serial.html (Windows Driver Installer)
Teensyduino - http://www.pjrc.com/teensy/td_download.html - Teensy Add-in files for coding in Arduino software...
Please download and install all these before trying to upload anything to the Teensy board.
The attachment contains: Teensy.zip
Serial___1_00_002___no_PWM.ino:- The code to load into the Teensy via the Arduino 1.0 software. This file gives 27 channels - no Pulse Width Modulation. The file is well documented you should be able to add or remove channels as required. This file is set to assume a header of (HD) and footer (FT) are sent in the serial data. Please make sure you follow the steps below to add the header and footer details.
Teensy Serial.dll - This is a modified DLL, the original Generic Serial Output plug-in couldn't make use of Com Ports above Com4. It is the same code as KCs original - with the only mod being it can now use up to Com32.
Extract the zip file to a location that is easy to find - eg c:\temp\teensy
if you want to use the DLL - just copy it to the "Plugins\Output" directory of vixen.
1) Open the Arduino 1.0 software
2) From the File menu, select "Open" - browse to the location you extracted the zip file and select Serial__1_00_002__no_pwm.ino
3) Make any changes you require for the Pin variables...
4) Verify the code (the Tick icon)
5) Upload the code to the Teensy board (the arrow icon)
6) open Vixen
7) From the "Profiles menu" - select "Manage"
8) Create a new profile - give it a name - eg Teensy - Click "ok"
9) Add 27 channels...
10) Select "Output Plugins" button at the bottom of the profile screen.
11) Select the DLL you'll be using - either the Generic Serial Output or Teensy ++2 Serial Control
12) Click/highlight the Plugin in the "Plugins in Use" box - verify the channel numbers are correct: 1 to 27
13) Click "Plugin Setup"
14) Select the correct Com Port for your Teensy ++2 board
15) Select the tickbox "Send a text header" and enter HD in the textbox provided.
16) Select the tickbox "Send a text footer" and enter FT in the textbox provided.
17) Select "Done", select "Done" again
18) Create a new event sequence using the "Vixen standard sequence" - during the setup it will ask which profile to use... select the one you have just created from the steps above.
19) Test the channels from the vixen interface....
I hope that helps... that code will get you to the point where your Teensy is now switching channels on/off via vixen. What you switch is up to you... LEDs on a breadboard do look good... but only for so long. You can't run thousands of LEDs directly from the Teensy - but you can switch 5v relays - which in turn have thousands of LEDs connected to them. Then the fun begins...


Reply With Quote


at least its working and i can use it this season to run some props and free up some light channels on my other boards.

Bookmarks