diy-blinky-bot

Pumpkin Blinky Bot with Matrix Display Eyes

Finished cardstock Halloween pumpkin with LED matrix eyes

The pumpkin is a level 3 project from the WCRS Blinky Bot series. It takes the wire wrapped connections, soldering, and card stock body from level 2 to the next level, by adding an Arduino micro controller. With appropriate programming of the Arduino board, that allows complete control over what the LED Matrix eyes show.

A few sections of this instructable are not finished yet. This provides access to what is done, and in progress work that exists so far.

Outline

Introduction

Completing a Level One Blinky-bot is a pre-requisite before attempting this project. Note that the Arduino Pro Mini micro-controller must be programmed. (Arduino uses a version of C++.) If you do not have prior experience programming an Arduino, then it is highly recommended that you complete at least the first two projects in the Arduino Experimenter’s Kit. (Of course, you can just download our program, but then you will miss the opportunity to learn programming skills, and how to get creative with what the eyes show.) You can expect to spend a minimum of two hours assembling this project. Programming the Arduino micro-controller will take much longer, depending on your programming experience. This project is ideal for a novice level programmer.

This project was adapted from an Arduino Pumpkin Eyes project kindly shared by Michal T Janyst. **

Collect the Supplies

Cardstock

Cardstock pieces for the Halloween pumpkin body

Templates for printing these pieces can be found on the main Blinky Bot Page.

Electronic Parts

Electronic pieces from the Blinky Bot pumpkin kit

NOTE:

*Make sure that you do not confuse a 5V Pro Mini with a 3.3V Pro Mini.

It is not necessary to have different colours of wire; it just makes the wiring more obvious. **

Collect the Tools

Tools used to build the Halloween pumpkin Blinky Bot

* Many people find it easier to initially write their program on an Arduino R3 Uno because it does not require the FTDI converter. The much smaller Pro Mini is only required for the final product, when space and reduced weight are at a premium on the cardstock. The example programs will work on most Arduino micro-controllers. **

Getting Started

Breadboard the Circuit

The circuit for the Pumpkin with Matrix Eyes is sufficiently complex that it is strongly recommended that you breadboard the circuit first. Troubleshooting a circuit on a breadboard is much easier than trying to troubleshoot a circuit that has already been soldered and placed on cardstock. Once you have the circuit working properly on the breadboard, you can then transfer it to the cardstock.

Note: It is assumed at this point that you know how a breadboard works and how to read a circuit diagram. If you need help with either of these skills, ask a WCRS mentor and/or review the information for a Level Two Blinky-bot.

Connecting the LED matrix to the Arduino

The MAX7219 IC used in this project is an efficient and inexpensive driver to control an 8x8 matrix. The schematic diagram to connect the Arduino to one driver and one matrix is shown below. Again, it is recommended that you breadboard and test this circuit before transferring it to the cardstock pumpkin.

Schematic diagram showing the wiring for a single 788BS LED Matrix and MAX7219 driver chip

Note that this diagram is for a 788BS matrix. As described on the Learning about page, the connections may have to be modified for other matrices.

Breadboard diagram showing the wiring for a single 788BS LED Matrix and MAX7219 driver chip

Building this circuit requires a lot of connections and can become quite messy on the breadboard. It is a good idea to test wires for conductivity before using them to breadboard your project. Jumper wires are prone to bad connections at their pins.

It is also possible to purchase matrices already wired to a 7219 chip. These matrices are typically larger than the small matrices used in this project. However, the larger pre-wired models are ideal for installation in a pumpkin-sized model, such as Janyst used in his original version.

If you are new to programming or have not worked with LED matrices before, it is further recommended that you start with one matrix, rather than the two that are needed for the final project.

Once you have mastered some of the programming challenges presented in the next section, a second matrix, and driver, can be added as shown below. This wiring diagram is very similar to the single matrix diagram, with the following adjustments: pin 24 of the first driver is connected to pin 1 of the second driver, and there is no 10KΩ resistor for the second driver. The other connections that were going to the Arduino go to the first driver instead (and from there to the same pins on the Arduino).

Here is a schematic for the full Circuit, with both eyes, and the Arduino Pro Mini board.

Schematic diagram with Arduino Pro mini connected to 2 MAX7219 display driver chips and 2 788BS LED matrix displays

Here is one possible breadboard layout for the full matrix eyes circuit on a single breadboard. These (and many other images here) were exported from a Fritzing sketch.

Breadboard layout for connecting 2 MAX7219 display controllers and LED matrices to an Arduino microcontroller board **

Programming

Assemble the Pumpkin

Voila! You are done!

2 breadboards, each with an LED matrix wired to a controller chip 2 breadboards, 2 LED matrices and controllers, displaying eyes for pumpkin Blinky Bot kit 1 wire-wrapped LED Matrix and controller chip connected back to the breadboard for testing sound effects and creepy music generator wired up on a breadboard Finished pumpkin Blinky Bot with the power turned off

Appendix A - Example Code for Pumpkin

Appendix B - Example Code for Learning Challenges