Skip to content
International Shipping
Wish Lists Cart
0 items

#1 Get Started With PicoBricks – PicoBlink

29 Nov 2023
#1 Get Started With PicoBricks – PicoBlink

Blink Application

In real life, the employee, who has just started to learn the job, first undertakes the most basic task.The cleaner first learns to use the broom, the cook learns to use the kitchen utensils, the waiter to carry a tray. We can increase these examples. The first code written by newcomers to software development is known as “Hello World”. Printing “Hello World” as soon as the program starts on the screen or console window in the language they use is the first step in programming. Like a baby starting to crawl… The first step to robotic coding, also known as physical programming, is the Blink application. It means winking at robotic coding.

The “Blink Application” is a versatile and user-friendly mobile app designed to streamline and simplify various tasks, including monitoring and controlling IoT (Internet of Things) devices. Whether it’s home security cameras, smart thermostats, or connected lighting systems, the Blink Application offers users an intuitive platform for managing these devices remotely.

With the Blink Application, users can easily access live video feeds from their security cameras, receive instant alerts for motion detection, and control their smart devices from the convenience of their smartphones. This app enhances home security by providing real-time surveillance, ensuring that users can keep an eye on their property from anywhere, at any time.

In addition to its security features, the Blink Application also offers smart home control, allowing users to adjust their thermostats, lighting, and other connected devices to optimize energy efficiency and create a comfortable living environment. With its user-friendly interface and robust functionality, the Blink Application is a valuable tool for anyone seeking to enhance security and convenience in their connected home.

Details and Algorithm

There are 1 x 5mm red LED and 1 x WS2812B RGB LED on Picobricks. While normal LEDs can light up in one color, RGB colors can light up in different colors, both primary and secondary colors. In this project we will use the red LED on Picobricks.

Red LED Lights

Red LEDs, or Light Emitting Diodes, are electronic components that emit red light when an electric current passes through them. They are widely used in various applications, from electronic displays and indicators to brake lights on vehicles. Red LEDs are valued for their efficiency, reliability, and longevity, making them a popular choice in the world of lighting and electronics.

In the project, we will write the necessary codes to turn on the red LED lights on Picobricks, turn it off after a certain time, turn it on again after a certain time, and repeat these processes continuously.


1X PicoBricks

Wiring Diagram

You can access the Microblocks codes of the project by dragging the image to the Microblocks Run tab or click the button

MicroPython Codes of the PicoBricks


from machine import Pin#to acces the hardware picobricks
led = Pin(7,Pin.OUT)#initialize digital pin as an output for led
push_button = Pin(10,Pin.IN,Pin.PULL_DOWN)#initialize digital pin 10 as an input
while True:#while loop
    logic_state = push_button.value();#button on&off status
    if logic_state == True:#check the button and if it is on
        led.value(1)#turn on the led
        led.value(0)#turn off the led

Arduino C Codes of the PicoBricks


void setup() {
  // put your setup code here, to run once:
  pinMode(7,OUTPUT);//initialize digital pin 7 as an output
  pinMode(10,INPUT);//initialize digital pin 10 as an input

void loop() {
  // put your main code here, to run repeatedly:
  if(digitalRead(10)==1){//check the button and if it is on
    digitalWrite(7,HIGH);//turn the LED on by making the voltage HIGH
    digitalWrite(7,LOW);//turn the LED off by making the voltage LOW
  delay(10);//wait for half second
Prev Post
Next Post

Thanks for subscribing!

This email has been registered!

Shop the look
Choose Options

Edit Option

Have Questions?

Back In Stock Notification


Product SKUDescription Collection Availability Product Type Other Details

Terms & Conditions

What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Why do we use it? It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
this is just a warning
Shopping Cart
0 items