Congratulations on getting started with Wappsto:bit for micro:bit.
In this lesson, I will assume you've already connected your Wappsto:bit, if not click here.We will start by measuring 3 values and getting them into our dashboard
Temperature: What is the temperature?
Light level: Is it bright or dark?
Compass: Which direction are you heading?
First step - set up your values on start
Name your Wappsto:bit: What do you want to name your Wappsto:bit? Don't worry, you can always change it later :-)
Setup values: Assign number values and types, and give them names.
By now, you should be getting the hang of using the Wappsto:bit, but how far can you actually take it? Lets find out!
We've prepared a MakeCode program that uses all data types available on a micro:bit V2, lets go!
Get the full code on MakeCode and try it yourself!
Lets look at the data!
To make it easy for you to see the data possibilities (without external sensors), we've also prepared a SLX Wappsto:bit dashboard for you!
Step 1: Go to Wappsto.com and access your dashboard panel
Step 2: In the upper-right corner, hit the tiny blue + sign
Step 3: Select the preconfigured Wappsto:bit dashboard
Step 4: Give your Wappsto:bit Dashboard a cool name
Step 5: Analyze your data on the fly!
⚠️ GPS latitude and longtitude are only available with SLX Wappsto:bit NB-IoT+
Wouldn't it be cool if you could control your micro:bit from afar?
...Well we're glad you asked, because Wappsto:bit provides two-way communication.
All you have to do is setup either an "on String Value" or "on Number Value received from Wappsto" block.
Here is the code, give it a spin :-)
Do you take good enough care of your green friends? Don't worry it's not too late to start!
First we have to locate the micro:bit pins on the Wappsto:bit and attach our external sensor using jumper wires.
Great, now that you have attached the sensor, a simple code will do the rest. Remember to enter the correct pin.
The higher value you measure, the more moist the soil is.
How are you plants doing?
What can you see when you measure before and after watering?
Isn't it time to show the world how you are feeling?
For this project, we'll be using:
A single "on String Value" xx received from Wappsto block
A MakeCode conditionals block to check for multiple statements
The conditionals block will take a look at what the string sent from Wappsto contains, and change the micro:bit mood accordingly.
On Wappsto.com you can access and set your mood, directly from the IoT Devices list.
Get the code - how will you express your mood?
4 actions - only active when Gamemaster generates a new number
Controller A on MakeCodeController B on MakeCodeIt's time to play!
Play directly from IoT devices on Wappsto.com or setup your own cool custom Dashboard!
Tip: Use Wappsto advanced setup blocks to setup a minimum and maximum value for the points, to show it neatly in the Gauge widget!
Challenge! - How will you improve the code?
How would you add sounds to make the game more interactive?
Could we add more actions? What about shaking and light?
This one's pretty straight forward: a humidity sensor can tell you when your plant should be watered.
Dashboard: you can create an alert, so you know at a glance if it needs watering. You can also figure out how often a week you actually need to water the plant.
On the go: you don't have to stick to houseplants, with the NB-IoT and NB-IoT+ versions, you can also investigate flowers and whatnot in the garden or even in the woods.
Wappsto:bit lets you do more
There are two basic ways that Wappsto:bit lets you do more than you could with your micro:bit alone.
First, it gives you an easy way to capture sensor data and view that data in a dashboard. Second, it enables you to take your projects out of your home or classroom and into the world (either with NB-IoT and GPS, or using your mobile phone as a Wi-Fi hotspot).
For each idea, we've indicated how you can use the dashboard and remote capabilities. In other words, how the Wappsto:bit gives you unique capabilities you wouldn't have with the micro:bit alone.
There's more to come, and remember that you can submit your own project ideas to us at firstname.lastname@example.org and even be credited, if you'd like