Posts

Showing posts from April, 2023

Installing Hyper Ledger Fabric on Windows 10

Image
Steps and links used for Installing Hyper Ledger Fabric on Windows 10 Steps for installation: 1 Open power shell in Admin mode. 2 Enable windows SubSystem for Linux dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart 3 Enable Virtual Machine feature dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart 4 Set WSL-2 as default version wsl --set-default-version 2 5 Install Ubuntu app from windows store: Open the Microsoft Store and install Ubuntu 20.04 LTS here 6 Install windows terminal It enables multiple tabs, quickly between the Linux command line and the windows command prompt. 7 Download linux kernel update package: To update the WSL package download setup at the below-mentioned link, it needs admin privilege. https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi 8 Open Windows Terminal and add a new ubuntu tab, you won’t be able to see the ubuntu terminal. Under add new terminal section. 9...

Sensor based Counting device - Design and implement basics embedded circuits

Image
  Sensor based Counting device Tinker Cad Simulation Circuit with Operational Code Sensor Based Counting Circuit Components required for above circuit: 1) Arduino Uno 3 2) PIR Sensors (x2) 3) LCD 16 x 2 4) Potentiometer 250 kilo ohm 5) Resistor 220 ohm Coding for above circuit: #include <LiquidCrystal.h> int in = 15; int inpr = 16; int out = 14; int outpr = 17; int ppl = 0; LiquidCrystal lcd(12, 11, 5, 4, 3, 2); bool pi = 0; bool po = 0; void setup() {   pinMode(15, INPUT);   pinMode(14, INPUT);   pinMode(16, OUTPUT);   pinMode(17, OUTPUT);   lcd.begin(16, 2); } void loop() {   lcd.clear();   digitalWrite(outpr, HIGH);   digitalWrite(inpr, HIGH);   pi = digitalRead(in);   po = digitalRead(out);   if (pi == 1){     ppl--;     delay(500);   }   else if (po == 1){     ppl++ ;     delay(500);   }   ppl = constrain(ppl, 0, 50);   lcd.setCursor(0, 0);   lcd.p...