Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts

Thursday, January 21, 2021

The Raspberry Pi Pico is officially released

The Raspberry Pi Pico is the first microcontroller from the Pi foundation and can be programmed in C or MicroPython
Source: Raspberry Pi

As many already forecasted, it's finally official. The Raspberry Pi foundation enters the microcontrollers segment with its new Raspberry Pi Pico offered on a very-affordable U$4.00.

About Raspberry Pi Pico

Raspberry Pi Pico is designed as a low-cost breakout board for RP2040. It pairs RP2040 with 2MB of Flash memory, and a power supply chip supporting input voltages from 1.8-5.5V allowing it to be powered from a variety of sources, including two or three AA cells in series, or a single lithium-ion cell.

Source: Raspberry Pi

What it includes

Other details of the Raspberry Pi Pico include:

  • a Dual-core Cortex-M0+ processor
  • 2MB Flash
  • 264K SRAM
  • USB 1.1 with device and host support
  • programmable I/O
  • 26 multifunction GPIO pins
  • 3 analogue inputs
  • temperature sensor
  • Operating temperature varying between -20°C to +85°C
  • a single push button, which can be used to enter USB mass-storage mode at boot time 
  • a general input, and a single LED exposing 26 of the 30 GPIO pins on RP2040, including three of the four analogue inputs, to 0.1”-pitch pads; 
  • solder headers allowing to solder Pico directly to a carrier board

Were to buy

The Pico is available now on the Raspberry Pi Store today online or via the trusted reseller network. But, you can also get a Pico with the purchase of a HackSpace magazine comes with a free Pico, as well as plenty of guides and tutorials to help you get started with it.

Source: Raspberry Pi

Documentation

The organization is also releasing an official guide. You can find complete documentation for Raspberry Pi Pico, and for RP2040, its SDK and toolchain, here. The book is ideal for beginners who are starting with microcontrollers.

Get Started with Raspberry Pi Pico book

The book is also available for free on this link and on it, you will learn how to:

  • Set up your Raspberry Pi Pico and start using it
  • Start writing programs using MicroPython
  • Control and sense electronic components
  • Discover how to use Pico’s unique Programmable IO
  • Make a reaction game, burglar alarm, temperature gauge, and many more

MicroPython

Differently from Arduino, the Raspberry Pi Pico can be programmed with C or MicroPython, a lightweight implementation of a programming language largely compatible with Python 3, written in C, that is optimized to run on a microcontroller. MicroPython is a full Python compiler and runtime that runs on the microcontroller's hardware.

Source

See Also

Tuesday, December 1, 2020

What is Open-Source?

Today, the term open-source is pretty popular. But it also means a lot of things. Would you like to understand more about it? Learn more on this post.
Photo by Chang Duong on Unsplash

Nowadays, the term open-source is pretty popular. But it also means a lot of things. Let's learn about its history and how it changed not only how we use software and services today, but also how it changed the society as a whole.

A little bit of History

The history of the free software/open-source mixes with the history of early computing and Unix itself so it's important to provide a little of context first.

Some say that it was Dr. Donald Knuth the first person to release a program's source code (TeX) to the public for free, but Richard Stallman, another brilliant developer who since his early years in the Harvard, then MIT labs believed (and later campaigned) that software should be open (ie., with its source code open to the public) and free (as in speech, not as in beer). His initiative soon would be known as the free software movement

The Free Software Movement

Before the term open-source became popular, the term "free software", created and popularized by Richard Stallman, was more prevalent. Stallman, who in 1983 started the the GNU operating system with the goal of creating a "complete Unix-compatible software system" composed entirely of free software.

Stallman who working in MIT's AI lab in the early 1970s became frustrated with the spread of proprietary software, saw it as a violation of people’s rights to innovate and improve existing software. His experiences with proprietary software made him an activist in defense of free software. Today it's difficult to imagine Linux, free and open-source software today without his contributions.

Speaking of contributions, some of Stallman's contributions to humankind are: the GNU Project, the Free Software Foundation, the GNU Compiler CollectionEmacs and the GPL / GNU General Public License.

Open-Source as a term

But Stallman's vision of free software had opposition from those who thought that the requirements imposed by the the free software movement were much too rigid. That group composed of influent people such as Todd Anderson, Larry Augustin, Jon Hall, Michael Tiemann and Eric S. Raymond endorsed the adoption of the term open-source proposed by Christine Peterson as a broader and better alternative.

Soon, other influential names such as Linus Torvalds, Phil Hughes, Larry Wall, Brian Behlendorf, Eric Allman, Guido van Rossum, Michael Tiemann, Paul Vixie, Jamie Zawinski, and Eric S. Raymond would be aligned with the new term raising awareness and industry-wide adoption.

Licenses

Licenses are an essential aspect of open-source software. The most common are:
  • GNU General Public License: the license created by Stallman himself. Today there are mainly three GNU licenses: AGPLv3, GPLv3, LGPLv3
  • Mozilla Public License 2.0: Permissions of this weak copyleft license are conditioned on making available source code of licensed files and modifications of those files under the same license
  • Apache License 2.0: A permissive license whose main conditions require preservation of copyright and license notices.
  • MIT License: A short and simple permissive license with conditions only requiring preservation of copyright and license notices.
Understanding the licenses is critical to any open-source project and is definitely a complex subject. We will address this in a more detailed post in the future.

Broader Open-Source Reach

Today, the term "open-source" goes beyond software and reaches many segments, including:

The world without Free/Open software

The world we live today would be drastically different if we didn't have these initiatives by Richard Stallman, Linux Torvalds, the others previously mentioned and millions of anonymous contributors worldwide.

Below, some of the ways in which free/open-source software changed the world:

  • the Internet: pretty much all the infrastructure of the internet today (routers, switches, firewalls, etc) runs Linux or open-source software. Not to mention the web servers (Apache, Nginx), databases (PostgreSQL, Redis, MySQL) and even most of the programming languages and libraries used to develop the tools and services you use are open-source.
  • Services: cloud services are built on top of the above list and use container technologies such as Docker, Kubernetes, containerd, KVM, QEMU which are also open-source.
  • Faster time to market: open-source also fosters and is essential for a faster time to market, critical to business today. 
  • Reduced development cost: it's probable that Google, Spotify, Tesla and even Amazon wouldn't exist today without open-source. It's impossible to imagine how to develop so complex products and services without the broad diversity of open tools available today.
  • Education: education also benefits significantly from free/open-source software. The contributions range from the device learners are using (Android, Chrome OS for example) to the services, infrastructure and broad range of technologies that support them.
  • IoT: the next age of computing will reach virtually every digital device around us. And Linux/open-source software is the 
  • Robotics: robotics also heavily utilizes open-source technologies (including hardware). 
  • Supercomputers: all of the supercomputers today run Linux. These computers are used for researches and are critical to the evolution of humankind.
  • And everything else: from agriculture to rockets, spaceships and nuclear plants, open-source runs everywhere.

Famous open-source initiatives

Today, there are many, many initiatives and projects that are extremely successful and follow the open-source. Some of the most biggest projects today are:

Linux and Open-Source

The GNU General Public License was the tool Linus Torvalds needed to grow his project. Without the open-source model, the distributed and collaborative nature of open-source and its ever growing audience of fellow contributors and sponsors, it's impossible to imagine that Linux would have have reached 30 million lines of code and US$ 5 billion in value.

And without the GNU operating system, we wouldn't have a solid foundation to build the fantastic Linux distributions we have available for free today.

Conclusion

The world as we know today would be radically different without the contributions of those pioneers back in the 80's. Between them, Richard Stallman was definitely the most important proponent of the free-software agenda which was later extended by the open-source movement reaching wider audiences and gaining corporate endorsement.

Today, Linux is the biggest open-source project in the world and rules the cloudthe Internet, mobiles phones and even supercomputers. Without Linux and open-source, it's difficult to imagine how far would the society be today. Definitely we'd be behind, way behind.

References

See Also

Featured Article

Free Software, Open-Source, Libre, FOSS and FLOSS: what are the differences?

Are these just different names for the same thing? Or there are differences? Photo by Romain Vignes on Unsplash We have been discussing...

Popular this Week