Skip to content
International Shipping
Wish Lists Cart
0 items

#5 Graphic Monitor Project With PicoBricks

25 Nov 2023
#5 Graphic Monitor Project With PicoBricks

When we look at the electronic items around us, you realize that they have many replaceable features and they are designed by engineers to be most useful to the user. Such as lighting systems, cooking systems, sound systems, cleaning systems. The way it works, the amount, the method, etc., by many system users. features can be programmed to change.

In robotic projects, in the processes of changing the sound level, changing the motor speed, changing the brightness of the light, the electrical voltage is sent in a way that creates a lower or higher effect. By decreasing the frequency of the electrical signal to the component, it can be operated at a lower level, and by increasing the frequency of the outgoing electrical signals, it can be operated at a higher level.

In systems without a screen, real-time graphic monitors are used to monitor some sensors and variables involved in the operation of the system. Graphic monitors make it very easy to detect the fault.

Details and Algorithm

In this project, we will prepare a project in which we increase or decrease the brightness of the red LED with a potentiometer. In addition, we will simultaneously monitor the electrical change occurring during this process on the Microblocks graphic monitor. When the picobricks starts, the potentiometer value will be read continuously and the brightness value of the LED will be adjusted. Applications in which the effect of the electrical signal is reduced by changing the frequency is called PWM. We will send the analog values ​​we read from the potentiometer as PWM signals to the red LED and we will be able to adjust the illumination intensity.


1X PicoBricks

Wiring Diagram

You can code and run Picobricks’ modules without wiring. If you are going to use the modules by separating them from the board, you should make the module connections with grove cables.

MicroBlocks Codes of the PicoBricks

MicroPython Codes of the PicoBricks


from machine import Pin,ADC,PWMfrom utime import sleep
#define libraries

#define the value we getfrom the led and pot.
led.freq(1000)while True:#while loop

    #Turn on the LED according to the value from the potentiometer.sleep(0.1)#delay

Arduino C Codes of the PicoBricks


voidsetup(){// put your setup code here, to run once:pinMode(7,OUTPUT);//initialize digital pin 7 as an outputpinMode(26,INPUT);//initialize digital pin 26 as an input
  Serial.begin(9600);//start serial communication}voidloop(){// put your main code here, to run repeatedly:
  int pot_val =analogRead(26);
  int led_val =map(pot_val,0,1023,0,255);digitalWrite(7, led_val);
  Serial.println(led_val);//trun on the LED according to the value from the potentiometerdelay(100);//wait}
GitHub Project Page
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