Posts

Showing posts from March, 2021

Learn how draw with p5: A Chinese lantern

Image
  https://editor.p5js.org/hh2871/sketches/diyXJRSYG  Why do I choose lantern? Because lantern is a meaningful symbol for Chinese people. It stands for coming back home or reunion with family. Therefore, Chinese people like hanging out lanterns during traditional festivals as a good blessing.  How do I make it? First, I drew a picture of it.  I broke it down into several parts: the top, the body, the bottom, the fringe, and the decorations(a line and a square). For each part, I used basic shapes, like squares, rectangles, lines. The body part is special because of its irregular shape. Therefore, I used vertex() to sketch it out. The last step is to color different parts. I messed up with coloring since I used color() instead of fill(). And, I learned that every time I want to apply different colors, I need to reset the RGB.

Interactions Between Two Microbits & Connect Scratch with Microbit

Image
  Interactions between two microbits  To make a project that uses communication between two Microbits, I chose a project from the list, which is called Heartbeat beacon. A heart pattern will show up in a microbit when it receives a string signal from another microbit.  At the start, I prepared two microbits: one as a receiver, one as a transmitter. They had the same preset code to set the radio set group and radio set transmit power. For the transmitter, there is a forever loop to transmit radio. For the receiver, there is a trigger to show a heart icon when it receives a string signal.  For fun, I modified the code. After sending a string, the transmitter will send a number. It is still a forever loop. At the same, I added a new code to the receiver, making it react to the number signal showing a smile icon.  It is interesting to compare Makecode with Javascript. I found it a little bit different from js that I learned before. Here are some guesses based on my knowledge of js: 1. radi

Get to know more about microbit

Image
Last week, Prof. Dec introduced another creative technology -- microbit.  At the first time when I hold it in my hand, I wondered how much fun this tiny thing could bring. However, I was totally obsessed with its magic power when I started exploring it.  source from https://kidscodejeunesse.org/microbit Beginner Projects  I start from the very first challenge, to show heart image. Then, make a heart beat.  There are many sensors built in microbit, like temperature, action, movement, sound, bearing, etc. I tried many. Here is one example of the light sensor.  Intermediate Project In the intermediate projects, I found an interesting project, which is called electronic pet. When I was a kid, I used to have a tiny machine called tomagotchi, having an electronic pet inside. Therefore, I decided to do this project. They’re small gadgets that you can keep on your keyring. A creature is shown on a simple display. You have to look after it, interacting with it by pressing buttons and playing si

Scratch Mini-project: Simple MP4 & Remix

Image
During the past few weeks, I worked on a mini-project using Scratch. This small piece is an MP4 player, to be more specific, it is a music player. I tried to simulate the real user journey in a music player, like turn on and off, next and previous song, pause and start a song, etc.  Week 1  In week 1, I just grabbed some thoughts about the mini-project. I thought of making a storytelling project, demonstrating the great fun brought by MP4 during my childhood. But I decided to make an interactive virtual MP4, which could be more interesting since people can interact with it. Due to the time pressure, I just forked the music player function of the MP4 player. Week 2 Before starting to use Scratch to create the project, I made a plan first to sort out my sort of random thoughts. They are many functions of a music player. I need to decide put which functions into priority. I made a list to map the user interactions in sequence: 1.  turn off/on the device   2. see a central interface  3. ge