Tag Archives: BlueTooth,LED tube light,GUI,DIY,GBK,android phone

How to design the DIY LED gramophone keeping cool and colorful childhood

For the how to use the mobile phone Bluetooth of the Android terminal to control the voice , first discover the Bluetooth devices, and connect it.

LED gramophone 5

Keep cool and colorful childhood DIY LED gramophone

LED gramophone 3

Enter what your said, click the “send” then voice module can make sound . We can also click on male or female to transform the tone of voice .

How to connect the Bluetooth

Here is the Bluetooth connection diagram, first through the GUI interface, click the Connect button to connect the button’s event through hitConnectButton () to issue the connect command , the command ACTION_CONNECT is sent to the back ground services which check the Address Format, and then through initBuletooth Device to call BlueTooth Library to initialize the Bluetooth connection. When the Bluetooth connection library is back,the Background Service started connecting thread and then turn on the Bluetooth connection socket, when returning socket,connection management start socket. Then Background Service return to the GUI commands ACTION_CONNECTED, indicating that the connection is successful. Meawhile through the update ButtonState () to update the screen display state.

LED gramophone 4

Keep cool and colorful childhood DIY LED gramophone

Data format generated code :

LED gramophone 6

The following is the structure of data frame the android phone sends to the sound module. The following code is such a data format how to use the android java code to generate. After debugging the sound module,the GBK encoding format is the data that is currently able to accept , so we used message.getBytes (“GBK”) to generate the encoding format. Msg_byte_len is the total length of the data frame , byteHead stands for the header , byteLen represents data area length , byteType is on behalf of the command word and command parameters , then these data combined in destArray is sent to the sound module , the voice is OK.

Little debugging, the phonograph is basically able to work. The most challenging for us is the third function – network message function , test was also successfully tested by using the API of the Webchat. When it is given to others as a gift, we can also access it in the later day , you mustn’t disappointed at the advertisement designed : each love deserves each gift, every gift should be continuously blessings.

There is no doubt that the LED lighting has been completely related  to  the design ,moreover is connecting to the  agriculture, medicine, aerospace technology and other industry to bring our unique visual experience and convenience.

Meanwhile,the LED flood lights and LED tube light are the most widely used as the representatives of the decorative lighting  and the home lighting in daily life,the LED tube light enjoys a great popularity in our corridor, restaurants, shopping, leisure and entertainment, galleries, exhibition halls and other indoor environments everywhere, the LED flood lights is mainly used in city squares, parks, stadiums, the facades of large commercial buildings and hotel, stage, waiting rooms, airports etc. where the higher brightness is needed to illuminate,meanwhile,there a large number of factory engaging in developing and producing the LED light,Lead Lighting is just one of them,which adopts high brightness SMD as the light source of the LED tube and highly integrated and high brightness COB as the light source of the LED flood lights so that fully guaranteed stable and soft light of the LED tube light and octahedron breadth and brightness irradiation range of the LED flood lights, while  low voltage constant current driver ensure the AC can be converted into the DC to improve energy efficiency of the LED tube light and LED flood light and reduce the waste heat energy and stroboscopic effect exciting the human eye, the most important is that the LED lighting without adding mercury and other heavy metals harmful to our body and pollution the environment, that’s why the LED light is Known as energy-saving and environmental protection. Browsing http://www.lead-lighting.com  to know more awesome LED tube lights and other LED lighting.

Article from http://www.lighting-ledlight.com/index.php/how-to-design-the-diy-led-gramophone-keeping-cool-and-colorful-childhood/