Artnet to DMX

Dependencies:   mbed DMX TextLCD mbed-rtos

/media/uploads/Ayrton_L/dmx.png

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.

Committer:
Ayrton_L
Date:
Mon May 23 14:26:36 2016 +0000
Revision:
35:23656910be93
Parent:
34:fc85eeb84a93
Child:
36:dba7a0094213
latest stable

Who changed what in which revision?

UserRevisionLine numberNew 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 35:23656910be93 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 35:23656910be93 16 const string S_Menu[] {"Firmware", "Output 1", "Output 2", "Output 3", "Save"};
Ayrton_L 29:4a11f841dae1 17
Ayrton_L 35:23656910be93 18 DMX XLR1(p9, p10);
Ayrton_L 35:23656910be93 19 DMX XLR2(p13, p14);
Ayrton_L 35:23656910be93 20 DMX XLR3(p28, p27);
Ayrton_L 29:4a11f841dae1 21
Ayrton_L 29:4a11f841dae1 22 Settings S;
Ayrton_L 29:4a11f841dae1 23 Screen Sc;
Ayrton_L 29:4a11f841dae1 24 Ethernet eth;
Ayrton_L 29:4a11f841dae1 25
Ayrton_L 29:4a11f841dae1 26 DigitalOut Error1(LED1);
Ayrton_L 29:4a11f841dae1 27 DigitalOut Error2(LED2);
Ayrton_L 29:4a11f841dae1 28 DigitalOut Error4(LED3);
Ayrton_L 29:4a11f841dae1 29 DigitalOut Error8(LED4);
Ayrton_L 29:4a11f841dae1 30
Ayrton_L 35:23656910be93 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 34:fc85eeb84a93 36 Timeout EnableRotary;
Ayrton_L 34:fc85eeb84a93 37
Ayrton_L 29:4a11f841dae1 38 uint32_t I32_CheckHeader(char C_Header[7]);
Ayrton_L 29:4a11f841dae1 39
Ayrton_L 29:4a11f841dae1 40 void V_InterruptMenu();
Ayrton_L 29:4a11f841dae1 41 void V_Right();
Ayrton_L 29:4a11f841dae1 42 void V_Left();
Ayrton_L 29:4a11f841dae1 43 void V_Reset();
Ayrton_L 30:51a4370a88bf 44 void V_DisplayMenu();
Ayrton_L 34:fc85eeb84a93 45 void V_DisableRotary();
Ayrton_L 34:fc85eeb84a93 46
Ayrton_L 33:e0c7a6eeeedc 47 void V_WriteTxt(uint32_t I32_Kolom, uint32_t I32_Rij, char * C_Tekst);
Ayrton_L 33:e0c7a6eeeedc 48 uint32_t I32_GeneralTxt();
Ayrton_L 13:81243bd96dfb 49
Ayrton_L 35:23656910be93 50 void V_SEND();
Ayrton_L 35:23656910be93 51
Ayrton_L 8:b58bcb8d960b 52 #endif
Ayrton_L 8:b58bcb8d960b 53
Ayrton_L 6:d48f410e7a2d 54
Ayrton_L 4:cb44bb2eb2f2 55
Ayrton_L 4:cb44bb2eb2f2 56