BUILD a passive infrared motion detector

OBJECTIVE We will build a passive infrared motion detector that can detect movement from distances that are between 3m and 7m. THE SCIENCE All objects that have a temperature above absolute zero (0 ° Kelvin/-273.15 ° C/-459.67 ° F) emit heat in the form of infrared radiation. The hotter the object is, the more radiation…

h-bridge motor

UNDERSTANDING motors

THE PROBLEM It is not possible to directly control a motor with an Arduino because of the low of the signal from the Arduino and because the current consumption of the motor will be too high for the Arduino. THE SOLUTION What is needed is a circuit to interface the motor and Arduino. Such a…

BUILD an ohmmeter

OBJECTIVE The objective here is to build an ohmmeter, which is a device for measuring resistance. The approach that we will use is to make a voltage divider circuit. This will consist of two different resistances. One will be fixed and the other will be the one which we wish to test. Because the two…

BUILD a traffic light

OBJECTIVE For this project we will build a single traffic light that follows the correct sequence (in the UK) of RED, RED and AMBER, GREEN, AMBER, RED. THE HARDWARE We will need a red, orange (or yellow) and green LED; 3 220Ω resistors and your Arduino. THE CIRCUIT THE CODE The first thing that we…

switch bounce

UNDERSTANDING switch bounce

THE PROBLEM Switch bounce can be problematic in some circuits if no action is taken to address it. We live in an analogue world but often want to provide a digital input to circuits, switch bounce is one of the issues that arise from this. Essentially the job of a switch is to transition between…

UNDERSTANDING interrupts

INTRODUCTION Interrupts are very important processes that occur in many circuits. Many circuits have a process that monitors what is going on and if the correct parameter(s) are met then an interrupt will kick in – it interrupts what was happening! We can split interrupts into hardware and software. Hardware interrupts These occur when an…

UNDERSTANDING SPI

Serial Peripheral Interface (SPI) is a data protocol that is used by microcontrollers for communicating with one or move peripheral devices, quickly and over short distances. SPI can also be used to communicate between two microcontrollers but whatever the situation, there is always one device that is designated as the master device. It is the…

UNDERSTANDING I²C

The inter-integrated (I²C) protocol allows communication between devices, with some designated as master devices and others as slave devices. As with SPI, it is designed for communication over short distances. However, unlike SPI, it is asynchronous. This means that only two wires are needed to exchange data. A further advantage is that it supports a…