Skip to content

Week4 Embedded Programming

This is an alt text.

In this week, we learned about Embedded Programming which it how can we deal with a Microcontroller to be able to gain control on other hardware devices.

Group Task

  • What is Microcontroller?

A microcontroller is a small and low-cost microcomputer, which is designed to perform the specific tasks of embedded systems like displaying microwave’s information, receiving remote signals, etc.

The general microcontroller consists of the processor, the memory (RAM, ROM, EPROM), Serial ports, peripherals (timers, counters), etc. Source

  • Difference between a Microcontroller and Microcontroller Board (Single Board Computer)?

The biggest difference between an SBC and a microcontroller is that the former is a self-contained computer with the ability to run an OS, whereas the latter is just a chip with far fewer resources. Also, unlike SBCs, microcontrollers are intended to run only one program repeatedly. Source

Each student were asked to search about a type of microcontroller and looks for its details. I had to search about ( Adafruit Feather nrf52840 Express ).

This is an alt text.“>

Name: Adafruit Feather nrf52840 Express.

Number of pins: 21.

pins type: Digital Input/Output (GPIO), Analog Input (ADC), Pulse Width Modulation (PWM), I2C, SPI, and UART.

Type of sensor: There is no sensor on it.

Processer: It built around the Nordic Semiconductor nRF52840 system-on-chip (SoC). The nRF52840 is a powerful and versatile SoC specifically designed for wireless applications.

connections: USB, Bluetooth, Wireless Protocols, GPIO, I2C, SPI, and UART, Power Options, and Expansion Ports.

Power: usually 5V.

Programming languages: C/C++, Arduino Language (based on C++), CircuitPython, MicroPython, and Rust.

Applications: Internet of Things (IoT) Devices, Sensor Networks, Wearable Technology, Home Automation, Robotics, Prototyping and Development and more of those examples.

Pirce: $24.95

Individual Task (Programming Microcontroller)

  • Blinking base on a random values:

First, we had to make blinking on the microcontroller base on a random values, we semply acheave to it by getting the code from the available examples on Arduino IDE (File > Examples > 01.Basics > Blink).

After getting the example I semply just made a loop that generat each time a random value and make the blinking base on that random values.

Resoult:


Last update: September 13, 2023