About The Project
This project can be completed in under 5 minutes. This tutorial will show you how to assemble and program the Micro:Bit temperature monitor with ☒CHIPs. The code for this project is simple using Micro:bit's drag-and-drop platform.Introduction
I built this temperature monitor using the Micro:Bit and a couple of ☒CHIPs from XinaBox. It is a very simple and quick build. The XinaBox technology made this project extremely easy to do by eliminating the need for soldering and tools. The Micro:bit interface allows me to program easily. You can easily modify the code to add other data from the Weather Sensor, such as Barometric Pressure, Relative Humidity and Altitude.Step 1: Assemble the circuit
- Click the OD01 and SW01 together using a ☒BUS connector (from the XC10 pack).
Figure 1: Connected SW01 and OD01
- Click 2 ☒BUS connectors to the left side of the IM02 then click on the connected SW01 and OD01. Make sure that the ☒CHIPs faces the same way up, so you can see the SW01 name and the IM02 name both facing up.
Figure 2: Connected IM02,SW01 and OD01
- Use another ☒BUS connector to connect the MD01 to the PB04. Set aside the connected PB04 and MD01 with 3 ☒BUS connectors and the AA batteries.
- Click the Micro:Bit into the IM02. Make sure the LEDs faces up - same way as the SW01 name and the IM02 name.
Figure 3:Connected IM02, SW01, OD01 and Micro:bit
Step 2: Install package
- Attach a Micro-USB connection from your computer to the Micro:Bit. Notice the yellow LED on the bottom side turning on.
- Open a browser and go to makecode.microbit.org
- Scroll down to "Advanced"
- Then Scroll down to "Add Package"
Figure 4: Finding "Add Package"
- Search for "weather" and click on "weather-bit" to add the package
- Then paste this URL into the search bar : https://github.com/xinabox/pxt-OD01 then click on OD01 to add the package
Figure 5: Adding the packages
Step 3: Programming
- You now have all the necessary packages.
- Drag and drop code elements until you get something that looks like the image below.
Figure 6: The code in Blocks
Step 4: Compile and Test
- Drag the downloaded file, typically named: microbit-Untitled.hex, to your Micro:Bit drive, typically name: MICROBIT.
- See the result on the scrolling LED display and OLED screen.
Step 5: Complete Temperature Monitor
- Place a finger on the sensor to see the temperature go up ... hopefully! If it doesn't retrace your steps until you find the problem and correct it.
- Disconnect the Micro:bit from the Micro-USB connection.
- Insert the AA batteries into the PB04
- Use the 3 ☒BUS connectors to connect the PB04 and MD01 to the IM02 and SW01 as seen in the picture below.
- Turn the switch on the PB04 on.
- Now your Micro:bit temperature monitor is portable and ready to be placed wherever you choose.