What is SwiftIO?

Video by Hunger Swift


What if Swift Programming Language?

Swift is a powerful and open programming language. It is super easy to learn.


Swift was introduced at Apple's 2014 WWDC. Apple is aiming to use Swift code to create apps on iPhone Mac and beyond. But now we can do more with it. Swift 5.1 was officially released in September 2019.


The Swift programming language absorbs many other languages’ features without affecting the real-time performance of the embedded system. It is one of the few modern languages suitable for industrial microcontroller programming.


What is micro-controller?

A Microcontroller is a circuit board that has a chip on it that can be programmed to do many different things. They can run small, simple software programs. It’s basically a small computer processor mounted on a board with a bunch of other components that handle the input and the output. You can read information from sensors, for instance, if you want the board to read temperature is in your room, you can use a temperature sensor to know that.


What is SwiftIO?

MadMachine is the project name, it is also a company that designs and makes circuit boards that run swift source code on microcontrollers. They call the circuit board SwiftIO, and currently, there is only one type of SwiftIO. You can use a SwiftIO to control motors, lighting, cameras, or even build a simple robot.

However, the magic of MadMachine is not in just the language or its ability to run on microcontrollers but the fact that the merging of Swift and hardware has just potentially taken by IoT projects to a new level.


Now you can use swift language to control the physical world by using microcontrollers, just like Arduino.


There’s also the MadMachine software development environment, and this is what makes MadMachine good for beginners. If you want to program microcontrollers, you’d have to type out a lot of binary and memorize a lot of hard to remember registers and instructions. Then you’d have to use special programming hardware with custom made cables to download your program onto your microcontroller. But don’t worry about MadMachine, the MadMachine software works on Windows, Mac, and Linux, which makes downloading your swift code as simple as connecting a USB cable and clicking a button.


This is the comparison between Arduino, MicroPython, and MadMachine.

MadMachine has an incredible amount of potential making microcontroller projects easier than ever before. For the simplicity of Swift language, it a higher-level language that looks more like an English text.


Now you have known SwiftIO is a circuit board that has powerful microcontroller chips on it, but it also has a lot of other stuff on there too.

Let’s take a quick tour. This is the PINOUT diagram of SwiftIO. This is the microcontroller, RT1052 with ARM cortex M7 core 600 Mega Hz. And if you ever want to “reboot” your SwiftIO’s program, you’ve got a reset button. This is the “Download Button” when you wanna download your code you need to hit it before that. About the pin connectors, over here you have the power and ground pins. There are many kinds of communication interfaces that you could use these ports to send and receive data from a GPS module, Bluetooth modules, Wi-Fi modules and more. These pins, you can use as an output where it spits out 3.3V for a digital 1, or 0V for a digital 0. Here we have 12 analog input pins, and these are used to measure continuous voltages anywhere from 0V to 3.3V. The pink pins mean that you can use them to output pulse width modulated square waves, which normally applied in motor controlling and buzzer.


SwiftIO put all of those things together in an easy to use way. If you choose to learn more about electronics, you can discover more in the future.

MADMACHINE
NEWSLETTER

​Be the first to know any update!

  • GitHub
  • Facebook - Black Circle
  • Twitter - Black Circle
  • YouTube - Black Circle
  • Instagram - Black Circle

© 2018-2020 MadMachine Limited. All rights reserved.

Swift and the Swift logo are trademarks of Apple Inc.