loading
Hot Sale Products

two wire (dmx) interface with screen and buttons

by:Marslite     2019-09-15
DMX is a protocol for controlling stage lighting devices and special effects.
Each device has its own channel (s)
It responded to that.
The channel can be selected by the user via a DIP switch or a monitor with a button.
There are multiple ways to select an address, but the most common way is to use a DIP switch or a monitor with a button.
9 input pins are required when using the DIP switch (
Address 8, Mode 1).
By using the 7-segment display and some buttons, an option that looks better and gives you more choices.
This method is displayed using 12 pins, 4 pins for buttons, and you may need some status indicators as well.
This means that when using arduino Uno/mini or something like that, you have almost no pins left.
To solve this problem, I designed a module that uses a digital interface to control 4-bit 7-
Only 2 digital pins and 2 pins are used for 5 V and ground.
This module is also Digital in addition to saving the pins, which means you can tell it what to display and what the module will remember.
The module is also responsible for dimming the display.
Of course, this module can be used for everything you want and is not limited to use with DMX fixtures!
The main part of this module is the TM1637, which is the module that drives the LEDs.
With a micro-controller like Arduino, you can send bytes to tell which led to turn on.
The module can also dim the led through a PWM signal.
It is impossible to darken the LEDs alone.
All components are placed on a custom PCB, but you can also use a breadboard or a prototype board.
This is what you need if you want the product to be a picture: 1 x PCB using the interface module of this link you can get the first 10 pcb for free and support my new project. 1 x 0.
56 \"4 digits display (red)
Co-anode 12 pin x TM1637 DIP x pin head straight or 90 degrees (4 pins)
Led, red, orange and green x 3mm.
X tactile button 2 pin parts you need some common tools to assemble: this step includes the aegle file and the gerber file.
I ordered my pcb here: this link you can try the first design of 10 pcb for free, you also help me because when you order using this link, I will get a little discount.
The Gerber file was created by Safeway and the result was very good.
I ordered 10 pieces of blue and white text.
You can also weld all the parts to the prototype board instead of using the PCB.
If you have some welding skills, it\'s not hard at all to assemble this module.
If you haven\'t already, first Break 4 pins from the pinheader strip.
Next I weld them in place first because they fall off when they are upside down.
Next, I welded the LEDs, short leads (negative side)
On the right side, marked as, the new version of the PCB will have-sign.
After the LEDs, I welded 4 tactile buttons instead of the TM1637 chip.
Pin 1 is marked with a point in the upper left corner.
The last part of my weld is the display and the holes are very tight so it takes some time.
After all the parts were welded in place, I trimmed all the leads and checked for errors.
After the assembly is completed, it is time to test the module.
Connect 5 v to the micro controller 5 v and GND to GND.
The CLK and DIO pins can be defined in the software, but the default value is pin 2 for CLK and pin 3 for DIO.
Download the code and upload it to Arduino.
This code can also work on other microcontrollers but has not been tested yet.
The Arduino code is configured to update the screen and read the button every 200 MS
This allows the CPU to be used for other tasks.
Changing the address is done using the up and down buttons and the address will be automatically saved after 2 seconds.
The address is stored in the EEPROM and loaded into the settings.
The address is kept in the EEPROM even if the power is disconnected.
State LEDs can be controlled by sending bytes to modules of 8 LEDs.
Only 3 LEDs are connected on the PCB, but the code allows 8 LEDs.
The code will be improved in the future to make it easier to turn the led on and off.
Buttons are connected as keyboard matrix and up to 16 buttons can be used.
Multipress is not currently supported, but this may be added in the future if possible.
Currently, I am developing a library to make it easier to use this interface module, but it may take a while.
After I ordered and tested the PCB, I found some minor improvements, please leave in the comments if you have some improvements or errors.
Please explain as I like to learn how to improve my project!
At the moment, here is the improvement I am doing: I took part in the \"Make It Shine\" contest with this manual, I would like to vote for me if you like :)
Sometimes if you want a bare pcb I will sell them for 4 euros ,-a piece.
I also have some finished products that you can buy for 10 euros.
Freight charges are not included (
Ships from the Netherlands).
Send me a message if you want, I may have some people lying around!
Custom message
Chat Online 编辑模式下无法使用
Leave Your Message inputting...