Go Down

Topic: Wireing for Arduino/Relay Shield to control a cold cathode tube (Read 4297 times) previous topic - next topic

JamesHayek

I wanted to put together a project but didn't realize how little I knew. Below is a link to a video of my initial setup.

http://youtu.be/Uy4SvzpMlTc

Please note, this set up only supplied 5 volts and not what it needed.

I am looking to use the relay shield to output a higher voltage but I am stuck on how to wire everything. I currently have coded a loop of relay 1 opening and closing. I know this because I hear it clicking.
I have no idea however how to get that power to the cathode.

What I do know is there is a common open, common close, and a com port. I would assume just connecting my inverter terminals to one NC and one COM. I tried this but it didn't work.

Any suggestions?




Runaway Pancake

It's a switch.
NO and COM
NO is Normally Open, Closes (NO to COM) when its coil is energised, it goes open circuit when the coil is off.)

Connect NO to cold cathode's positive supply and COM to the cold cathode.

(If you put postive supply to COM and NO to the c.c., it would still work BUT then positive supply will be "available" at the NC terminal when the coil is off.)
"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

JamesHayek

I believe I followed your directions, I took a a video for clarity. I wasn't able to get any power to the c.c. I'm not sure what is wrong, would the COM1 and NO1 ports supply the necessary voltage?

http://www.youtube.com/watch?v=7pXRh82hYjI


I also included the code:

Code: [Select]
/*
 Blink
 Turns on an LED on for one second, then off for one second, repeatedly.

 This example code is in the public domain.
*/

// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 7;

// the setup routine runs once when you press reset:
void setup() {                
 // initialize the digital pin as an output.
 pinMode(led, OUTPUT);    
}

// the loop routine runs over and over again forever:
void loop() {
 digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
 delay(5000);               // wait for a second
 digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
 delay(5000);               // wait for a second
}

Runaway Pancake

The relay, the switch part of it, should be placed between the power supply and the device being powered - it's a switch.

So, you didn't do what I had posted:
"Connect NO to cold cathode's positive supply and COM to the cold cathode."
Like you would do if you were placing a switch between the two.

I have attached a diagram showing the connections.




"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

JamesHayek

Quote
The relay, the switch part of it, should be placed between the power supply and the device being powered


I do not understand, the relay is build onto a shield. I am using the SeedStudio Relay Sheild http://seeedstudio.com/wiki/File:RelayShield.jpg

I think I am confused on some statements. You mention to connect Normally Open (NO1 in my case) to the cathodes positive supply. I thought that was correct, the positive wire running from the inverter feeds directly into the NO1 port. As for the second statement, I believe that is what is confusing.

Quote
...and COM to the cold cathode.


I am not sure what this means, the cold cathode is connected directly to the inverter. I am unsure of where the negative lead goes.

I think I wired the set up as the drawing depicted but then again, this is my first real project including components and high voltages.

Here is a video explaining what I did:

http://www.youtube.com/watch?v=liQqzvbJtok


Runaway Pancake

.......

Try this (see attached)

> > >  Assuming that the C.C> is OK with 9V (wall pack)
"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

JamesHayek

Just to make sure I am reading this correctly, in your diagram, COM1 and 9V are connected to each other, NO1 going to the positive inverter lead and ground going to the negative lead on the inverter?


Runaway Pancake


Just to make sure I am reading this correctly, in your diagram, COM1 and 9V are connected to each other, NO1 going to the positive inverter lead and ground going to the negative lead on the inverter?


Affirmative.
"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

JamesHayek

I set it up to no avail..

http://www.youtube.com/watch?v=_D9kZtGyg_M

Runaway Pancake

"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

JamesHayek

Yes, but using it is another story. I might have to watch some youtube first prior to continuing. I don't know what to set the dial on to get a reading.

Runaway Pancake

Set it to DCV.
If there's a range then set it as appropriate (20V, 30V, whatever it has.)
Disconnect everything but the white jumper.
With one probe to Gnd and the other to NO, when the relay is clicking (if the relay is clicking) the DMM will indicate its/voltage's presence/absence.
It will also be at NC, but opposite state from NO's.
"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

Runaway Pancake

You are using Relay #1 which is controlled, I believe, by Arduino digital pin 4.
Your sketch posted is using digital pin 7, which will click, I believe, Relay 4.

seeedstudio wiki --
Relays 1-4 can be activated by setting Arduino ports 4-7 to output, and doing a digitalWrite(portNumber,HIGH).
"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

JamesHayek

#13
May 12, 2013, 08:24 pm Last Edit: May 12, 2013, 08:27 pm by JamesHayek Reason: 1
Okay, I saw a quick video on youtube

http://www.youtube.com/watch?v=bF3OyQ3HwfU

and followed your directions, I successfully measured the 9V battery (Showed as 9.3), I kept the white jumpers connected to COM1 and 9V and took the negative tip on the multimeter to GND and the positive to NO1. I got no power. I then wired the jumper from 9V to each of the other COM ports and took measurements from the GND to the respective NO and NC ports. I still got no voltage readout.


I made changes to the coding to tryout different ports. Sorry for the confussion. My code that I have ben using to test each of our tries is as below.

Code: [Select]
/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.

  This example code is in the public domain.
*/

// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 4;

// the setup routine runs once when you press reset:
void setup() {               
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);     
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(5000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(5000);               // wait for a second
}



I was actually using pin 4 which should correspond to relay 1, COM1, NO1, etc


Runaway Pancake

Please don't make another youtube.

You are saying that with
1) the relay shield powered
2) the Arduino running a sketch that digitalWrites digital 4 HIGH/LOW
3) "9V" jumpered to Relay 1 COM
4) DMM red probe to NO1 and DMM black probe to GND
that there is no 9V on/off?

Is there 9V at the "9V" terminal (again one probe "9V" and the other at "Gnd")?

"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

Go Up