element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
  • Settings
Design For A Cause 2021
  • Challenges & Projects
  • Design Challenges
  • Design For A Cause 2021
  • More
  • Cancel
Design For A Cause 2021
Blog Design For A Cause 2021 - #4 Defender Software Setup - 2
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ajayvishaal
  • Date Created: 19 Apr 2021 7:07 PM Date Created
  • Views 294 views
  • Likes 3 likes
  • Comments 0 comments
Related
Recommended

Design For A Cause 2021 - #4 Defender Software Setup - 2

ajayvishaal
ajayvishaal
19 Apr 2021

Table of Contents:

        • Setting Up Python Environment
        • Algorithm
        • Running the Code
        • Building .apk File
Setting Up Python Environment

                    Inorder to start our python app, it is important to setup a working environment.

Since Kivy has many dependencies, I recommended you to install it in a Python virtual environment. Just open a new terminal by pressing

Ctrl + Alt + T

.

And here’s how you can create a Python virtual environment:

python3 -m venv defender

Just type the above command. "protector" is the name of the Virtual environment. Now activate the virtual environment by typing the command:

source protector/bin/activate

Great ! We have successfully activated our virtual environment. Now let's install the kivy package for python. Run the following command:

python -m pip install kivy

Now, install some essential packages by  using the below commands:

python -m pip install urllib3
python -m pip install bs4
python -m pip install speechrecognition

 

Algorithm

               The algorithm chart given below is simple explanation of our Python code.

image

Running the Code

               I've attached the code files in this blog. If you have any queries, Kindly post in the comment section. Just Download the code file and open the main.py in the zip folder and enter the IP address of your Arduino Nano 33 IoT module in the following line:

root_url = "http://<Your Nano 33's IP>"

              

               And now run the command using the below command:

 

python main.py

 

               But make sure your PC and Arduino Nano 33 IoT is connected to the same network before launching the python app.

 

Building .apk File

               Due to Speech Recognition package incompatibility in Android platform. I'm facing some issues in running the app in the Android platform. However, the app works well on linux and windows platform. I'm working on the issue and update once I found a solution.

 

<<< BLOG 3                                                                                                                                                                                                   BLOG 5 >>>

Attachments:
App.zip
  • 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 © 2025 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