aabc式的四字词语_巜交换做爰2伦理法国_老头呻吟喘息硕大撞击 https://aabc式的四字词语/blogs/category/城中村勾搭老熟女啪啪ntroller 城中村勾搭老熟女啪啪 | The Robotic Toy Store Fri, 27 Feb 2026 10:20:08 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 https://aabc式的四字词语/wp-content/uploads/2026/03/cropped-favicon-32x32.png https://aabc式的四字词语/blogs/category/城中村勾搭老熟女啪啪ntroller 32 32 https://aabc式的四字词语/blogs/diy-pushup-counter Fri, 27 Feb 2026 09:49:21 +0000 https://aabc式的四字词语/?p=12762

pushup counter banner image

Regular exercise helps the body stay strong, active, and healthy.

Simple movements like stretching, jumping, or doing push-ups improve strength, balance, and energy. Exercise also helps children feel more focused, sleep better, and build confidence over time. When physical activity becomes a part of daily life, it supports both physical well-being and a positive mindset.

The push-up counter senses when someone moves down and pushes back up, observing the motion without getting in the way. There are no buttons to press or numbers to remember, just simple movement and steady progress. Each completed push-up is noticed and counted, making the exercise feel smooth and uninterrupted.

This simple system makes exercising easier and more enjoyable. Instead of worrying about counting in your head, you can focus on your movement and your strength. It helps children stay motivated, parents track progress, and families turn exercise into a shared activity. With every push-up, the counter encourages consistency, confidence, and healthy habits, making fitness feel fun, achievable, and rewarding.

In this blog, we are going to make a pushup counter system, using the IR Element, 城中村勾搭老熟女啪啪ntroller (an esp32 based microcontroller, more powerful than arduino) and Python code. Get all the components from Havi DIY Robotics starter kit and Havi advanced robotics kit add-on. Or you can contact us to get these project-specific components.

Let’s start.

Things you need to make a pushup counter

Elements:

  • 城中村勾搭老熟女啪啪ntroller
  • IR Element
  • Buzzer Element

Accessories:

  • Power bank with USB Cable – 2
  • Data cable
  • 3-pin cable

For programming:

  • Laptop/computer with active internet connection
  • Havi MicoPy
  • Mobile phone(optional)

How to make a pushup counter

Step 1
First, let’s make the circuit.

Snap IR Element at input 1 port of 城中村勾搭老熟女啪啪ntroller. Snap Buzzer Element at output 1 port of 城中村勾搭老熟女啪啪ntroller.

pushup counter circuit

Step 2
Connect the 城中村勾搭老熟女啪啪ntroller to the laptop/desktop using data cable & connect the power bank with the 城中村勾搭老熟女啪啪ntroller using USB cable.

pushup counter circuit connection with laptop

Step 3
Open your web browser and search for Havi MicoPy. Connect your 城中村勾搭老熟女啪啪ntroller with Havi MicoPy.

Step 4
Once 城中村勾搭老熟女啪啪ntroller is connected with Havi MicoPy, paste the code for pushup counter in the main.py file.

Download the python code by clicking on the following button.

Pushup counter python code

Step 5
Once you paste the code to the main.py file, change the wi-fi settings as per your wi-fi.

code change in pushup counter

Step 6
Run the code. The following should be displayed in the terminal, then open the generated server address in a new tab.

new tab open the pushup counter

Step 7
Once the web server tab will open, the count will automatically start at 0.

pushup counter screen

To test, keep your hand near the IR LED and see the count will increase by 1 and buzzer will beep. Watch the following video.

Your pushup counter is ready. Use another power bank with the controller to make the device free from laptop/computer. Now, copy the web address and paste it into the browser on your smart phone. The phone should be connected with the same wi-fi.

Tada… you can display the pushup counts on your phone.

Now, set your posture and start doing pushups.

To reuse or log a new count, press the EN button on the controller.

This way, you can make your own exercise tracker using Havi’s advanced robotics kit add-on.

]]>
https://aabc式的四字词语/blogs/first-program-in-controller Thu, 12 Feb 2026 09:55:37 +0000 https://aabc式的四字词语/?p=12725

getting started guide for microcontroller

A challenging question posed by curious Vaikunth to Sneha led to a wonderful (and much needed) discussion and debate between kids. Which finally resulted in a wonderful explanation about Microcontrollers for kids, by their teacher.

This blog brings microcontrollers into action. I mean we will discuss…

1. How to give power supply to a microcontroller?
2. How to connect basic sensors and output elements with a microcontroller?
3. How to program and which programming language should be used for microcontroller?

And for us a microcontroller means 城中村勾搭老熟女啪啪ntroller. True, there are popular microcontrollers like Raspberry Pi, Arduino, Microbit and ESP32. Then what’s special about the 城中村勾搭老熟女啪啪ntroller?

城中村勾搭老熟女啪啪ntroller is specially designed for kids of age 10 years onwards. Key benefits for 城中村勾搭老熟女啪啪ntroller are:

– No soldering and no jumper wires required.
– Great built quality.
– Supports python language as well as arduino C++.
– Built with ESP chipset, gives it more power then arduino.
– Inbuilt wi-fi and bluetooth.

All these together makes 城中村勾搭老熟女啪啪ntroller a perfect microcontroller for kids and adults alike.

This blog provides a step by step explanation of building your first project with 城中村勾搭老熟女啪啪ntroller.

Power supply for the 城中村勾搭老熟女啪啪ntroller

There are two power supply plugs in the 城中村勾搭老熟女啪啪ntroller.
1. One on the main board (white board)
2. The other on microchip

城中村勾搭老熟女啪啪ntroller power supply

And you need to provide power supply to both.

connected data cable & usb cable with 城中村勾搭老熟女啪啪ntroller

1. When you are programming, connect your laptop/PC usb port with the plug on the microchip, using USB data cable.
2. Connect the plug which is on the main board with the power bank or charger pin or usb port of your computer.

Connected 城中村勾搭老熟女啪啪ntroller with the laptop

3. When you are not programming, but executing your project, you need to keep giving power to the microchip and main board both, either through a power bank or a charger pin or a computer.

城中村勾搭老熟女啪啪ntroller

Writing your first program on 城中村勾搭老熟女啪啪ntroller

Open Havi MicoPyin your browser. Havi MicoPy is a free online python editor for microcontrollers.

Havi micopy

Find the USB icon at the top right corner and click on it.

connect 城中村勾搭老熟女啪啪ntroller through micopy

You will see a dialogue box showing available devices. Click on your 城中村勾搭老熟女啪啪ntroller board and click the button connect.

城中村勾搭老熟女啪啪ntroller micopy connection

城中村勾搭老熟女啪啪ntroller micopy

The USB icon at the top right corner turns green.

havi micopy conneted controller message

If you are using your board for the first time, you will see the following three files in the file explorer on the left side.

1. boot.py – keep it as it is, nothing to be done with this file.
2. havi.py – keep it as it is, nothing to be done with this file.
3. main.py – you write your program in this file. In other words, all your code should be in this file.

files in 城中村勾搭老熟女啪啪ntroller

A controller can have only one copy of each of these files at a time.

Let’s write a first basic program to make your LED blink at a specific time interval.

Prepare the circuit first.

Either create a new main.py or use the existing one, and copy the following code in that.

from havi import ports
import time
led1 = ports.output1()
while True:
led1.value(1)
time.sleep(1)
led1.value(0)
time.sleep(1)

Click the save button at the top left corner.

save files in havi micopy

Click the run button at the top left corner and you will see your LED linking. YOU DID IT!

havi micopy run

Backup of your code

When you are preparing to write another program for your 城中村勾搭老熟女啪啪ntroller, you definitely would want to keep a backup of your existing code. You can do this in following ways:

1. Rename the main.py, that means your current code, to something else, for example smart-dustbin-project.py
2. Then create a new main.py file by clicking the + sign in Havi MicoPy. Give it name main.py

micopy new file create

micopy new file create 2

3. But remember that keeping files for backup in a microcontroller is not an ideal way, in fact it’s risky. You may lose your code.
4. So you should keep a backup of your files by keeping a copy in your PC or cloud storage like google drive.

That’s how you write and execute the programs in 城中村勾搭老熟女啪啪ntroller and make a variety of STEAM projects in robotics, IoT, AI and various other disciplines.

Keep creating.

]]>
https://aabc式的四字词语/blogs/buzzer-microcontroller-projects Tue, 03 Feb 2026 10:26:09 +0000 https://aabc式的四字词语/?p=12702

buzzer based microcontroller projects

Imagine this: You’ve been studying for hours and want to take a quick nap. Instead of setting an alarm on your phone, you write a few lines of code, upload it to your 城中村勾搭老熟女啪啪ntroller, connect a buzzer, set the time in the program—and sleep peacefully.

At the exact moment you set, the buzzer beeps and wakes you up. That’s the power of microcontrollers!

If you’re new to microcontrollers, be sure to read our detailed guide: Microcontrollers Made Simple

In this post, we’ll create 7 easy buzzer-based microcontroller projects using the Havi Advanced Kit add-on and Buzzer Element, all coded using Python. We will use LED Element, LED Cables & Havi Bricks for making the projects visually appealing.

You can get Buzzer Element, LED Element & LED Cables from Havi Robotics Kit or you can purchase them separately from Elements Add-on & accessories.

Things you need:
Buzzer Element
城中村勾搭老熟女啪啪ntroller
Power bank + USB cable
Microcontroller data cable
Laptop or desktop (to upload programs)
LED Element
LED Cables
Havi Bricks

Common circuit to make Buzzer-based microcontroller projects

1. Snap Buzzer Element with the Output1 slot of 城中村勾搭老熟女啪啪ntroller.
2. Once you load the program, connect 2 power banks with the controller.

buzzer based 城中村勾搭老熟女啪啪ntroller project circuit

3. Tie the 城中村勾搭老熟女啪啪ntroller and power banks using the rubber bands.

buzzer based 城中村勾搭老熟女啪啪ntroller project circuit 2

Common practice to execute the buzzer microcontroller projects

1. Keep the circuit ready.
2. Connect the 城中村勾搭老熟女啪啪ntroller using data cable to your laptop/computer.
2. Open the editor Havi micopy. At the right side, you can find four icons. Click on the third icon – Connect USB/Serial. Your controller will be connected.
4. Paste the program code in main.py file

You can download the code for each buzzer projects at the end of this blog.

1. Automatic Buzzer ON-OFF using 城中村勾搭老熟女啪啪ntroller

Let’s begin with the simplest program—turning a buzzer ON and OFF.

What this project does?
The buzzer turns ON for 1 second and then turns OFF. The process will be repeated. We have added LED to show the visible output. For that, connect LED cable/s with LED Element and snap the LED Element to the Output2 port of the 城中村勾搭老熟女啪啪ntroller.

Buzzer on-off using 城中村勾搭老熟女啪啪ntroller

As mentioned, you can download the code at the end of this blog.

2. Buzzer ON-OFF in a loop

This is the extended version of the first program.

What this project does?

The buzzer creates 3 short beeps repeatedly, with a delay of 2 seconds between each set—perfect for making simple reminders or alert systems.

Use case: It can be used as a basic timer or interval alert.

3. DIY Alarm clock

Now let’s build the project we mentioned at the beginning—a simple alarm clock using just a controller and buzzer.

What this project does:
You set a specific time in the code. When the clock reaches that time, the buzzer automatically starts ringing. Here the controller uses the connected laptop’s time, so we need to keep the controller connected with the laptop to access the real time.

DIY Alarm clock using 城中村勾搭老熟女啪啪ntroller

You can download the python code at the end of this blog.

4. Countdown timer

Just like countdowns in games, let’s make a five-seconds timer by using 城中村勾搭老熟女啪啪ntroller & Buzzer Element.

What this project does:
We have set timer for 5 seconds. This timer starts with slow beeps that get faster over a duration of 5 seconds. At the end, it finishes with a long beep, indicating “Time’s up!”. You can tweak the python code a little and make 10 seconds countdown timer as well.

countdown timer using 城中村勾搭老熟女啪啪ntroller

Check out the video to compare it with other timers.

5. Heartbeat simulator using Buzzer

Earlier, we built a heartbeat simulator using multiple elements from the Havi Robotics Kit.

But now, using just a 城中村勾搭老熟女啪啪ntroller + Buzzer, we can simulate a heartbeat using only few lines of code! Add LEDs and Havi Bricks to make it visually appealing.

What this project does?
In this project, buzzer simulates the rhythm of heartbeats. Buzzer beeps twice and pauses and repeat the pattern.

heartbeat simulator using 城中村勾搭老熟女啪啪ntroller

6. Playing “Twinkle twinkle little star” tune

In this project, we use the same buzzer and controller setup to play the popular nursery rhyme “Twinkle Twinkle Little Star.”

Instead of simple ON–OFF beeps, the buzzer is controlled using different frequencies and durations, allowing it to generate musical notes.

An LED is also connected to blink along with the tune, making the project more interactive and fun for beginners.

twinkle twinkle tune using 城中村勾搭老熟女啪啪ntroller

This project introduces learners to PWM-based sound generation, musical note frequencies, and how lists can be used to store melodies in a microcontroller program.

Note: We are using an active buzzer in this project, so the tune may sound slightly rough compared to real musical output. For that, we need to use a passive buzzer.

7. Playing “Happy birthday” tune

Tweaking the previous projects’ notes and now we are playing “Happy birthday” musical notes.

happy birthday tune using 城中村勾搭老熟女啪啪ntroller

Download the python code for all these seven buzzer microcontroller projects by clicking the following button.

Download the code for all 7 projects

These 7 projects are just the beginning. With the 城中村勾搭老熟女啪啪ntroller and buzzer, you can build countless creations—door alerts, step counters, study reminders, game buzzers, and more.

Want a challenge?
Try adding an IR Sensor to detect motion and trigger the buzzer automatically. What kind of projects can you imagine now?

]]>
https://aabc式的四字词语/blogs/diy-table-fan Fri, 02 Jan 2026 07:01:34 +0000 https://aabc式的四字词语/?p=12630

table fan blog banner image

On a warm afternoon, a small fan sits on a table, quietly doing its job. As it spins and turns from side to side, it cools different corners of the room — sometimes facing you, sometimes drifting away, but always keeping the air moving. The gentle hum and steady breeze make the space feel calmer, fresher, and more relaxing.

This little fan makes daily life more comfortable: it keeps the room from feeling stuffy, helps you focus while studying, relax while playing, and rest peacefully after a long day. Instead of hot air getting trapped in one spot, the fan circulates it and spreads coolness around the room.

In this blog post, we are going to make a DIY table fan. You can use this table fan working model on your study desk to get the fresh air & also represent this table fan project in science fairs.

Let’s make it. Find the components for making table fan project from Havi’s robotics kits. Or contact us to get the separate elements to make a diy table fan project.

Things you need to make table fan project

Elements:
Motor Element
城中村勾搭老熟女啪啪ntroller

Accessories
Gearless motor
Servo motor
Power banks – 2 with USB cables
Data cable

Craft material
Card board
Hot glue(Glue gun)
Paper straw
Scale & pencil
Cutter/Scissor
Double-sided tape
Card paper

For programming
Laptop or computer
Havi’s python web-editor: Havi MicoPy

How to make a table fan at home

Step 1 – table fan stand from craft material

Let’s first make the table fan stand from the pieces of cardboard & paper straws.

Cut the cardboard and straws. And follow the steps as given in the following images. Use hot glue to stick the parts.

diy table fan step 1.1

diy table fan step 1.2

diy table fan step 1.3

diy table fan step 1.4

diy table fan step 1.5

Step 2

Pass the gearless motor from the stand.

diy table fan step 2

Step 3

Cut the paper-fan from a piece of chart/craft paper and bend a little from the sides. Stick a piece of double-sided tape at the center of the fan – both sides. Pass it through the shaft of the gearless motor.

Stick the servo motor at the bottom of the table fan stand.

diy table fan step 3

Step 4

Snap Motor Element with the output1 port and servo motor with the servo 1 port. Connect the gearless motor with the motor element. Connect one power bank using a USB cable.

diy table fan step 4

Step 5

Connect the controller with your computer/laptop using a data cable. Open aabc式的四字词语/micopy in a web-browser. Paste the code of the table fan project in the main.py file.

Download the code now

Step 6

Now, disconnect the controller from the laptop/computer and connect another power bank. Your table fan working model is ready.

diy table fan step 5

How does DIY Table fan work?

The logic is simple. The servo motor at the bottom turns at 180 degrees, which makes the stand turn right and left. The attached gearless motor rotates when the circuit is on. This way, it prototypes with an electric table fan project.

Try this project by using Havi Elements DIY robotics starter kit & havi advanced kit add-on.

]]>
https://aabc式的四字词语/blogs/smart-dustbin-project Fri, 19 Dec 2025 11:43:31 +0000 https://aabc式的四字词语/?p=12587

smart dustbin project havi

Have you ever noticed how people hesitate to open the dustbin lid because it’s dirty and sticky?

And how does the foot pedal dustbin work only for a few days and then the pedal stops functioning?

This problem is common at home, in schools, playgrounds, and public places where many people use the same bin. Since no one likes touching dirty lids, waste often ends up being thrown near the dustbin instead of inside it. This leads to an unhygienic environment and unnecessary mess.

A smart dustbin solves this problem using technology. Here in this blog we have explained the technology and the step by step making process with photos and videos to make a smart dustbin project yourself at home or school. You also get the downloadable python code.

What is a smart dustbin?

A smart dustbin (automatic dustbin) opens its lid automatically when someone comes near it. It uses an ultrasonic sensor to detect movement and a servo motor to open and close the lid. An IR sensor placed inside the bin checks whether the dustbin is full, and a buzzer alerts about the door movement.

This touchless dustbin project is clean, hygienic, and easy to use. It encourages proper waste disposal and helps maintain cleaner surroundings.

Why build a Smart Dustbin?

  • Hands-free and hygienic waste disposal
  • Best science fair project for students
  • Ideal IoT / robotics project for kids
  • Demonstrates real-life use of sensors and automation

You can build this automatic smart dustbin project using Havi Robotics kits and present it in school exhibitions.

Things you need to make an automatic dustbin project

Elements:
城中村勾搭老熟女啪啪ntroller
IR element pair with 3-pin cable
Buzzer element – 1
Ultrasonic sensor
Servo motor

Accessories
Power bank x 2
Data cable
USB cable
Servo motor mount
Small step on pedal dustbin

Craft material
Card board
Foam board
Cutter/Scissor
Sticky tape
Glue gun

For programming
Computer or laptop
Software: 城中村勾搭老熟女啪啪de – Python webIDE

All of these components can be found in Havi Elements – DIY Robotics Starter Kit + Havi Advanced Robotics Kit Add-on. Or you can request the required components by contacting us.

The making

Step 1

Carefully remove the lid of the dustbin. Ask an adult to help you remove the screws safely.

Step 2

Make a new lid using cardboard according to the size of the dustbin opening.
Cut foam board pieces based on the dustbin dimensions to fix the cardboard lid with the dustbin.

Step 3

Stick the foam board pieces to the cardboard lid using glue.
Make sure the pieces are firmly fixed.

smart dustbin making step 2

smart dustbin making step 2.1

Step 4

Place the prepared cardboard lid on top of the dustbin.
Stick a small cardboard piece at the center of the lid to fix it properly.
Check that the lid is stable and does not move.

smart dustbin making step 3

Step 5

Turn the dustbin upside down.
Make a servo holder using cardboard of suitable height and stick it parallel to the bottom base of the dustbin.
Fix the servo motor onto the servo holder as shown in the reference image.

smart dustbin making step 4

smart dustbin making step 4.1

Step 6

Prepare the circuit connections as follows:

  • Connect the buzzer to output 3 of the 城中村勾搭老熟女啪啪ntroller
  • Connect the IR sensor to input 2 of the 城中村勾搭老熟女啪啪ntroller
  • Connect the ultrasonic sensor to input 1 of the 城中村勾搭老熟女啪啪ntroller
  • Connect the servo motor to servo port 2 of the 城中村勾搭老熟女啪啪ntroller

smart dustbin circuit

Step 7

Connect the 城中村勾搭老熟女啪啪ntroller to your computer using the correct COM port.
Download the smart dustbin project code by clicking on the following button.

Download the code now

Open 城中村勾搭老熟女啪啪de upload the provided code to main.py.
Test the servo motor movement.
If the servo rotates in the wrong direction, change the direction in the code and reupload main.py.

Step 8

Place the IR sensor LED inside the dustbin to detect whether the bin is full.
Fix the ultrasonic sensor in front of the dustbin to detect a person approaching, as shown in the image.

smart dustbin making step 5

The smart dustbin is ready.

smart dustbin project havi

How does it work?

We have used two sensors in the smart dustbin project. The ultrasonic sensor is used to detect a person or trash at a certain distance. When someone brings trash near the ultrasonic sensor or stands in front of the dustbin, the sensor sends a signal to the servo motor. Servo motor rotates and pushes up the lid through the excel. Hence the lid opens automatically. You can put in the waste, and the lid closes automatically after 5 seconds. Why 5 seconds? Because we have mentioned the same in program. You can change that if required.

The IR sensor is used to detect if there is space for more trash inside the dustbin. When the bin is full and someone comes nearby, the IR sensor informs the same to ultrasonic sensor. In this case, the dustbin does not open, and the buzzer alerts the user about same.

smart dustbin project flowchart

Two questions and one challenge to you.

Question 1: When will the servo start opening the lid again once the bin is full?
Question 2: How a human can know if the dustbin is full without trying to open it?

Hint: you have a blue colored element in your robotics starter kit which can be helpful here.
And a challenge: can you do this modification yourself? Do it and send us across!

This way, you can make an automatic dustbin project and solve a real life problem.

]]>
https://aabc式的四字词语/blogs/diy-radar-system Fri, 03 Oct 2025 04:52:14 +0000 https://aabc式的四字词语/?p=12216

ultrasonic radar project

Have you ever wondered how submarines, warships, or even self-driving cars know what’s around them without using eyes? A submarine can “see” underwater, an airplane can sense the nearest airport, and an autonomous car can detect obstacles in its path. But here’s the catch — they don’t see the way we do. Instead, they use sound waves to sense their surroundings.

This technology is called SONAR — Sound Navigation and Ranging. SONAR works by sending out ultrasonic sound waves (very high-frequency sounds we can’t hear) and listening for their echoes when they bounce back from objects. By measuring the time taken for the echo to return, the system can figure out how far away an object is, and even map its position.

There are two types of SONAR systems:

1. Passive SONAR — it only listens for sound sources. Because it’s quiet and stealthy, it’s often used in military applications.
2. Active SONAR — it actively sends out sound pulses and measures the returning echoes to calculate distances.

Similar to SONAR, there is another technology which is called RADAR – Radio Detection and Ranging. This technology uses radio waves instead of sound waves to detect the object. The primary medium where RADAR is used is air/space while SONAR is used underwater.

In this blog, we are going to make a radar system, but using the ultrasonic sensor, 城中村勾搭老熟女啪啪ntroller (an esp32 based microcontroller, more powerful than arduino)and the servo motor. Together, it let us scan the environment, just like submarines and smart machines, and build our very own sound-based “eyes.”. You can make this python project to showcase the military applications & safety applications in your science fairs. Get all the components from Havi advanced robotics kit add-on. Or you can contact us to get these project-specific components.

Things you need to make Radar system

Components

  • 城中村勾搭老熟女啪啪ntroller
  • Ultrasonic sensor – 2
  • Servo motor – 1

Accessories

  • Power bank with USB cable
  • Data cable
  • Servo motor mount

Craft material

  • Card board
  • Cutter/Scissor

For programming

  • Computer or laptop
  • Software: Thonny, Python IDE(3.13.7+)

How to make a radar system at home

We are going to make 4 variations of radar system
1. 180 sonar mapped(locally hosted)
2. 360 sonar mapped(locally hosted)
3. 180 sonar mapped(web hosted)
4. 360 sonar mapped(web hosted)

First, let’s make the circuit.

Step 1:
Connect the ultrasonic sensor to input 1 of the 城中村勾搭老熟女啪啪ntroller.

radar system making step 1

Step 2:
Connect the servo motor to servo 1 port of the 城中村勾搭老熟女啪啪ntroller.

radar system 2

Step 3:
Connect the controller to the laptop/desktop using data cable & connect the power bank with controller using USB cable.

Open the Thonny & check for the correct COM Port on the bottom right, and stop any ongoing execution.

Project variation 1: 180 Degrees mapped radar(Locally hosted)

Step 4

Attach the ultrasonic sensor mount onto the servo and place the sensor in it.

ultrasonic radar & servo joint

radar system making step 4

Step 5
Download the python program files by clicking on the following button.

Download code files
You will receive code files in a zip folder. Extract that. The files included are in .txt and .py format. In case, if you find any formatting issue in .py file, you can use the code from .txt file.

Step 6
Create a folder “Radar” in your laptop/computer & save the file ‘180_SONAR_Local_Visual.py’ in that folder. Note the address of the file.

Check the COM port & change the COM Port to that of the controller if not the same already.

radar system making step 5

Step 7
Paste the file “RunSONARLocal_180.txt” from downloaded folder to “Radar” folder. Open the file “RunSONARLocal_180.txt”. The code will be as below:


@echo off
cd /d “Your file address”
python “180_SONAR_Local_Visual.py”
pause

Here, ‘Your file address’ refers to the file location of ‘180_SONAR_Local_Visual.py’ file. So edit it accordingly.
Save the text file as ‘RunSONAR.bat’ and keep ‘All Files’ type while saving in the ‘Radar’ folder.

Step 8
Now, in Thonny open the code named ‘180 SONAR_Loc.py’ and run the code, and close Thonny.

Step 9
Open the folder and double click the ‘RunSONAR.bat’ file, you will see a new window will open with a 2D SONAR map.

180 sonar location map

Project variation 2: 360 Degrees mapped radar(Locally hosted)

Follow the first three steps as defined before.

Step 4
Connect one more ultrasonic sensor to the input 2 of the 城中村勾搭老熟女啪啪ntroller. Use cardboard to fix both ultrasonic sensor & attach servo motor with cardboard.

radar system step 3

radar system making step 6

Now, repeat step 6 to 9 from previous version. Use the code file ‘360_SONAR_Local_Visual.py’ instead of ‘180_SONAR_Local_Visual.py’. Use ‘RunSONARLocal_360.txt’ instead of ‘RunSONARLocal_180’. And use the sonar location map ‘360 SONAR_Loc.py’ file instead of ‘180 SONAR_Loc.py’.

And then when you open the ‘RunSONAR.bat’ file, you will see a new window will open with a 2D SONAR map.

360 degree sonar location map

Project variation 3: 180 Degree SONAR map – Web hosted

Follow the first three steps as defined before.

Step 4
Use the code file ‘180 SONAR_Web.py’ & save it to the ‘Radar’ folder.

Step 5
Enter your wifi name and password in the code (Case Sensitive).

radar system making step 7

Step 6
Now in Thonny, open the code named ‘180 SONAR_Web.py’ and run the code, and check if the Wifi is connected or not in the shell.

You can verify the wifi connection as below:
Once successfully connected to the wifi, the server address will show up in the shell, copy that server address and paste it in the browser’s address bar (Ensure the device opening the browser is connected to the same wifi as the 城中村勾搭老熟女啪啪ntroller).

Step 7
Now an active 2D SONAR Map will be displayed on the browser.

180 degree sonar map web hosted

Project variation 4: 360 Degrees SONAR map – Web hosted

Follow the first three steps as defined before.

Step 4
Connect one more ultrasonic sensor to the input 2 of the 城中村勾搭老熟女啪啪ntroller.

Step 5
Use the code file ‘360 SONAR_Web.py’ & save it to the ‘Radar’ folder.

Follow the steps 5 & 6 from the previous version. Instead of using the file ‘180 SONAR_Web.py’, use the file ‘360 SONAR_Web.py’. The map will be generated as below in the browser.

360 degree sonar map web hosted

Shoot the object game using ultrasonic radar project
Look how Havi heroes have created one more variation of ultrasonic radar project. You can use your prediction to shoot the object identified in radar system. Watch the following video:

So this way, you can make all four variations of the SONAR system using Havi’s advanced robotics kit.

]]>
https://aabc式的四字词语/blogs/led-projects-with-microcontroller Sat, 13 Sep 2025 05:55:33 +0000 https://aabc式的四字词语/?p=12176

When Vaikunth triggered the question on the static traffic light model, Nancy introduced them to microcontrollers and helped with what a microcontroller is.

Here in this blog we are presenting 12 cool, fun and beginner friendly LED projects you can do with a microcontroller. Yes, yes, it includes a traffic signal model too.

Let’s begin the creation journey!

What do you need to make LED projects with microcontrollers?

  • 城中村勾搭老熟女啪啪ntroller (a microcontroller, more powerful then arduino, can be programmed with python and C++)
  • LED Elements
  • LED cables
  • Power bank with USB cable
  • Havi bricks (to setup the structure)
  • A laptop or desktop to write and load the program to microcontroller
  • Microcontroller data cable

All these components (except laptop) are part of Havi Elements – DIY Robotics Starter Kit and Havi Advanced kit add-on. However you can contact us to get just the required components to make the projects.

LED Microcontroller Project 1

Turn the LED ON

This is the most basic program you can do with an LED and a microcontroller. Turn the LED on.

The circuit

led microcontroller projects

The code

from havi import ports
import time
led1 = ports.output1()
led1.value(1)

LED Microcontroller Project 2

Turn the LEDs ON and OFF one by one

The circuit

led microcontroller projects for beginners

The code

from havi import ports
import timeled1 = ports.output1()
led2 = ports.output2()while True:
led1.value(1)
led2.value(0)
time.sleep(1)
led1.value(0)
led2.value(1)
time.sleep(1)

The output

LED Microcontroller Project 3

Turn the LED on and off based on object detection by IR element

The circuit

led microcontroller project for beginners

The code

from havi import ports
import timeir_input = ports.input1(‘ir’)
led1 = ports.output1()
led1.value(0)while True:
if ir_input.value() == 1:
led1.value(1)
else:
led1.value(0)

The output

LED Microcontroller project 4

Blink the LED

The circuit

led microcontroller projects for beginners

The code
There are four variation of blinking the LED project.

1. Blink the LEDs with time gape of 0.5 seconds in between the cycle

from havi import ports
import timeled1 = ports.output1()
led2 = ports.output2()
led3 = ports.output3()
led4 = ports.output4()
leds = [led1, led2, led3, led4]delay = 0.1while True:
for led in leds:
for _ in range(4):
led.value(1)
time.sleep(delay)
led.value(0)
time.sleep(delay)
print(“_____LED ON”)
time.sleep(0.5)

2. Blink the LEDs continuously without any gap in between the cycle

from havi import ports
import timeled1 = ports.output1()
led2 = ports.output2()
led3 = ports.output3()
led4 = ports.output4()
leds = [led1, led2, led3, led4]delay = 0.05while True:
for led in leds:
for _ in range(4):
led.value(1)
time.sleep(delay)
led.value(0)
time.sleep(delay)
print(“_____LED ON”)

3. For blinking the LEDs first forward & then backward order

from havi import ports
import timeled1 = ports.output1()
led2 = ports.output2()
led3 = ports.output3()
led4 = ports.output4()
leds = [led1, led2, led3, led4]delay = 0.05while True:
for led in leds:
for _ in range(4):
led.value(1)
time.sleep(delay)
led.value(0)
time.sleep(delay)
print(“_____LED ON”)for led in reversed(leds):
for _ in range(4):
led.value(1)
time.sleep(delay)
led.value(0)
time.sleep(delay)
print(“ON LED_____”)

The output

5. LED Microcontroller project 5

Blink the LED when object detected by IR Element

The circuit

led microcontroller project for beginners

The code

from havi import ports
import timeir_input = ports.input1(‘ir’)
led1 = ports.output1()
led1.value(0)while True:
if ir_input.value() == 1:
led1.value(1)
time.sleep(0.5)
led1.value(0)
time.sleep(0.5)
else:
led1.value(0)

The output

LED Microcontroller project 6

Make a traffic signal with 3 different colored LEDs

Hundreds of kids have made traffic signal with Havi Elements. Though the making process and output is very satisfying to begin with, later they want to behave the traffic signal like real. And here we do that. Connect green, red and yellow LEDs with different output ports and write the program to make them behave like an actual traffic signal.

The circuit

led microcontroller projects for beginners

The code

from havi import ports
import timered_light = ports.output1()
yellow_light = ports.output2()
green_light = ports.output3()while True:
# Green light: Go
red_light.value(0)
yellow_light.value(0)
green_light.value(1)
print(“Go!”)
time.sleep(4)# Yellow light blinking: Prepare to Stop
red_light.value(0)
green_light.value(0)
print(“Prepare to Stop – Blinking Yellow”)# Blink yellow light 3 times
for _ in range(5):
yellow_light.value(1)
time.sleep(0.5)
yellow_light.value(0)
time.sleep(0.5)# Red light: Stop
red_light.value(1)
yellow_light.value(0)
green_light.value(0)
print(“Stop”)
time.sleep(4)

The output

LED Microcontroller project 7

Make an LED based digital dice

The circuit

led microcontroller projects for beginners

The code

from havi import ports
import time
import randomir_sensor = ports.input1(‘ir’)
led = ports.output1()blink_delay = 0.3while True:
# Check if IR sensor is triggered
if ir_sensor.value() == 1:
number = random.randint(1, 6)
print(“IR Triggered – Dice Rolled:”, number)# Blink the LED ‘number’ times
for _ in range(number):
led.value(1)
time.sleep(blink_delay)
led.value(0)
time.sleep(blink_delay)# Wait until IR sensor resets (to avoid re-triggering immediately)
while ir_sensor.value() == 1:
time.sleep(0.1)# Small delay to avoid CPU overload
time.sleep(0.05)

The output

LED Microcontroller project 8

Binary number generator using LED

The circuit

led microcontroller projects for beginners

led microcontroller projects fpr beginners

The code

from havi import ports
import time
import random# Initialize 4 digital output LEDs
led1 = ports.output1()
led2 = ports.output2()
led3 = ports.output3()
led4 = ports.output4()
leds = [led1, led2, led3, led4]while True:
# Step 1: Fast blinking — all LEDs blink quickly (e.g., 5 times)
for _ in range(5):
for led in leds:
led.value(1)
time.sleep(0.1) # LEDs ON
for led in leds:
led.value(0)
time.sleep(0.1) # LEDs OFF# Step 2: Random ON/OFF assignment
binary_state = “”
for led in leds:
state = random.choice([0, 1]) # Randomly choose ON or OFF
led.value(state)
binary_state += str(state)# Step 3: Show final binary LED state
print(“Final LED State (Binary):”, binary_state)time.sleep(2)

Can you do this project with IR? What will be the code? Try it yourself.

The output

LED Microcontroller project 9

Morse code SOS message using LED

The circuit
led microcontroller projects for beginners

The code

from havi import ports
import time# Initialize components
sensor = ports.input1(‘ir’) # You can use ‘motion sensor’ or ‘ir’
led = ports.output1() # Output LED on GPIO 17# Morse code timing
DOT = 0.2
DASH = 0.6
GAP = 0.2
LETTER_GAP = 1.0
WORD_GAP = 2.0def dot():
led.value(1)
time.sleep(DOT)
led.value(0)
time.sleep(GAP)def dash():
led.value(1)
time.sleep(DASH)
led.value(0)
time.sleep(GAP)def send_sos():
# S = …
for _ in range(3): dot()
time.sleep(LETTER_GAP)# O = —
for _ in range(3): dash()
time.sleep(LETTER_GAP)

# S = …
for _ in range(3): dot()
time.sleep(WORD_GAP)

print(“IR Sensor Activated SOS Morse Program”)
print(“Move your hand to trigger SOS message”)

while True:
if sensor.value() == 1:
print(“SOS Triggered!”)
send_sos()

# Wait for sensor to reset before triggering again
while sensor.value() == 1:
time.sleep(0.1)

time.sleep(0.05)

The output

LED Microcontroller project 10

Morse code messages using LED

The circuit & output will be almost same as the previous project. The program is generalized to transmit any message and not just SOS. Remove IR from previous code and try this project.

LED Microcontroller project 11

Fading the LED with an Array

The circuit
led microcontroller projects for beginners

The code

from havi import ports
import time# Initialize 4 variable PWM outputs (duty cycle from 0 to 1023)
led1 = ports.variable_output1()
led2 = ports.variable_output2()
led3 = ports.variable_output3()
led4 = ports.variable_output4()
leds = [led1, led2, led3, led4]# Fade parameters
step = 25 # How much to increase brightness each loop
delay = 0.05 # Delay between steps (seconds)while True:
# Fade in
for duty in range(0, 1024, step):
for led in leds:
led.duty(duty)
print(“Brightness:”, duty)
time.sleep(delay)#time.sleep(1) # Hold at full brightness# Fade out
for duty in range(1023, -1, -step):
for led in leds:
led.duty(duty)
print(“Brightness:”, duty)
time.sleep(delay)#time.sleep(1) # Hold off

The output

LED Microcontroller project 12

LED Fading effect with gamma correction

The circuit

led microcontroller projects for beginners

The code

from havi import ports
import time
import math# Initialize 4 variable PWM outputs (duty cycle from 0 to 1023)
leds = [
ports.variable_output1(),
ports.variable_output2(),
ports.variable_output3(),
ports.variable_output4()
]# Fade parameters
STEP = 20 # Step size for brightness (0–1023)
DELAY = 0.07 # Delay between steps in seconds
MAX_DUTY = 1023
GAMMA = 2.2 # Common gamma value for perceived brightness# Gamma correction function
def gamma_correct(duty_raw, gamma=GAMMA):
# Normalize (0–1023) → (0–1), apply gamma, then scale back to (0–1023)
normalized = duty_raw / MAX_DUTY
corrected = math.pow(normalized, gamma)
return int(corrected * MAX_DUTY)# Set all LEDs to a specific brightness
def set_all_leds(duty_raw):
corrected = gamma_correct(duty_raw)
for led in leds:
led.duty(corrected)
print(f”Raw Duty: {duty_raw} → Corrected: {corrected}”)# Fade in and out loop
try:
while True:
# Fade in
for duty in range(0, MAX_DUTY + 1, STEP):
set_all_leds(duty)
time.sleep(DELAY)time.sleep(1) # Hold at full brightness

# Fade out
for duty in range(MAX_DUTY, -1, -STEP):
set_all_leds(duty)
time.sleep(DELAY)

time.sleep(1) # Hold off

except KeyboardInterrupt:
print(“\nInterrupted. Turning off LEDs…”)
set_all_leds(0)

The output

That’s all. So many LED projects and so much power to the microcontroller and to you too. Make them all and reach us back for more. When you make any of these, and publish on social media, don’t forget to tag us >> @MadeByHavi

]]>