element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Low Power IoT Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Low Power IoT Design Challenge
  • More
  • Cancel
Low Power IoT Design Challenge
Blog Blog#3 - BPM Display - System Design
  • Blog
  • Forum
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: skruglewicz
  • Date Created: 20 Oct 2021 2:47 PM Date Created
  • Views 159 views
  • Likes 0 likes
  • Comments 1 comment
  • roadtest psoc6
  • skruglewicz
  • psoc6 pioneer kit
Related
Recommended

Blog#3 - BPM Display - System Design

skruglewicz
skruglewicz
20 Oct 2021

Posted by skruglewicz in Low Power IoT Design Challenge on Aug 23, 2021 8:14:00 PM

 

            

BLOG# 3 - BPM Display - System Design

A Heart Rate Monitor Display project utilizing the PSoCTm 6S2 + AIROCTm Wi-Fi/Bluetooth Pioneer Kit

manufactured by CYPRESS - INFINEON TECHNOLOGIES (Part# CY8CKIT-062S2-43012)

 

This is my 3rd blog post for this Design Challenge: Low Power IoT Design Challenge

version 1.3

<<< PREVIOUS BLOG

NEXT BLOG  >>>

Blog#2 - BPM Display - Research & Experimentation

Blog#4 - BPM Display - System Implementation and Testing
  • This blog post will describe the design phase of the Challenge. It will include the Hardware and Software designs, that I came up with, to implement my idea.
  • I will first describe the high level design, including all the components used to implement my idea.
  • Then I'll describe the Wiring Diagram used to make the connection from the Arduino breadboard project to The PSoC6
    • I'll be adding 2 new wires to the wiring diagram from the Arduino design challenge.
    • I'll be using the jumper wires to get the BPM value from the Heart Rate Sensor attached to Arduino, to the pins on the PsoC 6 UART.
  • Then for the Software Design section,
    • I'll include, UML Sequence Diagrams for the software pieces of the Design.
      • I'll be adding a new Task to the Arduino Sequence UML. Diagram
      • I'll include a new UML Sequence Diagram for the PSoC 6 code.
    • C/C++ and Python will be the languages used between the 2 projects.
      • Python is used in a Bare Metal application on the Arduino.
      • I will note software used for the PSoC 6 design.
        • FreeRTOS will be used as the operating system on the PSoC 6 using C/C++
  • I finish the blog post with a summary, conclusions, and references that I used in this Design Phase.

 

  • Block diagram
    • System Level Flow Diagram
      • Arduino Design
      • PSoC6 Design
  • Wiring Diagram
  • Software Design
      • Arduino Design
    • UML Sequence Diagram
      • PSoC6 Design
    • UML Sequence Diagram
    • Libraries
      • Arduino Design
      • PSoC6 Design
  • Conclusions and Summary
  • REFERENCES
    • Resources
    • Jan Crumps PSoC 6 Series.
          • PSoC 6 and ModusToolbox: UART receiver with FreeRTOS
          • PSoC 6 and ModusToolbox: FreeRTOS message queue
          • PSoC 6 and ModusToolbox: FreeRTOS to AWS MQTT
          • PSoC 6 and ModusToolbox: UART receiver with FreeRTOS - Deep Sleep support

 

Block diagram

This section, includes a Diagram the shows the components used in my project.

Design courtesy of element14 member Jan Crumps

 

  • On the Arduino
    • Send data with a serial connection
  • On the PSoC6
    • Sleep
    • Receive Data
    • Wake Up
    • Publish data to AWS MQTT
      • For testing I'll be using MosQuiTTo MQTT as a broker.
        • I could not get this to work. I scratched it for the time being.

    • Sleep

 

System Level Flow Diagram

  • The System design includes 2 decoupled designs that are connected together over a serial connection.
    • One design is taken from a previous design that I did for an element14 design challenge : Design for A Cause 2021
      • It uses the Arduino Nano 33 IoT Board 
      • Python is used in a Bare Metal application.
    • The second design is based on a project by an element14 member, Jan Crumps.
      • I will be using his design to implement my idea.
      • I experimented with Jan's series of blogs in my previous  blog Post
      • These blogs turned out to be using an Arduino connected to a PSoC 6 Kit (a different kit)  UART, so I decided to try and use his design.

 

Arduino Design

  • As mentioned, a Heart Rate sensor is used in this design to get Heart Rate values to calculate Beats Per Minute.
  • Python is used in a Bare Metal application on the Arduino.
  • My previous design can be found here  Blog# 3 Beats Per Minute Nano - System Design , but I will augment section in this design blog with changes I had to ADD to the Circuit and Software in this blog.
  • The design is already described in those blogs, so all I will do, is connect two jumper wires between the Arduino breadboard circuit and the PSoC 6.

 

PSoC6 Design

  • As mentioned, this design is not my own, but is presented here  courtesy of an element14 member  Jan Crumps
  • His design is portable and for the most part, can be used on any MCU using FreeRTOS.
  • Four Blog Posts on UART, RTOS Scheduling and Message Queues, an AnyCloud MQTT Client  and Low Power are presented.
  • The FreeRTOS operating system using C/C++, is the RTOS used for this design.

 

 

Wiring Diagram

  • This section will shows the pins used on the Arduino and the PSoC6 to make the serial connection. The pins are connected using jumper wires.
  • connect a jumper wire between a 3.3 V Arduino GND to a PSoC6 GND pin
  • connect a jumper wire between the Arduino TX pin to a PSoC6 RX pin
  • A wiring diagram with these jumper connections is described as follows.
    • This diagram was modified from the wiring design diagram from my previous design challenge.
  •  

  • Here is a pic of the 2 boards connected.

Software Design

Arduino Design

UML Sequence Diagram

    • This section, shows the logic of the flow of the Software used on the Arduino.
    • I modified the sequence diagram in the Arduino design to add the task of Writing the heart rate value to the serial port
    • It's a little messy, I marked the diagram by hand as the last step  in the sequene.
    • It comes after the BLINK action...

PSoC6 Design

UML Sequence Diagram

  • This section, shows the logic of the flow of the Software used on the PSoC 6
  • Derived from Jan Crumps code.
  • The FreeRTOS Scheduler is used to Run the 2 major task
    • UART TASK
      • receives BPM values from the serial connection.
      • And sends the values in a message to the queue.
    • MQTT TASK
      • This task will connect to the cloud
      • The message is read from the queue and published to the cloud.

Libraries

Arduino Design

        • The libraries used can be referenced in the blog

PSoC6 Design

        • For now I've taken a photo of the mdb_shared folder for my project.highlighting the known libraries.

 

Conclusions and Summary

  • II tried to use all my notes and diagrams that I was conjuring up during my research phase in Blog#2.
  • I decided to use a big part of Jan Crumps design for most of my design.
  • I'm sure, I will tweak this blog as I try and implement my idea in the next Blog.
  • Now onto the implementation

 

 

REFERENCES

Resources

Jan Crumps PSoC 6 Series.

    • PSoC 6 and ModusToolbox: UART receiver with FreeRTOS
      • using the UART
    • PSoC 6 and ModusToolbox: FreeRTOS message queue
      • FreeRTOS message queue
    • PSoC 6 and ModusToolbox: FreeRTOS to AWS MQTT
      • MQTT
    • PSoC 6 and ModusToolbox: UART receiver with FreeRTOS - Deep Sleep support
      • Deep sleep implemented

 

<<< PREVIOUS BLOG

NEXT BLOG  >>>

Blog#2 - BPM Display - Research & Experimentation

Blog#4 - BPM Display - System Implementation and Testing
Anonymous
Parents
  • DAB
    DAB 6 months ago

    Very good post.

     

    DAB

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
Comment
  • DAB
    DAB 6 months ago

    Very good post.

     

    DAB

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
Children
No Data
Element14

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2022 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube