sourcediver.org

about software and freediving

Building Ethersex for Alpengluehn

This tutorial will walk you through the process of building Ethersex for the Alpengluehn target.

Getting Ethersex

Download the Ethersex sourcecode by cloning the git repository

git clone https://github.com/ethersex/ethersex.git

That’s it!

Configure Ethersex

Change to the Ethersex directory

cd ethersex

and start menuconfig

make menuconfig

Step1

Select the Alpengluehn Default Configuration

Step2

Now enter the submenu Network

If you want, you can change the Hostname to something else.

Step3

Now enter the submenu Ethernet (ENC28J60) support and change or randomize the MAC address. Here you can also change the IP address and the Netmask.

Step4

Press Exit two times to get back to the main menu.

Enter the submenu ApplicationsStarburst: Multichannel pwm

Step5

Change the channels to the number of LEDs you have connected to the Alpengluehn Controller.

Step6

Press Exit three times and select Yes.

Step7

You have now configured Ethersex for the Alpengluehn Controller.

Building the image

Enter make to start the build process. If everything went fine, you should see something like

1
2
3
4
5
6
7
8
9
10
=======The ethersex project========
Compiled for: atmega644p at 20000000Hz
Imagesize: 23076/65536 bytes (35.21%)
 [==========--------------------]

Program (.text + .data) : 23076 bytes
Data (.data + .bss)     :  1691 bytes

EEPROM usage: 55/2048 bytes (2.69%)
===================================

Setting the fuses

Connect your programmer to the 6-Pin ISP port to change the factory fuses.

This can be done with avrdude.

avrdude -v -p m644p -c stk500v2 -P /dev/ttyACM0 -U lfuse:w:0xf7:m -U hfuse:w:0xd8:m -U efuse:w:0xff:m

Adjust -c stk500v2 and -P /dev/ttyACM0 for your programmer.

Flashing the image

You need to flash the file ethersex.hex

avrdude -p m644p -c stk500v2 -P /dev/ttyACM0 -U flash:w:ethersex.hex

Lights out, Spot on

When you point your browser to the IP you have set in make menuconfig, you should see the Ethersex html interface.
You can now start controlling the Alpengluehn Controller using the web interface or using Artnet, ECMD etc.

Comments