Showing posts with label codebender. Show all posts
Showing posts with label codebender. Show all posts

Friday, April 22, 2016

E-textile Fun: Sound Reactive Hat

Flora Sound Reactive Hat

I just put the finishing touches on a sound reactive hat that uses a Flora, a tiny microphone, and surface mountable RGB LEDs. This project is an adaptation of Lina Wassong's Sound Reactive Equalizer Skirt, shared on Instructables under a Creative Commons (CC BY NC SA) license. This is a perfect party hat.




Lessons Learned:

1.  I love Adafruit silicone stranded-core wire!
2.  Soldering RBG LEDs is tedious.
3.  A glue gun is a great tool for strengthening solder joints and diffusing light.
4.  Hand held rivet pliers may be harder to work with than standard spot setters.

I used a leather punch and a hand rivet fastener.

The Flora and a microphone are hidden inside the hat.

I went a little crazy with the glue gun!

Friday, December 18, 2015

Running Neopixels on an ATtiny85

ATtiny85 controlling sewable neopixels
Today, I am learning how to use an ATtiny85 to program sewable neopixels, with the goal of moving toward using surface-mounted RGB LEDs in paper circuitry.  The reason that this is so exciting is because the ATtiny85 is an inexpensive, low-profile chip, making it useful for notebook hacking and art projects!  If I can figure out how to make this entire process happen on a Chromebook, it would be a huge breakthrough for classroom instruction.


At the time I was working on this project, there was still one step that required the use of a PC: the process of burning a boot loader/ changing the fuse timing on the ATtiny85.  To use neopixels, the ATtiny85 needs to run on an 8 Mhz internal clock, rather than the default of 1 Mhz. As of 11 January 2016, this issue has been fixed, making it incredibly easy to do this type of thing with students using Chromebooks!

Once I converted the chip to 8 Mhz, I was able to use CodeBender and a Chromebook to program it with neopixel sample code (with only a couple of small tweaks).

My next step was to see if I could apply this new learning to building a paper circuit with copper tape and surface mounted RGB LEDs.  The photos demonstrate a prototype using the surface mounted RGB LEDs soldered to wire!

Since I was able to get the LEDs to do what I wanted with wire, I am 100% convinced that this can be replicated with copper tape!  Stay tuned!



ATtiny85 controlling SMD RGB LEDs






















Updated 19 Dec 15:
I've created my first paper circuit with neopixels!  To learn more, visit BlingtheBook.blogspot.com.

Monday, December 14, 2015

Program an Ugly Christmas Sweater with CodeBender

My daughter recently asked me to transform a red sweater vest into an ugly Christmas sweater for a special event at her school. Using a Gemma microprocessor and four neopixels, I made one that flashes and changes colors at the push of a button.  I originally used my PC to program the microprocessor, but a friend prompted me to see whether the same results could be achieved with CodeBender and a Chromebook. I'm pleased to report that the Chromebook worked like a charm. I simply connected the Gemma to the USB port, selected the buttoncycler sketch from the Adafruit Neopixel library, modified the code to match the pins on the Gemma and the number of neopixels used, and voila'.  In the past, I have found the Gemma to be a little finicky when programming in the cloud, but CodeBender is constantly improving.




In the process, I learned:

1.  how to program a Gemma with CodeBender (even though no ports were detected)

2.  how to use a multimeter

3.  the importance of using a stabilizer when sewing with conductive thread on a loosely woven material

Unfortunately, I had to learn a couple of lessons the hard way when threads in the stretchy sweater kept shorting out!

In order to increase the versatility of this sweater, I sewed the Gemma to three tiny snaps sewn to a piece of felt. When folded up, the felt supports the battery and fits into the sweater pocket.  This connects to three more snaps to complete the circuit.


I sewed the neopixels to a ribbon.


Originally, I sewed the neopixels directly to the sweater.  That didn't work out well, because I didn't stabilize the back of the fabric first, requiring me to have to rip out all of the stitches.

Afterward, I used what I learned from Adafruit's chameleon scarf tutorial to sew the neopixels onto a ribbon that I later sewed to the sweater using non-conductive thread.

I applied self-adhesive stabilizer on the back.


Tuesday, December 1, 2015

Video Tutorial: How to Program an ATtiny85 with Codebender and a Chromebook

How to Program an ATtiny85 with Codebender and a Chromebook (Using an Arduino Uno as an ISP)

Chromebook and CodeBender
Several educators have asked me about paper circuitry and expressed interest in the idea of having their students code microprocessors for notebook hacking projects. After several days of work, I've finally completed the video tutorial that I've been promising.  In the process, I learned more than I expected.  For example, Codebender recently changed some aspects of its set-up, making it somewhat difficult to find the option to select a programmer.  I also learned that Codebender will soon be compatible with Chrome and the TinyAVR programmer from Spark Fun; it is already compatible with Firefox.

Update:  As of January 2016, Chrome is compatible with the TinyAVR Programmer! 

The video below is best viewed in high definition.





Tuesday, July 14, 2015

Code Bender & Chromebooks: Cloud-based Arduino Programming


I've just spent the morning programming ATtiny85s (for paper circuitry projects) using my Chromebook!

I just discovered that it's possible (and easy) to program an Arduino board by adding the CodeBender plug-in to your browser!  Using CodeBender takes less time than trying to set up the Arduino IDE on a PC and allows users to access their sketches from any computer!  This is bound to save time if you are ever teaching a workshop for a group who hasn't set up Arduino on their devices before, or if your students are Chromebook users.

Lessons Learned:
1.  When using CodeBender, you cannot use an AVR Tiny Programmer on a Chromebook (you can use one with the Firefox browser, however).  Using an Arduino UNO set up as an ISP, however, will do the trick.