IOT:bit is an expansion board for exploring IoT with micro:bit.
It uses an ESP8266 as WIFI and serial port to communicate with the micro:bit. It also has breakouts for most I/O ports of the micro:bit to hook up various 3V E-blocks such as LEDs, photosensors or servos.
IOT:bit additionally has an on-board buzzer and RTC clock for maintaining accurate time without a power supply.
- Integrated ESP12F WiFi, RTC and passive buzzer module
- Extends most I/O ports
- Silk-screen labels for main onboard components
- Separate I2C interface, to directly plug in OLED, BME280, etc
- LEGO spaced mounting holes (4 standard spacing Lego fixed holes)
- Product size：71mm x 63mm x 23mm
- PCB thickness：1.5mm
- Hole diameter：2.4mm
|Maximum power current|800mA|-|
|RTC timing|DS1307 RTC|-|
|RTC timing battery|CR1220 button cell|Equipped by yourself|
|Lead out|Not all|-|
|port lead|Serial port can map the IO port|Coding|
|I2C port lead|19、20 pin|Only for I2C pin|
|SPI port lead|14、15 pin|for common IO|
|Size|71.00mm X 63.00mm|Without packing|
|Net weight|30.00g|Without packing|
Using `MU` for advanced coding method`MicroPython`
First, install CR1220 button cell for power supply to the RTC timing.
Plug in the micro:bit.
Use a single USB for power supply and power on.
Click on "Advanced" in the MakeCode Drawer to see more code sections.
- 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)
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.
There is on-board buzzer on the IOT:bit. The buzzer can be connected to the PO of the micro:bit to play music by the 'music' functions in makecode.
When Button A is pressed, play a bit of music.
There is an on-board DS1307RTC timer on the IOT:bit. The RTC timer does need a CR1220 button cell for lasting power supply.
Here are instructions to press button A to set the time to the set time.
Drag out an 'On Start' block & add the RTC function block.
Enter the appropriate values to be displayed on the 5*5 LED array.
Upload this to the MicroBit.
Then turn off the power for one minute, then on again and the dot matrix display will show the time.
The most important function of IOT:bit is WIKI. The onboard ESP WIFI module can connect to WIFI and send information. To use this port for communication with the micro:bit use the pin `RX-P8`，`TX-P12` is special for IoT.
On start, initialize ESP8266 to default connection with P8 & P12.
Connect your own WiFi, input the key and the password.
Under forever loop, connect the 'thingspeak' chip and set date to send, then pause.
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.
Then copy your documents to the micro:bit.
Use the on-board micro USB for power, not transferring files.