TUTORIALS
Case 3丨What is Pulse-width Modulation?
Pulse-Width Modulation, or PWM for short, is a scheme that uses digital signals to simulate changes in analog signals, as most of the signals in our natural life are analog, such as brightness, speed, volume, etc.
Case 2丨What is Pico:ed of GPIO?
Based on the hardware in the previous section, some of you will ask exactly how the LED lighting is achieved.
The answer is to use a GPIO peripheral.
Here you need to understand a concept, the full name of peripherals is external devices.
In the early days, UART, LCD controller, and so on, and the CPU is not on a chip, so that is called external devices.
Case 1丨What Is Pico:ed? How To Play?
Pico:ed is powered by the latest MCU release from the Raspberry Pi Foundation (RP2040), the first microcontroller for the Raspberry Pi. It brings our signature value of high performance, low cost and ease of use to the microcontroller space.
Case 4丨How To Apply ADC With Pico:ed?
Often, without our eyes and ears, our hands and feet are not as accurate as they could be, because we get feedback through our eyes and ears. Our brain can use the feedback to constantly correct the movement of our hands and feet, creating closed-loop feedback. If we need to use PWM to precisely control the brightness of an LED, we need feedback, but the brightness of the LED is an analogue signal.
Our MCU is not able to process the analogue signal directly, it needs to be converted into a digital signal before it can be processed, so how can we convert the analogue signal into a digital signal? This is where Pico:ed's ADC function shines through.
How to Play Music With Pico:ed
The Pico:ed is a development board based on Raspberry Pi RP2040 MCU which has a passive buzzer onboard. We know that micro:bit is able to play music by MicroPython, thus, how to play music with Pico:ed?
ecode Five-pointed Star
We’ve had a thoroughly understanding to ecode, today let’s draw a five-pointed star there as the below picture states:
Hello, “ecode”!
Hi, we have introduced “ecode” last week, now I am going to use it to program a project---Hello, ecode!
The New Graphical Program Platform-ecode
Through the "graphical programming" micro:bit spiral, we used it to implement a simple spiral animation and left a question at the end, which is the figure below. You may find that this figure is hard to be achieved by micro:bit. How about ecode?
micro:bit Reaction Ability Test
Hello, today I will use micro:bit to make a simple reaction test game. There is a small bright spot on the LED matrix that moves left and right. When the bright spot moves to the middle, press the A button...
The Direction Lights of the Cutebot
We may program to make the Cutebot turn on its directional lights while it turns. It’s also possible to control the lights via Joystick:bits or sensors, here I’ve programmed to change its driving status at random for each scheduled time.