Gemma and Firewalkers
Moderators: adafruit_support_bill, adafruit

Gemma and Firewalkers

by ndamen3 on Wed Oct 30, 2013 1:32 am

Hello,
I was wondering if the Gemma or Trinket could replace the Flora in for the Firewalker sneakers?

ndamen3
 
Posts: 5
Joined: Fri Sep 06, 2013 10:41 pm

Re: Gemma and Firewalkers

by adafruit_support_mike on Wed Oct 30, 2013 5:09 am

If the code is small enough to fit in the Flash memory, they should. Let me forward this one to our blinky-expert Phil for an expert opinion.
When you void a product warranty, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.
User avatar
adafruit_support_mike
 
Posts: 10043
Joined: Thu Feb 11, 2010 2:51 pm

Re: Gemma and Firewalkers

by ndamen3 on Wed Oct 30, 2013 9:20 am

Alright! Thanks so much!

ndamen3
 
Posts: 5
Joined: Fri Sep 06, 2013 10:41 pm

Re: Gemma and Firewalkers

by pburgess on Wed Oct 30, 2013 2:09 pm

Just checked...looks like it'll fit within the Gemma's or Trinket's program space.

The only 'gotcha' is the selection of an analog input pin. Read through the appropriate "Introducing..." (Trinket or Gemma) guide for some pointers there...the analog pin # doesn't always correspond to the digital number (e.g. on Gemma, analog pin A1 is pad #2).
User avatar
pburgess
 
Posts: 2661
Joined: Sun Oct 26, 2008 2:29 am

Re: Gemma and Firewalkers

by sdsuhien on Wed Oct 30, 2013 3:57 pm

I was able to get my pair of fire walker to work with a ATTINY85 chip. But I was not able to get the Analog pin to work. I needed them done quicker then wait, so I end up wiring my Firewalker with a Tactile Switch right above where my heel was to work. Using the Uno, I was able to get the sample code to still work with the DIY Pressure switch.
sdsuhien
 
Posts: 7
Joined: Fri Sep 20, 2013 12:53 am

Re: Gemma and Firewalkers

by firepixie on Sun Nov 03, 2013 4:26 pm

I'm also trying to get the super awesome Firewalker project to work with the GEMMA and I can't get it to work.

1. I got it working perfectly with the FLORA.

2. I transferred all my connections from FLORA -> GEMMA like this:

Vbatt -> Vout
D6 -> D1
Gnd -> Gnd
D9 -> D2

I changed the pinouts in the Firewalker code like so:

#define STEP_PIN 2 // Analog input for footstep
#define LED_PIN 1 // NeoPixel strip is connected here

That was all the changes I made, and it doesn't work after successfully uploading the code to GEMMA.

What am I missing? Any advice? :) Thank you so much!

-firepixie, who needs firewalker shoes SO BADLY

firepixie
 
Posts: 29
Joined: Wed Sep 04, 2013 3:42 pm
Location: California

Re: Gemma and Firewalkers

by pburgess on Sun Nov 03, 2013 9:23 pm

Try 'A1' for the analog input (just in the code -- you don't need to re-wire anything, analog input 1 coincides with pin #2), see if there's any change.
User avatar
pburgess
 
Posts: 2661
Joined: Sun Oct 26, 2008 2:29 am

Re: Gemma and Firewalkers

by pburgess on Sun Nov 03, 2013 9:54 pm

My bad, sorry...use '1' rather than 'A1'. This is still actually pin 2 when used as an analog input. Weird, I know, but it works, just checked.

Code: Select all | TOGGLE FULL SIZE
#define STEP_PIN  1 // Analog input for footstep (is really Pin #2)
#define LED_PIN   1 // NeoPixel strip is connected here
User avatar
pburgess
 
Posts: 2661
Joined: Sun Oct 26, 2008 2:29 am

Re: Gemma and Firewalkers

by firepixie on Mon Nov 04, 2013 12:13 pm

It's working now! Thank you. :)

firepixie
 
Posts: 29
Joined: Wed Sep 04, 2013 3:42 pm
Location: California

Re: Gemma and Firewalkers

by pburgess on Tue Nov 05, 2013 1:47 am

You're welcome! Hey, given your screen name, I thought you might get a kick out of Spark the demon's own pair of Firewalkers:

firewalkers.jpg
firewalkers.jpg (36.38 KiB) Viewed 588 times
User avatar
pburgess
 
Posts: 2661
Joined: Sun Oct 26, 2008 2:29 am

Re: Gemma and Firewalkers

by michaelmeissner on Tue Nov 05, 2013 1:51 am

That's what I call firewalkers. :D
User avatar
michaelmeissner
 
Posts: 532
Joined: Wed Aug 29, 2012 12:40 am

Re: Gemma and Firewalkers

by firepixie on Wed Nov 06, 2013 2:06 pm

I LOVE THEM!!!

I had a lot of fun making mine.. I wanted them girlier, so I ended up mod-ing a pair of button-up boots I have. I replaced the metal buttons with clear iridescent ones and put neopixels behind each one. The buttons diffuse the light really nicely, and the shoes look pretty awesome when they're turned off, too. (sparkly!)

Since I just had 5 LEDs, I had to slow the firewalker code down a bit to make the wave effect work, and while it's still a little twitchy (I'm sure due to newbie-level wiring) they look totally awesome.

I blogged about it, including a little video of them working. Here's a pic. Thanks again for the awesome inspiration!

firewalkers.jpg
firewalkers.jpg (17.23 KiB) Viewed 557 times

firepixie
 
Posts: 29
Joined: Wed Sep 04, 2013 3:42 pm
Location: California

Re: Gemma and Firewalkers

by Yes_Papa on Mon Mar 10, 2014 11:48 am

Hi,

Is it possible that someone post the entire code for the gemma ? I'm a beginner and I can't see where my error is.

I change
Code: Select all | TOGGLE FULL SIZE
const int analogInPin = A9
to
Code: Select all | TOGGLE FULL SIZE
const int analogInPin = 1
.

I fix one error like this but I have still two other errors.

Code: Select all | TOGGLE FULL SIZE
gemma_fireWalkerLedSneakers.ino: In function 'void setup()':
gemma_fireWalkerLedSneakers:9: error: 'Serial' was not declared in this scope
gemma_fireWalkerLedSneakers.ino: In function 'void loop()':
gemma_fireWalkerLedSneakers:20: error: 'Serial' was not declared in this scope


Code: Select all | TOGGLE FULL SIZE
#include <Adafruit_NeoPixel.h>

const int analogInPin = 1;  // Analog input pin that the potentiometer is attached to
Adafruit_NeoPixel strip = Adafruit_NeoPixel(10, 6, NEO_GRB + NEO_KHZ800);
int sensorValue = 0;        // value read from the pot

void setup() {
  // initialize serial communications at 9600 bps:
  Serial.begin(9600);
 pinMode(9, INPUT_PULLUP);
   strip.begin();
  strip.show(); // Initialize all pixels to 'off'
 
}

void loop() {
  // read the analog in value:
  sensorValue = analogRead(analogInPin);             
  // print the results to the serial monitor:
  Serial.print("sensor = " );                       
  Serial.println(sensorValue);     

if (sensorValue < 100){
  Serial.println("leds triggered");
colorWipe(strip.Color(255, 0, 0), 25);
colorWipe(strip.Color(0, 0, 0), 25);

                   
}

void colorWipe(uint32_t c, uint8_t wait) {
  for(uint16_t i=0; i<strip.numPixels(); i++) {
      strip.setPixelColor(i, c);
      strip.show();
      delay(wait);
  }
}


Thanks for your helps.
Yes_Papa
 
Posts: 24
Joined: Tue Jan 21, 2014 7:08 am

Re: Gemma and Firewalkers

by michaelmeissner on Mon Mar 10, 2014 12:15 pm

These errors:

Code: Select all | TOGGLE FULL SIZE
gemma_fireWalkerLedSneakers.ino: In function 'void setup()':
gemma_fireWalkerLedSneakers:9: error: 'Serial' was not declared in this scope
gemma_fireWalkerLedSneakers.ino: In function 'void loop()':
gemma_fireWalkerLedSneakers:20: error: 'Serial' was not declared in this scope


are due to the fact that Gemma/Trinket do not have the Serial support that Flora and Arduinos provide. I haven't looked at the code, but typically Serial references are for debug statements. You can either remove the Serial references (lines 9 and 20), or possibly use other methods of debugging (using an lcd attached via i2c, blinking the led, using software serial, etc.). If you use software serial, it tends to need 2 pins which is a problem on Gemma, but there is a version of software serial that is meant for displays that only uses the one output pin.
User avatar
michaelmeissner
 
Posts: 532
Joined: Wed Aug 29, 2012 12:40 am

Re: Gemma and Firewalkers

by Yes_Papa on Mon Mar 10, 2014 3:04 pm

Thanks Michael.

So if I understand your recommendations, I can use the code like this and I can upload it.

Could you confirm that the change
Code: Select all | TOGGLE FULL SIZE
const int analogInPin = 1
is correct.

Thanks.
Yes_Papa
 
Posts: 24
Joined: Tue Jan 21, 2014 7:08 am