Well the video of that suit I showed you guys has gone viral.  I'm

Well the video of that suit I showed you guys has gone viral. I’m getting all the calls from the media now. I need to really make sure my code is solid now before I go on TV with it. Here is the video https://www.youtube.com/watch?v=Moe97Apzukg

and here is the code I have as of now (still not clean).
http://pastebin.com/XvV8EyUF

My biggest issue is with the button not working all the time

At the beginning of your loop code, you read the analog value of A3, then at the end of the loop the checkInput() function is also checking the A3 pin of your switch. Out of curiosity, why did you wire up an analog pin for a button, out of digital ones?

I thought it didn’t matter. That button wire happened to be grouped with the pot and mic wires so I just plugged them all in next to each other. I probably saw code example too using analog.

“Glowy Zoey”, that’s adorable :slight_smile:

It’s so great! Love glowing zoey hehehe.

Can anyone tell me why I get different values when measuring analog signals when plugged into USB? When it’s running on the suit I’m using the vin plug and gnd for exactly 5 volts in. Is this the correct way?

http://arduino.cc/en/Reference/AnalogReference

Hadn’t seen that before. Good to know. Is never calling that the same as calling this analogReference(DEFAULT) or no? Would be using default or AREF? I seems default would be good for my needs right?

Only call it when needed. Did you say that you are applying 5v to the Vin pin?

Yes that’s correct (not when it’s hooked up to the computer, but when she’s wearing it)

You need to put 7-12v in the Vin, hook it up to the 5v pin instead.

ok I thought the 5v pin was voltage out for some reason. I really need more sleep.

So I have 12v batteries with a 5v converter. Would it make sense to put 12v right into vin? It can reach as high as 12.6v though.

Read the SUMMARY and POWER sections: http://arduino.cc/en/Main/arduinoBoardUno

Yes, I always power my Arduino with raw 12v battery voltage, then the buck converter 5v for the LEDs only because of this very issue.

Good thing I read it “Supplying voltage via the 5V or 3.3V pins bypasses the regulator, and can damage your board. We don’t advise it.”

Put a 1N4001 protection diode, and it should drop the voltage by approx 1.4v so no over voltage on a full battery.

When using my 5v converter I’ve never even seen the voltage go to 5.1 so maybe that in itself is protecting me. Seems easiest to just solder up a connector to go into USB port

The diode is when you’re using 12v in