More rambling about speakers
@@ -109,15 +109,57 @@ So I added a 10 μF capacitor at the VDD. So my circuit now looks like this.
|
||||

|
||||
|
||||

|
||||
|
||||
I still need to make sure there isn't too much power going to the pcb. According to these graphs if you change the input power you can make sure it doesn't output too much. So according to the graph I need 2 volt Supply voltage. Because my speaker has a 8 Ohm impedance and the rated watt is 0,25 mW.
|
||||
|
||||

|
||||
|
||||
```math
|
||||
R = V * I
|
||||
```
|
||||
|
||||
After a while of struggling with all the connections I asked Henk and he said I was thinking too complicated. I don't need a amplifier at all
|
||||
After a while of struggling with all the connections I asked Henk and he said I was thinking too complicated. I don't need a amplifier at all I just need to send signals through the speaker using the MCU like this.
|
||||
|
||||

|
||||
|
||||
Because the speaker is such low wattage it can easily be driven by the mcu. Then after it's connected you can use the buzzer music library to play notes on the speaker. Or if I wanna go more advanced I can send wav files to the mcu to play on the speaker.
|
||||
|
||||
|
||||
#### Connecting a button
|
||||
I'm going to connect a button directly to the MCU to use as a input button. For this I will need a pulldown Resistor. I followed [this youtube guide](https://www.youtube.com/watch?v=aPVMKyZpaPA) to connect the button.
|
||||
|
||||

|
||||
Now its connected like this as a pulldown resistor as described in the tutorial. I also swapped out all the resistors from the basic symbol library to the Fab symbol library because they have a pre-assigned footprint.
|
||||
|
||||
#### Layout and making traces
|
||||
Now I can finally make the layout of the board and draw traces. Now im in the PCB editor and I can press this button to import everything from the schematic.
|
||||
|
||||

|
||||
|
||||
|
||||

|
||||
|
||||
This is how it looked when I imported it. Now I will organize everything and everything that belongs together will go near each other.
|
||||
|
||||

|
||||
|
||||
In the drawing I'm having a problem that the 3v3 isn't properly defined on the XIAO board. I can't power anything on the pcb from it.
|
||||
|
||||

|
||||
|
||||
I may have forgotten to add the 3v3 tag to the xiao board so that's why it didn't draw the small lines to it.
|
||||
|
||||
I first started out with placing all components that belong together next to each other.
|
||||
|
||||

|
||||
|
||||
Then I started drawing traces.
|
||||
|
||||

|
||||
|
||||
It could be prettier if I used 2 layered board. I learned using the KiCad manual when drawing traces if you press `V` you can add a via on the trace to make it go under other traces.
|
||||
|
||||

|
||||
|
||||
Like this!
|
||||
The blue trace is going under the red one using a via.
|
||||
## Sources
|
||||
* [Datasheet LM4871M](https://www.ti.com/lit/ds/symlink/lm4871.pdf?HQS=dis-dk-null-digikeymode-dsf-pf-null-wwe&ts=1741005529535&ref_url=https%253A%252F%252Fwww.ti.com%252Fgeneral%252Fdocs%252Fsuppproductinfo.tsp%253FdistId%253D10%2526gotoUrl%253Dhttps%253A%252F%252Fwww.ti.com%252Flit%252Fgpn%252Flm4871)
|
||||
* [Datasheet LM4871M](https://www.ti.com/lit/ds/symlink/lm4871.pdf?HQS=dis-dk-null-digikeymode-dsf-pf-null-wwe&ts=1741005529535&ref_url=https%253A%252F%252Fwww.ti.com%252Fgeneral%252Fdocs%252Fsuppproductinfo.tsp%253FdistId%253D10%2526gotoUrl%253Dhttps%253A%252F%252Fwww.ti.com%252Flit%252Fgpn%252Flm4871)
|
||||
* [Arduino speaker](https://www.build-electronic-circuits.com/arduino-speaker/)
|
BIN
docs/Assignments/week_6_electronic_design/image-29.jpg
Normal file
After Width: | Height: | Size: 74 KiB |
BIN
docs/Assignments/week_6_electronic_design/image-30.jpg
Normal file
After Width: | Height: | Size: 174 KiB |
BIN
docs/Assignments/week_6_electronic_design/image-31.jpg
Normal file
After Width: | Height: | Size: 296 KiB |
BIN
docs/Assignments/week_6_electronic_design/image-32.jpg
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
docs/Assignments/week_6_electronic_design/image-33.jpg
Normal file
After Width: | Height: | Size: 345 KiB |
BIN
docs/Assignments/week_6_electronic_design/image-34.jpg
Normal file
After Width: | Height: | Size: 100 KiB |
BIN
docs/Assignments/week_6_electronic_design/image-35.jpg
Normal file
After Width: | Height: | Size: 314 KiB |
BIN
docs/Assignments/week_6_electronic_design/image-36.jpg
Normal file
After Width: | Height: | Size: 320 KiB |
BIN
docs/Assignments/week_6_electronic_design/image-37.jpg
Normal file
After Width: | Height: | Size: 415 KiB |