
Artnet to DMX
Dependencies: mbed DMX TextLCD mbed-rtos
Art-NET to DMX converter.
Read Art-NET and process the data so it can be send by 3 XLR3 outputs for DMX. With a 4x20 display you can choose some options. For example what universe you would like on what output.
This is a project we make as our final project of our 2nd year of university. We study Electronics-ICT / Embedded ICT.
We chose for this amazing platform (MBED LPC1768) because it has al the interfaces and pins we need.
main.h@33:e0c7a6eeeedc, 2016-05-10 (annotated)
- Committer:
- Ayrton_L
- Date:
- Tue May 10 13:27:12 2016 +0000
- Revision:
- 33:e0c7a6eeeedc
- Parent:
- 30:51a4370a88bf
- Child:
- 34:fc85eeb84a93
Display right working
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Ayrton_L | 4:cb44bb2eb2f2 | 1 | #ifndef MAIN_H |
Ayrton_L | 4:cb44bb2eb2f2 | 2 | #define MAIN_H |
Ayrton_L | 4:cb44bb2eb2f2 | 3 | |
Ayrton_L | 15:b0efafcfbb03 | 4 | #define _CRT_SECURE_NO_WARNINGS |
Ayrton_L | 15:b0efafcfbb03 | 5 | |
Ayrton_L | 4:cb44bb2eb2f2 | 6 | #include "mbed.h" |
Ayrton_L | 28:4b327f1cb9cb | 7 | #include "rtos.h" |
Ayrton_L | 6:d48f410e7a2d | 8 | #include "stdint.h" |
Ayrton_L | 29:4a11f841dae1 | 9 | #include "string" |
Ayrton_L | 13:81243bd96dfb | 10 | |
Ayrton_L | 13:81243bd96dfb | 11 | #include "DMX.h" |
Ayrton_L | 28:4b327f1cb9cb | 12 | #include "Settings.h" |
Ayrton_L | 19:e8b826ab28a8 | 13 | #include "Screen.h" |
Ayrton_L | 10:33faa2c71dad | 14 | |
Ayrton_L | 30:51a4370a88bf | 15 | #define FIRMWARE "B-01-10" |
Ayrton_L | 30:51a4370a88bf | 16 | const string S_Menu[] {"Firmware", "Output 1", "Output 2", "Output 3", "IP", "Netmask", "Save"}; |
Ayrton_L | 29:4a11f841dae1 | 17 | |
Ayrton_L | 29:4a11f841dae1 | 18 | DMX XLR1(p9); |
Ayrton_L | 29:4a11f841dae1 | 19 | DMX XLR2(p13); |
Ayrton_L | 29:4a11f841dae1 | 20 | DMX XLR3(p28); |
Ayrton_L | 29:4a11f841dae1 | 21 | |
Ayrton_L | 29:4a11f841dae1 | 22 | Settings S; |
Ayrton_L | 29:4a11f841dae1 | 23 | Screen Sc; |
Ayrton_L | 29:4a11f841dae1 | 24 | |
Ayrton_L | 29:4a11f841dae1 | 25 | Ethernet eth; |
Ayrton_L | 29:4a11f841dae1 | 26 | |
Ayrton_L | 29:4a11f841dae1 | 27 | DigitalOut Error1(LED1); |
Ayrton_L | 29:4a11f841dae1 | 28 | DigitalOut Error2(LED2); |
Ayrton_L | 29:4a11f841dae1 | 29 | DigitalOut Error4(LED3); |
Ayrton_L | 29:4a11f841dae1 | 30 | DigitalOut Error8(LED4); |
Ayrton_L | 29:4a11f841dae1 | 31 | |
Ayrton_L | 29:4a11f841dae1 | 32 | InterruptIn PushButton(p5); |
Ayrton_L | 29:4a11f841dae1 | 33 | InterruptIn LeftTwist(p6); |
Ayrton_L | 29:4a11f841dae1 | 34 | InterruptIn RightTwist(p7); |
Ayrton_L | 29:4a11f841dae1 | 35 | |
Ayrton_L | 29:4a11f841dae1 | 36 | uint32_t I32_CheckHeader(char C_Header[7]); |
Ayrton_L | 29:4a11f841dae1 | 37 | |
Ayrton_L | 29:4a11f841dae1 | 38 | void V_InterruptMenu(); |
Ayrton_L | 29:4a11f841dae1 | 39 | void V_Right(); |
Ayrton_L | 29:4a11f841dae1 | 40 | void V_Left(); |
Ayrton_L | 29:4a11f841dae1 | 41 | void V_Reset(); |
Ayrton_L | 30:51a4370a88bf | 42 | void V_DisplayMenu(); |
Ayrton_L | 33:e0c7a6eeeedc | 43 | void V_WriteTxt(uint32_t I32_Kolom, uint32_t I32_Rij, char * C_Tekst); |
Ayrton_L | 33:e0c7a6eeeedc | 44 | uint32_t I32_GeneralTxt(); |
Ayrton_L | 13:81243bd96dfb | 45 | |
Ayrton_L | 8:b58bcb8d960b | 46 | #endif |
Ayrton_L | 8:b58bcb8d960b | 47 | |
Ayrton_L | 6:d48f410e7a2d | 48 | |
Ayrton_L | 4:cb44bb2eb2f2 | 49 | |
Ayrton_L | 4:cb44bb2eb2f2 | 50 |