Introduction: A Ttiny Swarm

Interested in developing a set of miniature robots, I explored Instructables and Hackaday for some existing designs. I came across two interesting projects; A Tiny Family and TinyBot. In an attempt to improve upon these designs, I created a programmable and rechargeable set of robots whose functionality could be changed through the addition of a shield. I chose to have two base designs; A line follower and an obstacle avoidance design. The addition of a shield design was used to alter the robots function by overriding the base designs electronics. For example, if the Bluetooth shield were attached to the line following base design, the robot could then be controlled via BT instead of following a line.

Step 1: Original Design

The image above depicts my very first attempt at making this miniature line following robot. At the time, I did not plan on expanding much further than making a similar obstacle avoidance robot. However, I felt there was way too much potential in this little guy to let him sit and waste away. That is when this project truly started. I took a look at what went wrong with this design and how I could improve upon it. Several ideas came to mind, but ultimately, I chose to develop a base / shield design.

The Drawbacks:

Programming was done externally by removing the Attiny85 Chip, it had no charging capabilities, and major design criteria were not considered such as reliability and reproducibility.

Step 2: Initial PCB Design - Spin 1

Over the summer, I worked on improving this design. From the blobs of solder and tangle of wires shown above, I created my first PCB shown in the design below. I incorporated an on-board USB programming port, a larger battery, 3D printed motor mounts, and an SPDT power switch.

The Drawbacks:

Some of the components I ordered did not work, the electronics to switch between USB power and battery power were wrong, the SPDT switch was too big, and the motors I had were not strong enough to move the robot anymore.
Unsure why the programming aspect did not work with the components I had chosen, I used a breadboard and some spare components to build the bare minimum circuit needed to test the programmer (Basically a Digispark).

In hindsight, I should have done this first with more aspects of the design before implementing a PCB design...

Step 3: Enhancement Design - Spin 2

In this enhancement design, I replaced the switch with a jumper, fixed and verified both the programming and charging components / circuitry, and added the line following components to the design.

Ignoring the downgrade in motor mounts, I was able to get this design to follow a line pretty well.

Step 4: Enhancement Design - Spin 3

Incorporating the last part of the design, the shields.

Unfortunately, I ran out of time as school started back up again. I was unable to get this design printed to test. However, once this is completed, the shield design creation and implementation will be easy.

Step 5: Shield Ideas

Blue-Tooth: Control your robot from your phone or other blue-tooth enabled device! Just download a simple app to send characters or commands via blue-tooth and configure the robot to listen for these commands.

Obstacle Avoidance: Want both line following and obstacle avoidance? Use this shield to configure your robot to avoid obstacles when the shield is attached. Solar Cell: Power your robot with solar energy! If your out and about or just can't find a USB port, plug this shield in and charge your robot.

Step 6: Future Possibilities

Electropermanent Magnets: Imagine a swarm of robots that function independently, but are capable of joining together to complete a task. Each robot would go about doing their own task unless coupled with another robot. When coupled, a predetermined precedence scheme would rule which task was to be followed. Communication would occur through the magnets via PWM signals through the EPMs.

Smaller Design: Using a smaller battery, such as a coin cell battery, the design could be made a little smaller. This was originally considered, but the cost and lifetime of any coin cell battery do not rival that of the small lipo battery.

More Functionality: By incorporating a slightly larger microcontroller, such as the ATtiny84, a single robot could be capable of multiple behaviors without a significant compromise to the size of the robot.

Step 7: The Design Files

Comments

author
DIY+Hacks+and+How+Tos made it!(author)2017-02-12

Cool robot. These make a great introduction into sensors and actuators for robotics. You should enter this into the Sensors contest.

author
joshwilkins2013 made it!(author)2017-02-12

Thanks! I've entered it into both the microcontroller and the sensor contests. Please be sure to vote!

About This Instructable

2,198views

22favorites

License:

More by joshwilkins2013:A Ttiny Swarm
Add instructable to: