בלוג

Uncategorized

ערכת IOT למיקרוביט

ערכת IOT למיקרוביט

כרטיס שיהפוך את המיקרוביט שלך ליחידת IOT מחוברת לאינטרנט!

עושים פרוייקט במיקרוביט ורוצים להתחבר אליו מרחוק דרך האינטרנט? עכשיו זה אפשרי עם כרטיס IOT למיקרוביט.

iot:bit

Introduction


  • IoT:bit is an expansion board based on IoT for micro:bit. It uses ESP8266 as WIFI expansion board and serial port to communicate with micro:bit. It also has extended all available IO port of the micro:bit which is leaded by GVS and you can extent various 3V E-blocks as LED, photosensitive and servo by using it. At the same time, the IOT:bit with an on-board buzzer for outside sound and an on-board RTC clock for timing without power supply. Let’s creating your own IoT by makecode!

../_images/NGKCsKq.jpg

Features


  • Intergrated ESP12F WiFi、RTC and passive buzzer module
  • Extended most IO ports by GVS
  • Silk-screen indication onboard main components
  • Separately lead IIC interface, directly plug in OLED, BME280 and IIC,etc
  • Intergrated buzzer and earphone jack
  • Adaptive for LEGO (4 standard spacing Lego fixed holes)

Hardware apperance & Parameters


Size & Installation


  • Product size:71mm x 63mm x 23mm
  • PCB thickness:1.5mm
  • Hole diameter:2.4mm

../_images/5CDXW5R.png

Parameters


ItemsParametersRemarks
DC supplyUSB-5V
Maximum power current800mA
Operation temperature-25~80℃
WIFI moduleESP8266ESP12F
BuzzerPassive buzzer
RTC timingDS1307 RTC
RTC timing batteryCR1220 button cellEquipped by yourself
Lead outNot all
port leadSerial port can map the IO portCoding
I2C port lead19、20 pinOnly for I2C pin
SPI port lead14、15 pinfor common IO
Size71.00mm X 63.00mmWithout packing
Net weight30.00gWithout packing

Pin interface drawing


../_images/3Pb4vCV.png

Introduction of main module


../_images/bkO3DMr.png

Software support


  • Coding:Makecode/Micropython/JavaScript/

Makecode block


  • Coding developed by Microsoft and mainly publiced by micro:bit offical.
  • https://makecode.microbit.org

../_images/LczawXh.png

JavaScript


  • Click on JavaScript of the makecode for JavaScript coding.
  • https://makecode.microbit.org

../_images/X7zJlwA.png

MicroPython


  • Using MU for advanced coding methodMicroPython
  • https://codewith.mu/

../_images/CJytOdT.png

Easy start


Hardware connection

  • Fisrt, install CR1220 button cell for power supply to the RTC timing.

../_images/EkM7aP2.gif

  • Plug the micro:bit to the Iot:bit.

../_images/kFW4hB9.gif

  • Using single USB for power supply to expansion board and switch on.

../_images/DXB3mBI.gif

Coding


Coding Platform


  • makecode:https://makecode.microbit.org

Add codebase


  • Click on “Advanced” in the MakeCode Drawer to see more code sections.

../_images/j31P9Bx.jpg

  • We need to add an extension for coding to the IOT. Click on the “Extension” at bottom of coding drawer, then Search for “IOT” and click on the IOT package to add it to your project. (As below picture)

../_images/AaZxCEb.jpg

Note:If you get a warning telling you some packages will be removed because of incompatibility issues, either follow the prompts or create a new project in the Project file menu.

How to drive the buzzer


  • There is on-board buzzer on the IOT:bit as below picture. Let the buzzer be connected to the PO of the micro:bit to play music by the music of the makecode.

../_images/zBNYZsy.png../_images/lNibSJk.png

  • When button A be pressed in the “input”, play a bit of music.

../_images/cPG4w9y.png

How to use RTC


  • There is on-board DS1307RTC timing on the IOT:bit as below picture. RTC timing need a CR1220 button cell for lasting power supply. We need the RTC timing keep accuracy in the event of a power outage.

../_images/Y76pQRh.jpg../_images/ivqmwe3.png


  • Press button A to set the time to the set time. On start with RTC function and the minutes be displayed on the 5*5 allay.
  • Turn off the power after turning off the power for one minute, and the dot matrix display will show the number of minutes after another 1 minute.

../_images/t9fOHMT.png

How to use the internet function


  • The most important function of IOT:bit is WIKI. The onboard ESP-12FWIFI module can connect WIFI and send information. To use port for communication with the micro:bit and the pin RX-P8TX-P12 is special for IoT.
  • Using thingspeak as cloud to coding and data uploding.thingspeak平台使用指南

../_images/CbzmpB1.jpg../_images/fLnI2rl.png

  • On start, initialize ESP8266 to default connection with P8 & P12.
  • Connect your own WiFi, input the key and the password.
  • Under foever loop, connect the thinkspeak and set date to send, then pause.

../_images/03PNnhW.png

Down load code


  • Let your micro:bit be connected to one side of the USB, the other side to your computer.(Inserting on the expansion board may cause the micro:bit connection to be abnormal or damaged.)

../_images/DfE3smq.jpg

  • Then copy your documents to the micro:bit.
  • Now, here is your observing time!

../_images/YEGtIO7.jpg

2021-05-20T12:26:56+02:00מאי 20th, 2021|Uncategorized|0 תגובות

שתפו את הפרוייקט אם החברים שלכם

כתיבת תגובה

עגלת קניות
בואו להכיר את המרכז המייקרי החדש שלנו ברמת השרון - LightHouse

מעורבים בהקמת מרחב מייקרי?
רוצים להעביר סדנא בתחומים מייקרים?
אנשי חינוך שרוצים לשמוע על מייקרים בחינוך?

LightHouse LOGO Small
הרשמו לעדכונים
Sidebar
דברו איתנו
צריכים עזרה באתר?
הי
איך נוכל לעזור לך?