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
Month of Robots
  • Challenges & Projects
  • Project14
  • Month of Robots
  • More
  • Cancel
Month of Robots
Blog Using the MeArm robotic arm to test battery life in the Dirty Smart Button
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Month of Robots to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: aspork42
  • Date Created: 16 Apr 2019 4:41 AM Date Created
  • Views 2172 views
  • Likes 9 likes
  • Comments 3 comments
  • test automation
  • mearm
  • morobotsch
  • dirty smart button
Related
Recommended

Using the MeArm robotic arm to test battery life in the Dirty Smart Button

aspork42
aspork42
16 Apr 2019

With the MeArm coming up for a RoadTest, I decided to take my old one out and dust it off. Since I recently posted about the Dirty Smart Button and talked about battery life, I got curious what I could actually get. I did some basic math which seemed like this should last forever.

 

I took the MeArm and set it up to press each button sequentially on the Dirty Smart Button, and set a dwell timer in between.

 

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

 

 

References:

  1. Dirty Smart Button Home Automation project
  2. MeArm Road Test
  3. Freetronics EtherTen

 

Test Setup:

 

  1. Original MeArm robotic arm
  2. Freetronics Ether10 Arduino Uno
  3. Dirty Smart Button diaper logger is the UUT (Unit Under Test)

I set up the MeArm to do a simple routine as per the below source code. This test is open-loop for simplicity - in other words, the arm simply goes through a series of position moves in sequence without any feedback on the status of the button presses on the UUT.

Here is my code which is similar to what was in the video linked in this post. I changed the dwell times and a few of the moves to make it a little cleaner since the video was taken.

 

/* Pins:
 * Arduino    Base   Shoulder  Elbow    Gripper
 *    GND    Brown     Brown   Brown     Brown
 *     5V      Red       Red     Red       Red
 *     11    Yellow
 *     10             Yellow
 *      9                     Yellow
 *      6                               Yellow
 */
#include "meArm.h"
#include <Servo.h>


int basePin = 11;
int shoulderPin = 10;
int elbowPin = 3;
int gripperPin = 6;


meArm arm;


void setup() {
  arm.begin(basePin, shoulderPin, elbowPin, gripperPin);
  realignArm();
}


void loop() {


  clap();
  
  realignArm();
  pressA();
  delay(90000);


  realignArm();
  pressB();
  delay(90000);


  realignArm();
  pressC();
  delay(90000);


}
void pressA(){
  //press button A - Wet
  


  arm.gotoPoint(-30,130,150);
  delay(1000);
  arm.gotoPoint(-30,190,50); //stage
  delay(250);
  arm.gotoPoint(-30,190,30); //press
  delay(500);
  arm.gotoPoint(-30,190,50);
  delay(1000);
}


void pressB(){
  //press button B - Dirty
  arm.gotoPoint(+10,130,150);
  delay(1000);
  arm.gotoPoint(+15,210,50); //stage
  delay(250);
  arm.gotoPoint(+15,210,20); //press
  delay(500);
  arm.gotoPoint(+15,180,50);
  delay(1000);
}


void pressC(){
  ///press button C - Blowout
  arm.gotoPoint(+55,130,150);
  delay(1000);
  arm.gotoPoint(+60,185,50); //stage
  delay(250);
  arm.gotoPoint(+60,185,20); //press
  delay(500);
  arm.gotoPoint(+60,185,50);
  delay(1000);
  
}
void clap(){
    //Clap - so it's obvious we're at this part of the routine
  arm.openGripper();
  arm.closeGripper();
  arm.openGripper();
  arm.closeGripper();
  arm.openGripper();
  
}
void realignArm(){
  arm.gotoPoint(-40,130,150);
  delay(1000);


}

 

The Goal:

The goal is to see how many button press cycles I can achieve before the batteries die. I know that I got around 200 before we stopping using it with our child. So far with the MeArm test rig, I have well over 500 cycles and counting...

 

The results:

I will update this post over the next couple of weeks, so check back!

 

I'm also curious if there is something to be said for having the most tie-ins of previous contests all wrapped up in one???

  • Sign in to reply

Top Comments

  • dubbie
    dubbie over 6 years ago +3
    James, Good use of the MeArm and previous project. You might find the MeArm wears out before the battery does! Dubbie
  • aspork42
    aspork42 over 6 years ago in reply to dubbie +3
    Yeah - I've already started to run into that...
  • aspork42
    aspork42 over 6 years ago

    Thanks to everyone at the E14 team!

    I lost track of time and never got to post the follow up. Without further ado, here it is!

     

    Month of Robots - MeArm test update

     

    (Note - based on the test results, I had to re-evaulate my calculations and I came out right where the battery's data sheet said I should - ~500 button presses)

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • aspork42
    aspork42 over 6 years ago in reply to dubbie

    Yeah - I've already started to run into that...

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dubbie
    dubbie over 6 years ago

    James,

     

    Good use of the MeArm and previous project. You might find the MeArm wears out before the battery does!

     

    Dubbie

    • Cancel
    • Vote Up +3 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