|
1 | 1 | ---
|
2 |
| - |
3 | 2 | title: 'Modulino Buzzer'
|
4 |
| -description: 'Get started with using the Modulino Buzzer' |
| 3 | +description: 'Get started with the Modulino Buzzer using MicroPython' |
5 | 4 | author: 'Hannes Siebeneicher, Sebastian Romero'
|
6 | 5 | hero_image: "./hero-banner.png"
|
7 |
| - |
8 | 6 | ---
|
9 | 7 |
|
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).*** |
11 | 11 |
|
12 | 12 | ## Goals
|
13 | 13 |
|
14 | 14 | The goals of this tutorial are:
|
15 | 15 |
|
16 |
| -- learn how to connect a Modulino to the Arduino Nano ESP32. |
| 16 | +- learn how to connect a Modulino to an Arduino board. |
17 | 17 | - learn how to program the Modulino Buzzer.
|
18 | 18 |
|
19 | 19 | ## Hardware & Software Needed
|
20 | 20 |
|
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: |
24 | 22 | - [Modulino Buzzer](https://store.arduino.cc/products/plug-and-make-kit)
|
25 | 23 | - [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) |
26 | 29 |
|
27 | 30 | ## Connect the Modulino
|
28 | 31 |
|
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: |
30 | 33 |
|
31 | 34 | ![Circuit Diagram]()
|
32 | 35 |
|
33 |
| -## Code |
| 36 | +## Modulino Pixels Code Example |
34 | 37 |
|
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. |
36 | 39 |
|
37 | 40 | ```python
|
38 | 41 | from modulino import ModulinoBuzzer
|
@@ -89,4 +92,4 @@ siren_melody = generate_siren(440, 880, 4000, 200, 2)
|
89 | 92 |
|
90 | 93 | for note, duration in siren_melody:
|
91 | 94 | buzzer.tone(note, duration, blocking=True)
|
92 |
| -```` |
| 95 | +``` |
0 commit comments