<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.ethersex.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rayofhope</id>
		<title>Ethersex_Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.ethersex.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rayofhope"/>
		<link rel="alternate" type="text/html" href="http://www.ethersex.de/index.php/Special:Contributions/Rayofhope"/>
		<updated>2026-04-05T16:31:50Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.ethersex.de/index.php?title=User:Rayofhope&amp;diff=1001</id>
		<title>User:Rayofhope</title>
		<link rel="alternate" type="text/html" href="http://www.ethersex.de/index.php?title=User:Rayofhope&amp;diff=1001"/>
				<updated>2013-03-25T22:08:56Z</updated>
		
		<summary type="html">&lt;p&gt;Rayofhope: Created page with &amp;quot;sudo avrdude -P usb -c usbasp -p m644 -U flash:w:ethersex.hex&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;sudo avrdude -P usb -c usbasp -p m644 -U flash:w:ethersex.hex&lt;/div&gt;</summary>
		<author><name>Rayofhope</name></author>	</entry>

	<entry>
		<id>http://www.ethersex.de/index.php?title=StellaLight&amp;diff=506</id>
		<title>StellaLight</title>
		<link rel="alternate" type="text/html" href="http://www.ethersex.de/index.php?title=StellaLight&amp;diff=506"/>
				<updated>2012-04-18T07:44:28Z</updated>
		
		<summary type="html">&lt;p&gt;Rayofhope: /* udp control */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{i18n|StellaLight}}&lt;br /&gt;
{{Module&lt;br /&gt;
|NAME=StellaLight&lt;br /&gt;
|MENUCONFIG={{Applications}}-&amp;gt;StellaLight: Multichannel pwm&lt;br /&gt;
|STATUS={{stable}}&lt;br /&gt;
|PINNING=yes&lt;br /&gt;
|ECMD={{has_ecmd}}&lt;br /&gt;
|DEPENDS=[[DMX Storage]] (optional), udpStella (optional)&lt;br /&gt;
|REQUIRES=&lt;br /&gt;
|CODE=[https://github.com/ethersex/ethersex/tree/master/services/stella https://github.com/ethersex/ethersex/tree/master/services/stella]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
StellaLight produces PWM signals on up to 16 independent pins for driving LEDs or servo motors. &lt;br /&gt;
&lt;br /&gt;
== Internals ==&lt;br /&gt;
&lt;br /&gt;
Stella uses an 8-bit Timer of your choice for producing the PWM signals. Since the overflow interrupts need to be very consistent, StellaLight will not work flawlessy when other modules are active that disable the interrupts for a short amount of time.&lt;br /&gt;
&lt;br /&gt;
This is a list of module where you can expect some problems with: [[Onewire]], [[RFM12]] (please add more if you find some).&lt;br /&gt;
&lt;br /&gt;
Moreover StellaLight does not support [http://en.wikipedia.org/wiki/Gamma_correction Gamma Correction] since that would require at least 10-12 bit PWM.&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
In Menuconfig you can select the prescaler. '''The higher the frequency, the more often the StellaLight PWM functions will be executed, leading to an higher overall load of the device. So if you run into problems, try decreasing the frequency, ergo increase the prescaler.''' &lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Option &lt;br /&gt;
! Prescaler&lt;br /&gt;
|-&lt;br /&gt;
| Very slow &lt;br /&gt;
| 1024&lt;br /&gt;
|-&lt;br /&gt;
| Slow &lt;br /&gt;
| 256&lt;br /&gt;
|-&lt;br /&gt;
| Normal &lt;br /&gt;
| 128&lt;br /&gt;
|-&lt;br /&gt;
| Fast &lt;br /&gt;
| 64&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You can calculate the resulting frequency by using this formula:&lt;br /&gt;
&lt;br /&gt;
F_CPU: The clockspeed of your AVR (like 8Mhz, 16Mhz etc.)&lt;br /&gt;
&lt;br /&gt;
''F_STELLA=F_CPU/Prescaler/512''&lt;br /&gt;
&lt;br /&gt;
So given a setting of &amp;quot;Normal&amp;quot; on a 16Mhz device will result in '''244Hz''' which is pretty good for most setups. So more than enough for the human eye (10 times more)&lt;br /&gt;
&lt;br /&gt;
If you have enabled [[DMX Storage]] in Menuconfig, you also can set the universe and start channel of StellaLight, so you can control StellaLight via [[Artnet]] or [[DMX FXSlot]].&lt;br /&gt;
&lt;br /&gt;
== Pinning ==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| STELLA_PORT1_RANGE(PX'''I''',PX'''J''') &lt;br /&gt;
|  sets the range ('''I''' to '''J''') of StellaLight controlled pins on PORTX&lt;br /&gt;
|-&lt;br /&gt;
| STELLA_PORT2_RANGE(PX2'''I''',PX2'''J''') &lt;br /&gt;
| sets the range ('''I''' to '''J''') of StellaLight controlled pins on PORTX2&lt;br /&gt;
|-&lt;br /&gt;
| STELLA_USE_TIMER('''I''') &lt;br /&gt;
| programs Timer'''I''' for StellaLight&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Two examples:&lt;br /&gt;
&lt;br /&gt;
'''1. 3 LEDs (e.g. RGB) on PORTA, Pins: 0,1,2'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
ifdef(`conf_STELLA', `dnl&lt;br /&gt;
  STELLA_PORT1_RANGE(PA0,PA2)&lt;br /&gt;
  STELLA_USE_TIMER(2)&lt;br /&gt;
')dnl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''2. 15 LEDs (e.g. 5x RGB) on PORTA, Pins: 0,1,2,3,4,5,6,7 on PORTD, Pins: 0,1,2,3,4,5,6'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot; &amp;gt;&lt;br /&gt;
ifdef(`conf_STELLA', `dnl&lt;br /&gt;
  STELLA_PORT1_RANGE(PA0,PA7)&lt;br /&gt;
  STELLA_PORT2_RANGE(PD0,PD6)&lt;br /&gt;
  STELLA_USE_TIMER(2)&lt;br /&gt;
')dnl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== udp control ==&lt;br /&gt;
We recommend to use the [[DMX Storage]]. But for easy set ups it is possible to use a simple udp protocol to control stella channels.&lt;br /&gt;
Activate protocols-&amp;gt;udpStella and configure the port.&lt;br /&gt;
A datagram for stella has three bytes:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Byte #&lt;br /&gt;
! Semantic&lt;br /&gt;
! Valid values&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| Command Byte&lt;br /&gt;
|&lt;br /&gt;
  STELLA_SET_IMMEDIATELY=0,&lt;br /&gt;
  STELLA_SET_FADE=1,&lt;br /&gt;
  STELLA_SET_FLASHY=2,&lt;br /&gt;
  STELLA_SET_IMMEDIATELY_RELATIVE=3,&lt;br /&gt;
  STELLA_SET_FADESTEP=4,&lt;br /&gt;
  STELLA_GETALL = 255&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| Channel&lt;br /&gt;
| 0-15 &lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| Value&lt;br /&gt;
| 0-255&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You will get back an UDP datagram if you send the STELLA_GETALL command. It consists of an identifier [&amp;quot;STELLA&amp;quot;]+[Amount of channels]+[channel#1]+..+[channel#n]&lt;br /&gt;
&lt;br /&gt;
== Alternative ==&lt;br /&gt;
&lt;br /&gt;
Have a look at [[Starburst]] for an improved and more resource-conserving solution.&lt;br /&gt;
&lt;br /&gt;
[[Category:e6la]]&lt;/div&gt;</summary>
		<author><name>Rayofhope</name></author>	</entry>

	<entry>
		<id>http://www.ethersex.de/index.php?title=StellaLight&amp;diff=505</id>
		<title>StellaLight</title>
		<link rel="alternate" type="text/html" href="http://www.ethersex.de/index.php?title=StellaLight&amp;diff=505"/>
				<updated>2012-04-18T07:40:12Z</updated>
		
		<summary type="html">&lt;p&gt;Rayofhope: udp protocol&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{i18n|StellaLight}}&lt;br /&gt;
{{Module&lt;br /&gt;
|NAME=StellaLight&lt;br /&gt;
|MENUCONFIG={{Applications}}-&amp;gt;StellaLight: Multichannel pwm&lt;br /&gt;
|STATUS={{stable}}&lt;br /&gt;
|PINNING=yes&lt;br /&gt;
|ECMD={{has_ecmd}}&lt;br /&gt;
|DEPENDS=[[DMX Storage]] (optional), udpStella (optional)&lt;br /&gt;
|REQUIRES=&lt;br /&gt;
|CODE=[https://github.com/ethersex/ethersex/tree/master/services/stella https://github.com/ethersex/ethersex/tree/master/services/stella]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
StellaLight produces PWM signals on up to 16 independent pins for driving LEDs or servo motors. &lt;br /&gt;
&lt;br /&gt;
== Internals ==&lt;br /&gt;
&lt;br /&gt;
Stella uses an 8-bit Timer of your choice for producing the PWM signals. Since the overflow interrupts need to be very consistent, StellaLight will not work flawlessy when other modules are active that disable the interrupts for a short amount of time.&lt;br /&gt;
&lt;br /&gt;
This is a list of module where you can expect some problems with: [[Onewire]], [[RFM12]] (please add more if you find some).&lt;br /&gt;
&lt;br /&gt;
Moreover StellaLight does not support [http://en.wikipedia.org/wiki/Gamma_correction Gamma Correction] since that would require at least 10-12 bit PWM.&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
In Menuconfig you can select the prescaler. '''The higher the frequency, the more often the StellaLight PWM functions will be executed, leading to an higher overall load of the device. So if you run into problems, try decreasing the frequency, ergo increase the prescaler.''' &lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Option &lt;br /&gt;
! Prescaler&lt;br /&gt;
|-&lt;br /&gt;
| Very slow &lt;br /&gt;
| 1024&lt;br /&gt;
|-&lt;br /&gt;
| Slow &lt;br /&gt;
| 256&lt;br /&gt;
|-&lt;br /&gt;
| Normal &lt;br /&gt;
| 128&lt;br /&gt;
|-&lt;br /&gt;
| Fast &lt;br /&gt;
| 64&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You can calculate the resulting frequency by using this formula:&lt;br /&gt;
&lt;br /&gt;
F_CPU: The clockspeed of your AVR (like 8Mhz, 16Mhz etc.)&lt;br /&gt;
&lt;br /&gt;
''F_STELLA=F_CPU/Prescaler/512''&lt;br /&gt;
&lt;br /&gt;
So given a setting of &amp;quot;Normal&amp;quot; on a 16Mhz device will result in '''244Hz''' which is pretty good for most setups. So more than enough for the human eye (10 times more)&lt;br /&gt;
&lt;br /&gt;
If you have enabled [[DMX Storage]] in Menuconfig, you also can set the universe and start channel of StellaLight, so you can control StellaLight via [[Artnet]] or [[DMX FXSlot]].&lt;br /&gt;
&lt;br /&gt;
== Pinning ==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| STELLA_PORT1_RANGE(PX'''I''',PX'''J''') &lt;br /&gt;
|  sets the range ('''I''' to '''J''') of StellaLight controlled pins on PORTX&lt;br /&gt;
|-&lt;br /&gt;
| STELLA_PORT2_RANGE(PX2'''I''',PX2'''J''') &lt;br /&gt;
| sets the range ('''I''' to '''J''') of StellaLight controlled pins on PORTX2&lt;br /&gt;
|-&lt;br /&gt;
| STELLA_USE_TIMER('''I''') &lt;br /&gt;
| programs Timer'''I''' for StellaLight&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Two examples:&lt;br /&gt;
&lt;br /&gt;
'''1. 3 LEDs (e.g. RGB) on PORTA, Pins: 0,1,2'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
ifdef(`conf_STELLA', `dnl&lt;br /&gt;
  STELLA_PORT1_RANGE(PA0,PA2)&lt;br /&gt;
  STELLA_USE_TIMER(2)&lt;br /&gt;
')dnl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''2. 15 LEDs (e.g. 5x RGB) on PORTA, Pins: 0,1,2,3,4,5,6,7 on PORTD, Pins: 0,1,2,3,4,5,6'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot; &amp;gt;&lt;br /&gt;
ifdef(`conf_STELLA', `dnl&lt;br /&gt;
  STELLA_PORT1_RANGE(PA0,PA7)&lt;br /&gt;
  STELLA_PORT2_RANGE(PD0,PD6)&lt;br /&gt;
  STELLA_USE_TIMER(2)&lt;br /&gt;
')dnl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== udp control ==&lt;br /&gt;
We recommend to use the [[DMX Storage]]. But for easy set ups it is possible to use a simple udp protocol to control stella channels.&lt;br /&gt;
Activate protocols-&amp;gt;udpStella and configure the port.&lt;br /&gt;
A datagram for stella has three bytes:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
! Byte #&lt;br /&gt;
! Semantic&lt;br /&gt;
! Valid values&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| Command Byte&lt;br /&gt;
|&lt;br /&gt;
  STELLA_SET_IMMEDIATELY=0,&lt;br /&gt;
  STELLA_SET_FADE=1,&lt;br /&gt;
  STELLA_SET_FLASHY=2,&lt;br /&gt;
  STELLA_SET_IMMEDIATELY_RELATIVE=3,&lt;br /&gt;
  STELLA_SET_FADESTEP=4,&lt;br /&gt;
  STELLA_GETALL = 255&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| Channel&lt;br /&gt;
| 0-15 &lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| Value&lt;br /&gt;
| 0-255&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Alternative ==&lt;br /&gt;
&lt;br /&gt;
Have a look at [[Starburst]] for an improved and more resource-conserving solution.&lt;br /&gt;
&lt;br /&gt;
[[Category:e6la]]&lt;/div&gt;</summary>
		<author><name>Rayofhope</name></author>	</entry>

	</feed>