Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Smick: A Smart Brick for IoT

DZone's Guide to

Smick: A Smart Brick for IoT

Take a look at Smick, a Wi-Fi-enabled microcomputer designed for IoT development. This overview covers its schematics, its K language interpreter, and basic setup.

· IoT Zone
Free Resource

Learn how Bluetooth mesh helps you create industrial-grade networks. Download the mesh overview.

Smick is a microcomputer with a Wi-Fi transceiver to connect sensors and actuators. With Smick, you can easily and quickly build smart transducers that interact, through the Internet, with things and people around the world. It connects to the Internet via Wi-Fi and uses the MQTT protocol for message exchange. It has a K language interpreter for programming and an archive (file system) to store thousands of configurations and programs K (called sketches).

Figure 1 - Smick interfaces

Figure 1: Smick interfaces

MQTT Protocol

MQTT is a lightweight messaging protocol based on a publish/subscribe mechanism that makes interconnected nodes independent. Communication is handled by an Internet server called an MQTT Broker.

Figure 2 - MQTT interaction

Figure 2: MQTT interaction

Initial Configuration

To connect to the Internet, simply sign up for any MQTT Broker and configure your credentials and Wi-Fi routers in Smick. Various configurations can be stored on Smick to be used in case of variation of operational context.

K Language Interpreter

K is an event-driven language in which the flow of the program is determined by the events. To implement the logic of a system, define events, commands, and rules (i.e. the relationship between events and commands). When an event occurs, for each satisfied rule, the associated commands are executed. If you model the behavior of a system through finite state automata, its implementation in K becomes natural.

Figure 3 - Circuit


Figure 3: Circuit

How to Make a Smart Transducer

Connect one or more transducers to I/O PINs and write a sketch K to define the examples below:

  • I/O connections (relay::d8, Temp::D3)
  • The variables for data (max, min)
  • The events generated by the sensors (Hot, Cold)
  • The commands for controlling actuators (off, on)
  • Rules for local and autonomous system behavior (Hot -> off, Cold -> on)
Figure 4 - Sketch

Figure 4: Sketch

References

For more info, head over to http://smick.tk.

Schematics


Figure 5 - Smick pinout

Figure 5: Smick pinout

For a deeper look into Bluetooth mesh, check out this technical insight for developers.

Topics:
iot connected devices ,esp8266 ,smart devices ,mqtt

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}