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 Low Power IoT Challenge - Adding Vision
  • 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: ralphjy
Date Created: 31 Oct 2021 8:55 PM
Views: 238
Likes: 1
Comments: 0
  • portenta vision shield
  • low_power_iot
  • arduino portenta h7
  • psoc® 62s2 wi-fi bt pioneer kit
  • cypress modus toolbox 2.3
Related
Recommended

Low Power IoT Challenge - Adding Vision

ralphjy
ralphjy
31 Oct 2021

I've realized that I'm not sufficiently up the learning curve with the PSoC6 and Modus Toolbox to attempt to implement vision processing on the PSoC6 in the timeframe of the design challenge.  I have been trying out different "intelligent" camera modules and thought that would be a good backup alternative to add Vision AI to my project.  One of the modules that I just tried is the Arduino Portenta H7 with the Ethernet Vision shield:  Arduino Portenta - Person Detection .

 

Eventually, I intend to integrate the Portenta and the Microwave Detector more directly with the PSoC6 using GPIO and UART interfaces.  For now, to stay modular and to have some placement flexibility - I'm going to add the Portenta using MQTT and WiFi as I did with the Microwave sensor.

 

I have a bad habit of expecting things to go smoothly when adding "modular" elements.  After all, I had both the PSoC6 and the Portenta running independently with MQTT - what could go wrong?  Well, I ended up getting wrapped around the axle because of inexperience with FreeRTOS and the way I had merged the MQTT and EInk Display functionality.  When I incorporated the Microwave sensor, I added a message queue between the Subscriber task and the EInk Display task and that all worked as I expected.  I thought that since Person detection is asynchronous to Microwave detection that I just needed to add an additional queue for the new topic.  However, that broke the existing queue.  The queue send operation is happening, but not the queue receive.  Not sure why the queues are interfering with each other.  I am not familiar with the debug trace in Modus Toolbox and with less than a week left in the challenge - I decided that I needed to move on.  It turns out in my project that the Display task does not need to be independent of the Subscriber task, so the simple solution is to merge the two tasks and eliminate the requirement for these two queues (I still have the MQTT queue for the Publish/Subscribe).  That's working and I'm moving forward with that.  I really want to use this issue as as an opportunity to learn the debugger, so I'll work on it again after the challenge is done.

 

Current functionality:

  • Microwave detection
    • First detection
      • Turn on LED
      • Display "Motion Detected" message
      • Play "Motion Detected" track
    • Subsequent detection
      • If Motion timeout has not occurred - reset timeout counter
      • If Motion timeout has occurred - repeat First detection tasks
    • Motion timeout (area is considered secure if there is no addition motion detected within a minute)
      • Turn off LED
      • Display "Area Secure" message
      • Play "Area Secure" track
  • Person detection (only reported if Microwave detection has occurred and not timed out)
    • Display "Person Detected" message
    • Play "Person Detected" track
  • No Person detected (only reported if Microwave detection has occurred and not timed out)
    • Display "No Person Detected" message

 

 

Below is a demo of the functionality.  I haven't figured out how to overlay video inputs that aren't being simultaneously captured on my PC and my PC is still having issues, so this is a capture using my iPhone.  I think my Christmas present to myself this year will be a new PC - my current one appears to be dying of old age (I know how it feels).

 

The "motion detection" occurs when I approach from outside of the field of view of the Portenta.  If you watch the reflection on the Ethernet housing, you be able to see when I move behind the iPhone into the field of view and "person detection" occurs.  You can also see when I move out of the field of view - first "motion detection" then "no person detected".

You don't have permission to edit metadata of this video.
Edit media
x
Upload Preview

Anonymous
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