Show Posts
Pages: 1 2 3 [4] 5 6 ... 14
46  Community / Exhibition / Gallery / Re: Just to share... (5 x 10watt RGBs) no current regulation! on: February 24, 2014, 06:57:41 am
cjdelphi, been back to your desktop lately?
Still hoping you'll post the sketch you used to achieve this.
47  Community / Exhibition / Gallery / Re: Just to share... (5 x 10watt RGBs) no current regulation! on: February 15, 2014, 06:25:03 pm
Thanks that will be great.

48  Community / Exhibition / Gallery / Re: Just to share... (5 x 10watt RGBs) no current regulation! on: February 15, 2014, 11:17:44 am
cjdelphi,
On each color:
What's the max PWM value that you use for a 120mA limit?
What's the voltage drop across the color segment when 120mA is being drawn?

I tried this and to maintain a 200mA draw limit on the green segment I had to use 72 as a max PWM value.
49  Using Arduino / Project Guidance / Re: internet radio player possible with arduino? on: February 13, 2014, 01:24:38 pm
It does it's job, allowing everything to play nice together.
Also gives the ability to code in button control for station selection, maybe add an RTC and have a radio alarm.
Project + (Arduino + Imagination) = Endless possibilities.
50  Using Arduino / Project Guidance / Re: internet radio player possible with arduino? on: February 13, 2014, 06:50:47 am
Check out Maniacbug's project: Arduino on Ice: Internet Radio via Shoutcast
51  Using Arduino / LEDs and Multiplexing / Re: Low frequency flicker when using multiple PWM outputs and MOSFETs on: February 08, 2014, 07:20:56 am
 .sch is a file extension used by  EAGLE for schematics.
52  Using Arduino / Displays / Re: issue with tft lcd example code on: January 28, 2014, 07:24:33 am
That sketch is not for UNO.
Compiles fine for Arduino MEGA or MEGA 2560.
53  Using Arduino / Sensors / Re: Piezo sensor sensitivity. on: January 27, 2014, 12:07:13 pm
If it were my project I would use 2 or more piezos. At least one for soft taps and one for hard taps.
Each with its own conditioning circuit for it's range.
Taking the example from Taiko Trainer (LM358) link I posted above, I would go from there.
I have quite a few different piezos hanging around and have been able to get a nice pulse on a few that I tried using variants of those circuits.
Also, I would test the conditioning circuit while someone is dancing and make adjustments according to those readings.
Are you using a breadboard for the conditioning circuit?  Cleaner readings from PCB board.
Are you using a plain flat disk piezo? If so what size?
54  Using Arduino / Sensors / Re: Sum up the temperature in DHT11 sensor on: January 16, 2014, 11:46:01 am
Samples of what?
How are you determining the moisture content prior to drying?
Example: A saturated sponge weighs 10 oz. . Say it's weight is a combination of 8oz water and 2oz sponge material.
So when it has 50% of it's moisture content removed it will weigh 6 oz. .
55  Community / Bar Sport / Re: Thomas Edison vs Tesla on: January 14, 2014, 09:42:45 pm
High voltage high current DC can stop your heart.
Think of TV tube caps.
But while pondering the question, a bit of comic relief- Edison Vs Tesla
56  Using Arduino / Programming Questions / Re: Soil Moisture Sensor - Troubles! on: January 08, 2014, 06:34:49 pm
Try this simple sketch:
Code:
/*
  # Example code for the moisture sensor
  # Editor     : Lauren
  # Date       : 13.01.2012
  # Version    : 1.0
  # Connect the sensor analog out to the A0(Analog 0) pin on the Arduino board
  # Connect the sensor VCC pin to 5v pin on Arduino the board
  # Connect the sensor GND pin to GND pin on the Arduino board.
  # the sensor value description
  # 0  ~300     dry soil
  # 300~700     humid soil
  # 700~950     in water
*/

void setup(){
 
  Serial.begin(57600);
 
}

void loop(){
 
  Serial.print("Moisture Sensor Value:");
  Serial.println(analogRead(0)); 
  delay(100);
 
}
57  Using Arduino / Sensors / Re: corrosion proof electrode material for soil humidity sensor? on: January 08, 2014, 06:17:31 pm
Post a pic, could be salt or mineral build up from fertilizer in the soil.
58  Using Arduino / Project Guidance / Re: rotary encoder limiting on: January 08, 2014, 12:36:10 pm
Try this:
Code:
/* interrupt routine for Rotary Encoders


 The average rotary encoder has three pins, seen from front: A C B
 Clockwise rotation A(on)->B(on)->A(off)->B(off)
 CounterCW rotation B(on)->A(on)->B(off)->A(off)

 and may be a push switch with another two pins, pulled low at pin 8 in this case


 */

// usually the rotary encoders three pins have the ground pin in the middle
enum PinAssignments {
  encoderPinA = 2,   // right (labeled DT on our decoder, yellow wire)
  encoderPinB = 3,   // left (labeled CLK on our decoder, green wire)
  clearButton = 8    // switch (labeled SW on our decoder, orange wire)
                // connect the +5v and gnd appropriately
};

volatile byte encoderPos = 0;  // a counter for the dial
byte lastReportedPos = 1;   // change management
static boolean rotating = false;    // debounce management

// interrupt service routine vars
boolean A_set = false;
boolean B_set = false;

int pressCount = 0;

void setup() {

  pinMode(encoderPinA, INPUT_PULLUP); // new method of enabling pullups
  pinMode(encoderPinB, INPUT_PULLUP);
  pinMode(clearButton, INPUT_PULLUP);
  pinMode(9, OUTPUT);
  pinMode(13, OUTPUT);
  // turn on pullup resistors (old method)
  //digitalWrite(encoderPinA, HIGH);
  // digitalWrite(encoderPinB, HIGH);
  // digitalWrite(clearButton, HIGH);

  // encoder pin on interrupt 0 (pin 2)
  attachInterrupt(0, doEncoderA, CHANGE);
  // encoder pin on interrupt 1 (pin 3)
  attachInterrupt(1, doEncoderB, CHANGE);

  Serial.begin(9600);  // output
}

// main loop, work is done by interrupt service routines, this one only prints stuff
void loop() {
  rotating = true;  // reset the debouncer

  if (lastReportedPos != encoderPos) {
    Serial.print("Index:");
    Serial.println(encoderPos, DEC);
    lastReportedPos = encoderPos;
  }
  if (digitalRead(clearButton) == LOW )  {
    /*delay(300);
     pressCount ++;
     //Reset count if over max mode number
     if(pressCount > 2)
     {
     pressCount = 0;
     }
     switch (pressCount) {

     case 0:
     digitalWrite(13, LOW);
     break;
     case 1:
     analogWrite(9,25);
     break;
     case 2:
     analogWrite(9,0);
     digitalWrite(13, HIGH);
     break;

     }*/
    encoderPos = 0;
  }
  switch (encoderPos) {

    case 0:
      digitalWrite(9, LOW);
      digitalWrite(13, LOW);
      break;

    case 1:
      digitalWrite(9, LOW);
      digitalWrite(13, HIGH);
      break;

    case 2:
      digitalWrite(13, LOW);
      digitalWrite(9, HIGH);
      break;
    case 3:
      digitalWrite(13, LOW);
      digitalWrite(9, HIGH);
      break;
  }

}



// Interrupt on A changing state
void doEncoderA() {
  // debounce
  if ( rotating ) delay (1);  // wait a little until the bouncing is done
  // Test transition, did things really change?
  if ( digitalRead(encoderPinA) != A_set ) { // debounce once more
    A_set = !A_set;
    // adjust counter + if A leads B
    if ( A_set && !B_set && encoderPos != 5)
    {
      encoderPos += 1;
    }
    if ( A_set && !B_set && encoderPos == 5)
    {
      encoderPos = 0;
    }

    rotating = false;  // no more debouncing until loop() hits again
  }
}

// Interrupt on B changing state, same as A above
void doEncoderB() {
  if ( rotating ) delay (1);

  if ( digitalRead(encoderPinB) != B_set) {
    B_set = !B_set;
    //  adjust counter - 1 if B leads A

    if ( B_set && !A_set && encoderPos == 0)
    {
      encoderPos = 5;
    }
    if ( B_set && !A_set )
    {
      encoderPos -= 1;
    }

    rotating = false;
  }
}
Works well for limiting encoder, sketch is set for a limit of 4.
Check on serial monitor.
59  Using Arduino / Sensors / Re: Piezo sensor sensitivity. on: January 07, 2014, 10:58:59 am
I used a LM386 amp module like this one.
If you are planning on using a speaker and don't have the above module then connect the LM386 chip like the circuit shows here.
If you plan on feeding the signal to an analog pin then use a LM358 like in the circuits described here .
60  Using Arduino / Sensors / Re: corrosion proof electrode material for soil humidity sensor? on: January 06, 2014, 10:52:16 am
Check out this soil sensor using 316 stainless probes, there's a sketch at the bottom of the page and instructions, maybe you can get some ideas from there.
Pages: 1 2 3 [4] 5 6 ... 14