My project is a Bluetooth Speaker.
I do care about this idea because I love listening to music.
I was inspired by a device called "JBL Bluetooth Speaker GO 2 Portable", that does the same exact thing I want to do.
I started the process by doing low fidelity cardboard prototype in order to discover any mistakes and make sure that all dimensions are correct.
Then, I moved to Fusion 360 to design the enclosure.
I started to sketch the parts of the box on the x-y plane.
I followed simple techniques in my design like mirror and flit.
after sketching the parts I extuded them and assembled them in 3D.
I downloaded the components with an extension.Step to add holes foe my electronic components and followed the same process explained here.
Finally I added my components to the sketch and then did project.
I started to draw the parts of the enclosure box in an x-y plane.
Upload the LCD to fusion and make a project to draw the dimensions of the LCD
Upload the Speaker to fusion and make a project to draw the dimensions of the Speaker.
Upload the ARDUINO UNO to fusion to draw the holes of power on the back of Box.
After sketching and including the components parts I Extruded the parts with 3mm and collected the parts together.
The top view of the Box.
The shape of holes and cut in the front to put the components on it.
The shape of the components in the box.
The final shape of the Box.
I used the laser-cut machine to fabricate my design.
first, I saved the sketch of the Box as a DXF file.
Then, I opened this file on Rdwork.
Set speed to 25 and power to 65
After uploading the file to the machine and adding the wood sheet, I tracked the frame to make sure the wood sheet is in the right place then I pressed run.
My electronic circuit contains a mini mb3 module, two LEDs, four pushbuttons, an LCD, a Speaker, an on-off switch, and ARDUINO UNO
How the circuit work:
When the circuit starts the LCD will display "Bluetooth speaker ready" and when you press the pushbutton of play the songs will play and the green led will turn on and "Music play" will display on the LCD if you press to stop the songs will stop and red led will turn on and "Music Stop" will display on the LCD if press the next will move the next song and "Next" will display on the LCD if press previous will move to the previous song and "Previous" will display on the LCD and if press to temperature will display on the screen.
and we can control the circuit via the Bluetooth module:
When we press 1 --> the songs will play and the green led will turn on and "Music play" will display on the LCD.
and if the songs already play the songs will stop and red led will turn on and "Music Stop" will display on the LCD.
When we press 2--> the next song will play and "Next" will display on the LCD.
When we press 3--> the previous song will play and "previous" will display on the LCD.
When we press 4--> the temperature will display on the screen.
When we press 5--> the volume will decrease.
When we press 5--> the volume will increase.
The input components:
LM35: to sense the temperature.
pushbuttons: to control the status of songs.
The output components:
LCD16*2: display the status of songs and the temperature.
Speaker: to hear the songs.
LEDs
Other components:
Arduino Uno Board: for controlling the electronic circuit.
Breadboard: to connect the GND and VCC and other components.
9 v adapter.
Wiring of the Bluetooth module, LEDs,LM35 and switched
Wiring of Minin MB3 Player
Wiring of I2C Liquid crystal Display
I used the 9V adapter for powering the ARDUINO.
Then used the 5v power from the Arduino to power all components.
At first, I included some libraries needed to run the LCD and mb3 module and I have defined some variables for LEDs and the pushbuttons and variables for the incomingData to receive the data from the user.
I connected the mb3 module to pin (10,11) // RX,TX
In the void setup, I defined the temp variable,buttonPause,buttonNext,buttonPrevious as INPUT
and made all of the HIGH.
Second, I enabled the Serial. begin for Bluetooth and give it a baud rate(9600) and enabled the serial monitor and give it a baud rate(38400).
Then, I added some syntax to know the user if the mb3 is run successfully or not.
and finally, I set the volume to 20 .
In the void loop, I created a variable that receives data from the user and store it.
If the user presses the buttonpause or input '1' from mobile
do the following :
1-if the music is play stop it and vice versa.
2-if the music play the LCD will display "music play" and the green led will be HIGH.
3-if the music stopped the LCD will display "music Stop.." and the green led will be LOW.
If the user presses the buttonNext or input '2' from mobile
do the following :
1-the next song will start.
2-the redled will be HIGH for 1000ms the the greenlen will be HIGH.
If the user presses the buttonprevious or input '3' from mobile
do the following:
1-the previous song will start.
2-the redled will be HIGH for 1000ms the the greenlen will be HIGH.
If the user presses the temp or input '4' from mobile
do the following :
1-execute the funcyion temperature()
If the user input '5' from mobile the volume will decrease.
If the user input '6' from mobile the volume will increase.
First, I assembled the parts of the enclosure with screws and nuts and assembled the electronic components inside it, and connected the wires.
This message from Abdalrahman helped me in the design.
I had a problem with the pushbotton when I press it turns on and off more than once So I googled and I knew that this problem is called Bouncing and it can be solved by adding delay.
The link to the Book :
I would add some features like setting an alarm and adding an amplifier to amplify the sound of the speaker and finally do better design.