Karl has done some drawings probably on paper the thing needs to be working in the next couple of weeks I don’t think laser cut acrylic will support the weight of a person so we using welded steel to do the job
Update from tonight’s meeting: 10 for Victor Vicario to be project manager for the G20 parade wearables and workshop, 1 against. The project manager is able to spend up to the $2500 budget, without further approval from the group. The project manager must provide receipts and/or invoices to the Treasurer.
Okay, so I want there for this, so please tell me this isn’t coming out of HSBNE’s pockets…
No, we’ve been paid $2500 by the organisers to do this, and a separate $2500 to do the robot. Not out of our own coffers as such
Here’s the code to upload on your hats tonight: http://www.4shared.com/file/BjR1U61Eba/HSBNEAbrahamBlinken.html
Hello - apologies for the resurrection detection. Scored one of the hat kits at an open night (thanks again), but ran out of time to load the code onto it.
- Is it possible to get the code from a less sign-uppy host (pastebin, dropbox, a text post here)?
- I have a USB to rs232 converter. Could someone please point me in the direction of a serial to ICSP circuit slash the bit needed to join PC to board? I’ve found a couple online, but they vary wildly in components (and look dodgy as h*ck on the whole).
- General question: I’m assuming the way to physically identify the 3.3 vs. 5V boards is by IDing the voltage regulator. The one on the board says ‘BALH’ next to its (unknown) logo - what’s the best way to get a positive component match on that info? (Likewise for the crystal - ‘AT’, no logo.)
Thanks!
Since RS232 is -12v to +12v it would be a pain to get it to flash an Arduino. An FTDI cable costs a few dollars on eBay/DX/Amazon and will plug straight into the (possibly unpopulated) header on the board.
The boards used are a clone of the Arduino Pro Mini 5v version.
The following is the code which I pieced together with the hour or so I had to do this. It’s really just the Adafruit NeoPixel library example, modified to switch animations with the cap sense library stitched in. Any NeoPixel-compatible code will work.
#include <Adafruit_NeoPixel.h>
#include <CapacitiveSensor.h>
CapacitiveSensor cs_4_2 = CapacitiveSensor(4,7); // 470k resistor between pins 4 & 2, pin 2 is sensor pin
#define PIN 12
int mode = 5;
// Parameter 1 = number of pixels in strip
// Parameter 2 = Arduino pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
// NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products)
// NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)
Adafruit_NeoPixel strip = Adafruit_NeoPixel(10, PIN, NEO_GRB + NEO_KHZ800);
// IMPORTANT: To reduce NeoPixel burnout risk, add 1000 uF capacitor across
// pixel power leads, add 300 - 500 Ohm resistor on first pixel's data input
// and minimize distance between Arduino and first pixel. Avoid connecting
// on a live circuit...if you must, connect GND first.
void setup() {
strip.begin();
strip.show(); // Initialize all pixels to 'off'
}
void loop() {
delay (400);
while (mode == 1){
colorWipe(strip.Color(255, 0, 0), 50); // Red
colorWipe(strip.Color(0, 255, 0), 50); // Green
colorWipe(strip.Color(0, 0, 255), 50); // Blue
}
while (mode == 2){
theaterChase(strip.Color(127, 127, 127), 50); // White
theaterChase(strip.Color(127, 0, 0), 50); // Red
theaterChase(strip.Color( 0, 0, 127), 50); // Blue
}
while (mode == 3){
rainbow(5);
}
while (mode == 4){
rainbow(15);
}
while (mode == 5){
rainbowCycle(5);
}
while (mode == 6){
rainbowCycle(15);
}
while (mode == 7){
theaterChaseRainbow(50);
}
}
void checkCapsense() {
int modeOld = mode;
long start = millis();
if (cs_4_2.capacitiveSensor(30) >= 20){
mode = mode + 1;
}
if (mode >= 7){
mode = 1;
}
if (modeOld != mode){
loop();
}
}
// Fill the dots one after the other with a color
void colorWipe(uint32_t c, uint8_t wait) {
for(uint16_t i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, c);
strip.show();
checkCapsense();
delay(wait);
}
}
void rainbow(uint8_t wait) {
uint16_t i, j;
for(j=0; j<256; j++) {
for(i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, Wheel((i+j) & 255));
checkCapsense();
}
strip.show();
delay(wait);
}
}
// Slightly different, this makes the rainbow equally distributed throughout
void rainbowCycle(uint8_t wait) {
uint16_t i, j;
for(j=0; j<256*5; j++) { // 5 cycles of all colors on wheel
for(i=0; i< strip.numPixels(); i++) {
checkCapsense();
strip.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255));
}
strip.show();
delay(wait);
}
}
//Theatre-style crawling lights.
void theaterChase(uint32_t c, uint8_t wait) {
for (int j=0; j<10; j++) { //do 10 cycles of chasing
for (int q=0; q < 3; q++) {
for (int i=0; i < strip.numPixels(); i=i+3) {
checkCapsense();
strip.setPixelColor(i+q, c); //turn every third pixel on
}
strip.show();
delay(wait);
for (int i=0; i < strip.numPixels(); i=i+3) {
checkCapsense();
strip.setPixelColor(i+q, 0); //turn every third pixel off
}
}
}
}
//Theatre-style crawling lights with rainbow effect
void theaterChaseRainbow(uint8_t wait) {
for (int j=0; j < 256; j++) { // cycle all 256 colors in the wheel
for (int q=0; q < 3; q++) {
for (int i=0; i < strip.numPixels(); i=i+3) {
checkCapsense();
strip.setPixelColor(i+q, Wheel( (i+j) % 255)); //turn every third pixel on
}
strip.show();
delay(wait);
for (int i=0; i < strip.numPixels(); i=i+3) {
checkCapsense();
strip.setPixelColor(i+q, 0); //turn every third pixel off
}
}
}
}
// Input a value 0 to 255 to get a color value.
// The colours are a transition r - g - b - back to r.
uint32_t Wheel(byte WheelPos) {
WheelPos = 255 - WheelPos;
if(WheelPos < 85) {
return strip.Color(255 - WheelPos * 3, 0, WheelPos * 3);
} else if(WheelPos < 170) {
WheelPos -= 85;
return strip.Color(0, WheelPos * 3, 255 - WheelPos * 3);
} else {
WheelPos -= 170;
return strip.Color(WheelPos * 3, 255 - WheelPos * 3, 0);
}
}
if its for one parade, one say 3hr workshop and have 20 days to get things
delivered from today I would throw caution to the wind and say for some of
the beginners/kids I would do flashing led’s sewn in something like
http://www.jaycar.com.au/productView.asp?ID=ZD0245 HSBNE gets discount at
Jaycar.
some details would be good like expected numbers at the workshop and number
of costumes expected. I have addressable led light strip if anyone wants
to do the top hat
I may be able to come help out on the 28th and just solder stuff up.
The parade has been and workshop happened… FYI
There seems to have been a recent surge of messages that where posted months ago that are for some reason only now just appearing… you’d probably have to talk to Devains to know why, but as such it is likely that Denominator sent his message back when it was still relevant. Same thing happened to buzz RE: Plastering & HSBNE Kitchen, Pikkaachu RE: SupaNova.
I presume it’s to do with the fact that the forum software is an early beta copy … and the email interface is unpredictable and can get seriously backed up.
Aside…Josh has previously asked for help with software development tasks such as upgrading the forum to the latest version… and no - one has stepped up to help yet… so I guess we’ll just have to put up with it for now. …