
BLOG · 30/3/2026
| OP |

The goal of this task was to decode a scrambled numerical matrix and reveal a hidden image using NumPy for matrix manipulation and Matplotlib for visualization.
I used Google Colab so I didn’t need to install any libraries locally.
The encoded matrix was provided in .npy format.
Steps followed:
To confirm that the file was uploaded correctly, I ran:
import os
os.listdir()
This displayed all files in the current working directory and confirmed that the .npy file was available.
Next, I imported the libraries required for the task.
import numpy as np
import matplotlib.pyplot as plt
I loaded the encoded .npy file using NumPy.
data = np.load("encoded_array.npy")
Then I inspected the structure of the array.
print(data.shape)
print(data.size)
This helped me understand the total number of elements stored in the encoded array.
The encoded data was stored as a 1D array, but images require a 2D matrix.
To fix this, I calculated the square root of the total number of elements and reshaped the array.
size = int(np.sqrt(data.size))
matrix = data.reshape(size, size)
This converted the flat array into a square matrix representing image pixels.
After reshaping the array, I visualized it using Matplotlib.
plt.imshow(matrix, cmap="gray")
plt.axis("off")
plt.show()
At first the image appeared scrambled or incorrectly oriented, which meant further transformations were needed.
Based on the clues provided in the task, I experimented with different NumPy transformations such as:
Example transformation:
matrix = matrix.T
matrix = np.flipud(matrix)
After applying the correct combination of transformations, the hidden image became visible.
Through this task I learned:
.npy files using NumPyOverall, this task provided a simple introduction to working with NumPy arrays and data visualization in Python.
https://github.com/user-attachments/assets/caafce82-ee8f-40d0-a06f-495a1de09feb
https://lochanelectron.github.io/discoveryprofile/
Build a personal portfolio website that shows info about yourself — interests, projects, social media, etc. It had to be responsive and pushed to a GitHub repo. No framework restrictions.
A single-page portfolio using plain HTML, CSS, and vanilla JavaScript — no frameworks needed.
The site has these sections:
IntersectionObserverpassion_found: false, contact section says "this man is living under a rock"your-username.github.ioindex.html via the GitHub UImain, savehttps://your-username.github.io| Section | What to add |
|---|---|
| Education | Degree name, university, years |
| Projects | Project name, description, link |
| Contact | Nothing — email is already there |
| File | Description |
|---|---|
index.html | The entire website — HTML + CSS + JS in one file |
Mosquitoes are tiny flying vampires that exist purely to ruin human happiness. In this article, we will design a completely unnecessary but highly satisfying laser defense system to eliminate them.
"If you know the enemy and know yourself, you need not fear the result of a hundred battles." – Sun Tzu
mosquitoes = ["buzz1", "buzz2", "buzz3"]
for target in mosquitoes:
print("Target locked:", target)
print("Firing laser...")
To create and simulate a simple radar system using Tinkercad with an ultrasonic sensor and servo motor to detect objects and display their distance on the serial monitor.
:contentReference[oaicite:0]{index=0} is an online platform used for designing 3D models and simulating electronic circuits. It allows users to build circuits using virtual components like Arduino boards, sensors, and motors without physical hardware.
The ultrasonic sensor (HC-SR04) measures distance using sound waves.
A servo motor is a motor that can rotate to a specific angle (0°–180°).
In this project, the servo motor rotates the ultrasonic sensor to scan the surroundings.
Radar systems detect objects using radio or sound waves. In this project, the ultrasonic sensor acts like a small radar by sending waves and detecting objects based on the reflected signal while the servo motor scans a wider area.
Distance = (Time × Speed of Sound) / 2
The aim of this project is to control the speed of a DC motor using a potentiometer and an ESP32 microcontroller.
In this project, I control the motor speed using PWM (Pulse Width Modulation).
The ESP32 reads the analog value from the potentiometer. Based on this value, it changes the PWM signal sent to the L298N motor driver. This changes the voltage supplied to the motor, which controls its speed.
When the system is powered on, the motor starts running.
The ESP32 continuously reads the potentiometer value. When I rotate the potentiometer, the analog value changes. The ESP32 converts this value into a PWM signal and sends it to the motor driver. Because of this, the motor speed increases or decreases depending on the position of the potentiometer.
I successfully controlled the speed of a DC motor using a potentiometer and ESP32.
https://github.com/user-attachments/assets/115242c0-449a-4f7f-b17e-a12fbb55cbae
The goal is to build an ESP32 web server that lets you control two LEDs through a web interface. When you access the ESP32’s IP address in a browser, you’ll see buttons to turn the LEDs ON/OFF. This project demonstrates basic IoT principles, including network communication, GPIO control, and dynamic web content generation.
https://github.com/user-attachments/assets/fbae05b8-aedd-4389-a5d5-2c41242f7534
Soldering is the process of joining two or more electronic parts together by melting solder around the connection.
To design and build a 555 astable multivibrator with a duty cycle of about 60% and observe the output waveform using a Digital Storage Oscilloscope (DSO).
A 555 timer in astable mode produces a continuous square wave.
The duty cycle is given by:
D = (R1 + R2) / (R1 + 2R2)
By selecting suitable values of R1 and R2, I can get a duty cycle close to 60%.
If R1 = R2, the duty cycle becomes about 66% (which is not needed) so me went with described ratio of 1:2.
I successfully designed and implemented a 555 astable multivibrator with a duty cycle close to 60% and verified the output using a DSO. (I did face a problem of getting result duty cycle of 47%, which was diagnosed by my friend and mistake was using 1000microF capacitor which was more than required amount).
The experiment was successful. I learned how to design an astable multivibrator and verify its output waveform practically.
https://github.com/user-attachments/assets/1e5c80d6-f2c0-4ba3-84af-d9b5671404fe