Show Posts
Pages: [1] 2 3 ... 6
1  Using Arduino / General Electronics / Re: Triac Trouble on: December 05, 2013, 08:04:55 am
TomGeorge,
Thanks! I will try that when I get home this evening.

Grumpy_Mike,
I have 2 100Watt light bulbs.
2  Using Arduino / General Electronics / Re: Triac Trouble on: December 04, 2013, 11:02:25 pm
I double checked everything... again.. and tried your suggestion. I still get the same problem. However, if I use a 24 volt AC power supply I don't have any trouble turning on and off a LED.
3  Using Arduino / General Electronics / Re: Triac Trouble on: December 04, 2013, 09:08:01 pm
Right.. Sorry. Im really bad at posting all the info.
The gate goes to the opto-coupler with a 330 ohm resister inline then from the opt-isolator to M2. Nuetral ties to M2 and the load is on M1 with the hot wire going to the other side of the load. Also, there is a snubber across M1 and M2.
4  Using Arduino / General Electronics / Triac Trouble on: December 04, 2013, 08:28:00 pm
Hi, I have followed the diagram on http://www.pighixxx.com/abc-arduino-basic-connections/ for an Arduino controlled triac. However, even with the optoisolator out of the circuit the triac is on. (the light comes on that the triac should be switching.)
I have tried with several triacs and keep having the same problem. What am I doing wrong?

I guess it would be helpful to know what hardware I'm using....
The trac is a bta41-600 and the opto-isolator is a m0c3041
5  Using Arduino / Project Guidance / Re: How to send 2000 bytes of data over a period of one second. on: July 20, 2013, 11:14:33 pm
Thank you... you are quite right. Just saw this in the documentation.
 
Quote
Messages of up to VW_MAX_PAYLOAD (27) bytes can be sent
6  Using Arduino / Project Guidance / Re: How to send 2000 bytes of data over a period of one second. on: July 20, 2013, 10:55:41 pm
I think I got it with this....
Code:
void loop() {
 count++;
delay(1);
if (count == 2000) {
 vw_send((uint8_t *)count, count); //Send all the data in "count"
 vw_wait_tx(); // Wait until the whole message is gone
 
}
Do you agree?
7  Using Arduino / Project Guidance / How to send 2000 bytes of data over a period of one second. on: July 20, 2013, 10:22:20 pm
I am trying to make a signal quality meter. I need to be able to send 2000 bytes of data over the course of one second. Can any one tell me how I may do this?
8  Using Arduino / General Electronics / Re: Help Identifying This LCD on: July 05, 2013, 12:11:49 pm
That's an LCD from a UPS system, it's proprietary.
from Tripp Lite SMART1000LCD 1000VA UPS
http://www.tripplite.com/en/products/model.cfm?txtModelID=3071

the LCD have masked-off special symbols like the one on most UPS, things like a battery meter, flashing fault indicators, etc., unless of course that's part of your design goals.

so your first goal is to determine the power leads and whether it communicates serially or gets its data on a parallel bus, though the ten pin connector points to parallel. If you still have the UPS maybe you can see what interface is on the motherboard.

Thank you. I suspected this may be the case. I do not want the custom masked off symbols. I just looked at mine, and it looks like it has them. I guess Ill just find a different LCD. Thanks everyone for your help.
9  Using Arduino / General Electronics / Re: Help Identifying This LCD on: July 04, 2013, 09:47:10 pm
WDN0224-PIL-#00 is what the sticker says, but the board says it 0223 revision 0 , so realistically it could be a WDN0223-AIL-#00
This may be dubious , because the real information is covered by the little stickers all i see is "bdn0223" which is board number 0223.

Pls peel off the stickers, as there only rebadges from the seller & not the manafacturer.

 "bdn0223" is  "pbdn0223" Thats all that was under the stickers.
10  Using Arduino / General Electronics / Re: Help Identifying This LCD on: July 04, 2013, 08:46:33 am
That is the next step then. I have never done anything like this before. I have always used 'known' equipment. Should be fun. Thanks
11  Using Arduino / General Electronics / Re: Help Identifying This LCD on: July 03, 2013, 09:22:53 pm
Thats what I thought. Unfortunately, the controller is a hard black blob with no markings.  smiley-roll
Thanks for the input.
12  Using Arduino / General Electronics / Help Identifying This LCD on: July 03, 2013, 07:15:49 pm
I would like to use this LCD with my Arduino. I have researched for a couple of hours today trying to find some specs on it but have had no luck. Below is a link to the pictures on Photobucket. If anyone can shed any light on where to find a datasheet or Ideas on how to figure out what is what on this thing I would really appreciate it!
If this isn't the best place for this post, I understand, please suggest somewhere I might find some answers.

http://s1233.photobucket.com/user/modsbyus/library/Mystery%20LCD
13  Using Arduino / Project Guidance / Re: More Help With My Thermostat on: April 21, 2013, 12:38:50 pm
That did the trick! Thanks for your patients!
14  Using Arduino / Project Guidance / Re: More Help With My Thermostat on: April 21, 2013, 10:37:05 am
You seem to have the code for heating mode immediately following the code for cooling mode without any test to see which state the system is in.

It may make the code easier to follow if you put the actions into separate methods such as
Code:
void(tooHot) {
  // do the tooHot switching
}

void(tooCold) {
 // do the tooCold switching
}

And in your main code you could have (rough example) (not sure if my syntax is correct)
Code:
if (val == 1) {
   tooHot();
}
else {
  tooCold();
}
PLUS putting in diagnostic print statements as recommended elsewhere.

...R

Ok, So, I got it working before finding your last response. It was that I had some wires swapped on the relays.
However, I really liked your suggestions and followed them. Now I have a new problem.
After following your example, only the first portion of the main loop statement will run. It will not execute the if statements.  smiley-eek

Code:
void loop(void)
{
  Serial.println("Begin main Loop");
 int FanVal = digitalRead(FanPin);
int val = digitalRead(SwitchPin) ;

delay(500);

  sensorValue = analogRead(sensorPin); 
 
  setTemp = sensorValue / 10.24; //Gives us a set temp range between 0 and 99 degrees

//lcd.clear(); // start with a blank screen
lcd.setCursor(0,0);
lcd.print("Current:");
lcd.setCursor(0,1);
lcd.print("Set:");
//lcd.setCursor(0,3);
//lcd.print("Heat: ");



lcd.setCursor(8,0);
printTemperature(insideThermometer);
lcd.setCursor(6,1);
lcd.print(setTemp);
//lcd.setCursor(7,3);
//lcd.print(heat);
 Serial.print("FanPin: ");
Serial.println(FanVal);
Serial.print("SwitchPin: ");
Serial.println(val);

if (val == 1)
{
 void coolong() ;
}

else if (val == 0)
{
  void heating() ;
}

else if (val == 0 || 1 && FanVal == 1)
{
  void fan() ;
}
Serial.println("Finished Loop... Restarting Loop");
}


//Cooling Mode

void cooling()
{
  Serial.print("Begin Cooling Loop");
int val = digitalRead(SwitchPin) ;// val represents digitalRead(SwitchPin);

// If the value of  is 1 then make hcLED low (off) which sets the relay in a normally closed state. Hence, turning on the blue LED.
 
  digitalWrite(hcLED, HIGH);
 
 
  /* If the SwitchPin reads 1 and the current temperature is greater than the set temperature (if its hot) turn on the A/C and internal fan */
  if (currentTemp > setTemp + 5)
 {
   
  digitalWrite(SSRFan, HIGH);
  Serial.println("Cooling Mode Fan On, Current Higher than Set");
  digitalWrite(SSRHPin, LOW);
  Serial.println("Cooling Mode Heat Off, Current Higher than Set");
  digitalWrite(SSRCPin, HIGH);
  Serial.println("Cooling Mode Cool On, Current Higher than Set");
  }
 
  /* Otherwise, if the SwitchPin reads 1 and the current temperature is less than the set temperature (the set temperature has been reached), turn off the A/C and internal fan */
 else if (currentTemp < setTemp - 3)
 {
   digitalWrite(SSRFan, LOW);
  Serial.println("End Cooling Mode Fan Off, Current Lower than Set");
  digitalWrite(SSRHPin, LOW);
  Serial.println("End Cooling Mode Heat Off, Current Lower than Set");
  digitalWrite(SSRCPin, LOW);
  Serial.println("End Cooling Mode Cool Off, Current Lower than Set");
 }
}
// Heating Mode

void heating()
{
Serial.print("Begin Heating Loop");
  digitalWrite(hcLED, LOW);
 
 
  /* If the SwitchPin reads 0 and the current temperature is less than the set temperature (if its cold) turn on the HEAT and internal fan */
  if (currentTemp < setTemp - 5)
  {
  digitalWrite(SSRFan, HIGH);
  Serial.println("Heating Mode Fan On, Current Lower than Set");
  digitalWrite(SSRCPin, LOW); 
  Serial.println("Heating Mode Cool Off, Current Lower than Set");
  digitalWrite(SSRHPin, HIGH);
  Serial.println("Heating Mode Heat On, Current Lower than Set");
  }
 
  /* If the SwitchPin reads 0 and the current temperature is greater than the set temperature (the set temperature has been reached) turn off the HEAT and internal fan */
  else if (currentTemp > setTemp + 3)
  {
    digitalWrite(SSRHPin, LOW);
    Serial.println("End Heating Mode heat Off, Current Lower than Set");
    digitalWrite(SSRFan, LOW);
    Serial.println("End Heating Mode Fan Off, Current Lower than Set");
    digitalWrite(SSRCPin, LOW);
    Serial.println("End Heating Mode Fan Off, Current Lower than Set");
}
}
void fan()
{
  Serial.print("Begin Fan Only Loop");

//Fan Only Mode
if (FanVal == HIGH)
{
digitalWrite(SSRFan, HIGH);
}
 }


My Serial Output
Quote
Begin main Loop
FanPin: 0
SwitchPin: 1
Finished Loop... Restarting Loop

15  Using Arduino / Project Guidance / Re: Basic wiring help required (please!) on: April 20, 2013, 08:32:56 pm
If you tie all resisters to one common ground with a 470 ohm resister in line then all will have equal brightness.
Pages: [1] 2 3 ... 6