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
A Question of Scale
  • Challenges & Projects
  • Project14
  • A Question of Scale
  • More
  • Cancel
A Question of Scale
Blog Tiny24hourMoBot #4 : The 24 hours is almost up
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join A Question of Scale to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: dubbie
  • Date Created: 8 Feb 2019 11:16 AM Date Created
  • Views 2804 views
  • Likes 13 likes
  • Comments 15 comments
  • mobile robots
  • tiny24hourmobot
  • hc-sr04
  • morobotsch
  • robotics projects
  • questionofscalech
  • arduino
Related
Recommended

Tiny24hourMoBot #4 : The 24 hours is almost up

dubbie
dubbie
8 Feb 2019

After a late night last night with a test assembly of my Tiny Mobile Robot I wasn't quite so chipper this morning as I usually am. Still, I did have time to think about how to connect everything together so it would fit inside the shell. I used a bit of stripboard to make connections for the two 360 degree continuous rotation servo motors and the HC-SR04 ultrasonic rangefinder, plus power. There were surprisingly few connections once I had removed it from the proto-plugin board to a small stripboard and then connected the Arduino Nano using Dupont inter-connection wires.

 

The connections are as follows (Arduino to peripheral)

 

D3     servo motor 1

D4     servo motor 2

D5     Echo signal for HC-SR04

D6     Trigger signal for HC-SR04

 

All the other connections are just ground and power. Only a few connections. One of my original possible ideas had been to use a ATtiny85 for the controller for this but this would have required creating a programmer using an Uno and in the end I decided this was a complication too far for 24 hours. Still, I will create my ATtiny85 programmer soon and then I might revisit this mobile robot.

 

Once I had done all this connecting I was able to stuff it all inside the bodyshell. Regretfully I haven't yet managed to fit the batteries inside (there is enough space inside for 4xAAA batteries although not in a normal holder - if there was a smaller Arduino and fewer wires). Also I wasn't able to fit the batteries and the HC-SR04 ultrasonic rangefinder, yet. I think it would only require a couple more hours to do this so I might have a good.

 

The programme is pretty simple at present, all it does is to take one distance reading from the ultrasonic rangefinder and then moves to a while loop that just runs the servo motors from maximum forward speed all the way to zero and then to maximum backwards speed. With a bit more time then a much better programme could be produced.

 

digitalWrite(ustrigger, LOW);
delayMicroseconds(pretriggerdelay);
duration = 0;
distance = 0;

digitalWrite(ustrigger, HIGH);
delayMicroseconds(trigdelay);  
digitalWrite(ustrigger, LOW);
duration = pulseIn(usecho, HIGH);
distance = duration/onecmdelay;     // Conver to centimetres
Serial.println(distance);

 

while(1)
{ 
  for (leftspeed = start; leftspeed <= end; leftspeed++)
    {
      leftwheel.write(leftspeed); 
      rightwheel.write(180 - leftspeed);                                     
      delay(stepdelay);                      
    } /* for */


  for (leftspeed = end; leftspeed >= start; leftspeed--)
    {
      leftwheel.write(leftspeed);
      rightwheel.write(180 - leftspeed);                                                         
      delay(stepdelay);                      
    } /* for */
  } /* while */

 

Once put back together and the batteries added and turned on the Tiny24hourMobot springs into life. Well, maybe wombles about a bit anyway, see video below:

 

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

 

I did print a top to fit onto the body shell as well, but at present the wires get in the way so here it is without the batteries, or the wires or the HC-SR04 to show what it could have looked like. The first photograph shows the rather chaotic inside and the next one with the lid on showing a much more streamlined view.

 

image

 

image

 

I think this final photograph shows that if I could get it all to fit inside the shell I might have quite a nice looking mobile robot. I also think that with the experience

I now have I should be able to make it even smaller. The sensors need more thinking about though. The HC-SR04 is really too big so something much smaller is needed.

 

Dubbie

  • Sign in to reply

Top Comments

  • nobble
    nobble over 6 years ago +4
    It's like Roomba's younger party-phase cousin. I LOVE IT!
  • jomoenginer
    jomoenginer over 6 years ago +4
    Nice! But what happened to the spray can tops? To save space, you may look at IR sensors which would basically look like eyes on the tiny bot.
  • Workshopshed
    Workshopshed over 6 years ago +4
    Great little robot. Could you power this from a tiny Lipo or even a super cap?
  • dubbie
    dubbie over 6 years ago in reply to genebren

    Gene,

     

    It seems the more you design for 3D printing the more you can understand how to design for 3D printing, which makes sense I suppose. I have never quite grasped the conceptual understanding that seems to be needed for proper CAD systems. I still remember my assessment from the CAD tutor when I was doing my undergraduate apprentice training, 'Slow' was his verdict. At the time I ws really annoyed and disagreed with it, but time has mellowed me and I think he was correct. I am slow at this CAD stuff, even after 40 years of trying. My brain just doesn't seem to want to understand. That's why I use TinkerCAD as I can understand the process of creating complex shapes from grouping more primitive shapes and holes.

     

    If there was any way of getting support on this community web site then I would be very interested, although I do not know how it would work. I have two current issues that I am contemplating that relate to size. The first is the soldering problem in that my naked eyesight, even with glasses, just isn't good enough, but if I use some magnification then it is much better, providing the lighting is suitable. I do have one of these magnifying glass things on a stand which helps, but it seems too small. Plus, it doesn't have any inbuilt light sources so I am constantly angling everything to try and get better contrast. I have a much larger magnifying glass (10 cm diameter) which is better but isn't on a stand so I have to hold it by hand. But you need four hands really, one for the magnifying glass, one for the soldering iron, one for the solder and one for the PCB! I have been thinking of making some sort of stand for it with built-in LED lighting. Maybe I could make some sort of automated solder feed system attached to the soldering iron, a bit like some welding machines. That might work.

     

    Dubbie

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

    Dubbie,

     

    On the 3D front, I was a late adopter.  I had nothing but troubles getting my CNC mill up and running (still, more like limping, as it fails more time that succeeds), that when 3D printing starting popping up everywhere, I said 'No thanks!'.  Years later, after seeing all the cool things that members here were doing with theirs (dougw  for one), I though OK, maybe this is worth a try.  Now, I can't imagine not having one.  I still struggle from time to time getting fusion360 to do what I think and I still have a difficult time sizing some of the parts (like just this week, I was trying to make a sphere that would pivot inside of two holes on right angled faces, one being cylindrical and I could no figure it out, so I guessed and got it close enough on the second try).

     

    Smaller is better, when it comes to minimizing print times.  I have almost completed some of my cases for some LED lamps that I am building (Kitchen Lighting System Phase 2 - part 3 - Let there be (better) light! ), I had several parts that were 4+ hours each, so I was spending a lot of time at my desk with the printer buzzing around next to me.

     

    Thinking about your dilemma about finding the proper size parts for your robots, maybe this is something that we could do on the site as a open-source project.  I have some stuff that is almost ready to go, but it tends to be bare-metal microcontroller stuff (no Arduino or such for me).  This is something that we could kick around and see if maybe there is a way forward and maybe there are some other members that would be interested in getting involved.  Just a thought.  I have access to a microscope that I use to do all of my assembly, so I can take things pretty small, but maybe others could help us shrink it even more.

     

    Gene

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

    Gene,

     

    I have learnt a great deal about 3D printing whilest making my TinyMoBot and I have even managed to print some small wheels. It still surprises me what can be achieved with 3D printers when you start to think about the actual mechanical function required, rather than what you are already familiar with. I have shaved about 7 mm from the current width of 55 mm of TinyMoBot Version 1 just by redesigning the motor holding part and printing my own wheels, which now also have rubber tyres for better grip. This doesn't sound much but it now fits inside my target spray can lid. An advantage of making small mobile robots is that the print times are much shorter, only 11minutes for each wheel.

     

    I looked into trying a LiPo battery as I did have one I purchased for use with a MKR 1000 and it fits perfectly into the spray can top I am trying to use and a small boost converter would also fit nicely as well. Regretfully there doesn't seem enough room for the battery and the motors at the same time! Unfortunately my Arduino Nano does not fit either so I will have to get something smaller.

     

    I do not think I will ever be able to manage surface mount PCBs as I can barely see the old-fashioned pin-thro-hole ones I use now. I'll just have to wait until someone else makes the PCBs I want.

     

    Dubbie

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

    Dubbie,

     

    I had shelved the nano robot swarm when I ran into difficulties in building a chassis for them (out of bent sheet metal), now with my increasing skills in 3D printing I really should get back to this project.  I have two of the three PCBs designed and tested (low level controller/battery maintenance and the motor controllers).  What I still need to work on is the high level controllers, which will allow be to modify the robots to be controlled (R/C) or autonomous (radio, I/R, accelerometer, multiple sensor based).

     

    The PCBs are so tiny, that they are very difficult to solder (0402 and smaller components and mostly leadless ICs).  I might need to pickup a small oven to flow solder versus hand soldering.  Just one of the many challenges.

     

    I look forward to seeing where you take your design in the future.

     

    Gene

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

    Gene,

     

    Looks like I'm going to have to investigate the use of a LiPo battery with a boost converter.

     

    Did you have any success with your 1 inch square swarm robot? I have been aiming for about 6 square inches and have not yet been able to manage that.

     

    Dubbie

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