Linux Format

A Pi user’s guide to coding the Arduino

The Arduino is a powerful board. It may not have the same processing power as a Raspberry Pi – in fact it cannot even match the original Raspberry Pi – but it has power in its simplicity and connectivity. It has protocols such as I2C, SPI, UART and serial, in addition to digital IO (on/off) and analogue IO.

But why is this important? With an Arduino we can write the code on our computer, in this case a Raspberry Pi, and then flash the code onto the Arduino where it is stored. We can remove the Arduino from the Pi, and as long as we can supply power to the project, it can run quite happily with no screen. With the newer batch of Arduinos we can connect to the internet and networks, send data over said networks and even send data back to the Arduino.

The power of the Arduino is that it can be independent and gather data for you in the field. Sure, the Raspberry Pi can also do this, but why use an entire Linux computer just to gather data when you can run a tiny, power-efficient microcontroller?

In this project we are going to create a simple motor-control project that

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format1 min read
FlyOS Offers Linux Subsystem On Android
DigitalPlat, FlyOS developer, proudly announces on its main page: “Imagine coding on your phone, connecting a keyboard and mouse, and effortlessly accessing your favourite tools like LibreOffice, VSCode, GIMP, Jupyter and more. It’s a complete Linux
Linux Format1 min read
Redis Licence Drama
On 20th March 2024, Redis announced that as of version 7.4, the software will be dual-licensed under the Redis Source Available Licence (RSALv2) and Server Side Public Licence (SSPLv1). The Open Source Initiative characterises the Server Side Publi
Linux Format2 min read
Specialist Tool Organisation
K ali works differently from the others as it has the security tools in the root of the app launcher. If you know what you’re looking for, the whole thing is searchable from the launcher. The ‘normal’ apps are located in the Usual Applications folder

Related