diff --git a/docs/Assignments/week_6_electronic_design/electronic_design.md b/docs/Assignments/week_6_electronic_design/electronic_design.md index 140a797..029d01d 100644 --- a/docs/Assignments/week_6_electronic_design/electronic_design.md +++ b/docs/Assignments/week_6_electronic_design/electronic_design.md @@ -109,15 +109,57 @@ So I added a 10 μF capacitor at the VDD. So my circuit now looks like this. ![alt text](image-26.jpg) ![alt text](image-27.jpg) + 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. + ![alt text](image-28.jpg) -```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. + +![alt text](image-29.jpg) + +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. + +![alt text](image-30.jpg) +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. + + ![alt text](image-31.jpg) + + +![alt text](image-32.jpg) + +This is how it looked when I imported it. Now I will organize everything and everything that belongs together will go near each other. + +![alt text](image-33.jpg) + +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. + +![alt text](image-34.jpg) + +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. + +![alt text](image-35.jpg) + +Then I started drawing traces. + +![alt text](image-36.jpg) + +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. + +![alt text](image-37.jpg) + +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) \ No newline at end of file +* [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/) \ No newline at end of file diff --git a/docs/Assignments/week_6_electronic_design/image-29.jpg b/docs/Assignments/week_6_electronic_design/image-29.jpg new file mode 100644 index 0000000..cc0d6b8 Binary files /dev/null and b/docs/Assignments/week_6_electronic_design/image-29.jpg differ diff --git a/docs/Assignments/week_6_electronic_design/image-30.jpg b/docs/Assignments/week_6_electronic_design/image-30.jpg new file mode 100644 index 0000000..1fd7e9e Binary files /dev/null and b/docs/Assignments/week_6_electronic_design/image-30.jpg differ diff --git a/docs/Assignments/week_6_electronic_design/image-31.jpg b/docs/Assignments/week_6_electronic_design/image-31.jpg new file mode 100644 index 0000000..a29a248 Binary files /dev/null and b/docs/Assignments/week_6_electronic_design/image-31.jpg differ diff --git a/docs/Assignments/week_6_electronic_design/image-32.jpg b/docs/Assignments/week_6_electronic_design/image-32.jpg new file mode 100644 index 0000000..1831319 Binary files /dev/null and b/docs/Assignments/week_6_electronic_design/image-32.jpg differ diff --git a/docs/Assignments/week_6_electronic_design/image-33.jpg b/docs/Assignments/week_6_electronic_design/image-33.jpg new file mode 100644 index 0000000..9c144f4 Binary files /dev/null and b/docs/Assignments/week_6_electronic_design/image-33.jpg differ diff --git a/docs/Assignments/week_6_electronic_design/image-34.jpg b/docs/Assignments/week_6_electronic_design/image-34.jpg new file mode 100644 index 0000000..d81dc09 Binary files /dev/null and b/docs/Assignments/week_6_electronic_design/image-34.jpg differ diff --git a/docs/Assignments/week_6_electronic_design/image-35.jpg b/docs/Assignments/week_6_electronic_design/image-35.jpg new file mode 100644 index 0000000..59de947 Binary files /dev/null and b/docs/Assignments/week_6_electronic_design/image-35.jpg differ diff --git a/docs/Assignments/week_6_electronic_design/image-36.jpg b/docs/Assignments/week_6_electronic_design/image-36.jpg new file mode 100644 index 0000000..026a709 Binary files /dev/null and b/docs/Assignments/week_6_electronic_design/image-36.jpg differ diff --git a/docs/Assignments/week_6_electronic_design/image-37.jpg b/docs/Assignments/week_6_electronic_design/image-37.jpg new file mode 100644 index 0000000..7169d27 Binary files /dev/null and b/docs/Assignments/week_6_electronic_design/image-37.jpg differ