Variables are probably the most basic thing you’ll learn in programming but they’re also the most useful. In this tutorial we will focus on using variables, declaring variables, naming variab...
https://www.circuitbasics.com/using-variables-on-the-arduino/
In this article, we will learn how perform math calculations in an Arduino program. We will look at the basic mathematical operators first, followed by a review of the order of operations. Then w...
https://www.circuitbasics.com/how-to-do-math-in-arduino-programs/
In this article, we will learn how to use another type of conditional statement on the Arduino called the switch case statement. The switch case statement replaces the need for multiple if statem...
https://www.circuitbasics.com/using-switch-case-statements-in-arduino-programming/
Conditional statements are one of the most useful tools in Arduino programming. They let you control the flow of a program based on certain conditions that you can define in the code. Conditional...
https://www.circuitbasics.com/how-to-use-conditional-statements-in-arduino-programming/
Loops are used to control the flow of a program. In a loop, a block of code is executed over and over again. Each cycle of the loop is called an iteration of the loop. Depending on certain condit...
https://www.circuitbasics.com/using-loops-in-arduino-programming/
The serial monitor is usually just used to display data from the Arduino on a computer monitor. But it can also be used as an input device that takes input from a user and sends it to the Arduino...
https://www.circuitbasics.com/how-to-read-user-input-from-the-arduino-serial-monitor/
In this article we will take a look at data types and how they are used in Arduino programming. Data types are important to understand because they determine the types of data that variables can ...
https://www.circuitbasics.com/using-data-types-in-arduino-programming/
In this article, we’re going to learn about compound operators and how to use them in Arduino programming. Compound operators are a shorthand way to do simple math with variables. They’re goo...
https://www.circuitbasics.com/using-compound-operators-in-arduino-programming/
Arrays are like variables – they can store sensor readings, text strings, and Boolean values like high and low. But a variable can only store one value at a time. Arrays can store multiple valu...
https://www.circuitbasics.com/using-arrays-in-arduino-programming/
Logical operators give you another element of control over the flow of your program. Also known as Boolean operators, they can be very powerful when used inside the condition of an if statement o...
https://www.circuitbasics.com/using-logical-operators-in-arduino-programming/
Functions are the code in your program that get things done. They contain the code to do things like getting data from a sensor, setting the voltage state of a pin, or displaying text on an LCD d...
https://www.circuitbasics.com/using-functions-in-arduino-programming/
A class is a collection of functions and variables that can be used to perform specific programming tasks. In Arduino programming, a class is basically the same thing as a library. A class is lik...
https://www.circuitbasics.com/programming-with-classes-and-objects-on-the-arduino/
Libraries are packages of code (mostly functions) that can be used to perform specific programming tasks. Libraries make programming on the Arduino a lot easier. They simplify and reduce the amou...
If you ever wanted to create a Twitter bot with the Raspberry Pi, this tutorial is for you. In this tutorial, we will build an example project that takes the readings from a DHT22 humidity and te...
https://www.circuitbasics.com/how-to-send-a-tweet-with-ifttt-and-raspberry-pi/
In our previous article on neural networks, we only talked about individual cells. Today, we will stack them to create a neural network. In this tutorial, you will learn the fundamentals of neura...
https://www.circuitbasics.com/neural-networks-in-python-ann/
In this tutorial, you will learn the fundamentals of neural networks and deep learning – the intuition behind artificial neurons, the standard perceptron model, and the implementation of the mo...
https://www.circuitbasics.com/neural-networks-in-python-perceptrons/
Exciting times ahead as software advancements let you implement computer vision applications on single-board computers like the Raspberry Pi. In this tutorial, we explore how computer vision work...
https://www.circuitbasics.com/introduction-to-computer-vision-using-opencv-and-raspberry-pi/
Python is the language of choice for shell scripting and task automation. It is popular in system administration because it can execute shell commands using only its default libraries. There are ...
https://www.circuitbasics.com/run-linux-commands-with-python/
The Raspberry Pi is a perfect platform to learn Python, and one of Python’s most useful applications is extracting data from webpages. In this tutorial, you will learn how to read a webpage’s...
https://www.circuitbasics.com/how-to-extract-data-from-a-web-page-using-python/
Learning how to read user inputs is an important step to mastering a programming language. Almost all programs are now interactive. They need data from the user to provide the desired output. In ...
Most programs require human input to work. And to send these instructions to the computer, people use peripheral devices like a keyboard and a mouse. In this tutorial, we will learn how to detect...
https://www.circuitbasics.com/how-to-detect-keyboard-and-mouse-inputs-on-a-raspberry-pi/
Starting programs automatically is extremely useful for Raspberry Pi projects. In this tutorial, we are going to start programs automatically on boot and at regular time intervals on a Raspberry ...
https://www.circuitbasics.com/starting-programs-automatically-using-cron-on-a-raspberry-pi/
The Raspberry Pi OS, known before as Raspbian, is the Raspberry Pi’s official operating system. It is a modified version of the Debian Linux distribution, which has a multi-user nature. Unfortu...
https://www.circuitbasics.com/file-permissions-on-the-raspberry-pi/
A text editor is a software that edits text. They are often used in making system configuration files and program sketches. There are two kinds of text editors you can use on a Raspberry Pi – d...
https://www.circuitbasics.com/how-to-edit-text-files-on-a-raspberry-pi/
The Raspberry Pi OS, like any other operating system, is always doing some form of reading and write executions even when it is running idle. If suddenly the power to the Raspberry Pi board is in...
https://www.circuitbasics.com/using-a-switch-to-startup-and-shutdown-the-raspberry-pi/
What is Python? Python is the official programming language of the Raspberry Pi. It is known for its two unique characteristics: cross-platform compatibility and easy-to-understand syntax. Unlike...
https://www.circuitbasics.com/introduction-to-the-python-programming-languyage/
In microcontroller systems where resources are constrained, developers invest a lot of time and resources to produce efficient code. The main objective is to improve the overall performance of th...
In this tutorial, we will discuss the uses for keeping track of the date/time on the Arduino, the different sources of date/time available, what is an Arduino Ethernet Shield, and then, we will b...
https://www.circuitbasics.com/using-an-arduino-ethernet-shield-for-timekeeping/
Mobile phones are basically just mini portable computers these days. The best devices on the market can give you many of the features you can get with a regular laptop. Programming with a smartp...
https://www.circuitbasics.com/programming-with-your-android-smartphone-the-tools-you-need/
In this post, I’ll give you a quick overview of what a Python program is, what Python programs can be used for, and how to write and run a simple Python program on the Raspberry Pi. What is a ...
https://www.circuitbasics.com/how-to-write-and-run-a-python-program-on-the-raspberry-pi/
In this tutorial, I’ll discuss what the C programming language is, what C programming is used for, and how to write and run a C program on the Raspberry Pi. The intent of this article is to g...
https://www.circuitbasics.com/how-to-write-and-run-a-c-program-on-the-raspberry-pi/
In this tutorial I’ll discuss the basics of shell scripts, what they’re used for, and how to write and run them on the Raspberry Pi. What is a Shell Script? Shell scripts allow you to automa...
https://www.circuitbasics.com/how-to-write-and-run-a-shell-script-on-the-raspberry-pi/
Sometimes it’s hard to keep track of all the Raspberry Pi commands you use, so I created a list of some of the most useful and important ones that will make using Linux on the Raspberry Pi...