Go Down

Topic: Help reading voltage on an analogread pin (Read 4029 times) previous topic - next topic

StealthRT

Sadly im on my own when it comes to doing stuff like this.

A person in the AVR Freaks suggested the 10k..

http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=546334#546334

I ended up using the wrong diagram for the NPN and had it hooked up backwards.. i fixed that now but still doesn't work. When i apply the 12v to one end, it opens up the relay without having the 5v from the arduino doing that.

I have no idea why this is now working...  >:(

David

retrolefty

[edit]I have no idea why this is now working...  
[/edit]
So we are done then?

Lefty

StealthRT

No, i'd like to figure out what in the world is going on....

David

mem

Quote
i'd like to figure out what in the world is going on....

David, as Lefty says, it will be a lot easier to help figure out what is going on if you can find someone local with electronics knowledge. Perhaps if you say where you are located, someone will volunteer to meet up. Also, have a google to see if there is a local radio amateur club that you could contact.

StealthRT

#49
Mar 03, 2009, 09:08 pm Last Edit: Mar 03, 2009, 09:50 pm by StealthRT Reason: 1
I live in chattanooga,tn

How much volts should i have when i connect the 5v to the 1k resister and test it on the Collector pin? I am getting 0.07v.

on the base im getting 0.18v

Now when i hook the 12v to one side of the relay i get this
Collector = 1.40v
Base = 0.73v

Here is the picture of my board...



David

StealthRT

#50
Mar 08, 2009, 01:44 am Last Edit: Mar 08, 2009, 01:45 am by StealthRT Reason: 1
OK, i went to radio shack and got a butt load of transistors :P

It seems the 2n4404 (http://www.fairchildsemi.com/ds/2N%2F2N4401.pdf) works fine with a 1k resistor. However, i still am having the problem with no 12v coming out from the relay!

:(

David

mem

Are you getting the voltage on the collector to go low when the Arduino pin goes high?

Do you hear the relay click when the collector goes low?

If both of these happen, double check that you are wired to the correct relay contacts.

StealthRT

#52
Mar 09, 2009, 09:28 pm Last Edit: Mar 09, 2009, 09:35 pm by StealthRT Reason: 1
The collector has 12v when 5v is not connected and 0.03v when connected.

Yes, i hear it click just fine.

The relay pin out looks like this: http://www.components.omron.com/components/web/pdflib.nsf/0/7270ED3CFB55EBFF85257201007DD4FF/$file/G8QN_G8QW_0607.pdf

I have it hook like so:
Pin 2 = 12v
Pin 5 = collector pin
Pin 3 = (should have 12v coming out?)
Pin 4 = 12v

I've also tried this:
Pin 2 = 12v
Pin 5 = collector pin
Pin 3 = 12v
Pin 4 = (should have 12v coming out?)

What am i doing wrong????

David

StealthRT

I finally got it working, YAY!!! :)



David

Go Up