USART, FreeRTOS and C++ on nRF51

Now that we have set up the programming environment the next thing I personally like to implement on any microcontroller is a simple UART communication. Since it is really simple to do using nRF51 SDK, I thought of explaining how to implement USART and FreeRTOS in C++. Even though C is a very capable language on its own I feel restricted without OOP, I know some people might disagree but personally OOP enables me to structure my code better and is easier to pick it up after couple months of idle time. Nonetheless, this article won’t cover FreeRTOS in details; it is expected from you to know more or less what is an RTOS and what is it capable of. Also I prefer not to use printf/scanf whenever I can in embedded projects due to its large memory footprint. Since we will have the luxury of C++ we will implement a similar “Serial” library to Arduino. Honestly serial library is one of the things people behind Arduino got right.

Read More


ADVERTISEMENT

  • Proact IMS

    Proact IMS in Touch gesture recognition using body capacitance

    Single‑electrode detection and differentiating gestures like pinch, grab, or multi‑finger touch by how much skin contacts the electrode is a clever design.Explore cutting-edge services and products at https://www.proact-ims.com/ or contact us at +91 80 3542 9949 for collaboration and...

    Proact IMS

    Proact IMS in Touch gesture recognition using body capacitance

    Single‑electrode detection and differentiating gestures like pinch, grab, or multi‑finger touch by how much skin contacts the electrode is a clever design.Explore cutting-edge services and products at https://www.proact-ims.com/ or contact us at +91 80 3542 9949 for collaboration and...

    Proact IMS

    Proact IMS in Strain Gauge based weight sensor (load cell)

    Clear explanation of principles (strain, Wheatstone bridge, gauge factor) — especially helpful for beginners..Explore cutting-edge services and products at https://www.proact-ims.com/ or contact us at +91 80 3542 9949 for collaboration and innovation opportunities. Elevate your...

    Proact IMS

    Proact IMS in Strain Gauge based weight sensor (load cell)

    Clear explanation of principles (strain, Wheatstone bridge, gauge factor) — especially helpful for beginners..Explore cutting-edge services and products at https://www.proact-ims.com/ or contact us at +91 80 3542 9949 for collaboration and innovation opportunities. Elevate your...

    Proact IMS

    Proact IMS in Strain Gauge based weight sensor (load cell)

    Clear explanation of principles (strain, Wheatstone bridge, gauge factor) — especially helpful for beginners..Explore cutting-edge services and products at https://www.proact-ims.com/ or contact us at +91 80 3542 9949 for collaboration and innovation opportunities. Elevate your...

    proactims

    proactims in Strain Gauge based weight sensor (load cell)

    This guide made the transition from basic principles to advanced applications smooth—it feels like a complete learning path for anyone new to...

    proactims

    proactims in Strain Gauge based weight sensor (load cell)

    This guide made the transition from basic principles to advanced applications smooth—it feels like a complete learning path for anyone new to...