Sign in

Software engineer, Movie lover, Karate beginner.

Background:

Once you understand most of function in MCU, you will start trying to connect it to other modules for more application. Once you did it, you will start to find that IOs number on MCU is always not enough.

Communication interface such as I2C will help you to increase capability of connecting more modules. In this tutorial, I will show you how to access a combined environment sensor which is I2C communication interface.

Source: https://unsplash.com/photos/gR8QukPoAvQ

Again, let’s talk about who should read “Intermediate-Level” series. First, if you already have basic knowledge of C language and MCU, you should have the ability…

Background:

Learning could be a painful process, especially dealing with the world that you are not familiar with. But at the same time, it could be an exciting process if you on the right track.

For this series, I would like to show you how to learn some basic knowledge about MCU step-by-step without hazard. Also try to help you to identify what is essential and what is nice to know at your stage. So you can stay at ideal “FLOW” or “ZONE”, which should help you to reduce your anxiety.

Source: https://unsplash.com/photos/EUsVwEOsblE

First, let’s clarify who should read the entry-level series…

Recently, our team need to deal with some image processing / object tracking task. One of challenge is using low cost platform to perform huge amount of computing.

Thus, during my free time, I am trying to figure out how image is processed in Nvidia’s platform and how can we accelereate this process. The following content is part of my note for this small personal project.

Source: https://developer.nvidia.com/EMBEDDED/jetson-nano-developer-kit

What do you need for this exercise?

  1. Nvidia Jetson Nano developer kit: LINK
  2. A high-speed micro SD card with a card reader.
  3. 5V, 4A power supply for Jetson Nano: You should be fine with it: LINK
  4. A screen with HDMI input.

Last time we talked about the eTimer module for some application. But MPC5744P also offered a System Timer Module for some system level application.

It remind us that Particle Photon also has a function called “software timer”. How about we also create our DIY software timer? So,this article will cover how to configure STM and implement a software timer in C. Since we have ability to measure time in a releative precise way, we can also implement the function to return the time pass since device boot-up.

Source: https://unsplash.com/photos/9qQTUYm4ss4

What do you need for this exercise?

  1. MPC5744P dev-board: LINK
  2. S32 design studio for MPC5744P: LINK
  3. The example that we…
Source: https://unsplash.com/photos/pfR18JNEMv8

We’ve shown you how it feels about using a timer function in the previous exercise: MCU learning, Entry-Level, Part 2, Delay function.

But…what we did not mention is that exercise more or less is a software timer. So, this exercise tend to show you how to access a Hardware timer in a more profesional MCU: NXP MPC5744P.

Furthermore, we will also show you how to use this project which is inherited from the original NXP-provided Etimer example.

What do you need for this exercise?

  1. MPC5744P dev-board: LINK
  2. S32 design studio for MPC5744P: LINK
  3. The example that we provided: LINK
  4. MPC5744P User manual Rev6(2016/06)

What are we focusing on today?

  1. HW timer basic function(ETimer).

From the last section, we learned about how to use the GPIO. One of function actually we did not talk about detail a lot which is ADC.

In nature world, most of the signal tha we can pick up is generally an “Analog” signal, such as sound, temperature and pressure. Digital signal is created by human for computer to process datas. Imagine how many rational number between 1 to 10? Infinite right? How many number can a computer system present? Depends on how many bits it have. But it is an fininite number for a signle data.

Source: https://unsplash.com/photos/ASKeuOZqhYU

1. How to present an infinite state with a finite state?

=> Using a…

Background:

GPIO provides the most basic function of an MCU which make it so important as well. For example, you should find that in most of the teaching courses, the exercise after the “HelloWorld” is using GPIO to light up an LED. Another examaple could be read a potential meter and print it on serial port.

image source: https://docs.particle.io/datasheets/wi-fi/photon-datasheet/

What do you need for this exercise?

  1. Particle Photon(LINK)
  2. A Computer/Laptop with a USB port(Windows is ideal)
  3. A through hole led (Optional)

Let’s have a look at Particle Photon pin

Background:
I’ve been searcing for language to process data from MCU. And ends up with Python could be a nice language.

I used to play with C# for real-time data visualization and recording. But since I am learning python, why not use it to pick up and visaulize data. I decide to name this series as “Learning Note” which means it will be a note instead of tutorial. So steps may skip and just talks about some important parts.

Material for this learning note

  1. Python3.7 with Numpy and Streamlit installed.
  2. Particle Photon + Si7021 module
    You can use the exercise that I created before: <LINK>

Target

Time is the most valuable thing a man can spend. — Theophrastus.

So does MCU world….
Timing could be a vital issue for some application which requires fast resposne or even real time application.

I will show you how MCU achieve to manage TIME.

Source: https://unsplash.com/photos/ZMZHcvIVgbg

From the entry-level Part 1 exercise(LINK), we had got an overview of how we write a piece of code. It isn’t that so hard, right?

However, you may complain about the MCU send the “Hello World” message so fast, causing it too hard to read.

Is there anything we can do to slow it down? YES

2020/11/18, Warm-sunny day

Photo by: www.hthaostudio.com, Source: Unsplash

從小就一直著迷武術的世界;不管是中國傳統武術或是國外的武術,但是住的城市沒有像樣的傳武道館,成長的過程中也跟大部分的小孩一樣不斷的補習…補習…補習。沒有多餘的時間與精力可以花在自己想學習的事物。

出社會來到大都市工作生活後,也一直在尋找練武的機會,兩年前的一個時間點;人生剛好走到了近乎迷失的階段,工作時常充滿了憤怒的情緒;也對自己身體狀況也不滿意,實在是處於一個很糟的狀態。最後決定在生日的前後要來好好改造自己。

網路上幾周的搜尋後,找到了一家知名的運動、武術、MMA訓練館,報名了中國傳統武術的課程;但上了一次課後深深覺得這不是我想要的。後來又尋尋覓覓的找到了現在所在的道館,就很高興的簽了生死狀(X)免責聲明(O)。

之所以選擇了空手道當作主要的運動,是因為它帶有濃厚的日本武道精神:
(一)尊師重道: 見面時跟所有人一一打招呼、進出道場的禮儀、練習後的精神喊話。
(二)精神上的要求: 練習前冥想、就算是不會/不熟的動作也要全力以赴、喊聲要有自信精神、組手中要想辦法戰勝對疼痛的恐懼、練習後的10本突き。
(三)技術上的鍛鍊: 千錘百鍊只為了把一個基本動作做好、有點難的移動複合技、複雜但是又帥氣的型。
(四)體能上的要求: 每次或多或少都有的體能練習、升級考試時候簡直比當兵還硬的測試。

這些都會在之後的文章中跟大家分享分享。Stay tuned!

當然也並不是說中國傳統武術沒有這些要素,而是以營利目的為主後;這些都不再是必要的。例如教練為了討好學生不敢要求學生或是斥責不對的事情、學生尊重老師/師範也已不是必需的要件;畢竟繳錢的是大爺。另外許多中國傳武這幾年被詬病的問題也是只練招式對拆、不追求實戰性。不過最近也是看到很多有傳武背景並且把傳武帶上MMA的運動員出現了。

練習了幾次後來發現空手道的領域水很深,在每一次練習的過程中;都會或多或少發現身體跟心境的改變。最近希望把自己的心路歷程記錄下來,看看自己可以走得多遠?體會到多少?也趁機會讓更多的人有機會用初學者的角度了解這個充滿傳奇且神祕的世界。

重點訊息: 在這個平台空間更多的會是記錄自己的心境、心得而非技術;畢竟我還不到那種可以分享技術層面資訊的等級, 但是有錯的地方還是請前輩們多多指正謝謝! OSU!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store