
Encoder
byrantech/laptop
anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.

The components use above were incorporated into a Printed Circuit Board(pcb) .Kicad software was used to design the pcb.
Ic Lewis is an open-source printed circuit board by SAMUELMUCHIRI, from the SAMUELMUCHIRI/SMART-PARKING-WITH-MPESA repository on GitHub. It is a 2-layer board of 137 × 100 mm with 7 parts on 7 nets, routed with 107 tracks and 0 vias.
Its parts include 2 ICs and 1 capacitor. It belongs with the ESP8266 boards of this library.
The fundamental objective of this Project is to familiarize with the principles of engineering design thinking, a process through which a holistic solution is conceived to address tangible, real-world issues.
The Components used were
The components use above were incorporated into a Printed Circuit Board(pcb) .Kicad software was used to design the pcb.
Geber File
Schematic
Routings
3D View
Developed PCB

The sketch Primary operation contains all the code for the hardware . The code entail
//Check the whole code this is a snippet
Wire.begin(I2C_SDA, I2C_SCL);
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print(" SMART PARKING ");//Check the whole code this is a snippet
int sensorValue1 = digitalRead(EntryPin);
int sensorValue2 = digitalRead(ExitPin);
int sensorValue3 = digitalRead(irSensorPin1);
int sensorValue4 = digitalRead(irSensorPin2);
int sensorValue5 = digitalRead(irSensorPin3);
int sensorValue6 = digitalRead(irSensorPin4);//Check the whole code this is a snippet
void OpenBarrier()
{
for (int i = 40; i < 180; i++)
{
myservo.write(i);
delay(30);
}
delay(100);
for (int i = 179; i > 40 ; i--)
{
myservo.write(i);
delay(30);
}
delay(30);
}//Check the whole code this is a snippet
WiFi.begin(ssid, password);
lcd.setCursor(0, 0);
lcd.print("Connecting to ");
lcd.setCursor(0, 2);
lcd.print(ssid);
// Loop continuously while WiFi is not connected
while (WiFi.status() != WL_CONNECTED)
{
delay(100);
lcd.setCursor(0 ,3);
lcd.print("scanning.....");
}
delay(200);
lcd.clear();
// Connected to WiFi
//Serial.println();
lcd.setCursor(0, 3);
lcd.print(WiFi.localIP());
lcd.setCursor(0, 1);
lcd.print("Connected! ");
delay(250);
lcd.clear();
//Check the whole code this is a snippet
WiFiClient client;
if (!client.connect(serverIP, serverPort)) {
lcd.clear();
lcd.setCursor(0 , 1);
lcd.print("NO LOCALHOST");
//Serial.println("Connection failed");
lcd.setCursor(5 , 2);
lcd.print("WRONG SERVERIP");
lcd.setCursor(3 , 3);
lcd.print(serverIP);
delay(1000);
lcd.setCursor(0 , 1);
lcd.clear();
}//Check the whole code this is a snippet
String postData = "sendval1=" + String(sensorValue3) +
"&sendval2=" + String(sensorValue4) +
"&sendval3=" + String(sensorValue5) +
"&sendval4=" + String(sensorValue6);
client.println("POST /index.php HTTP/1.1");
client.print("Host: ");
client.println(serverIP);
client.println("Content-Type: application/x-www-form-urlencoded");
client.print("Content-Length: ");
client.println(postData.length());
client.println("Connection: close");
client.println();
client.println(postData);MySQL was used as the DBMS
The ER diagram is Shown Below

The web app was wtitten in php .Queries are sent to the database as the user interacts with the application.
<?php
//connction to the Database dbconnect.php
$host="localhost";
$dbname="smart_parking";
$username="root";
$password= "";
$conn=mysqli_connect(hostname: $host,
username: $username,
password: $password ,
database: $dbname);
if(mysqli_connect_errno()){
die("Connection Error". mysqli_connect_error());}
//echo"Database Online";
?>//logging in data sent by the NodeMCU to the data_log.txt
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$data = array(
'sendval1' => $_POST['sendval1'],
'sendval2' => $_POST['sendval2'],
'sendval3' => $_POST['sendval3'],
'sendval4' => $_POST['sendval4']
);
$jsonContent = json_encode($data, JSON_PRETTY_PRINT);
$logFile = "data_log.txt";
file_put_contents($logFile, $jsonContent);
echo "Values uploaded successfully to data_log.txt";
}//storing contents of the log file to Database
$fileContent = file_get_contents("data_log.txt");
if ($fileContent !== false) {
$decodedData = json_decode($fileContent, true);
if ($decodedData) {
$IR1=$decodedData['sendval1'];
$IR2=$decodedData['sendval2'];
$IR3=$decodedData['sendval3'];
$IR4=$decodedData['sendval4'];
//$sql = "INSERT INTO system_status (IR1, IR2 , IR3 ,IR4 ) VALUES ($IR1 ,$IR2 , $IR2 ,$IR4)";
$sql="UPDATE system_status SET IR1=$IR1,IR2=$IR2,IR3=$IR3,IR4=$IR4" ;
if ($conn->query($sql) === TRUE) {
echo "<br>";
//echo "Data inserted successfully";
} else {
echo "<br>";
echo "Error: " . $sql . "<br>" . $conn->error;
}
}
}//Fetch values from Database
$query1 = "select IR1 FROM system_status ;";
$query2 = "select IR2 FROM system_status ;";
$query3 = "select IR3 FROM system_status ;";
$query4 = "select IR4 FROM system_status ;";
$result1 = $conn->query( $query1 );
$result2 = $conn->query( $query2 );
$result3 = $conn->query( $query3 );
$result4 = $conn->query( $query4 );
$slot1 =$result1->fetch_assoc();
$slot2 =$result2->fetch_assoc();
$slot3 =$result3->fetch_assoc();
$slot4 =$result4->fetch_assoc();//the following lines of code compare values from current database value to previous database values and assigns either empty or full slot
if(stripslashes($slot1['IR1'])== 0){
echo" SLOT 1 : FULL";
if((stripslashes($slot11['IR1'])== 1) and ($IR1==0)){
$date_time = date("Y-m-d H:i:s");
$current_date_time=strval($date_time);
$query5="UPDATE parking_details SET Time_In = '$current_date_time' WHERE Parking_Number =1";
$conn->query($query5);
}else{
}
}else{
echo"SLOT 1 :EMPTY";
if((stripslashes($slot11['IR1'])== 0) and ($IR1==1)){
$date_time = date("Y-m-d H:i:s");
$current_date_time=strval($date_time);
$query5="UPDATE parking_details SET Time_Out = '$current_date_time' WHERE Parking_Number =1";
$conn->query($query5);
} else{
}}Here's the landing Homepage

Payment as an integral part of the project was realized using the DarajaAPI The Client Receives an STK push on the phone an is billed accordingly.The Payment system is able to validate transactions the Following files are for payment
| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | Screw_Terminal_01x02 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | POWER1, POWERSENSORS1 |
| 1 | 10u | Capacitor_THT:CP_Radial_D6.3mm_P2.50mm | C1 |
| 1 | Buck | buckArduino:testesp | U1 |
| 1 | I2C_module | TerminalBlock_4Ucon:TerminalBlock_4Ucon_1x04_P3.50mm_Horizontal | I2CMODULE1 |
| 1 | NodeMcu_Esp8266 | NodeMCU esp8266:MODULE_ZC563900 | U2 |
The 6 most common of 7 parts.

byrantech/laptop
anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.



AxxAxx/AxxSolder
STM32 Based soldering station for JBC cartridges, 9-24 VDC and USB-PD power


jamro/tiny-engineer
A small desktop robot that brings an AI coding assistant to life, physically acting out when it reads files, thinks, writes code, and finishes work.

hoglet67/RGBtoHDMI
Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

It measures 137 × 100 mm and has 2 copper layers, 1.6 mm thick.
7 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the SAMUELMUCHIRI/SMART-PARKING-WITH-MPESA repository on GitHub, at the commit this page was made from: the board is kicad_files/ic Lewis.kicad_pcb and its schematic kicad_files/ic Lewis.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask SAMUELMUCHIRI before reusing the design.