21
1 Multitasking in Embedded Systems Dipl. Informatiker Gregor Rebel Lehrveranstaltung Multitasking in Embedded Systems 1 SWS Vorlesung (nach Vereinbarung) Verteiltes Versionskontrollsystem Softwareentwicklung unter Linux OS Einsatz Multitasking OS in Mikrokontrollern Vergleich OS vs Scheduler 3 SWS Praktikum drei Projekte zur Auswahl Tricopter, Flugsimulator, Ethernet Soundkarte Praktische Umsetzung der Theorie

Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

Embed Size (px)

Citation preview

Page 1: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

1 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

Lehrveranstaltung

Multitasking in Embedded Systems

• 1 SWS Vorlesung (nach Vereinbarung)

– Verteiltes Versionskontrollsystem

– Softwareentwicklung unter Linux OS

– Einsatz Multitasking OS in Mikrokontrollern

– Vergleich OS vs Scheduler

• 3 SWS Praktikum

– drei Projekte zur AuswahlTricopter, Flugsimulator, Ethernet Soundkarte

– Praktische Umsetzung der Theorie

Page 2: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

2 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

Projekt Tricopter

Page 3: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

3 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

Projekt Tricopter

Page 4: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

4 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

Projekt Tricopter

Page 5: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

5 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

Tricopter - Inhalte

● Mikrocontroller Programmierung STM32 (C)● GUI Programmierung Qt Framework (C++)● Platinenlayout (KiCAD)● Aufbau und Inbetriebnahme Elektronik

Page 6: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

6 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

Tricopter - Werkzeuge

● Multitasking in Eingebetteten Systemen● Softwareentwicklung unter Linux OS ● Einsatz verteiltes Versionskontrollsystem● Platinenlayout● Aufbau und Inbetriebnahme Elektronik

Page 7: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

7 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

Tricopter - Aufgaben● Zusammenführung Softwaremodule

● Flugleitsystem● Sensoren● Funkstrecke● Motorcontroller

● Aufbau und Inbetriebnahme der Elektronik● Hauptplatine● Funkmodul● Sensorplatine● Motorcontroller

Page 8: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

8 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

Projekt FlugSimulator

Page 9: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

9 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

FluSi – Aufbau im Labor

Page 10: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

10 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

FluSi – Stand der Dinge

• Ein Flugsimulator im Labor aufgebaut

• Drei Simulatoren eingelagert

• Leistungselektronik im Aufbau

• Was noch fehlt– Steuerelektronik– Leitsoftware– 3D Simulator

Page 11: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

11 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

FluSi - Aufgaben

• Steuerinterface– existierendes Prototypenboard (STM32)

– zwischen Leistungselektronik und Ethernet

– bietet Kommandos zur Motorsteuerung

• Leitrechner– Sendet Befehle an Steuerinterface

– empfängt aktuelle Gelenkwinkel von Steuerinterface

– grafische 3D-Darstellung

– empfängt 3D-Lage von extern

Page 12: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

12 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

Projekt Ethernet Soundkarte

Page 13: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

13 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

EthSnd – Hardware

• Erster Prototyp existiert– empfängt rohe Audiodaten per Ethernet

– spielt 1 Kanal Audio über Lautsprecher– 32 Bit Microcontroller STM32– 100 MBit/s Ethernetcontroller– Hardware & Firmware komplett dokumentiert

Page 14: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

14 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

EthSound - Kerneltreiber

• Linux Kerneltreiber– meldet Soundkarte an

– leitet Audiodaten an externe IP-Adresse

• Erweiterungsmöglichkeiten– Mehr Audio-Kanäle– Unterstützung mehrerer Soundkarten– Audio Mischer

Page 15: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

15 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

EthSnd - Aufgaben

• Entwicklung verbesserter Elektronik– HiFi Soundchip anstatt Mikrocontroller PWM

– volle 16 Bit Auflösung bis 96 kHz– bis zu acht Kanäle– bis zu 75W pro Kanal

Page 16: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

16 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

EthSnd - Aufgaben

• Erweiterung der Soundkarten Firmware– UPnP Unterstützung

• Soundkarte kann von verschiedenen Geräten zur Audioausgabe benutzt werden(PC, Netbook, Smartphone, Spielekonsole)

• Verwendung standardisierter Protokolle (IP, UDP, TCP, HTTP, …)

Page 17: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

17 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

Materialien

• 8 Channel Digital Audio PWM Processorhttp://www.ti.com/product/tas5508b

• 70-W Mono Digital Amplifier Power Stage http://www.ti.com/product/tas5111a

Page 18: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

18 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

Optionen

• 1-Platinen Aufbau– Mikroprozessor + Endstufen auf einem PCB

– Vorteile• nur 1 Platine• nur 1 DC-DC Wandler für Endstufen

– Nachteile• große Hauptplatine

• nicht flexibel• Leistungs PWM über lange Kabel

Page 19: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

19 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

Optionen

• Mehrplatinen Aufbau– Jede Endstufe mit DC-DC auf eigenem PCB

– Erhält Signal-PWM von Hauptplatine– Vorteile

• flexibel erweiterbar (1-8 Kanäle)

• keine Leistungs-PWM auf langen Kabeln

– Nachteile• ein DC-DC Wander pro Endstufe

Page 20: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

20 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

Optionen

• Funkmodul

– EM351/ STM32W 2,4GHzhttp://www.st.com/internet/mcu/product/245381.jsp

– Datenübertragung Desktop PC ↔ Mikrocontroller

– kompatibel zu Tricopter Funkmodul

Page 21: Multitasking in Embedded Systems • 1 SWS Vorlesung ...hlb-labor.de/lehre/Vorstellung Wahlmodul Multitasking in...• 8 Channel Digital Audio PWM Processor • 70-W Mono Digital Amplifier

21 Multitasking in Embedded SystemsDipl. Informatiker Gregor Rebel

Multitasking in Embedded Systems

Fragen?

http://hlb-labor.de/lehre

(ab Mittwoch)