Things used in this project

Hardware components:
Sw01 v1.0.0 front grande
☒XinaBox SW01
×1
Od01 v0.4.11 front grande
☒XinaBox OD01
×1
Pb04 v0.4.1 front grande
☒XinaBox PB04
×1
Microbitheart
BBC micro:bit board
×1
Md01 v1.0.0 front grande
☒XinaBox MD01
×1
Xbus
☒XinaBox XC10
×1
AA Battery (generic)
×2
☒XinaBox IM02
×1
Software apps and online services:
Cmdscreen2
micro:bit pxt.microbit.org

Code

Motion controlled Micro:bit weather stationJavaScript
This is a code example for the Micro:bit motion controlled weather station using the XChips from Xinabox. This is in the JavaScript format. You can convert this to blocks by copying and pasting it into the { } JavaScript tab in the Micro:bit webpage @ https://makecode.microbit.org/
input.onGesture(Gesture.LogoUp, () => {
    OLED.showString("Temperature")
    basic.showString("T:")
    basic.showNumber(weatherbit.temperature() / 100)
    OLED.showNumber(weatherbit.temperature() / 100)
})
input.onGesture(Gesture.Shake, () => {
    OLED.showString("Humidity")
    basic.showString("H:")
    basic.showNumber(weatherbit.humidity() / 1024)
    OLED.showNumber(weatherbit.humidity() / 1024)
})
basic.showString("Wether Station")
weatherbit.startWeatherMonitoring()
OLED.init(64, 128)

Credits

Instasize 0521202021 zymecd9vfj
Brittany Bull
9 projects • 4 followers
A student exploring the world of coding and IoT from a beginners' perspective
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Add projectSign up / LoginAbout BBC micro:bit