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
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
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
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
For more info, head over to http://smick.tk.
Figure 5: Smick pinout