Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 37
61  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.

 
62  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
63  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
64  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
65  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/
66  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.
67  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?


68  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);
}
69  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"
70  Using Arduino / Project Guidance / Re: Potentiometer Controlled LEDs on: June 13, 2014, 06:31:50 pm
Code:
int sensorValue = analogRead(A0);

void setup() {

  Serial.begin(9600);
  pinMode(2, OUTPUT);
}


void loop() {
  sensorValue = analogRead(A0);  // You have to remove the int
  Serial.println(sensorValue);
  delay(10);
  led();
}


void led() {
   
    if(sensorValue > 0)
    {
      digitalWrite(2, HIGH)
    } 
  }
71  Using Arduino / Project Guidance / Re: Potentiometer Controlled LEDs on: June 13, 2014, 06:19:56 pm
Code:
int sensorValue = analogRead(A0);

void setup() {

  Serial.begin(9600);
}


void loop() {
  sensorValue = analogRead(A0);  // You have to remove the int
  Serial.println(sensorValue);
  delay(10);
  led();
}


void led() {
    
    if(sensorValue > 0)
    {
      pinMode(2, OUTPUT);
    }
  }
72  Using Arduino / Project Guidance / Re: Remotely Swith On Laser Not Attached to Arduino or ATMEGA Chip on: June 12, 2014, 05:21:42 pm
You can use slip ring.
Quote
A slip ring is an electromechanical device that allows the transmission of power and electrical signals from a stationary to a rotating structure.
73  Using Arduino / Project Guidance / Re: What does it mean when I can't upload my program? on: June 09, 2014, 06:24:50 am
I try to compile your new code and this is what get

Quote
Sketch uses 7,120 bytes (24%) of program storage space. Maximum is 28,672 bytes.
Global variables use 2,324 bytes (90%) of dynamic memory, leaving 236 bytes for local variables. Maximum is 2,560 bytes.
Low memory available, stability problems may occur
and you have few more local variables, this may be the problem.
74  Using Arduino / Project Guidance / Re: Arduino and ATmega DIP40 on: June 08, 2014, 05:26:35 pm
Alot of work had done for Atmega32
www.instructables.com/id/Arduino-on-all-sorts-of-Atmels/?ALLSTEPS
https://github.com/eaconner/ATmega32-Arduino
http://forum.arduino.cc/index.php?topic=149677.0
75  Using Arduino / Project Guidance / Re: Arduino Development Board? on: June 07, 2014, 08:26:05 pm
In general for reliable operation of any digital IC you need a bypass or decoupling capacitor as close to its power pin as possible.  If the IC has more than one power pin then you need more than one capacitor.  Atmel recommends one for the AVcc pin as well.
The Aref pin had to wire a .1ufd bypass cap from that pin to ground for a slight noise reduction improvement for AnalogReads.

These are some info what other had done.

https://learn.adafruit.com/standalone-avr-chip-programmer?view=all


ISP Shield for Arduino
http://shop.evilmadscientist.com/productsmenu/tinykitlist/253
Pages: 1 ... 3 4 [5] 6 7 ... 37