Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
asm:16:workshops:rgb-led-strip-raspberry [2016/05/03 11:55] – [Teilnehmer (max 10)] com2u | asm:16:workshops:rgb-led-strip-raspberry [2021/04/18 12:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 29: | Line 29: | ||
* Die Teilnehmer sollten keine Angst vor Elektronik und dem Programmieren haben. Ansonsten ist das ein Einsteigerlevel. | * Die Teilnehmer sollten keine Angst vor Elektronik und dem Programmieren haben. Ansonsten ist das ein Einsteigerlevel. | ||
+ | * Fragen oder Anmeldung per E-Mail direckt an patrick.hess [ät] com2u.de | ||
=== Material für Teilnehmer / Unkosten | === Material für Teilnehmer / Unkosten | ||
Line 41: | Line 42: | ||
| ~~=row()~~ | | ~~=row()~~ | ||
| ~~=row()~~ | | ~~=row()~~ | ||
- | | ~~=row()~~ | + | | ~~=row()~~ |
- | | ~~=row()~~ | + | | ~~=row()~~ |
- | | ~~=row()~~ | + | | ~~=row()~~ |
- | | ~~=row()~~ | + | | ~~=row()~~ |
- | | ~~=row()~~ | + | | ~~=row()~~ |
- | | ~~=row()~~ | + | | ~~=row()~~ |
- | | ~~=row()~~ | + | | ~~=row()~~ |
- | | ~~=row()~~ | + | | ~~=row()~~ |
+ | === Weiterführende Workshops | ||
+ | [[WS2812: | ||
- | Install Raspberry Image | + | {{: |
+ | |||
+ | |||
+ | == Install Raspberry Image | ||
https:// | https:// | ||
Line 57: | Line 63: | ||
Download Image and copy to micro SD-Card. e.g. Use Disk Imager: https:// | Download Image and copy to micro SD-Card. e.g. Use Disk Imager: https:// | ||
- | Insert SD-Card and power the Raspberry Pi | + | **Insert SD-Card and power the Raspberry Pi** |
+ | **Unordered List Item Startup Raspberry** | ||
If you connect the Raspberry to the LAN it will get an IP-address automatically | If you connect the Raspberry to the LAN it will get an IP-address automatically | ||
- | Go to the router and check out the new IP-Address. | + | **Check IP address. |
- | Router: 192.168.1.1 | + | WLAN: NETGEAR |
+ | | ||
+ | User: admin | ||
+ | Password: password | ||
- | User: admin | + | http:// |
- | Password: password | + | {{:asm: |
- | http:// | + | {{:asm: |
- | Change the name of your Raspberry: http:// | ||
- | Connect to the raspberry | ||
- | (shell: e.g. via Putty: http:// | ||
- | (file transfer: e.g.WinSCP: https://winscp.net/eng/download.php ) | + | Change the name of your Raspberry: http://developpeers.com/blogs/change-the-hostname-of-your-raspberry-pi |
- | (Graphical desktop: e.g. TightVNC http:// | + | **Connect to the raspberry** |
- | User: pi | + | * shell: e.g. via Putty: http:// |
+ | * file transfer: e.g. WinSCP: https:// | ||
+ | * graphical desktop: e.g. TightVNC http:// | ||
- | Password: raspberry | ||
- | Download Fadecandy ressources: | + | User: pi |
+ | Password: raspberry | ||
+ | |||
+ | **Download Fadecandy ressources:** | ||
https:// | https:// | ||
- | cd /home/pi/ | + | |
Recent Raspbian versions have the git tool preinstalled, | Recent Raspbian versions have the git tool preinstalled, | ||
- | sudo apt-get -y install git | + | |
Then retrieve the Fadecandy software from Github: | Then retrieve the Fadecandy software from Github: | ||
- | git clone git:// | + | |
The package includes a pre-built executable for Raspberry Pi, but it’s built on an older version of Raspbian and won’t work on the current system. Not to worry, a new one can be compiled in just a few steps: | The package includes a pre-built executable for Raspberry Pi, but it’s built on an older version of Raspbian and won’t work on the current system. Not to worry, a new one can be compiled in just a few steps: | ||
- | cd fadecandy/ | + | |
- | + | make submodules | |
- | make submodules | + | make |
- | + | ||
- | make | + | |
This takes about 10 minutes to complete, depending on your internet connection. Once it’s finished, type: | This takes about 10 minutes to complete, depending on your internet connection. Once it’s finished, type: | ||
- | PlugIn FadeCandy | + | **PlugIn FadeCandy** |
+ | **Test if the server is working:** | ||
- | Test if the server is working: | + | |
- | + | ||
- | sudo ./fcserver | + | |
Expected output: | Expected output: | ||
- | [1462207979: | + | |
- | + | USB device Fadecandy (Serial# OWAWFXJJYCVPZLIJ, | |
- | USB device Fadecandy (Serial# OWAWFXJJYCVPZLIJ, | + | |
Open in the Browser: http:// | Open in the Browser: http:// | ||
- | Start the first simple program | + | **Start the first simple program** |
- | cd / | + | |
+ | python burnin.py | ||
+ | python chase.py | ||
+ | python solid-white.py | ||
+ | python strobe.py | ||
+ | python crosstalk-test.py | ||
- | python burnin.py | ||
- | python chase.py | + | **Install VNC server:** |
- | python solid-white.py | + | * http:// |
- | python strobe.py | + | **Expand file system:** |
- | python crosstalk-test.py | + | sudo raspi-config |
- | + | -> ' | |
- | + | sudo mv fcserver / | |
- | install VNC server: | + | |
- | + | ||
- | http:// | + | |
- | + | ||
- | Expand file system: | + | |
- | + | ||
- | Sudo raspi-config | + | |
- | + | ||
- | -> ' | + | |
- | + | ||
- | sudo mv fcserver / | + | |
To make the fcserver program start automatically when the system boots: | To make the fcserver program start automatically when the system boots: | ||
- | sudo nano / | + | |
- | + | ||
- | + | ||
- | JAVA | + | |
- | + | ||
- | sudo apt-get install openjdk-7-jdk | + | |
- | javac pathAndFilename.java | ||
- | java pathAndFilename | + | **JAVA** |
- | java -jar pathAndFilename.jar | + | sudo apt-get install openjdk-7-jdk |
+ | javac pathAndFilename.java | ||
+ | java pathAndFilename | ||
+ | | ||
+ | **ESP8266 Workshop** | ||
+ | http:// | ||