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
Bluetooth Unleashed Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Bluetooth Unleashed Design Challenge
  • More
  • Cancel
Bluetooth Unleashed Design Challenge
Blog Bluetooth Maze - Moving servos using MicoBit
  • 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: carmelito
  • Date Created: 20 Jul 2018 5:59 PM Date Created
  • Views 815 views
  • Likes 3 likes
  • Comments 1 comment
  • bluetooth unleashed
  • bluetooth_maze
Related
Recommended

Bluetooth Maze - Moving servos using MicoBit

carmelito
carmelito
20 Jul 2018

As part of this blog post my idea was to post the final steps to build the Bluetooth maze, that is putting the 3D printing and laser cutting components together and have the servo mechanism moving, but I ran into a couple of problems. Basically I have found the the MDF top sheet that I have laser cut which would have the marble roll around is too heavy for the 3D printed servo mechanism, and it snaps the blue printed parts image, and the one you see in the picture below are the 3rd version and are much more beefy.  This meant I had to rethink my design and try a bunch of things this week to get it working, with little success. So finally after watching a couple or motivational video on the youtube’s , I mustered up the courage and took the mechanism to my local maker space to get some suggestion, and spoke to folks who work on CNC and machining parts, and they had a bunch of suggestion. And the one suggestion, I think I am going to try over the weekend is to have the top plate set on a circular metallic ball , with some 3D printed parts and simplify my 3D printed servo mechanism.

image  But if you have any other suggestion please leave a comment below, and thanks in advance - Carmelito

 

image

As of now I have got the servo mechanism working and moving when I tilt the MicroBit on the pitch and roll axis and sending data via Bluetooth-UART as you see in the picture above. Here is the code that I used on the Beaglebone black wireless to move the servos on the pitch and roll values axis...

 

#07142018 testing Beaglebone Wireless with servo
import Adafruit_B
import Adafruit_BBIO.ADC as ADC  
import time  


servo_pinL = "P8_13"
servo_pinS = "P8_19"
sensor_pinHOR = 'P9_36'

sensor_pinVER = 'P9_38'


ADC.setup()  


duty_min = 3
duty_max = 11
duty_span = duty_max - duty_min  
PWM.start(servo_pinL, (100-duty_min), 50.0)  
PWM.start(servo_pinS, (100-duty_min), 50.0)  


whileTrue:  
        readingHOR = ADC.read(sensor_pinHOR)  
        readingVER = ADC.read(sensor_pinVER)  


print("ADC HOR: "+ str(readingHOR) + " ADC VER: "+ str(readingVER))  
        angleHOR = readingHOR * 180
        angleVER = readingVER * 180


if angleHOR > 180:  
                PWM.stop(servo_pinL)  
                PWM.cleanup()  
break
if angleVER > 180:  
                PWM.stop(servo_pinS)  
                PWM.cleanup()  
break
        angleflHOR = float(angleHOR)  
        angleflVER = float(angleVER)  
        dutyHOR = (angleflHOR / 180) * duty_span + duty_min  
        dutyVER = (angleflVER / 180) * duty_span + duty_min  
print("duty servo HOR: "+ str(dutyHOR) + " duty servo VER: " + str(dutyVER))  
        PWM.set_duty_cycle(servo_pinL, dutyHOR)  
        PWM.set_duty_cycle(servo_pinS, dutyVER)  
        time.sleep(1) 

 

Now based on the suggestion I mentioned above, my idea over the next couple of days is to find a metallic ball/ bigger marble to be placed just above the barcode price sticker on the bottom plate in the picture below, and have two 3D printed parts hold the ball between the top plate and the bottom plate, and I am hoping this takes the weight of the servo mechanism .

image

  • Sign in to reply
  • genebren
    genebren over 7 years ago

    Nice update to your design challenge project.  Ouch!  They don't make plastic parts like they use to.  I too have suffered from 3D printed parts that could not handle the load required and have failed.  I wonder if you could also remove some of the weight from your MDF parts by routing out the backsides (leaving plenty of edge for stiffness) to lighten the load on the servo linkages?

    Good luck on your new designs!

    Gene

    • Cancel
    • Vote Up 0 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 © 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