Example Code for micro:bit-MakeCode-Send data to email (IFFTT)

This article offers a comprehensive tutorial on how to send data from a micro:bit to an email using the IFTTT platform, covering necessary hardware, software preparation, wiring setup, and providing sample programming code to facilitate the process.

Hardware Preparation

  • micro:bit board: Quantity 1
  • Micro: IoT expansion board: Quantity 1
  • IFFTT platform access: Quantity 1

Software Preparation

Wiring Diagram

Plug the micro:bit board into the Micro: IoT expansion board.

Other Preparation Work

  1. Enter IFFTT website, register an account: https://ifttt.com
  2. Sign in and enter the My Applets page, click New Applets.
  3. Create an Applet: click This, input webhooks, fill the Event Name as "aaa".
  4. Click That, select Email, select "Send me an Email", edit the content (default), click "creation action".
  5. Check the password: click HOME to enter "webhooks" and click "Documentation".

Sample Code

Makecode Programs: Send data to Email

Send data to Email programs

Result

press down button A, the message "HI DFROBOT" will be sent to the pre-set Email.

Data in the Email

Was this article helpful?

TOP