It is a half cube with a side of 28mm (28 x 28 x14) and weighs just 11g. You can attach it to a stand by screwing one or two M3 bolts into the side nuts or using its magnetic bottom. To access all the usage information, simply scan the QR code on the back.
Wi-Fi and Bluetooth 5 BLE connectivity
32-bit RISC-V single-core processor clocked at up to 160MHz
400KB RAM memory and 4MB FLASH
16 PINs to connect transducers and transceivers
a green status LED
a RESET button
a red power LED
a USB-C port for programming and power.
You can have fun with the IoT building a little at a time your home automation and controlling it with Alexa, Google Home or both!
For further information see Exercises 1 and 2.
With the new firmware release 16, Smick includes Alexa. With the voice assistant Alexa, from Amazon, you can command Smick with the voice.
To manage Alexa are added:
a new configuration parameter:
voxkey your API key of VUI bridge.
a new command:
vox indicates whether the VUI is enabled.
and four new events:
Voxcon indicates whether the VUI is connected,
Voxdev VUI device identifier (device ID),
Voxcom VUI command code,
Voxval value of VUI command.
When Alexa receives a command for your device, she understands it and sends a message to Smick containing:
device identifier (Voxdev),
command code (Voxcom) and
a numerical parameter (Voxval).
To trace the messages sent by Alexa use the following sketch:
// set your VUI key, enable VUI and set JSON data format
start = [voxkey = "f83702bb-f9ee-43db-b25d-968a874a2d14", vox = 1, json]
// define trace message
msg = [Voxdev, Voxcom, Voxval]
// If I receive a message from Alexa, show it
Voxdev != "" -> msg
Here's how a command received from Alexa is traced:
{"Voxdev":"5fd3cfacdc95c35cc8b871f","Voxcom":2,"Voxval":1}
Note: "f83702bb-f9ee-43db-b25d-968a874a2d14" is an example key.
How many times did you forget to water your flower pot? With a soil moisture sensor you will give the flower pot the instrument to alert you when it will be thirsty (see Photo 1). This example of analog input uses a soil moisture sensor to detect and report via the Internet two events: dry soil (Dry) and wet soil (Wet).