Show Posts
Pages: 1 2 3 [4] 5 6 ... 36
46  Using Arduino / General Electronics / Re: Protection from cheap power supplies. on: June 28, 2014, 07:47:33 am
DO NOT USE SWITCHING power supplies. There is no transformer in them. That is very dangerous.
That is not true, most SWITCHING power supplies used transformer in them.

Apple iPhone charger teardown: quality in a tiny expensive package
http://www.righto.com/2012/05/apple-iphone-charger-teardown-quality.html

Only some of the cheap power supplies rely on a capacitor to limit current from mains voltage, if you buy one of these cheap power supplies then it will be dangerous.
You can always open up these cheap power supplies to find out yourself, how it wire up.
http://www.righto.com/2012/03/inside-cheap-phone-charger-and-why-you.html
Quote
Conclusions
Stay away from super-cheap AC adapters built by mystery manufacturers. Spend the extra few dollars to get a brand-name AC adapter. It will be safer, produce less interference, and your device's touchscreen will perform better.
47  Using Arduino / General Electronics / Re: Protection from cheap power supplies. on: June 27, 2014, 09:30:54 pm
Used residual-current device (RCD), or residual-current circuit breaker (RCCB) or Earth Leakage Circuit Breaker (ELCB) at your house
48  Using Arduino / General Electronics / Re: push button not working on: June 27, 2014, 08:44:12 pm
A DPDT  (double pole double throw switch) can have a tricky central position. There are several ways to implement the centered position.
Look at the following chart:


Try to use multimeter to test which two pin is Center and Normal Open
49  Using Arduino / Project Guidance / Re: Help starting my sketch on: June 27, 2014, 02:42:16 am

*** I want to water my plants after dusk if the soil is dry.
 
I want my plants to be watered about every two to three days, this will be determined by the soil moisture.

Relay IN pin 2
Light Sensor pin A0

How you determine the soil is dry?
You need sensor like this

Which connected to the analog input.
50  Using Arduino / Project Guidance / Re: Arduino controlled DC-DC boost power supply on: June 24, 2014, 08:00:19 am
http://forum.arduino.cc/index.php?topic=66916.15
51  Using Arduino / Project Guidance / Re: how can i controlling direction of servo motor? on: June 24, 2014, 05:18:49 am
Are you using ESC? you have to find out which value of the val that the motor will change direction.
52  Using Arduino / Project Guidance / Re: conversion of Hex image to JPEG on: June 21, 2014, 10:53:48 am
Just save the file with the extension of .py and double click to run it.

 
53  Using Arduino / Project Guidance / Re: conversion of Hex image to JPEG on: June 21, 2014, 09:56:46 am
oohh thANK YOUUUUU sooo veryy muchh smiley smiley smiley

can u plz snd me the link so that i can download python too? smiley
Send you the link? I had include the link

http://robotic-controls.com/learn/arduino/linksprite-jpeg-camera
54  Using Arduino / Project Guidance / Re: conversion of Hex image to JPEG on: June 21, 2014, 09:30:27 am
Using the Python code from this site to convert your hex image into jpeg.

http://robotic-controls.com/learn/arduino/linksprite-jpeg-camera
55  Using Arduino / General Electronics / Re: 555 timer 12v... 15A !?!?!? on: June 20, 2014, 05:38:55 am
Just a normal NE555 Timer IC, with MAX supply voltage 18V and supply current 15.0mA when no load. but may sink up to 200mA on 15V supply.

Seller may not know what they are selling.

http://www.ti.com/lit/ds/symlink/ne555.pdf
56  Using Arduino / Project Guidance / Re: Program ATmega328 Using Instruction Set on: June 18, 2014, 05:30:21 pm
http://hackaday.com/2010/04/27/emulating-a-z80-computer-with-an-avr-chip/
57  Using Arduino / General Electronics / Re: Max. current out of IC on: June 18, 2014, 09:51:27 am
How can I derive the maximum output current?

From the datasheets.
58  Using Arduino / General Electronics / Re: [Help on searchig] IC for switching ON \ OFF on: June 18, 2014, 07:52:41 am
I based myself on this:


So
IN -> S
OUT -> D
Base (i don't know) -> G

Are you sure that AO3401 does work?
Because it has an internal Diode, and the schematic doesn't
Yes the AO3401 does work.
The G connected to collector of the 2N3904 and 100K resistor
but the internal Diode was reverse bias so have no effect of the circuit.

What is the voltage you switching? how many volts?


59  Using Arduino / Project Guidance / Re: Need help with LED + button projekt. on: June 18, 2014, 06:12:45 am
Is your code able to compile?
Code:

const int startButtonPin = 13;     // the number of the pushbutton pin
int startButtonState = 0;

const int lampeLEDPin =  12;      // the number of the LED pin
int lampeLEDPinState = LOW;

int numberOfGamers = 5;

const int gameButtonPins[] = {
  3, 5, 7, 9, 11
};
int gameButtonStates[] = {
  0, 0, 0, 0, 0
};
boolean isGameButtonPressed[] = {
  false, false, false, false, false
};
int gameWinner = 0;

int numberOfButtonsPressed = 0;
int numberToWin = 2; // Winner knappen (anden gang en knap bliver trykket)


const int gameLEDPins[] = {
  2, 4, 6, 8, 10
};
int gameLEDStates[] = {
  LOW, LOW, LOW, LOW, LOW
};

boolean isGameOn = false;
boolean hasGameBeenPlayed = false;


void setup() {
  Serial.begin(9600);

  pinMode(startButtonPin, INPUT);
  pinMode(lampeLEDPin, OUTPUT);

  int i = 0;
  while (i < numberOfGamers) {
    pinMode(gameButtonPins[i], INPUT);
    pinMode(gameLEDPins[i], OUTPUT);

    i = i + 1;
  }

}

void loop() {
  startButtonState = digitalRead(startButtonPin);

  Serial.print("isGameOn: ");
  Serial.println(isGameOn);

  if (startButtonState == HIGH && isGameOn == false) {
    isGameOn = true;
  }

  if (isGameOn) {
    lampeLEDPinState = HIGH;

    for (int i = 0; i < numberOfGamers; i = i + 1) {
      gameButtonStates[i] = digitalRead(gameButtonPins[i]);

      if (gameButtonStates[i] == HIGH && isGameButtonPressed[i] == false) {
        isGameButtonPressed[i] = true;
        numberOfButtonsPressed = numberOfButtonsPressed + 1;
        gameLEDStates[i] = false;
      }

      if (numberOfButtonsPressed == numberToWin) {
        isGameOn = false;
        hasGameBeenPlayed = true;
        gameWinner = gameButtonPins[i];
      }
    }
  }
  else {
    lampeLEDPinState = LOW;
    numberOfButtonsPressed = 0;
    for (int i = 0; i < numberOfGamers; i ++) {
      isGameButtonPressed[i] = false;
      if (i != gameWinner) {
        gameLEDStates[i] = LOW;
      }
      digitalWrite(gameLEDPins[i], gameLEDStates[i]);
    }
  }


  if (hasGameBeenPlayed == true) {
    gameLEDStates[gameWinner] = HIGH;
  }

  for (int i = 0; i < numberOfGamers; i = i + 1) {
    digitalWrite(gameLEDPins[i], gameLEDStates[i]);
  }

  digitalWrite(lampeLEDPin, lampeLEDPinState);
}
60  Using Arduino / General Electronics / Re: [Help on searchig] IC for switching ON \ OFF on: June 16, 2014, 05:15:06 am
How you connect the P-MOS? the "IN" point connected to P-MOS "S", the "OUT" point connected "D"
Pages: 1 2 3 [4] 5 6 ... 36