Show Posts
Pages: 1 [2] 3 4 ... 147
16  Using Arduino / General Electronics / Re: Negative voltage driving LEDs -- how to amplify/distribute? on: April 19, 2014, 11:36:35 pm
Is this your best guess how things are now?
17  Using Arduino / General Electronics / Re: Negative voltage driving LEDs -- how to amplify/distribute? on: April 19, 2014, 11:24:50 pm
The jack is on the toy and you are plugging a stereo plug in it where you measure -4 volts between 1 & 3 or 2 & 3 with negative lead (on the voltmeter) on terminal 3 (ring)?
Do all the LEDs flash at the same time for a given side?

Can you tell if there are electronics in the glasses or resistors and LEDs?

EDIT: Will you be using the old glasses in the new configuration?
18  Using Arduino / General Electronics / Re: Negative voltage driving LEDs -- how to amplify/distribute? on: April 19, 2014, 09:14:00 pm
Are you saying the toy is outputting 4 volts to turn on the LEDs in the accessory?
You now want to add an interface between the toy and LED accessory to drive more LEDs?
How are the LEDs in the accessory wired?
19  Using Arduino / General Electronics / Re: Negative voltage driving LEDs -- how to amplify/distribute? on: April 19, 2014, 07:36:37 pm
Some here are visual, me, draw a circuit diagram of what you did and share it with us.
20  Using Arduino / General Electronics / Re: custom pcb on: April 19, 2014, 07:34:14 pm
Will you be designing it yourself?
I use a photo positive method for ones and twos.
Some here use a photo transfer using a laser jet method, some YouTube videos on the net.

21  Using Arduino / Programming Questions / Re: Set LED Brightness as a subroutine on: April 19, 2014, 06:49:55 pm
Try:
Code:
/***************************************************
  This is a library for our I2C LED Backpacks

  Designed specifically to work with the Adafruit LED 7-Segment backpacks
  ----> http://www.adafruit.com/products/881
  ----> http://www.adafruit.com/products/880
  ----> http://www.adafruit.com/products/879
  ----> http://www.adafruit.com/products/878

  These displays use I2C to communicate, 2 pins are required to
  interface. There are multiple selectable I2C addresses. For backpacks
  with 2 Address Select pins: 0x70, 0x71, 0x72 or 0x73. For backpacks
  with 3 Address Select pins: 0x70 thru 0x77

  Adafruit invests time and resources providing this open source code,
  please support Adafruit and open-source hardware by purchasing
  products from Adafruit!

  Written by Limor Fried/Ladyada for Adafruit Industries.  
  BSD license, all text above must be included in any redistribution
 ****************************************************/

// Enable one of these two #includes and comment out the other.
// Conditional #include doesn't work due to Arduino IDE shenanigans.
#include <Wire.h> // Enable this line if using Arduino Uno, Mega, etc.
//#include <TinyWireM.h> // Enable this line if using Adafruit Trinket, Gemma, etc.

#include "Adafruit_LEDBackpack.h"
#include <Adafruit_GFX.h>
#include <Wire.h>
#include <SoftwareSerial.h>

Adafruit_7segment matrix = Adafruit_7segment();
int light;

// These constants won't change:
const int sensorPin = A0;    // pin that the sensor is attached to
//const int ledPin = 9;        // pin that the LED is attached to

// variables:
int sensorValue = 0;         // the sensor value
int sensorMin = 1023;        // minimum sensor value
int sensorMax = 0;           // maximum sensor value


// ?????????????????????????????????????????????????????????????????????
//Remove these  lines
//#define DimDisplay  
//#define SensRead
// ?????????????????????????????????????????????????????????????????????


void setup() {
#ifndef __AVR_ATtiny85__
  Serial.begin(115200);
  Serial.println("Light Sensor Test 2");
  #endif
  matrix.begin(0x70);
  //matrix.setBrightness(0);

     // calibrate during the first five seconds
       while (millis() < 5000) {
         sensorValue = analogRead(sensorPin);

    // record the maximum sensor value
    if (sensorValue > sensorMax) {
      sensorMax = sensorValue;
    }

    // record the minimum sensor value
    if (sensorValue < sensorMin) {
      sensorMin = sensorValue;
    }
  }
}

void loop() {    //begin main program loop
  //main program loop
  SensRead();  //sensor read routine name

  DimDisplay();     //display dimmer routine name
}
void SensRead() {     //Declaring the sensor read routine with no parameters
  // read the sensor:
     sensorValue = analogRead(sensorPin);
  // apply the calibration to the sensor reading
     sensorValue = map(sensorValue, sensorMin, sensorMax, 0, 255);
  // in case the sensor value is outside the range seen during calibration
     sensorValue = constrain(sensorValue, 0, 255);
     matrix.print((sensorValue) / 16, DEC);
     matrix.writeDisplay();
     delay(500);
     Serial.println();  
     Serial.print(sensorValue);
}

void DimDisplay() {     //Declairs Dispaly Dimmer routing with no parameters
 matrix.setBrightness((sensorValue) / 16);
  delay(100);
 }
22  Using Arduino / Programming Questions / Re: Set LED Brightness as a subroutine on: April 19, 2014, 05:45:01 pm
Would you edit you post and include all your sketch please?
23  Using Arduino / Programming Questions / Re: Set LED Brightness as a subroutine on: April 19, 2014, 04:23:05 pm
Do you know how to  call a function?
24  Using Arduino / Programming Questions / Re: How can I break the outer loop? on: April 19, 2014, 04:12:42 pm
Quote
it seems dirty to manually mess with...
keepOnGoing = false;
Or
j=100;
Not much difference.
Quote
Must be my desire for order...
I have to straighten every picture when I walk by one, and a whole bunch of other things too, oh we'll...
25  Using Arduino / Programming Questions / Re: LED fading with for loop on: April 19, 2014, 02:51:34 pm
With o/p at 255.
Assuming you have R going from +5 to o/p.
Measure voltage across R.
Measure o/p to GND.
Is the total 4.96?

At 220,  5/220=22.7ma
26  Using Arduino / Programming Questions / Re: LED fading with for loop on: April 19, 2014, 12:40:17 pm
At one point I believe you said you connected the led to the o/p with no resistor. This may have damaged the o/p.

For your reference, see
http://www.allaboutcircuits.com/vol_1/chpt_6/2.html
27  Using Arduino / Programming Questions / Re: LED fading with for loop on: April 19, 2014, 11:30:09 am
Measure the voltage from the output to ground.
What is it?
28  Using Arduino / Programming Questions / Re: getting else without previous if error on: April 18, 2014, 09:06:37 pm
Also check your wiring then let us check it.
Show us an image.
29  Using Arduino / General Electronics / Re: Need a battery source on: April 18, 2014, 07:44:40 pm
I soldered mine in two stages, it worked OK for me.
1.  Applied solder to the 2 ends at one small spot each, used solder flux, hot iron 60 watt "large" tip, quick in quick out, used wet sponge after.
2. Tinned two wires,  then quickly soldered them to the spots in step one.
30  Using Arduino / General Electronics / Re: Need a battery source on: April 18, 2014, 07:10:28 pm
I see your point.
Have you access to a 30,000uF at 35 volt capacitor?
You could try to make a spot welder,  google:  capacitor spot welder,    select images.
Pages: 1 [2] 3 4 ... 147