home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
HTPC Projects
Hardware
Ambient Lighting System
[HOW TO] Ambilight with Teensy 2 board + Led Strip WS2801
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="azzuro" data-source="post: 960793" data-attributes="member: 50482"><p style="text-align: center"><strong>[ATTACH=full]120897[/ATTACH] [ATTACH=full]120897[/ATTACH] [ATTACH=full]120897[/ATTACH] [ATTACH=full]120897[/ATTACH] [ATTACH=full]120897[/ATTACH] </strong></p> <p style="text-align: center"><strong>Add compatibility to Teensy 2 board + Led strip WS2801</strong></p> <p style="text-align: center">(from Adafruit) to MediaPortal with Atmowin / Atmolight.(up to 256 channels )</p> <p style="text-align: center"></p> <p style="text-align: center">[ATTACH=full]120898[/ATTACH] [ATTACH]120896[/ATTACH] [ATTACH]120899[/ATTACH]</p><p></p><p style="text-align: center">Hardware can work with Boblighthd with Adalight firmware ( no tested yet )</p><p></p><p style="text-align: center"><span style="font-size: 15px"><strong>All Requirements for working solutions:</strong></span></p><p></p><p><strong><em>Ambilight Hardware:</em></strong></p><p>Teensy 2 (with or without program inside ‘flashing lost all data inside!!!!’)</p><p>Led strips WS2801 ( or other compatible with FastSPI )</p><p>Power DC …</p><p>Firmware AtmoDuino4Teensy_vX.ino <a href="http://code.google.com/p/ambilight-4-mediaportal/source/browse/#git%2FHardware%2FAtmoduino%2FTeensy%202%2FAtmoduino%20Firmware" target="_blank">http://code.google.com/p/ambilight-4-mediaportal/source/browse/#git/Hardware/Atmoduino/Teensy 2/Atmoduino Firmware</a></p><p> </p><p> </p><p></p><p> </p><p> </p><p><strong><em>Flashing Software:</em></strong></p><p> </p><p>Serial Drivers (include in TeensyDuino ) <a href="http://www.pjrc.com/teensy/serial_install.exe" target="_blank">http://www.pjrc.com/teensy/serial_install.exe</a></p><p>Arduino IDE 1.0.3 : <a href="http://arduino.cc/en/main/software" target="_blank">http://arduino.cc/en/main/software</a></p><p>TeensyDuino 1.11: <a href="http://www.pjrc.com/teensy/td_download.html" target="_blank">http://www.pjrc.com/teensy/td_download.html</a></p><p>FastSPI LED mod for Teensy 2 : <a href="http://code.google.com/p/ambilight-4-mediaportal/source/browse/#git%2FHardware%2FAtmoduino%2FTeensy%202%2FAtmoduino%20Firmware%2FFastSPI_LEd_4_Teensy_2" target="_blank">http://code.google.com/p/ambilight-4-mediaportal/source/browse/#git/Hardware/Atmoduino/Teensy 2/Atmoduino Firmware/FastSPI_LEd_4_Teensy_2</a></p><p> </p><p> </p><p><strong><em>Ambilight Software : </em></strong><em>Actually all software are available here : </em></p><p style="text-align: center"><span style="color: #ff0000"><strong><span style="font-size: 15px"><em><a href="http://code.google.com/p/ambilight-4-mediaportal/" target="_blank"><span style="color: #ff0000">http://code.google.com/p/ambilight-4-mediaportal/</span></a> </em></span></strong></span></p><p></p><p style="text-align: center"><strong>MPEI package by legnod available here: </strong></p> <p style="text-align: center"><strong><a href="https://www.team-mediaportal.com/extensions/other/atmolight-plugin-for-atmowin" target="_blank">https://www.team-mediaportal.com/extensions/other/atmolight-plugin-for-atmowin</a></strong></p><p></p><p>Atmowin 0.50 modded ( Atmoduino protocol) Rick164 blog :</p><p><a href="https://bitbucket.org/RickDB/atmoduino/overview" target="_blank">https://bitbucket.org/RickDB/atmoduino/overview</a></p><p><a href="https://bitbucket.org/RickDB/atmowin-atmoduino-mod/downloads" target="_blank">https://bitbucket.org/RickDB/atmowin-atmoduino-mod/downloads</a></p><p>MediaPortal <a href="https://www.team-mediaportal.com/mediaportal-download" target="_blank">https://www.team-mediaportal.com/mediaportal-download</a></p><p>Atmolight patched for your MePo version ( all version can be found in MediaPortal forum)</p><p>- Forum link :</p><p>- English : <a href="https://forum.team-mediaportal.com/threads/new-plugin-atmolight-process-plugin-update-25-05-2010-v1-9.75840/" target="_blank">https://forum.team-mediaportal.com/threads/new-plugin-atmolight-process-plugin-update-25-05-2010-v1-9.75840/</a></p><p>- German : <a href="https://forum.team-mediaportal.com/threads/neues-plugin-atmolight-plugin.76173/" target="_blank">https://forum.team-mediaportal.com/threads/neues-plugin-atmolight-plugin.76173/</a></p><p>- German ambilight dedicated: <a href="https://forum.team-mediaportal.com/threads/ambilight-eigenbau-doku-infothread-sedu-board-led-stripes-atmowin.104785/" target="_blank">https://forum.team-mediaportal.com/threads/ambilight-eigenbau-doku-infothread-sedu-board-led-stripes-atmowin.104785/</a></p><p style="text-align: center"></p> <p style="text-align: center"><span style="font-size: 15px"><strong>Procedure !</strong></span></p><p></p><p><strong><em>Flashing Firmware :</em></strong></p><p> </p><p>Install Arduino IDE</p><p>Install TeensyDuino on Arduino folder</p><p>Replace FastSPI in plugin folder from here</p><p>If your update FastSPI</p><p>Verify this</p><p> </p><p>[code=C++]</p><p>// Leonardo, teensy, blinkm</p><p>#elif defined(__AVR_ATmega32U4__)</p><p> </p><p>#define SPI_PORT PORTB</p><p>#define SPI_DDR DDRB</p><p>#define SPI_PIN PINB</p><p>#define SPI_MOSI 2 // Arduino pin 10.</p><p>#define SPI_MISO 3 // Arduino pin 11.</p><p>#define SPI_SCK 1 // Arduino pin 9.</p><p>#define SPI_SSN 0 // Arduino pin 8.</p><p> // Replace Teensy 2 PB2 = 2 , ... , ...</p><p>#define DATA_PIN 2 // PB2, pin 10, Digital16</p><p>#define SLAVE_PIN 3 // PB3, pin 11, Digital14</p><p>#define CLOCK_PIN 1 // PB1, pin 9, Digital15</p><p>#define LATCH_PIN 0 // PB0, pin 8, Digital17</p><p>#define TIMER_AVAILABLE 1 [/CODE]</p><p> </p><p>Now your system is ready for flash Teensy Board.</p><p> </p><p><strong><em>Open, Modif & Flash Firmware</em></strong></p><p> </p><p>Open firmware file <em>AtmoDuino4Teensy_vx.ino</em></p><p>Verify this line code, from your Hardware</p><p>Add “//” for disable line code and Del it for activate line</p><p> </p><p>NUM_LEDS xxx : set your numbers of led</p><p>Data rate : set data rate for adapt to your Led strip for don’t have flickering</p><p>This firmware use SPI Hardware set in FastSPI library</p><p> </p><p>[CODE=C++]</p><p>//Set the number of leds in the strip.</p><p>#define NUM_LEDS 150</p><p> </p><p>// Sometimes chipsets wire in a backwards sort of way</p><p>//struct CRGB { unsigned char b; unsigned char r; unsigned char g; };</p><p>//struct CRGB { unsigned char r; unsigned char g; unsigned char b; };</p><p>struct CRGB { unsigned char r; unsigned char b; unsigned char g; };</p><p> </p><p> //Change this to match your led strip</p><p> //FastSPI_LED.setChipset(CFastSPI_LED::SPI_SM16716);</p><p> //FastSPI_LED.setChipset(CFastSPI_LED::SPI_TM1809);</p><p> //FastSPI_LED.setChipset(CFastSPI_LED::SPI_LPD6803);</p><p> //FastSPI_LED.setChipset(CFastSPI_LED::SPI_HL1606);</p><p> //FastSPI_LED.setChipset(CFastSPI_LED::SPI_595);</p><p> FastSPI_LED.setChipset(CFastSPI_LED::SPI_WS2801);</p><p> </p><p> //Change datarate to match your led strip as well</p><p> FastSPI_LED.setDataRate(2); // Data Rate set to (2) for Adafruit ID 322 12mm bullet because is 5V led strip</p><p>[/CODE]</p><p> </p><p>When your Firmware is OK !</p><p> </p><p>For Flashing click “Verify” and press button on Teensy board for Flash it !</p><p> </p><p><strong><em>Teensy flashed -> Install Atmowin (UAC need to be Off ) !</em></strong></p><p> </p><p>When Teensy reboot, if your firmware is OK, all led should show “fade-in / fade-out”</p><p>Red > Blue > Green</p><p>(DC power must be connected!) (For reboot teensy unplug USB cable)</p><p> </p><p style="text-align: center"><strong><<< don’t forget to install serial drivers if you use Ambilight on other PC !! >>></strong></p><p></p><p>Close all Software. And verify if “java.exe” is running , if yes, kill it !</p><p>Now, you can extract Atmowin to “c:\atmowin “</p><p>UAC need to be OFF</p><p>Register all files ! as described in Atmowin readme file!</p><p> </p><p>Explanation from RickDB repo .</p><p> </p><p><strong>Setup </strong></p><p><span style="font-family: 'Symbol'">· </span>Start AtmowinA.exe</p><p><span style="font-family: 'Symbol'">· </span>Device -> Select "Atmoduino"</p><p><span style="font-family: 'Symbol'">· </span>Select "Configure device" and select your Arduino COM port and set the number of leds</p><p><span style="font-family: 'Symbol'">· </span>Set number of leds in zones top/left-right/bottom, the total of the zones should result in the same amount as set in the number of leds before.</p><p><span style="font-family: 'Symbol'">· </span>Save (OK) / exit (kill) and restart Atmowin.</p><p><span style="font-family: 'Symbol'">· </span>Select "Configure software adjustment" and set:</p><p>White balance software - On</p><p>Red/Green/Blue - 254</p><p>Gamma correction - Global</p><p>Global 0.5</p><p><strong>Recommended settings for dynamic ambilight (smooth transitions) </strong></p><p><span style="font-family: 'Symbol'">· </span>Darkness limit 0</p><p><span style="font-family: 'Symbol'">· </span>Filter threshold 67%</p><p><span style="font-family: 'Symbol'">· </span>Filter smoothness 30%</p><p><span style="font-family: 'Symbol'">· </span>Edge weighting 13 (depends on the screen size)</p><p> </p><p>Select “ColorChanger LR” for show Led !</p><p> </p><p><strong><em>Atmowin OK -> Install Atmolight ( + patched Core ) !</em></strong></p><p> </p><p>Unpack Archives, to MediaPortal folder</p><p>Start MP configuration.exe > plugin & set Atmolight plugin.</p><p> </p><p style="text-align: center">Now, you are ready for use your Ambilight with MediaPortal …</p><p></p><p> </p><p>We will not be held responsible for any misuse, or damage to your equipment, that is designed to help and share!</p><p> </p><p><strong><em>Testing Video / Pictures : </em></strong></p><p>Many files for testing are available on :</p><p style="text-align: center"><strong><a href="http://code.google.com/p/ambilight-4-mediaportal/source/browse/#git%2FTesting" target="_blank">http://code.google.com/p/ambilight-4-mediaportal/source/browse/#git/Testing</a></strong></p><p></p><p> </p><p><strong><em>Thank you to :</em></strong></p><p>MediaHD.fr <a href="https://forum.team-mediaportal.com/members/kestouf.92546/" target="_blank">kestouf</a> for lent me hardware</p><p>Atmowin / Atmolight : <a href="https://forum.team-mediaportal.com/members/gemx.26324/" target="_blank">gemx</a> / <a href="https://forum.team-mediaportal.com/members/angie05.103460/" target="_blank">angie05</a> / <a href="https://forum.team-mediaportal.com/members/macgyver2k.15878/" target="_blank">MacGyver2k</a></p><p>Atmoduino : <a href="https://forum.team-mediaportal.com/members/rick164.17766/" target="_blank">Rick164</a> / <a href="https://forum.team-mediaportal.com/members/scorpie.99323/" target="_blank">scorpie</a></p><p>forum help : <a href="https://forum.team-mediaportal.com/members/legnod.115719/" target="_blank">legnod</a> <a href="https://forum.team-mediaportal.com/members/dragy.91197/" target="_blank">Dragy</a></p></blockquote><p></p>
[QUOTE="azzuro, post: 960793, member: 50482"] [CENTER][B][ATTACH=full]120897[/ATTACH] [ATTACH=full]120897[/ATTACH] [ATTACH=full]120897[/ATTACH] [ATTACH=full]120897[/ATTACH] [ATTACH=full]120897[/ATTACH] [/B][/CENTER] [CENTER][B]Add compatibility to Teensy 2 board + Led strip WS2801[/B][/CENTER] [CENTER](from Adafruit) to MediaPortal with Atmowin / Atmolight.(up to 256 channels )[/CENTER] [CENTER] [/CENTER] [CENTER][ATTACH=full]120898[/ATTACH] [ATTACH]120896[/ATTACH] [ATTACH]120899[/ATTACH][/CENTER] [CENTER]Hardware can work with Boblighthd with Adalight firmware ( no tested yet )[/CENTER] [CENTER][SIZE=4][B]All Requirements for working solutions:[/B][/SIZE][/CENTER] [B][I]Ambilight Hardware:[/I][/B] Teensy 2 (with or without program inside ‘flashing lost all data inside!!!!’) Led strips WS2801 ( or other compatible with FastSPI ) Power DC … Firmware AtmoDuino4Teensy_vX.ino [URL='http://code.google.com/p/ambilight-4-mediaportal/source/browse/#git%2FHardware%2FAtmoduino%2FTeensy%202%2FAtmoduino%20Firmware']http://code.google.com/p/ambilight-4-mediaportal/source/browse/#git/Hardware/Atmoduino/Teensy 2/Atmoduino Firmware[/URL] [B][I]Flashing Software:[/I][/B] Serial Drivers (include in TeensyDuino ) [url]http://www.pjrc.com/teensy/serial_install.exe[/url] Arduino IDE 1.0.3 : [url]http://arduino.cc/en/main/software[/url] TeensyDuino 1.11: [url]http://www.pjrc.com/teensy/td_download.html[/url] FastSPI LED mod for Teensy 2 : [URL='http://code.google.com/p/ambilight-4-mediaportal/source/browse/#git%2FHardware%2FAtmoduino%2FTeensy%202%2FAtmoduino%20Firmware%2FFastSPI_LEd_4_Teensy_2']http://code.google.com/p/ambilight-4-mediaportal/source/browse/#git/Hardware/Atmoduino/Teensy 2/Atmoduino Firmware/FastSPI_LEd_4_Teensy_2[/URL] [B][I]Ambilight Software : [/I][/B][I]Actually all software are available here : [/I] [CENTER][COLOR=#ff0000][B][SIZE=4][I][URL='http://code.google.com/p/ambilight-4-mediaportal/'][COLOR=#ff0000]http://code.google.com/p/ambilight-4-mediaportal/[/COLOR][/URL] [/I][/SIZE][/B][/COLOR][/CENTER] [CENTER][B]MPEI package by legnod available here: [/B][/CENTER] [CENTER][B][url]https://www.team-mediaportal.com/extensions/other/atmolight-plugin-for-atmowin[/url][/B][/CENTER] Atmowin 0.50 modded ( Atmoduino protocol) Rick164 blog : [url]https://bitbucket.org/RickDB/atmoduino/overview[/url] [url]https://bitbucket.org/RickDB/atmowin-atmoduino-mod/downloads[/url] MediaPortal [url]https://www.team-mediaportal.com/mediaportal-download[/url] Atmolight patched for your MePo version ( all version can be found in MediaPortal forum) - Forum link : - English : [url]https://forum.team-mediaportal.com/threads/new-plugin-atmolight-process-plugin-update-25-05-2010-v1-9.75840/[/url] - German : [url]https://forum.team-mediaportal.com/threads/neues-plugin-atmolight-plugin.76173/[/url] - German ambilight dedicated: [url]https://forum.team-mediaportal.com/threads/ambilight-eigenbau-doku-infothread-sedu-board-led-stripes-atmowin.104785/[/url] [CENTER] [/CENTER] [CENTER][SIZE=4][B]Procedure ![/B][/SIZE][/CENTER] [B][I]Flashing Firmware :[/I][/B] Install Arduino IDE Install TeensyDuino on Arduino folder Replace FastSPI in plugin folder from here If your update FastSPI Verify this [code=C++] // Leonardo, teensy, blinkm #elif defined(__AVR_ATmega32U4__) #define SPI_PORT PORTB #define SPI_DDR DDRB #define SPI_PIN PINB #define SPI_MOSI 2 // Arduino pin 10. #define SPI_MISO 3 // Arduino pin 11. #define SPI_SCK 1 // Arduino pin 9. #define SPI_SSN 0 // Arduino pin 8. // Replace Teensy 2 PB2 = 2 , ... , ... #define DATA_PIN 2 // PB2, pin 10, Digital16 #define SLAVE_PIN 3 // PB3, pin 11, Digital14 #define CLOCK_PIN 1 // PB1, pin 9, Digital15 #define LATCH_PIN 0 // PB0, pin 8, Digital17 #define TIMER_AVAILABLE 1 [/CODE] Now your system is ready for flash Teensy Board. [B][I]Open, Modif & Flash Firmware[/I][/B] Open firmware file [I]AtmoDuino4Teensy_vx.ino[/I] Verify this line code, from your Hardware Add “//” for disable line code and Del it for activate line NUM_LEDS xxx : set your numbers of led Data rate : set data rate for adapt to your Led strip for don’t have flickering This firmware use SPI Hardware set in FastSPI library [CODE=C++] //Set the number of leds in the strip. #define NUM_LEDS 150 // Sometimes chipsets wire in a backwards sort of way //struct CRGB { unsigned char b; unsigned char r; unsigned char g; }; //struct CRGB { unsigned char r; unsigned char g; unsigned char b; }; struct CRGB { unsigned char r; unsigned char b; unsigned char g; }; //Change this to match your led strip //FastSPI_LED.setChipset(CFastSPI_LED::SPI_SM16716); //FastSPI_LED.setChipset(CFastSPI_LED::SPI_TM1809); //FastSPI_LED.setChipset(CFastSPI_LED::SPI_LPD6803); //FastSPI_LED.setChipset(CFastSPI_LED::SPI_HL1606); //FastSPI_LED.setChipset(CFastSPI_LED::SPI_595); FastSPI_LED.setChipset(CFastSPI_LED::SPI_WS2801); //Change datarate to match your led strip as well FastSPI_LED.setDataRate(2); // Data Rate set to (2) for Adafruit ID 322 12mm bullet because is 5V led strip [/CODE] When your Firmware is OK ! For Flashing click “Verify” and press button on Teensy board for Flash it ! [B][I]Teensy flashed -> Install Atmowin (UAC need to be Off ) ![/I][/B] When Teensy reboot, if your firmware is OK, all led should show “fade-in / fade-out” Red > Blue > Green (DC power must be connected!) (For reboot teensy unplug USB cable) [CENTER][B]<<< don’t forget to install serial drivers if you use Ambilight on other PC !! >>>[/B][/CENTER] Close all Software. And verify if “java.exe” is running , if yes, kill it ! Now, you can extract Atmowin to “c:\atmowin “ UAC need to be OFF Register all files ! as described in Atmowin readme file! Explanation from RickDB repo . [B]Setup [/B] [FONT=Symbol]· [/FONT]Start AtmowinA.exe [FONT=Symbol]· [/FONT]Device -> Select "Atmoduino" [FONT=Symbol]· [/FONT]Select "Configure device" and select your Arduino COM port and set the number of leds [FONT=Symbol]· [/FONT]Set number of leds in zones top/left-right/bottom, the total of the zones should result in the same amount as set in the number of leds before. [FONT=Symbol]· [/FONT]Save (OK) / exit (kill) and restart Atmowin. [FONT=Symbol]· [/FONT]Select "Configure software adjustment" and set: White balance software - On Red/Green/Blue - 254 Gamma correction - Global Global 0.5 [B]Recommended settings for dynamic ambilight (smooth transitions) [/B] [FONT=Symbol]· [/FONT]Darkness limit 0 [FONT=Symbol]· [/FONT]Filter threshold 67% [FONT=Symbol]· [/FONT]Filter smoothness 30% [FONT=Symbol]· [/FONT]Edge weighting 13 (depends on the screen size) Select “ColorChanger LR” for show Led ! [B][I]Atmowin OK -> Install Atmolight ( + patched Core ) ![/I][/B] Unpack Archives, to MediaPortal folder Start MP configuration.exe > plugin & set Atmolight plugin. [CENTER]Now, you are ready for use your Ambilight with MediaPortal …[/CENTER] We will not be held responsible for any misuse, or damage to your equipment, that is designed to help and share! [B][I]Testing Video / Pictures : [/I][/B] Many files for testing are available on : [CENTER][B][URL='http://code.google.com/p/ambilight-4-mediaportal/source/browse/#git%2FTesting']http://code.google.com/p/ambilight-4-mediaportal/source/browse/#git/Testing[/URL][/B][/CENTER] [B][I]Thank you to :[/I][/B] MediaHD.fr [URL='https://forum.team-mediaportal.com/members/kestouf.92546/']kestouf[/URL] for lent me hardware Atmowin / Atmolight : [URL='https://forum.team-mediaportal.com/members/gemx.26324/']gemx[/URL] / [URL='https://forum.team-mediaportal.com/members/angie05.103460/']angie05[/URL] / [URL='https://forum.team-mediaportal.com/members/macgyver2k.15878/']MacGyver2k[/URL] Atmoduino : [URL='https://forum.team-mediaportal.com/members/rick164.17766/']Rick164[/URL] / [URL='https://forum.team-mediaportal.com/members/scorpie.99323/']scorpie[/URL] forum help : [URL='https://forum.team-mediaportal.com/members/legnod.115719/']legnod[/URL] [URL='https://forum.team-mediaportal.com/members/dragy.91197/']Dragy[/URL] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
HTPC Projects
Hardware
Ambient Lighting System
[HOW TO] Ambilight with Teensy 2 board + Led Strip WS2801
Contact us
RSS
Top
Bottom