Skip to content

Commit 132992a

Browse files
committed
buzzer
1 parent 806a1ac commit 132992a

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

content/micropython/03.micropython/modulinos/03.modulino-pixels/modulino-pixels.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ In this tutorial, we will get started with the Modulino Pixels and control its R
1414

1515
The goals of this tutorial are:
1616

17-
- learn how to connect a Modulino to the Arduino Nano ESP32.
17+
- learn how to connect a Modulino to an Arduino board.
1818
- learn how to program the Modulino Pixels.
1919

2020
## Hardware & Software Needed
@@ -90,4 +90,4 @@ for j in range(0, 3):
9090
# Turn off all LEDs
9191
pixels.clear_all()
9292
pixels.show()
93-
````
93+
```

content/micropython/03.micropython/modulinos/04.modulino-buzzer/modulino-buzzer.md

+15-12
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,41 @@
11
---
2-
32
title: 'Modulino Buzzer'
4-
description: 'Get started with using the Modulino Buzzer'
3+
description: 'Get started with the Modulino Buzzer using MicroPython'
54
author: 'Hannes Siebeneicher, Sebastian Romero'
65
hero_image: "./hero-banner.png"
7-
86
---
97

10-
This article will show you how to get started with the Modulino Buzzer, a piezo speaker.
8+
In this tutorial, we will get started with the Modulino Buzzer, a piezo speaker that can output sound.
9+
10+
***Note that the installation of the Modulino package is not covered in this tutorial. For details on how to install this, visit the [MicroPython - Modulino Package Installation tutorial](/micropython/modulinos/installation).***
1111

1212
## Goals
1313

1414
The goals of this tutorial are:
1515

16-
- learn how to connect a Modulino to the Arduino Nano ESP32.
16+
- learn how to connect a Modulino to an Arduino board.
1717
- learn how to program the Modulino Buzzer.
1818

1919
## Hardware & Software Needed
2020

21-
- [MicroPython Labs](https://lab-micropython.arduino.cc/)
22-
- [Arduino Nano ESP32](https://store.arduino.cc/products/nano-esp32?queryID=undefined)
23-
- [Modulino MicroPython Package](https://github.com/arduino/arduino-modulino-mpy)
21+
For this tutorial, we will need the following hardware:
2422
- [Modulino Buzzer](https://store.arduino.cc/products/plug-and-make-kit)
2523
- [Arduino Nano to QWIIC Connector Carrier]()
24+
- [Arduino Nano ESP32](https://store.arduino.cc/products/nano-esp32?queryID=undefined) or [Arduino Nano RP2040 Connect](https://store.arduino.cc/en-se/products/arduino-nano-rp2040-connect)
25+
26+
We will also need the following software:
27+
- [MicroPython Labs](https://lab-micropython.arduino.cc/)
28+
- [Modulino MicroPython Package](https://github.com/arduino/arduino-modulino-mpy)
2629

2730
## Connect the Modulino
2831

29-
Before programming it, you need to first connect your Modulino Buzzer to your Arduino Nano ESP32. Follow the diagram below to connect your Modulino Buzzer and Nano ESP32.
32+
Before we start programming, we will need to connect our Modulino Buzzer to our Arduino board. For this we can follow the circuit diagram below:
3033

3134
![Circuit Diagram]()
3235

33-
## Code
36+
## Modulino Pixels Code Example
3437

35-
Copy the code below and run it in Arduino MicroPython labs connected to your Arduino Nano ESP32.
38+
Copy the code below and run it in Arduino MicroPython labs, while connected to our board.
3639

3740
```python
3841
from modulino import ModulinoBuzzer
@@ -89,4 +92,4 @@ siren_melody = generate_siren(440, 880, 4000, 200, 2)
8992

9093
for note, duration in siren_melody:
9194
buzzer.tone(note, duration, blocking=True)
92-
````
95+
```

0 commit comments

Comments
 (0)