From f07c5a7a4a83de1d2ebc2a0e0a97f26a2dfab056 Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Mon, 19 May 2025 16:45:05 -0700 Subject: [PATCH 01/22] Create temp.md --- content/tutorials/temp.md | 107 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 content/tutorials/temp.md diff --git a/content/tutorials/temp.md b/content/tutorials/temp.md new file mode 100644 index 00000000..298d19c3 --- /dev/null +++ b/content/tutorials/temp.md @@ -0,0 +1,107 @@ +--- +title: My Super Awesome Tutorial +date: 1970-01-01 +authors: + - name: John Doe + - name: Mary Jane +--- + +![relevant graphic or workshop logo](image/path) + +## Introduction + +Write a short section on what the tutorial is aiming to accomplish. +What is the motivation behind the tutorial? +What do you want readers to gain from the tutorial? + +### Learning Objectives + +- Bullet list of skills/concepts to be covered + +Any additional notes from the developers can be included here. + +### Background Information + +Describe your topic here. What does it do? Why do you use it? +Are there other similar things to use? What are the pros and cons? +Explain important concepts that are necessary to understand. +Include (and cite if needed) any visuals that will help the audience understand. + +## Getting Started + +For any software prerequisites, write a simple excerpt on each +technology the participant will be expecting to download and install. +Aim to demystify the technologies being used and explain any design +decisions that were taken. Walk through the installation processes +in detail. Be aware of any operating system differences. +For hardware prerequisites, list all the necessary components that +the participant will receive. A table showing component names and +quantities should suffice. Link any reference sheets or guides that +the participant may need. +The following are stylistic examples of possible prerequisites, +customize these for each workshop. + +### Required Downloads and Installations + +List any required downloads and installations here. +Make sure to include tutorials on how to install them. +You can either make your own tutorials or include a link to them. + +### Required Components + +List your required hardware components and the quantities here. + +| Component Name | Quanitity | +| -------------- | --------- | +| | | +| | | + +### Required Tools and Equipment + +List any tools and equipment you need here. +(Ex, computer, soldering station, etc.) + +## Part 01: Name + +### Introduction + +Briefly introduce what you are teaching in this section. + +### Objective + +- List the learning objectives of this section + +### Background Information + +Give a brief explanation of the technical skills learned/needed +in this challenge. There is no need to go into detail as a +separation document should be prepared to explain more in depth +about the technical skills + +### Components + +- List the components needed in this challenge + +### Instructional + +Teach the contents of this section + +## Example + +### Introduction + +Introduce the example that you are showing here. + +### Example + +Present the example here. Include visuals to help better understanding + +### Analysis + +Explain how the example used your tutorial topic. Give in-depth analysis of each part and show your understanding of the tutorial topic + +## Additional Resources + +### Useful links + +List any sources you used, documentation, helpful examples, similar projects etc. From ec8cc8b47b8500c3fb0a1737904308707beb9ded Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Mon, 19 May 2025 17:01:03 -0700 Subject: [PATCH 02/22] Update temp.md --- content/tutorials/temp.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/content/tutorials/temp.md b/content/tutorials/temp.md index 298d19c3..973e8d70 100644 --- a/content/tutorials/temp.md +++ b/content/tutorials/temp.md @@ -1,9 +1,8 @@ --- -title: My Super Awesome Tutorial -date: 1970-01-01 -authors: - - name: John Doe - - name: Mary Jane +title: Buzzing the ESP32 +date: 5-19-2025 +author: + - name: Philip Du --- ![relevant graphic or workshop logo](image/path) From 4f17b417608750b043ddd91997b15d89eeac1e70 Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Mon, 19 May 2025 18:25:31 -0700 Subject: [PATCH 03/22] Rename temp.md to esp32buzzer.md --- content/tutorials/{temp.md => esp32buzzer.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename content/tutorials/{temp.md => esp32buzzer.md} (100%) diff --git a/content/tutorials/temp.md b/content/tutorials/esp32buzzer.md similarity index 100% rename from content/tutorials/temp.md rename to content/tutorials/esp32buzzer.md From 140b2a1b0d6d4c575013b40a0ce0102b9551f73e Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Mon, 19 May 2025 18:29:29 -0700 Subject: [PATCH 04/22] Update esp32buzzer.md --- content/tutorials/esp32buzzer.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/tutorials/esp32buzzer.md b/content/tutorials/esp32buzzer.md index 973e8d70..8544b158 100644 --- a/content/tutorials/esp32buzzer.md +++ b/content/tutorials/esp32buzzer.md @@ -5,7 +5,8 @@ author: - name: Philip Du --- -![relevant graphic or workshop logo](image/path) +![relevant graphic or workshop logo](![image](https://github.com/user-attachments/assets/cd3e9bc2-550a-4a0e-8cba-34842d4a37eb) +) ## Introduction From 9b43e30dd5d3ed86ea712841893418422c89004f Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Mon, 19 May 2025 18:30:20 -0700 Subject: [PATCH 05/22] Update esp32buzzer.md --- content/tutorials/esp32buzzer.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/content/tutorials/esp32buzzer.md b/content/tutorials/esp32buzzer.md index 8544b158..b6edc59f 100644 --- a/content/tutorials/esp32buzzer.md +++ b/content/tutorials/esp32buzzer.md @@ -5,8 +5,7 @@ author: - name: Philip Du --- -![relevant graphic or workshop logo](![image](https://github.com/user-attachments/assets/cd3e9bc2-550a-4a0e-8cba-34842d4a37eb) -) +![relevant graphic or workshop logo](![image](https://github.com/user-attachments/assets/cd3e9bc2-550a-4a0e-8cba-34842d4a37eb)) ## Introduction From 3473292faf96c27431f5849e8b4fad1a8deb750f Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Mon, 19 May 2025 18:30:35 -0700 Subject: [PATCH 06/22] Update esp32buzzer.md --- content/tutorials/esp32buzzer.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/tutorials/esp32buzzer.md b/content/tutorials/esp32buzzer.md index b6edc59f..be56e88c 100644 --- a/content/tutorials/esp32buzzer.md +++ b/content/tutorials/esp32buzzer.md @@ -5,7 +5,8 @@ author: - name: Philip Du --- -![relevant graphic or workshop logo](![image](https://github.com/user-attachments/assets/cd3e9bc2-550a-4a0e-8cba-34842d4a37eb)) +(![image](https://github.com/user-attachments/assets/cd3e9bc2-550a-4a0e-8cba-34842d4a37eb)) +![image](https://github.com/user-attachments/assets/13d23b5b-b454-464e-87b9-9fd69a78737d) ## Introduction From 301b5e87b52cd76e4fff53f3ed194e7d57cbd161 Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Mon, 19 May 2025 18:30:43 -0700 Subject: [PATCH 07/22] Update esp32buzzer.md --- content/tutorials/esp32buzzer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/tutorials/esp32buzzer.md b/content/tutorials/esp32buzzer.md index be56e88c..8b30ae0b 100644 --- a/content/tutorials/esp32buzzer.md +++ b/content/tutorials/esp32buzzer.md @@ -6,7 +6,7 @@ author: --- (![image](https://github.com/user-attachments/assets/cd3e9bc2-550a-4a0e-8cba-34842d4a37eb)) -![image](https://github.com/user-attachments/assets/13d23b5b-b454-464e-87b9-9fd69a78737d) + ## Introduction From 364ba1a3db14f767333123af28fb9bd8843fa640 Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Mon, 19 May 2025 21:53:32 -0700 Subject: [PATCH 08/22] Update esp32buzzer.md --- content/tutorials/esp32buzzer.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/content/tutorials/esp32buzzer.md b/content/tutorials/esp32buzzer.md index 8b30ae0b..c208f66a 100644 --- a/content/tutorials/esp32buzzer.md +++ b/content/tutorials/esp32buzzer.md @@ -43,10 +43,7 @@ customize these for each workshop. ### Required Downloads and Installations -List any required downloads and installations here. -Make sure to include tutorials on how to install them. -You can either make your own tutorials or include a link to them. - +First download the required [arduino](https://www.arduino.cc/en/software/) software ### Required Components List your required hardware components and the quantities here. From 2b15be65e52e7dce11142846a1c9f5309e341da2 Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Mon, 19 May 2025 22:18:43 -0700 Subject: [PATCH 09/22] Update esp32buzzer.md --- content/tutorials/esp32buzzer.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/content/tutorials/esp32buzzer.md b/content/tutorials/esp32buzzer.md index c208f66a..0735c41d 100644 --- a/content/tutorials/esp32buzzer.md +++ b/content/tutorials/esp32buzzer.md @@ -81,7 +81,13 @@ about the technical skills ### Instructional -Teach the contents of this section +- We will start by soldering one side of the wires onto the speaker. + +- Place wires from the ESP32 to the breadboard + +- Connect the speaker to the ESP32 through the breadboard + +- Next ## Example From 513c4a00d79a81edd8d22e2d1d9767dc96d2d505 Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Thu, 5 Jun 2025 22:35:53 -0700 Subject: [PATCH 10/22] Update esp32buzzer.md --- content/tutorials/esp32buzzer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/tutorials/esp32buzzer.md b/content/tutorials/esp32buzzer.md index 0735c41d..1aef2aa1 100644 --- a/content/tutorials/esp32buzzer.md +++ b/content/tutorials/esp32buzzer.md @@ -1,7 +1,7 @@ --- title: Buzzing the ESP32 date: 5-19-2025 -author: +authors: - name: Philip Du --- From 029850a10e461401e5032abfdceac33177b475fe Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Fri, 6 Jun 2025 14:16:51 -0700 Subject: [PATCH 11/22] Update esp32buzzer.md --- content/tutorials/esp32buzzer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/tutorials/esp32buzzer.md b/content/tutorials/esp32buzzer.md index 1aef2aa1..11190632 100644 --- a/content/tutorials/esp32buzzer.md +++ b/content/tutorials/esp32buzzer.md @@ -49,7 +49,7 @@ First download the required [arduino](https://www.arduino.cc/en/software/) softw List your required hardware components and the quantities here. | Component Name | Quanitity | -| -------------- | --------- | +| ESP32 | 1 | | | | | | | From 56f40cb43ea7639fedab643351a38b925a549f49 Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Fri, 6 Jun 2025 14:17:15 -0700 Subject: [PATCH 12/22] Update esp32buzzer.md --- content/tutorials/esp32buzzer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/tutorials/esp32buzzer.md b/content/tutorials/esp32buzzer.md index 11190632..a29145c2 100644 --- a/content/tutorials/esp32buzzer.md +++ b/content/tutorials/esp32buzzer.md @@ -49,7 +49,7 @@ First download the required [arduino](https://www.arduino.cc/en/software/) softw List your required hardware components and the quantities here. | Component Name | Quanitity | -| ESP32 | 1 | +| -------------- | | | | | | | | From 898d85d4dbda37c43a72f1a741b6838d2d951a46 Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Fri, 6 Jun 2025 15:10:25 -0700 Subject: [PATCH 13/22] Update esp32buzzer.md --- content/tutorials/esp32buzzer.md | 35 ++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/content/tutorials/esp32buzzer.md b/content/tutorials/esp32buzzer.md index a29145c2..8f09bb4a 100644 --- a/content/tutorials/esp32buzzer.md +++ b/content/tutorials/esp32buzzer.md @@ -10,15 +10,11 @@ authors: ## Introduction -Write a short section on what the tutorial is aiming to accomplish. -What is the motivation behind the tutorial? -What do you want readers to gain from the tutorial? - +This tutorial is to get you started on your ESP32 and Arduino coding journey. We will start with a speaker to have a more hands on approach to join the bridge between hardware and software. The user should be able to change their code and quickly see that change be outputted based on a different sound that the speaker will produce. This is a great starter project to ease the user into the course for all skill levels. This is a easy way for the user to get accustomed to using the Arduino IDE and components everyone has seen but may have never used. ### Learning Objectives -- Bullet list of skills/concepts to be covered - -Any additional notes from the developers can be included here. +- Getting started with Arduino IDE coding +- Learn how to make a sound with a speaker ### Background Information @@ -41,32 +37,41 @@ the participant may need. The following are stylistic examples of possible prerequisites, customize these for each workshop. +We will be using Arduino IDE for the software side of things and a breadboard for all of the connections on the hardware side of things. + ### Required Downloads and Installations -First download the required [arduino](https://www.arduino.cc/en/software/) software +Download the required [arduino](https://www.arduino.cc/en/software/) software, we will be doing most of the work in here ### Required Components List your required hardware components and the quantities here. | Component Name | Quanitity | -| -------------- | | -| | | -| | | - +| -------------- | --------- | +| ESP32 | 1 | +| BreadBoard | 1 | +| Speaker | 1 | +| jumper cables | 6 | +| 220 ohm Resistor | 1 | ### Required Tools and Equipment List any tools and equipment you need here. (Ex, computer, soldering station, etc.) -## Part 01: Name +- A laptop with Arduino IDE downloaded +- Depending on the speaker, soldering may be needed +- Usb cable for connections +- Jumper cables +## Part 01: Setting up the breadboard ### Introduction -Briefly introduce what you are teaching in this section. +We will start this project by placing all of the components needed onto the breadboard and hooking it up to the correct terminals on the ESP32. ### Objective -- List the learning objectives of this section +- Learn how to set up connections from the breadboard to ESP32 +- Learn how to read a datasheet ### Background Information From 1c56be9e165a82d398e57588eb5d841ba6c7956b Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Fri, 6 Jun 2025 15:12:44 -0700 Subject: [PATCH 14/22] Update esp32buzzer.md --- content/tutorials/esp32buzzer.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/content/tutorials/esp32buzzer.md b/content/tutorials/esp32buzzer.md index 8f09bb4a..8e96daad 100644 --- a/content/tutorials/esp32buzzer.md +++ b/content/tutorials/esp32buzzer.md @@ -41,10 +41,9 @@ We will be using Arduino IDE for the software side of things and a breadboard fo ### Required Downloads and Installations -Download the required [arduino](https://www.arduino.cc/en/software/) software, we will be doing most of the work in here -### Required Components +Download the required [arduino](https://www.arduino.cc/en/software/) software, we will be doing the coding here -List your required hardware components and the quantities here. +### Required Components | Component Name | Quanitity | | -------------- | --------- | @@ -55,13 +54,11 @@ List your required hardware components and the quantities here. | 220 ohm Resistor | 1 | ### Required Tools and Equipment -List any tools and equipment you need here. -(Ex, computer, soldering station, etc.) - - A laptop with Arduino IDE downloaded - Depending on the speaker, soldering may be needed - Usb cable for connections -- Jumper cables + + ## Part 01: Setting up the breadboard ### Introduction @@ -71,7 +68,7 @@ We will start this project by placing all of the components needed onto the brea ### Objective - Learn how to set up connections from the breadboard to ESP32 -- Learn how to read a datasheet +- Learn how to correctly orient a component based on the manufacturer's datasheet ### Background Information From 5ec898ffb1feb9c119517bdc443eb1c437119c57 Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Fri, 6 Jun 2025 15:49:56 -0700 Subject: [PATCH 15/22] Update esp32buzzer.md --- content/tutorials/esp32buzzer.md | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/content/tutorials/esp32buzzer.md b/content/tutorials/esp32buzzer.md index 8e96daad..0b515335 100644 --- a/content/tutorials/esp32buzzer.md +++ b/content/tutorials/esp32buzzer.md @@ -18,26 +18,22 @@ This tutorial is to get you started on your ESP32 and Arduino coding journey. We ### Background Information -Describe your topic here. What does it do? Why do you use it? -Are there other similar things to use? What are the pros and cons? -Explain important concepts that are necessary to understand. -Include (and cite if needed) any visuals that will help the audience understand. +We will be introducing coding based on Arduino IDE and how to turn a speaker on as well as change its sound based on frequency. This is a great way to prototype before getting started on designing a PCB. The speaker and led was chosen as these are products everyone has seen or heard of before, but may have never had the chance to work on those parts themselves. -## Getting Started +Pro +- user controlled sound output +- connections to things used everyday + +Con +- Could be difficult to scale up +- Components are fairly costly -For any software prerequisites, write a simple excerpt on each -technology the participant will be expecting to download and install. -Aim to demystify the technologies being used and explain any design -decisions that were taken. Walk through the installation processes -in detail. Be aware of any operating system differences. -For hardware prerequisites, list all the necessary components that -the participant will receive. A table showing component names and -quantities should suffice. Link any reference sheets or guides that -the participant may need. -The following are stylistic examples of possible prerequisites, -customize these for each workshop. - -We will be using Arduino IDE for the software side of things and a breadboard for all of the connections on the hardware side of things. +Key concepts +- Basic Arduino code +- Setting up a circuit +- Output change based on user input + +## Getting Started ### Required Downloads and Installations From 87e0c219272a30f764a72d9ab22c3ce6cc4ee66a Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Fri, 6 Jun 2025 15:50:08 -0700 Subject: [PATCH 16/22] Update esp32buzzer.md --- content/tutorials/esp32buzzer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/tutorials/esp32buzzer.md b/content/tutorials/esp32buzzer.md index 0b515335..c39127b7 100644 --- a/content/tutorials/esp32buzzer.md +++ b/content/tutorials/esp32buzzer.md @@ -5,7 +5,7 @@ authors: - name: Philip Du --- -(![image](https://github.com/user-attachments/assets/cd3e9bc2-550a-4a0e-8cba-34842d4a37eb)) +![image](https://github.com/user-attachments/assets/cd3e9bc2-550a-4a0e-8cba-34842d4a37eb) ## Introduction From 4b0760861356d5ba7c038889a9a983ea2b1d0036 Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Fri, 6 Jun 2025 16:17:55 -0700 Subject: [PATCH 17/22] Update esp32buzzer.md --- content/tutorials/esp32buzzer.md | 49 +++++++++++++++++++++++++------- 1 file changed, 39 insertions(+), 10 deletions(-) diff --git a/content/tutorials/esp32buzzer.md b/content/tutorials/esp32buzzer.md index c39127b7..36e5ce55 100644 --- a/content/tutorials/esp32buzzer.md +++ b/content/tutorials/esp32buzzer.md @@ -68,24 +68,51 @@ We will start this project by placing all of the components needed onto the brea ### Background Information -Give a brief explanation of the technical skills learned/needed -in this challenge. There is no need to go into detail as a -separation document should be prepared to explain more in depth -about the technical skills +Soldering a spring contact and a basic understanding of where to place the cables within the ESP32. ### Components -- List the components needed in this challenge +- ESP32 +- Speaker +- LED +- 220 ohm resistor +- jumper cables ### Instructional -- We will start by soldering one side of the wires onto the speaker. +We will start by soldering one side of the wires onto the speaker. +![image](https://github.com/user-attachments/assets/231e585b-9bfe-4584-af02-b78938f5624a) -- Place wires from the ESP32 to the breadboard - -- Connect the speaker to the ESP32 through the breadboard +Refer to the datasheet to see which contact is positive. In the case of the speaker I am using, the datasheet states that it is the left contact is the positive one. +![image](https://github.com/user-attachments/assets/87051209-7678-4ae5-a363-30ba38f2a89d) -- Next +Plug in the resistor and the LED onto the breadboard +![image](https://github.com/user-attachments/assets/14e79375-2fcb-4818-b422-4b0a3c521628) + +Next using a cable, plug one side into any of the digital pins on the ESP32 and the other end onto the open side of the resistor +Then on the open side of the LED, we will use the GND pin from the ESP32 and plug that into the GND rail on the breadboard and hook it up into the LED +![image](https://github.com/user-attachments/assets/c0cf3416-a691-4feb-954a-58850bf202ac) + +Place the open pins of the speaker into the breadboard, take note of where the positive contact is +Next using a cable, plug one side into any of the digital pins on the ESP32 and the other end into the positive contact of the speaker +Utilizing the GND rail, place the last cable from the rail into the negative contact of the speaker + +![image](https://github.com/user-attachments/assets/9b23fb88-4432-46c2-b1b8-ae881d4a57bf) + +## Part 02: Setting up the code + +### Introduction + +The next part of this project will utilize arduino IDE to get what we placed onto the breadboard to work + +### Objective + +- Learn how to code in Arduino +- Set up components in Arduino + +### Background Information + +Now that we have everything hooked up to the ESP32, next we will ## Example @@ -106,3 +133,5 @@ Explain how the example used your tutorial topic. Give in-depth analysis of each ### Useful links List any sources you used, documentation, helpful examples, similar projects etc. +[Speaker Documentation](https://puiaudio.com/file/specs-AS01508MS-SC11-WP-R.pdf) +[USE a BUZZER MODULE (PIEZO SPEAKER) USING ARDUINO UNO](https://projecthub.arduino.cc/SURYATEJA/use-a-buzzer-module-piezo-speaker-using-arduino-uno-cf4191) From 22d7ae5fd5210f2ade573f758ba66bbf31855a6c Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Fri, 6 Jun 2025 16:18:23 -0700 Subject: [PATCH 18/22] Update esp32buzzer.md --- content/tutorials/esp32buzzer.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/tutorials/esp32buzzer.md b/content/tutorials/esp32buzzer.md index 36e5ce55..f9d5cd1a 100644 --- a/content/tutorials/esp32buzzer.md +++ b/content/tutorials/esp32buzzer.md @@ -81,20 +81,27 @@ Soldering a spring contact and a basic understanding of where to place the cable ### Instructional We will start by soldering one side of the wires onto the speaker. + ![image](https://github.com/user-attachments/assets/231e585b-9bfe-4584-af02-b78938f5624a) Refer to the datasheet to see which contact is positive. In the case of the speaker I am using, the datasheet states that it is the left contact is the positive one. + ![image](https://github.com/user-attachments/assets/87051209-7678-4ae5-a363-30ba38f2a89d) Plug in the resistor and the LED onto the breadboard + ![image](https://github.com/user-attachments/assets/14e79375-2fcb-4818-b422-4b0a3c521628) Next using a cable, plug one side into any of the digital pins on the ESP32 and the other end onto the open side of the resistor + Then on the open side of the LED, we will use the GND pin from the ESP32 and plug that into the GND rail on the breadboard and hook it up into the LED + ![image](https://github.com/user-attachments/assets/c0cf3416-a691-4feb-954a-58850bf202ac) Place the open pins of the speaker into the breadboard, take note of where the positive contact is + Next using a cable, plug one side into any of the digital pins on the ESP32 and the other end into the positive contact of the speaker + Utilizing the GND rail, place the last cable from the rail into the negative contact of the speaker ![image](https://github.com/user-attachments/assets/9b23fb88-4432-46c2-b1b8-ae881d4a57bf) From b2eb71873bf029368f3a6098eaffdc20bd14394e Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Fri, 6 Jun 2025 16:33:57 -0700 Subject: [PATCH 19/22] Update esp32buzzer.md --- content/tutorials/esp32buzzer.md | 79 ++++++++++++++++++++++++++++---- 1 file changed, 71 insertions(+), 8 deletions(-) diff --git a/content/tutorials/esp32buzzer.md b/content/tutorials/esp32buzzer.md index f9d5cd1a..2c965800 100644 --- a/content/tutorials/esp32buzzer.md +++ b/content/tutorials/esp32buzzer.md @@ -78,7 +78,7 @@ Soldering a spring contact and a basic understanding of where to place the cable - 220 ohm resistor - jumper cables -### Instructional +### Instructions We will start by soldering one side of the wires onto the speaker. @@ -119,26 +119,89 @@ The next part of this project will utilize arduino IDE to get what we placed ont ### Background Information -Now that we have everything hooked up to the ESP32, next we will +Now that we have everything hooked up to the ESP32, next we will utilize the Arduino IDE to control all of the components that we hooked up. -## Example -### Introduction +### Components +- ESP32 +- USB cable + +### Instructions + +Plug the USB cable into the ESP32 and connect it into your laptop/computer + +Open up Arduino IDE + +Take note of which digital pins were used as that will communicate which pin to be outputted. -Introduce the example that you are showing here. +``` +const int buzzer = x; //buzzer to ESP32 pin x +const int LED = y; //LED to ESP32 pin y -### Example +``` + +Next we will use the variables declared as an output + +``` +void setup(){ + + pinMode(buzzer, OUTPUT); // Set buzzer - pin x as an output + pinMode(LED, OUTPUT); // Set LED - pin y as an output +} +``` + +Lastly, we will be putting everything into a loop, turning the LED on and off, and the speaker on and off as well + +``` +void loop(){ + + digitalWrite(LED, HIGH); // Turns on the LED + tone(buzzer, [FREQ]); // Send FREQ KHz sound signal... + delay(1000); // ...for 1 sec + digitalWrite(LED, LOW); //Turns off the LED + noTone(buzzer); // Stop sound... + delay(1000); // ...for 1sec + +} +``` + +## Example -Present the example here. Include visuals to help better understanding +### Example code + +``` +const int buzzer = 35; //buzzer to ESP32 pin 35 +const int LED = 34; //LED to ESP32 pin 34 + +void setup(){ + + pinMode(buzzer, OUTPUT); // Set buzzer - pin 35 as an output + pinMode(LED, OUTPUT); // Set LED - pin 34 as an output +} + +void loop(){ + + digitalWrite(LED, HIGH); // Turns on the LED + tone(buzzer, 1000); // Send 1KHz sound signal... + delay(1000); // ...for 1 sec + digitalWrite(LED, LOW); //Turns off the LED + noTone(buzzer); // Stop sound... + delay(1000); // ...for 1sec + +} +``` +### Final produce image + +![image](https://github.com/user-attachments/assets/b9e0ed09-f84d-46c4-b075-8f308924f919) ### Analysis Explain how the example used your tutorial topic. Give in-depth analysis of each part and show your understanding of the tutorial topic +Once the code has been ran, we can see that the led should light up in tandem with the speaker making a sound. We can see this is because there wasn't a `delay()` ## Additional Resources ### Useful links -List any sources you used, documentation, helpful examples, similar projects etc. [Speaker Documentation](https://puiaudio.com/file/specs-AS01508MS-SC11-WP-R.pdf) [USE a BUZZER MODULE (PIEZO SPEAKER) USING ARDUINO UNO](https://projecthub.arduino.cc/SURYATEJA/use-a-buzzer-module-piezo-speaker-using-arduino-uno-cf4191) From c1f5e99f1dbbd355befbfc8d1a0d234ee4534f27 Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Fri, 6 Jun 2025 16:36:03 -0700 Subject: [PATCH 20/22] Update esp32buzzer.md --- content/tutorials/esp32buzzer.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/content/tutorials/esp32buzzer.md b/content/tutorials/esp32buzzer.md index 2c965800..bc45d395 100644 --- a/content/tutorials/esp32buzzer.md +++ b/content/tutorials/esp32buzzer.md @@ -196,8 +196,7 @@ void loop(){ ### Analysis -Explain how the example used your tutorial topic. Give in-depth analysis of each part and show your understanding of the tutorial topic -Once the code has been ran, we can see that the led should light up in tandem with the speaker making a sound. We can see this is because there wasn't a `delay()` +Once the code has been ran, we can see that the led should light up in tandem with the speaker making a sound. We can see this is because there wasn't a `delay()` between the LED turning on and the speaker turning on. There are many things that can be changed in this code, based on the value given for the frequency of the tone, the sound would change if the value were higher or lower. ## Additional Resources From f93f5d2efeee6ef9465f029a73d38ebfb6a0fca1 Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Fri, 6 Jun 2025 16:38:00 -0700 Subject: [PATCH 21/22] Update esp32buzzer.md --- content/tutorials/esp32buzzer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/tutorials/esp32buzzer.md b/content/tutorials/esp32buzzer.md index bc45d395..ad1db5bc 100644 --- a/content/tutorials/esp32buzzer.md +++ b/content/tutorials/esp32buzzer.md @@ -196,7 +196,7 @@ void loop(){ ### Analysis -Once the code has been ran, we can see that the led should light up in tandem with the speaker making a sound. We can see this is because there wasn't a `delay()` between the LED turning on and the speaker turning on. There are many things that can be changed in this code, based on the value given for the frequency of the tone, the sound would change if the value were higher or lower. +Once the code has been ran, we can see that the led should light up in tandem with the speaker making a sound. We can see this is because there wasn't a `delay()` between the LED turning on and the speaker turning on. There are many things that can be changed in this code, based on the value given for the frequency of the tone, the sound would change if the value were higher or lower, what if there were more tones added or what if there was a delay before the LED turning on and the speaker going off. ## Additional Resources From a224ce3ee903e272e6cc2db9ee303340ae50c955 Mon Sep 17 00:00:00 2001 From: Omeggos <105466539+Omeggos@users.noreply.github.com> Date: Fri, 6 Jun 2025 16:40:19 -0700 Subject: [PATCH 22/22] Update esp32buzzer.md --- content/tutorials/esp32buzzer.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/tutorials/esp32buzzer.md b/content/tutorials/esp32buzzer.md index ad1db5bc..be343dd9 100644 --- a/content/tutorials/esp32buzzer.md +++ b/content/tutorials/esp32buzzer.md @@ -203,4 +203,5 @@ Once the code has been ran, we can see that the led should light up in tandem wi ### Useful links [Speaker Documentation](https://puiaudio.com/file/specs-AS01508MS-SC11-WP-R.pdf) + [USE a BUZZER MODULE (PIEZO SPEAKER) USING ARDUINO UNO](https://projecthub.arduino.cc/SURYATEJA/use-a-buzzer-module-piezo-speaker-using-arduino-uno-cf4191)