element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Achievement Levels
    • Benefits of Membership
    • Feedback and Support
    • Members Area
    • Personal Blogs
    • What's New on element14
  • Learn
    Learn
    • eBooks
    • Learning Center
    • Learning Groups
    • STEM Academy
    • Webinars, Training and Events
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Arduino Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Project Groups
    • Raspberry Pi Projects
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Or 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
Sub -1 GHz Band
  • Challenges & Projects
  • Project14
  • Sub -1 GHz Band
  • More
  • Cancel
Sub -1 GHz Band
Blog Project14 SubGHz - Door Lock App Part1
  • Blog
  • Forum
  • Documents
  • Files
  • Leaderboard
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Sub -1 GHz Band requires membership for participation - click to join
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: navadeepganeshu
  • Date Created: 26 Sep 2023 7:49 PM Date Created
  • Views 923 views
  • Likes 9 likes
  • Comments 0 comments
  • STM32WL55
  • element14
  • stmicroelectronics
  • project14
  • SubGHz project
Related
Recommended

Project14 SubGHz - Door Lock App Part1

navadeepganeshu
navadeepganeshu
26 Sep 2023

Thanks to the SubGHz contest - RF has been on my radar to explore for a while now and using STM32WL is where I got started. The radio drivers and middlewares are quite complex coming to these systems, but the getting started example helped me here. 

This blog explains my activity building a basic door-lock system prototype using two STM32WL devices one acting as a node put near the door and the other the concentrator or remote device within the radio vicinity(range test activity is to be done next). Thanks to element14 for shipping out a pair of STM32WL55JC1 Nucleo-64 boards for participating in this contest. Here we go:

1. Getting Started

Downloading the STM32CubeWL pack is all that is needed to get the skeleton in place which provides Middlewares, Drivers, and Example Programs all documented well to an extent. The examples for usage of each peripheral are helpful in understanding their setup, configuration and testing out features on top of which application programs can be built. I am using a C1 version of this board - EU/US/APAC 868/915/923 MHz and another is C2 which is CN 433/470 MHz.

image

2. Example Programs

Running ping pong example where the master device pings and node gives a response through a pong. Another demo is sensor and concentrator where the concentrator collects the data from the sensor.

image

image

3. Door Lock App Plan

The idea of this project is to have a ping-pong type of instance where the remote device sends a message to open the door to a node in the vicinity upon a user button press. The node receives and sends the new door status after the reception of the message. The remote will now know the current state of the door and be ready for further commands. While the node also controls a buzzer and solenoid valve linking to a door latch. 

PING_DOOR_OPEN / PING_DOOR_CLOSE

PONG_DOOR_OPEN / PONG_DOOR_CLOSE

4. Implementation

Enabling interrupts in STM32CubeMX .ioc file:

image

Adding additional IO pin for the buzzer:

image

ISR:

image

Demo:

Here, on a button press in the remote device(indicated by BLUE LED and the node indicates remote's button press with GREEN LED), a ping is sent to the node which pongs the status. The link is established between them in prior and the blue LED in the node device indicates that the device is activated to do the task of opening/closing the door. On the remote side, based on if the door is open/closed, the BLUE LED status changes while node shows it by GREEN LED. A buzzer beeps for an instant of the door left open.

image

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

5. References and Next steps

NUCLEO-WL55JC - STM32 Nucleo-64 development board with STM32WL55JC MCU, SMPS, supports Arduino and morpho connectivity - STMicroelectronics
Getting started with STM32CubeWL for STM32WL Series - User manual
STM32WL Online Training - STMicroelectronics (this is gem)
STM32WL MCU Series: Wireless System-on-Chip Long range communications - YouTube
Code repo NavadeepGaneshU/Project14_SubGHz_Phy_App (github.com)

Further, I am exploring encryption blocks and LPUART in this module. The activity of running RF range tests and power consumption at different phases of operation will be added next. Let me know what you think and if you have to build ideas with this board!

  • Sign in to reply
element14 Community

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 © 2023 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

  • X
  • Facebook
  • linkedin
  • YouTube