
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@7:bbd490bf8d43, 2016-02-22 (annotated)
- Committer:
- Ayrton_L
- Date:
- Mon Feb 22 19:14:41 2016 +0000
- Revision:
- 7:bbd490bf8d43
- Parent:
- 6:d48f410e7a2d
- Child:
- 8:b58bcb8d960b
First try sending DMX
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 | 4:cb44bb2eb2f2 | 4 | #include "mbed.h" |
Ayrton_L | 6:d48f410e7a2d | 5 | #include "stdint.h" |
Ayrton_L | 4:cb44bb2eb2f2 | 6 | |
Ayrton_L | 4:cb44bb2eb2f2 | 7 | #define DMX_channels 512 |
Ayrton_L | 4:cb44bb2eb2f2 | 8 | #define DMX_break 100 // 100us (88us -> 1s) |
Ayrton_L | 4:cb44bb2eb2f2 | 9 | #define DMX_mab 10 // 10us (8us -> 1s) mark after break |
Ayrton_L | 4:cb44bb2eb2f2 | 10 | #define DMX_tussentijd 10 // 10us (0us -> 1s) |
Ayrton_L | 4:cb44bb2eb2f2 | 11 | #define DMX_start 0 // DMX start code |
Ayrton_L | 6:d48f410e7a2d | 12 | #define DMX_baud 250000 |
Ayrton_L | 6:d48f410e7a2d | 13 | |
Ayrton_L | 4:cb44bb2eb2f2 | 14 | |
Ayrton_L | 4:cb44bb2eb2f2 | 15 | uint32_t I32_Initiate(); |
Ayrton_L | 7:bbd490bf8d43 | 16 | uint32_t I32_SendDMX(); |
Ayrton_L | 6:d48f410e7a2d | 17 | uint32_t I32_SendBreak(); |
Ayrton_L | 4:cb44bb2eb2f2 | 18 | |
Ayrton_L | 7:bbd490bf8d43 | 19 | void V_SendCharacter(); |
Ayrton_L | 7:bbd490bf8d43 | 20 | void V_SendMab(); |
Ayrton_L | 7:bbd490bf8d43 | 21 | |
Ayrton_L | 4:cb44bb2eb2f2 | 22 | uint8_t UNI1_values[DMX_channels]; |
Ayrton_L | 4:cb44bb2eb2f2 | 23 | |
Ayrton_L | 4:cb44bb2eb2f2 | 24 | |
Ayrton_L | 4:cb44bb2eb2f2 | 25 | Serial UNI1(p9, p10); // Eerste Universe op eerste UART |
Ayrton_L | 4:cb44bb2eb2f2 | 26 | |
Ayrton_L | 4:cb44bb2eb2f2 | 27 | |
Ayrton_L | 6:d48f410e7a2d | 28 | Timeout DMXTiming; |
Ayrton_L | 6:d48f410e7a2d | 29 | |
Ayrton_L | 7:bbd490bf8d43 | 30 | LPC_UART_TypeDef *_uart; |
Ayrton_L | 6:d48f410e7a2d | 31 | |
Ayrton_L | 4:cb44bb2eb2f2 | 32 | |
Ayrton_L | 4:cb44bb2eb2f2 | 33 | #endif |