Skip to main content

Posts

What is the ESP32 VSPI / HSPI

 The ESP32 integrates four SPI peripherals. SPI0 and SPI1 are used to access the ESP32’s attached flash memory and thus are currently not open to users to be used . They share one signal bus via an arbiter. SPI2 and SPI3 are general purpose SPI controllers, sometimes referred to as HSPI and VSPI, respectively. They are open for use. SPI2 and SPI3 have independent signal buses with the same respective names. Each bus has three CS lines to drive up to three SPI slaves.  

Current Limiter Example Circuits and explained

The post explains 2 simple universal current controller circuits which can be used for safely operating any desired high watt LED. The universal high watt LED current limiter circuit explained here can be integrated with any crude DC supply source for getting an outstanding over current protection for the connected high watt LEDs.  Why Current Limiting is Crucial for LEDs We know that LEDs are highly efficient devices which are able to produce dazzling illuminations at relatively lower consumption, however these devices are highly vulnerable especially to heat and current which are complementary parameters and affect an LED performance. Especially with high watt LEds which tend to generate considerable heat, the above parameters become crucial issues. If an LED is driven with higher current it will tend to get hot beyond tolerance and get destroyed, while conversely if the heat dissipation is not controlled the LED will start drawing more current until it gets destroyed. In ...

How to set up working X11 forwarding on WSL2

 This tutorial is about properly setting up WSL2 X11 forwarding on Windows and Linux distro Add the following to your ~/.bashrc :  export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0 export LIBGL_ALWAYS_INDIRECT=1 Enable Public Access on your X11 server for Windows.* Add a separate inbound rule for TCP port 6000 to the windows firewall in order to allow WSL access to the X server, as described by the wsl-windows-toolbar-launcher people. On the Ubuntu Wiki page about WSL you can already find a configuration adapted for WSL2 under Running Graphical Applications . A similar configuration is also suggested by the above mentioned Reddit User, who also contributes another part of the solution: Enable Public Access on the X11 server under Windows.

How to Upgrade from WSL to WSL2 on Windows 10

On Windows 10, it is possible to upgrade the Windows Subsystem for Linux platform to version 2, this included the already installed Distributions, and in this article are the steps required to convert to WSL2. The Windows Subsystem for Linux 2 (WSL2) is an updated version of the implementation that uses a very light virtual machine instead of a direct translation between both operating systems, allowing for noticeable improvements in performance and complete call compatibility support. In this article are the steps to upgrade WSL to WSL2 and convert Linux distros to version 2 on Windows 10.   Download this WSL2 kernel update (required  Install the downloaded file   Open Start. Run PowerShell in Administrative Option  Type the following command to set Windows Subsystem for Linux 2 your default architecture for new distros you’ll install and press Enter : wsl --set-default-version 2    Type the following command to get a list of all the distros ins...

How to program 8051 based MCU using Ptroteous Schematic capture and Source code editor to use timers using AT892051 + project files

 This tutorial is dedicated to use a 8051 based Microcontroller core and program it using keil's C51 tools on the Proteus Source code editor.  1- Brief History of 8051 one of the first microprocessors 4004 was invented by Intel Corporation as well as  8085 and 8086 microprocessors back in 1981,shortly after Intel introduced an 8-bit microcontroller called the 8051 . It was referred to as system on a chip because it had 128 bytes of RAM, 4K byte of on-chip ROM, two timers, one serial port, and 4 ports (8-bit wide), all on a single chip. When it became so widespread, Intel allowed other manufacturers to make and market different flavors of 8051 with its code compatible with 8051. It means that if you write your program for one flavor of 8051, it will run on other flavors too, regardless of the manufacturer. This has led to several versions with different speeds and amounts of on-chip RAM. 2- Features of AT892051 Microcontroller Compatible with MCS®-51Products 2K ...

What Is Direct Memory Access (DMA)?

  Direct Memory Access (DMA) is a feature of computer systems that allows hardware subsystems to access main system memory (RAM) independent of the Central Processing Unit (CPU). The Direct Memory Access (DMA) hardware peripheral on PIC ® microcontrollers (MCUs) allows for direct memory-to-memory mapping and multitasking behavior through concurrent operation of the DMA and the CPU. This enables more flexible usage of eXtreme Low Power (XLP) technologies through core-independent movement of data in low-power modes and significant improvements in data throughput and latency.     Why Is DMA Used? Most CPU operations in MCU-based systems involve the movement of data. In many cases, this can significantly limit the throughput and responsiveness of a system. For example, an interrupt can cause the CPU to stop what it is currently doing to service the interrupt. In l...

How to Extract RAR Files in Ubuntu Linux

When it comes to handling zip files, Windows users have always had the advantage with WinRAR that automatically helps to extract and compressing zip files. On the other hand, in case of Linux operating systems, users have to either download other compatible tools or perform the operation through command terminal. What is a .RAR File Extension? For users who don’t know, a RAR file is a compressed file that is split into a set of multi-volume files. This is usually done in cases where there are large file sets that are needed to be shared or transferred, hence are compressed into a zip file. Similarly, for zip files, when they are transferred or downloaded from the internet need to be extracted. A number of tools are available to help extract and compress these files within seconds, regardless of their size or quantity. Extracting RAR Files in Linux distributions RAR is a free tool that is pre-installed on Windows operating systems but unfortunately doesn’t suppor...