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 Format9 min read
Create Old-school Pixel Art Images
Credit: www.gimp.org Think of retro games and you’ll probably think of the pixellated look of titles released on consoles such as the NES. Games such as Bomberman and Kid Icarus worked within the limitations of ’80s technology, yet offered hours of f
Linux Format5 min read
Vintage PC options
Having got LMDE installed on our woefully underpowered EeePC, it became apparent that the machine wasn’t going to be very useful. Except for pandering to our sense of nostalgia. According to Systemd-analyze, it took a minute to boot (as far as the lo
Linux Format1 min read
Tom’s HARDWARE
No matter if you're building a PC, buying a laptop or learning about robots, Tom’s Hardware has all the comprehensive knowledge you need. Scan & Subscribe for free! ■

Related Books & Audiobooks