Category Archives: Arduino

Prismatic Box

When I started this project, I wanted to make a controller that could manipulate an image in Processing.  The design of this controller would be similar to this one from HitBox, but with slightly different button positions:

HitBox1

I bought 12 buttons from Video Games New York and took a sturdy cardboard box from my apartment.  Here’s a stock image of the Light Blue buttons:

From there, I brought my materials to the ITP 4th Floor to get wires, solder, and various tools.  I measured the size of the buttons to determine the size of the holes I would need to cut into the box.  Once the measurements were complete, I slid the buttons in.

Box with Buttons

Next came the wiring.  I’ve actually never used solder before this project, but I learned very quickly with a little help.  I started by soldering the wires from the 4th floor to the buttons on one side and the Arduino cables on the other.  I was only able to wire half of the buttons before Tuesday’s class since I also wanted to work on the Processing program.

Wires for Six

The initial thought was for Processing was to display what button is being pressed.  However I thought this would be boring, so I tried to make something more exciting.  Since this controller design is intended for video games, I decided to make a circle that would move around based on button presses.  However, it became difficult for me to implement animations in a way that I wanted.

As exciting as this would have been, I came to the realization that the important part of my project was the hardware.  Still, I didn’t want to just show button presses in Processing.

First DemoWhile showing my progress in class, Drew suggested that I should have the colors of the buttons on my controller blend in Processing.  I really liked this idea because it was simpler than the animated circle, but more exciting than the basic buttons.  I decided that blending colors would be the basis of my new program.

The next day, I got back to wiring.  I had to secure some of the original solder joints with heat shrink wraps.  After that I soldered the rest of the wires to the other six buttons.  Then figured out how properly attach my buttons to the breadboard in circuit.  I also decided that didn’t need the white buttons anymore because they were having trouble staying in the breadboard.  On top of that, I didn’t want to use that color in my new Processing program.

Wires in Breadboard

Once everything was wired, I programmed the Arduino to communicate with my computer.  Here’s the code for that:

Now the only thing left was the program in Processing.  I decided to alter the “ArrayBallsAddSubtract” code from class to allow for Arduino input.  I also changed numerous parameters including as the colors, sizes, and opacity of the balls.  You’ll find my code and a video demo below:

 

 

I learned so much over the course of this project between hardware design, soldering, and programming.  But if there’s one thing I learned this week that trumps everything else, it was to know my limits.

I’m the type of person who has grand elaborate ideas.  These ideas are great in theory, but practically I don’t always have the skills, knowledge, or time to complete them.  Eventually, I get so fixated on these ideas that I become frustrated when I can’t finish them.  But during this project I was able to change course when I noticed things weren’t working, specifically with Processing.

Despite being disappointed in this change originally, I realized that I had already created something I was really proud of.  I’ve wanted to make a controller like this for over a year, and the fact that I was able to do so is amazing to me.  On top of that, I was still able to program software to demonstrate this controller.  Sure, it wasn’t the software I originally had in mind, but it’s something I was within my abilities.

At the end of the day (or week as it may be), I’m ecstatic that I was able to develop something I’ve thought about for a long time.  But more importantly, I’m happy that I could surpass the such a big creative obstacle: myself.

Putting it all together

Code from class, circuit schematics, etc. are at the bottom

Let’s get the chocolate in the peanut butter

Continue reading

Self Potato

Good morning!

This is my lovely selfie. It is complete with my utter lack of drawing ability and disgustingly large smile.

For those of you who are confused about the title of this post, check it out:
https://www.youtube.com/watch?v=s2XymdmLQhE

Selfie

And here’s the code:

 

Some notes on your RGB LEDs

So we didn’t get the chance to do color mixing with the LEDs, but I hope you all try it out. Here’s some notes on them….

Continue reading

Tricking the machines

So far, we’ve managed to get the micro controller to read digital & analog inputs, ad set a variety of fancy LED effects. Now it’s time to make some even more fancy things happen.

The microcontroller has the ability to red variable voltages, but what about sending out a variable voltage? Unfortunately, unless we’re using a high end microcontroller with a built in DAC (digital to analog converter), there’s no way to get a true analog voltage out of the microcontroller. However, we can fake it with a technique called Pulse Width Modification (PWM).

Continue reading

Echo-Fever Detector

This is an ideal model for fever detector. Basically, if one’s temperature is normal (T<= 37°), the green light will be turned on. If the temperature is higher than 37° (37°<T<39°),  the red light will be turned on too. If the temperature is higher than 39° (T>=39°), which means you really have a high fever, all the lights will be turned on.

 

Love-O-Meter Mishap

Hey guys,  hopefully you can help me figure this one out.  I’m betting that the “shock factor” was due to how I wired this and not a faulty part.  Please let me know what you think though!

Arduino Starter Kit book

You are required to login to view this page.

Mike Thal – Bread Plate and Drink 2.0

I hope everyone had a nice weekend!  You’ll find all the information on my upgraded device in the video below.

Jeopardy Buzzer

Hi All,

When thinking about this project, I was immediately brought back to work and my students.  Teachers in my building are constantly playing jeopardy as a review and the kids always argue about who buzzed in first.  I wanted to try and solve that issue, so I created a simple buzzer.  It could be built out with more switches and LEDs, but I went with two for now.  Anything to reduce the bickering and increase the learning is great for students and teachers. 🙂

Here’s a video:

 

Here’s the code:

It’s super simple, but it gets the job done.