element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
  • Settings
Pi Chef Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Pi Chef Design Challenge
  • More
  • Cancel
Pi Chef Design Challenge
Blog The Spice of Pi - Glenn blog #5
  • 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: glennvanderveer
  • Date Created: 18 Mar 2018 4:07 PM Date Created
  • Views 968 views
  • Likes 8 likes
  • Comments 4 comments
Related
Recommended

The Spice of Pi - Glenn blog #5

glennvanderveer
glennvanderveer
18 Mar 2018

Another update with a video.

In order to choose the spices, Doug has 3d printed a platter that will be required to spin and lift the spice bottles. In order to do that he has designed in 2 servos to do the spinning and lifting.  I get to make the code to spin and lift the servos.  There is a python library to access the servos that I will be using. After working on this Friday night and a good chunk of Saturday I have very limited success.  I have been able to get the servo-demo script that the library provides to work, but when I add it to my actual code I get segmentation faults all the time.  That is why I have to press the button to get the servo commands to work.  You will also notice in the video, that the servo seems to be 'fidgeting'.  So I think that the power will have to be turned on only when the servo is actually needed to do some work.

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

 

So, time to do some research as to why the segmentation faults are happening and see if I can get around them.

 

Design Challenge Links:

Pi Chef Design Challenge

About the challenge

The other challengers

The kit

Terms & Conditions

Summaries by Charles Gantt

 

Project Links:

Blog Doug 1 - The Concept

Blog Glenn 1 - AIY Voice Kit Unboxing

Blog Doug 2 - The Block Diagram and Bill of Materials

Blog Doug 3 - Spice Jar Lift Mechanism

Blog Glenn 2 - Firmware Considerations

Blog Doug 4 - Carousel Design

Blog Doug 5 - Platter Rotation Mechanism

The Spice of Pi - Blog Glenn 3

Blog Doug 6 - 3D Printed Platter Parts

Blog Doug 7 - Main Drive Assembly

Blog Doug 8 - Working Carousel

Blog Doug 9 - Google Assistant

Blog Doug 10 - Pi Enclosure

The Spice of Pi - Glenn blog #4

  • Sign in to reply

Top Comments

  • e14phil
    e14phil over 7 years ago +4
    Hey Glen I have seen people discuss the twitching Servos before, i think its a timing issue, depending on your set up people have previously changed the library to fix. " I swapped to the pigpio library…
  • genebren
    genebren over 7 years ago +1
    It's alive! Good that you have worked through to this point. Sometimes the simplest of things takes a lot of work. Good luck on your continued progress and successes! Gene
  • three-phase
    three-phase over 7 years ago +1
    Nice update, do you think the 'fidgeting' may be reduced once the weight of the platter is added onto the server? Kind regards
Parents
  • e14phil
    e14phil over 7 years ago

    Hey Glen

     

    I have seen people discuss the twitching Servos before, i think its a timing issue, depending on your set up people have previously changed the library to fix.

     

    "I swapped to the pigpio library http://abyz.co.uk/rpi/pigpio/ and the twitching went away. It's because pigpio's PWM timing is much more accurate."

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • e14phil
    e14phil over 7 years ago

    Hey Glen

     

    I have seen people discuss the twitching Servos before, i think its a timing issue, depending on your set up people have previously changed the library to fix.

     

    "I swapped to the pigpio library http://abyz.co.uk/rpi/pigpio/ and the twitching went away. It's because pigpio's PWM timing is much more accurate."

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
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