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
    About the element14 Community
  • 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
Pi Chef Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Pi Chef Design Challenge
  • More
  • Cancel
Pi Chef Design Challenge
Blog Cracked pepper sir? (The outside world) Pi Chef Challenge Blog post #3
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: crackedpepper
  • Date Created: 29 Jan 2018 10:22 AM Date Created
  • Views 559 views
  • Likes 4 likes
  • Comments 2 comments
Related
Recommended

Cracked pepper sir? (The outside world) Pi Chef Challenge Blog post #3

crackedpepper
crackedpepper
29 Jan 2018

The outside world...

 

This week i started playing with GPIO in preparation for connecting a grinder to the current voice software I'm running.

So i started off with playing with the gpio, i just ran a simple script to switch an led on and off using pin 17 (apologies for the horrible bread board layout).

image

 

I then disassembled the pepper grinder i bought.

 

This actually ended up being harder than i expected as the cover over the buttons didn't want to come off. Both screws threaded completely image I ended up cutting this cover away as i wasn't going to need it anyway. Once i had this done i unsoldered the connections to the button pcb and removed the leads from the battery and motor of the grinder (well one of the motor leads removed its self). I wanted longer wires for while i played so i figured i may as well replace them completely. I feel like this was actually a mistake as slightly melted the plastic housing on one of the battery mounts when i attached the wire (my soldering skills are basically non existent). The following image shows the pcb for the buttons which i removed.

 

image

 

I had originally planned on using a mosfet to switch the grinder on and off but after putting a circuit together the temperature of the mosfet was far higher than i expected.

I decided that i should have a play with the piface as i could use one of the relays to switch the circuit on and off (the grider circut is 7.2V 4.5A and falls wihtin the 10V 5A limit of the relays). I set the python packages up for piface but using the guide form there PiFace – Install PiFace Digital Software. Once i had the python packages installed and the SPI bus configured i jumped straight in to playing around. The first thing i decided to do was use the leds (2-7) to display a counter in binary. I've chucked the source code into my github if anyone wants to have a look. https://github.com/ChangedLater/aiyprojects-raspbian/blob/aiyprojects/src/counter.py

 

Turing the leds on and off is simple and an example script would be as follows.

import pifacedigitalio as p

from time import sleep

 

piface = p.PiFaceDigital()

 

piface.leds[2].turn_on()

sleep(1)

piface.leds[2].turn_off()

 

Since this was all pretty simple i decided i would hook the grinder circuit to the relay and trigger it with the voice activation code from last week. The final script can be found here. Getting the Voice activation script turning the grinder on and off was the same as the code block i posted above except using led 0 instead of 2 (the relays run in parallel with leds 0 and 1). The circuit was incredibly simple as the following diagram shows (I swear I'm much better as software development than circuit diagrams...)

 

image

A video of the completed voice activation component can be seen here

 

The biggest thing i have learnt this week is just how much i have to learn in circuit design and electrical engineering, heaps of respect for you guys that do it.

  • Sign in to reply

Top Comments

  • three-phase
    three-phase over 8 years ago +1
    Good to see the progress being made Kind regards
  • genebren
    genebren over 8 years ago +1
    Adrian, Moving right along! You are making great progress. It is good to see how you are successfully navigating around problems and adapting your approach as you proceed. Keep up the good work! Gene
  • genebren
    genebren over 8 years ago

    Adrian,

    Moving right along!  You are making great progress. It is good to see how you are successfully navigating around problems and adapting your approach as you proceed.

    Keep up the good work!

    Gene

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • three-phase
    three-phase over 8 years ago

    Good to see the progress being made

     

    Kind regards

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
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 © 2026 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