Show Posts
Pages: [1]
1  Using Arduino / General Electronics / Re: Reading data from a USB breakout on: January 26, 2013, 10:17:24 am
Thanks MAS3 and Riva. You sent me in the right direction and hopefully I can take it from here  smiley-cool
2  Using Arduino / General Electronics / Re: Reading data from a USB breakout on: January 26, 2013, 07:31:36 am
Thanks for the info. Actually it was the other way around - The closest pin was the ground.
Now my problem is I always get 0's out of the (-) pin and 1's out of the (+) pin.
Should I read the data at any specific rate? Here's my code:

int data = 5;

void setup()
{               
  Serial.begin(9600);
  pinMode(data, INPUT);
}

void loop() {
  Serial.print(digitalRead(data));
  delay(1);
}
3  Using Arduino / General Electronics / Reading data from a USB breakout on: January 26, 2013, 05:51:28 am
Hi,

I've disassembled an old printer I had and I took out this USB part out of it (images attached). How can I figure out which pin is GND, VC and data? Is there a standard that will apply to this board as well?

Thanks!

4  Using Arduino / Sensors / Re: Can't figure out this sensor on: January 04, 2013, 07:24:27 pm
On the connector, the ground connection is evidently the middle pin. Try connecting a 330 ohm resistor (or thereabouts) between +5V and one of the outer pins. Connect the other outer pin to an Arduino input with pullup enabled. You're looking for it to read LOW when there is nothing in the gap and HIGH when there is. If you don't get that, swap the 2 outer pins.

It worked!  smiley-cool
Thanks for the info!
5  Using Arduino / Sensors / Re: Can't figure out this sensor on: January 04, 2013, 06:57:26 pm
I forgot to mention that I a beginner smiley
If I understand correctly, what you're suggesting is to connect:
5v -> resistor (10K?) -> pin1
input -> pin2 (pullup resistor enabled)
ground -> pin3

Is that correct? I'm not sure of the order of the pins, is there a standard?
6  Using Arduino / Sensors / Can't figure out this sensor on: January 04, 2013, 06:43:35 pm
Hi guys,

I've disassembled a Brother printer and I found a sensor that determines whether the tray is open/close.
It looks like a pretty straight-forward sensor with 3 pins, so I tried to figure out how to use it although I don't have the datasheet, but couldn't smiley-sad
I tried all combinations of 5v, GND and input pin. None worked.

I'm attaching two images of the sensor. You'll notice 2 little "bumps" with a small distance between them. When something comes in between, the sensor should detect that the tray is "closed", otherwise it's "open".

Thanks!
Eli.
7  Products / The Arduino Starter Kit / Re: Project 02 (Spaceship Interface) on: November 08, 2012, 04:14:43 am
Hi cepa, thanks for you reply.

No need to see the circuit. Let's say I have this: 5v -> button -> 10K resistor -> ground.

As I mentioned in my post, I'm a beginner and I'm not familiar with the term pull-down/pull-up.
So I've googled it, and from what I understand if we didn't have this pull-down resistor, then the current will be "floating" and not stable. We use this resistor only to stable the current?
Could I cause a short circuit if there was no resistor at all?

Thanks,
Eli.
8  Products / The Arduino Starter Kit / Project 02 (Spaceship Interface) on: November 07, 2012, 05:57:45 pm
I'm making my first steps in the world of electronics, so I'm quite a beginner and still don't understand many of the basic concepts.

I was watching the circuit of project 2 and I don't understand what's the purpose of the 10K resistor. What would have happened if the resistor wasn't there?
Could I have also placed the resistor "before" the button, i.e. between the 5v power source and the button?

Thanks,
Eli.
Pages: [1]