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
Fun & Games
  • Challenges & Projects
  • Project14
  • Fun & Games
  • More
  • Cancel
Fun & Games
Forum E14 Fun & Games : The RC Hammering Rubber Duck in the Tub and the EX-Chase Tank Shark
  • News
  • Projects
  • Forum
  • Leaderboard
  • More
  • Cancel
  • New
Join Fun & Games to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 1 reply
  • Subscribers 34 subscribers
  • Views 65 views
  • Users 0 members are here
  • robogary
  • p14-fun-games
  • project14
  • arduino
  • fun and games
Related

E14 Fun & Games : The RC Hammering Rubber Duck in the Tub and the EX-Chase Tank Shark

robogary
robogary 16 days ago

As a quick refresher from previous Forum posts on this project: 

The RC Hammering Duck in the Tub is a radio controlled Rubber Duck in a Tub ( truck chassis inside ) using an Arduino Nano to translate the radio receiver's servo PWM signal to a PWM signal & direction bits to control the H bridge. Steering had a DC motor, now uses a standard servo. The Nano also controls a DFPlayer Mini for the sound effects. When the Duck is moving, it quacks. When the hammer swings, a tilt switch wired back to the Nano will fire the HAMMER IMPACT audio file. 

The Hammer is controlled by a third channel on the RC transmitter/receiver.  

A carnival style duck target on board, the bullseye has a hidden IR receiver. When the target gets hit from a Star Trek Phaser ( IR TV remote) , the Duck turns red, and the RC is disabled for 10 seconds.

To make things even more interesting, there is a companion robot Chase Tank, with an inboard plastic shark on top. It is guided by a PixyCam to chase the Duck. 

The Chase Tank was completed hardware wise, but the Arduino code was not producing good results in tracking the Hammering Rubber Duck in the Tub. 

To ensure the Duck could be uniquely identified, white LED strips were installed around the tub circumference. This really helped to make the Duck Tub standout, and it could be identified in Pixyam (verifying thru the PixyMon screen) up to 15 feet away ! YAY !!  The LED rings and strings really add a drain on the Lipo battery tho. 

.........But Disaster is always looking over success's shoulder. I've been pouring over the setup trying to figure out why my code doesnt work correctly.

I failed the PixyCam.  Im not sure what exactly did it:  the stalled tilt servo that made smoke come out of PixyCam, accidentally plugging in a 11.1V 3S Lipo  rather than the 7.4v 2S Lipo, or plugging in the SPI connector backwards repeatedly on the Arduino Nano.   

I had to unplug the locked up tilt servo. The PixyCam blocks transmitted to  Arduino were ColorCode blocks CC,  even tho there is no CC config setup. If I removed battery power from PixyCam powering strictly from Arduino, the Arduino would stop seeing CC blocks, and report back signature blocks (YAY!!) except the x y coordinated never changed, width & height = 0. 

For now, Chase Tank will be put in a drawer because I now I want to upgrade it to true object detection.  

  

  • Sign in to reply
  • Cancel

Top Replies

  • robogary
    robogary 16 days ago +1
    Its tough being the project manager and telling my design team the current project is being temporarily shelved and the specification to be modernized. It was a great idea but not worth re investing corporate…
  • robogary
    robogary 16 days ago

    Its tough being the project manager and telling my design team the current project is being temporarily shelved and the specification to be modernized. It was a great idea but not worth re investing corporate $$ and SW resources into old technology just for one last demonstration.........Especially hard when I'm the project manager, the design team, and funding the project. 

    The Chase Tank will be shown as is and explained how it is supposed to work. It will be resurrected at a later date ...... 

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