Linux Format

Build a lightning simulator with LEDs

Let’s use the Raspberry Pi’s general purpose input output (GPIO) to do some work. Under the control of a Python script, the GPIO output will drive a heavy load – meaning that the electrical current is in the magnitude of amps rather than milliamps. For this discussion the load will be a string of light emitting diodes (LEDs) requiring 12V DC at 2A.

If you’re not familiar with Pi technology, GPIO outputs operate at 3.3V DC and are only capable of supplying milliamperes of current – so the board is not designed for such applications. Using the outputs to drive any load is not recommended. In order for the Pi to be up to the task of driving a heavy load, we are going to employ external electronics in the form of metal oxide field effect transistors (a MOSFET) to overcome these limitations.

Operating framework

Before we look at the external circuit requirements, let’s go through the process of installing an operating system on the Pi. The drawing represents five steps in cycle of installing the Raspbian OS. Obtain the Raspbian OS. In this). Remember to complete a checksum verification once the image file has been downloaded, to ensure that all the bits were transported correctly. Use the image-flashing software () to install the Raspbian OS image to a microSD card. is open source software and available for a number of operating systems. Download the software, unpack the installer and install the application. Fire it up and select the image file and SD card device to kick off the process of writing an image to the SD card. Install two files in the folder of the Raspbian OS on the SD card. One file enables the SSH service for network connections, and the second enables Wi-Fi network connectivity to the Pi. Put a blank file named in to enable remote network connections to the Pi using SSH. Create a second file named with the following contents to provide wireless access to the Pi:

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

More from Linux Format

Linux Format1 min read
Kaki Pi
Another Pi-like SBPC appears! From Yuridenk-Shokai in Japan, this packs a Renesas RZ/V2H Coretex-A55/R8/M33 MPU with 80 TOPS of AI. It’s aimed at robotics and has four CSI video inputs along with a PCIe 3 connection. Find out more in Japanese: www.ka
Linux Format11 min readInternet & Web
Ultra-smooth Home Game Streaming
Credit: https://moonlight-stream.org, https://github.com/LizardByte Michael Reed is a consummate Linux professional who has been moonlighting for us so that he can live in the sunshine. (are we actually paying for these gags?–Ed) You can install the
Linux Format1 min read
Nvidia Moves To Block ZLUDA
As more and more applications rely on the combination of Nvidia and CUDA, it was inevitable that third-parties would try to build on their success. There’s already examples of this, such as ZLUDA, a drop-in replacement for CUDA. The implications of

Related