The power of Python is well-known and widely accepted.
Easy to learn and systematic to script, the effortless way to express complex behaviour is what makes this language tick. Here we explore the adaptation of this popular language to a popular branch of electronics, the embedded systems.
Introducing MicroPython
Whether it is to make a light emitting diode (LED) blink, read voltages, make motors and servos move, communicate wirelessly or control robots, MicroPython comes to one’s aid. The software is built to exploit the powers of Python programming to create efficient embedded systems. A brainchild of Damien George and funded by a Kickstarter campaign, this is a selected subset and a lean implementation of Python 3.x, optimised to run on microcontrollers (MCUs) and in constrained environments.
With full Python programming language at your disposal, you can write functions and classes, make lists and dictionaries, do string processing, read and write files, and have more sophisticated features such as generators, closures, list comprehension and exception handling. The possibilities for programming are endless!
Stretch to accommodate
To extend the capabilities of the MCU-MicroPython combination, exclusive drivers in pure Python have been implemented. Creating an Internet of Things (IoT) application is easy, thanks to CC3000 Wi-Fi module. If the Ethernet is the protocol supported, use WIZ820io module, and low-power implementation is not far with support for nRF24L01+ wireless module. The serial peripheral interface (SPI) port of the MCU board can be exploited to include the above modules.
Getting better by the day
This story is from the September 2016 edition of Electronics For You.
Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 8,500+ magazines and newspapers.
Already a subscriber ? Sign In
This story is from the September 2016 edition of Electronics For You.
Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 8,500+ magazines and newspapers.
Already a subscriber? Sign In
Smart WATER SERVING ROBOT
With the advent of artificial intelligence, robots find application in various sectors such as industry, homes, bars, restaurants, events, agriculture, and even space.
Multi-Purpose Wire-Loop SECURITY SYSTEM
This multi-purpose security system utilises wire loops to secure items. Wire loops can be employed in various ways for security applications such as luggage security, bike security, bicycle security, room security, and door security.
The Importance Of RADIATION PATTERN OF AN ANTENNA
Look beyond an antenna’s size and gain; its radiation pattern holds the key to its performance. Understanding this can unlock a whole new perspective on wireless communication
"Capitalise On 'CHINA PLUS TWO,' Where Products With Higher Value Addition BECOME THE FOCUS"
EPIC Foundation aims to transform India into an electronics hardware product nation by collaborating with governments, universities, design houses, and startups.
ADDING LOCATION TRACKING To The Wearable Interface Device
Here’s how you can add location tracking, without GPS, to the project for a smartwatch like HID with keyboard and touchpad, which was published in March issue.
"NATUREINSPIRED ADAS ALGOS Will Be MUCH BETTER Than Robotic Paradigm Algos"
Most of the ADASenabled vehicles of today function on algorithms (algos) inspired by robots used in a logistics setup. Can ADAS algos inspired by the human brain and nature be better? In a conversation with EFY's Mukul Yudhveer Singh, Gagandeep Reehal, Co-Founder, CEO & CTO, Minus Zero, illustrates this using the 'sunset mistaken for red light' example, shedding light on where India's Minus Zero is headed!
NEW EV POLICY: Will It Kill More Than Two Birds With One Stone?
With China taking the lead in electric vehicle production and sales in many global markets, can India’s new electric vehicle manufacturing policy encourage champion brands to set up shop in India? Can this policy be the turning point for India’s automobile industry’s bid to go global?
A Device That Enables SELLING UNUSED INTERNET DATA From Your Mobile Network
What if you could sell your remaining mobile data before the end of the month or even daily? Christophe Bureau, a Board Member of DotDot, in a conversation with EFY’s Mukul Yudhveer Singh, sheds light on what the Dot device offers beyond assisting users in selling their unused internet data
"EV INDUSTRY'S In The Compounding Stage Of BATTERY CELL TECHNOLOGY"
As sodium-ion battery packs gain attention in India, does this spell a bleak future for lithium-ion batteries? Furthermore, where does hydrogen stand as a fuel cell and combustion fuel? Dr Yashodhan Pramod Gokhale, CTO of Battrix, weighs in
ASSISTIVE AI: Semiconductor Design, Manufacture, And Workforce
Together, human intelligence and AI create a powerful synergy, highlighting the vital lesson for the semiconductor workforce: adapt to new technologies