Skip to content

4. Embedded programming

Microcontroller

A microcontroller (MCU for microcontroller unit) is a small computer on a single VLSI integrated circuit (IC) chip. A microcontroller contains one or more CPUs (processor cores) along with memory and programmable input/output peripherals. Program memory in the form of ferroelectric RAM, NOR flash or OTP ROM is also often included on chip, as well as a small amount of RAM. Microcontrollers are designed for embedded applications.

Arduino

Arduino is an open-source hardware and software company, project, and user community that designs and manufactures single-board microcontrollers and microcontroller kits for building digital devices.

Arduino board designs use a variety of microprocessors and controllers. The boards are equipped with sets of digital and analog input/output (I/O) pins that may be interfaced to various expansion boards or breadboards (for prototyping) and other circuits.

Arduino MKR WiFi 1010

MKR WiFi 1010 is a great choice for any beginner, maker or professional to get started with Internet of Things (IoT). Using the popular Arm® Cortex®-M0 32-bit SAMD21 processor, it also features the and the ECC508 crypto-chip for security. The board is part of the MKR family.

Arduino IDE Software

Arduino IDE Software is used for coding. i downloaded the software from the website

To Connect The MKR WiFi 1010

  • After downloading and opening the software, i connencted the MKR Wifi 1010 by clicking on tools > Board > Board manager.then i wrote the name of the chip and installed the board.

Code Examples

  • We can see built-in examples for coding, in the picture below i choosed the blinking example

  • Another Example for blinking, is translating words to morse code. Morse code is a method used in telecommunication to encode text characters as standardized sequences of two different signal durations, called dots and dashes, or dits and dahs.

I translted my name to morse code using morse code translating website. and then the morse code translated to light. Where dots are expressed with short bursts of light, while dashes are displayed with longer beams.

Result

TinkerCad

Morse Code

  • “HI” on morse code (Blink)
  • i translated hi to morse code by the translator

  • then i opened circuits in tinkercad

  • clicked on componenets then Arduino

  • i choosed blink

  • i named the LED and changed its color to green

  • then i wrote the morse code using the blocks

  • TinkerCad File

  • Arduino code

Last update: September 11, 2022