Use the Buzzer on the Magicbit [Magicblocks]

Introduction: Use the Buzzer on the Magicbit [Magicblocks]

This tutorial will teach you to use the buzzer on the Magicbit using Magicblocks. We are using magicbit as the development board in this project which is based on ESP32. Therefore any ESP32 development board can be used in this project.

Supplies

  • Magicbit - Pro

Step 1: Story

Hello and Welcome, This tutorial will teach you to use the buzzer on the Magicbit using Magicblocks.

There are 1 main methods of achieving this goal;

By using Inject Block.

First of all log into to your Magicblocks account,

Magicblocks is an easy visual programming software for program your magicbit. Anyone can program their micro controller by using magicblocks.io and there is no need of programming knowledge. You can sign up for free.

Start and Open the Playground.

Next make sure your Magicbit is connected to the internet and plugged-in and also linked to your account through Device Manager.

All Done? then scroll down to Method 1

List of Items Required

Magicbit: Magicbit Is an integrated development platform based on ESP32 for learning, prototyping, coding, electronics, robotics, IoT and solution designing.

Step 2: Setup the Buzzer Block

1. Drag & Drop the Buzzer block from the Magicbit-nodes section to the flow.

2. Double-click on the Buzzer block and type or paste your unique Device id from the Device Manager Tab on your Magicblocks account. [ This will link the buzzer on your Magicbit with your Magicblocks account]

3. Frequency determines the frequency of the buzzer.

4. Duration determines the duration of the buzzer output.

Step 3: Setup the Inject Block

(This Node is used to activate the buzzer repeatedly between a interval)

1. Drag & Drop the Inject Block from the input nodes section on the left of the screen to the flow.

2. Make sure the payload type is timestamp and repeat is set to interval.

3. Next set an interval, this will determine the delay between buzzer outputs.

[Optional] Import Already Setup Nodes

If you had trouble setting up nodes, you can use the import feature in Magicblocks to get the nodes which has been already setup.

  • First copy this code to your clipboard.
  • Click on the options menu on the top right-hand corner of the screen.
  • Next hover your cursor over the Import sub-menu.
  • Then click on Clipboard and paste the code on your clipboard to the text field.
  • Select current flow or new flow and click on Import.

IMPORTANT

Make sure you type your device id on the Buzzer node properties.

Step 4: Finally Deploying the Blocks

  • Connect the all the blocks.
  • Click on Deploy button on the top right-hand corner of the screen.
  • The Buzzer will activate according to the frequency, duration and delay given.
  • You can change the frequencies and get a different frequency output from the buzzer.

Troubleshooting

  • Check whether your Magicbit is connected to the internet.
  • Check whether the Device ID is correct on the buzzer node properties.

Be the First to Share

    Recommendations

    • Raspberry Pi Contest

      Raspberry Pi Contest
    • Fix It Speed Challenge

      Fix It Speed Challenge
    • Photography Challenge

      Photography Challenge

    Comments