Skip to content

altaga/MOSMusic-MM-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MOSMusic(MM)

Portable lighting station synchronized with music.

Always use technology to improve the world, if you are a black hat or gray hat hacker please abstain at this point ......... or at least leave your star to make me feel less guilty XP.

Table of contents

Introduction:

Nowadays for an organizer or independent musician, events, reunions and parties may not follow the traditional way of arriving, playing and leaving. Fans today require a higher level of entertainment, which led to organizers having to buy expensive lighting and sound control systems to achieve the level needed for the fans' show.

This type of lighting systems have a complex and expensive system of controls to handle each of the lights, most of the time it is necessary to set up a light show beforehand for each of the songs, increasing even more the costs.

Here are some similar products in the market, which are of very low quality:

None of the products available in the market sell for less than 40 dollars. They only allows the control of low power elements such as LED's, but if we really want to control high power elements we need a circuit that is capable of it without risking the controller, in this case an Arduino.

Materials:

  • Cable x 2 Meters.
  • IPT60R028G7 (600VCoolMOS) x 4.
  • MOC3021 (Optoisolator Triac Driver) x 4.
  • 2N6073AG (Triac) x 4.
  • 1uF Cap x 4.
  • 220 Ω x 4.
  • 100 kΩ x 4.
  • 10 kΩ x 4.
  • 330 Ω x 4.
  • Lightbulb socket x 4.
  • Lightbulb x 4.
  • Plug x 1.
  • Protoboard. x 1.
  • Dupont Cable or Jumpers To Many.
  • Arduino Board. x 1.
  • 12 Volts Source (For Arduino). x 1.
  • Sound Detection Sensor Module Sensor x 1.

Optional to make the PCB:

  • Soldering Station.
  • Wire Wrap Cable.
  • Soldering Iron.
  • Copper Clad Plate
  • Ferric Chloride
  • Sharpie Pen.
  • Alligator Cable x 4.

The Circuit:

The purpose of the circuit is to switch from a digital signal of 0-5 V DC to a control signal of 120 V AC.

In the first stage of the circuit we have an Infineon 600VCoolMOS C7 MOSFET, which will allow us to control the optocoupler demanding the minimum current to the Arduino board, because the optocoupler requires at least 5 volts at 36mA to be able to drive. This is very close to the limit of the current that the Arduino board can supply, however the 600VCoolMOS only requires a signal of 5 volts at 60uA, thus showing an excessive improvement in the consumption that it requires from the board.

This consumption is extremely important because it gives us the possibility of being able to literally use any controller to perform this task due to its low consumption, thus not requiring more expensive drivers that can supply said power in their ports.

The MOSFET's operation is to ground the optocoupler diode, once this is activated it allows the flow of energy through the DIAC and this in turn allows the passage of current in the TRIAC connected to the lamp and igniting it in the process.

The other great advantage of using the MOSFET is the ease of increasing the number of drivers as in image 1 or using more powerful drivers as in image 2 without changing the design of the main circuit.

Different results in different boards:

Comparison Voltage [V] Current [mA] Max Current I/O Pins [mA] Board Risk
Without MOSFET 600VCoolMOS 5.0 15.0 40.0 Arduino UNO LOW
With MOSFET 600VCoolMOS 5.0 0.06 40.0 Arduino UNO NOTHING
Without MOSFET 600VCoolMOS 3.3 15.0 10.0 ESP32 EXTREMELY
With MOSFET 600VCoolMOS 3.3 0.04 10.0 ESP32 NOTHING
Without MOSFET 600VCoolMOS 3.3 15.0 12.0 ESP8266 HIGH
With MOSFET 600VCoolMOS 3.3 0.04 12.0 ESP8266 NOTHING

Another solution to this project would have been to use relays, which have the function of performing this same task but mechanically, by generating a "Click" on each switch. The problem with this type of component is that if we use dimerizable lights or the switching frequency was larger, the relay could not perform this task, which the mosfet, optocoupler and triac can easily do.

The PCB:

For this project it is possible to make individual modules to be able to expand the number of bulbs or high voltage devices connected to the Arduino or to any other board.

You can also make a complete module for 4 AC outputs this in order to integrate the entire system on one PCB, both files are in the "PBC Files" folder in the Github.

Development:

To develop this circuit, we first tested each of the stages were carried out to demonstrate its effectiveness, the first circuit to be tested was the control of the bulbs by means of a button and safety gloves due to high voltage. (Please if you are to replicate the experiment use any safety measures possible, playing with live current is not wise).

Test Circuit #1

For the second circuit since the Lamp control works well, a platform with LEDs was made to see how the Arduino controlled the lights to the rhythm of the music, the code is in the "Arduino Code" folder, the code is thoroughly commented.

Test Circuit #2

Once we saw that the lights control worked, we connected all the components of the whole circuit in a protoboard, to control the 4 lights and connected it to the Arduino.

Test Circuit #3

As you can see this was done in steps to manage safety, I repeat it is dangerous managing live 120V AC power so take any precautions into consideration.

The Final Product:

With the circuit running, we decided to make control modules like the one shown in the image to not depend on any cable failing in the breadboard.

The board was made based on the one that is in the folder "PCB Files" however since we did not have transfer paper we had to make the vias with a sharpie. It is a permanenr marker so when you dip the plate in ferric chloride it survives, this process is the classic one for making homemade PCBs. You can get to know more about this process in the following link:

https://www.hackster.io/Junezriyaz/how-to-make-pcb-using-marker-531087

After making three aditional PCB's, we decided to put the entire circuit in a box, covering it and with 4 identical lamps so that this was a more aesthetic product and easy to transport.

And we are done! With this we have finished the light synchronization system for electrical elements (120 or 220 volts).

Video: Click on the image MOSMusic - The Gray Hat - Arduino Music

Sorry github does not allow embed videos.

Comments:

This project was carried out in order to demonstrate that the control of lights through microcontrollers can be efficient and cheap, since current systems at a much lower quality are sold at excessive prices and therefore not available to all.

And to showcase a creative and seldom seen approach to use the CoolMOS C7 MOSFETs provided by Infineon

References:

All the information about the technology used, and direct references are in our wiki:

Wiki: https://github.com/altaga/MOSMusic-MM-/wiki

Top:

About

Portable lighting station synchronized with music.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages