![]() ![]() Since the zero crossing pulse will be used to trigger an external interrupt with a rising edge, theĭuration of the pulse is not too important as long as it is shorter than half of the A/C cycle, which Microseconds, and using 10K ohm resistors results in a pulse width of approximately 2720 microseconds. Using 330 ohm resistors on pin 1 and 2 of the H11AA1 results in a pulse duration ofĪpproximately 360 microseconds, while using 470 ohm resistors results in a pulse duration ofĪpproximately 405 microseconds, using 2.2K ohm resistors result in a pulse duration of approximately 820 ![]() I am using a 120VAC - 12VAC step down transformer to reduce the A/C voltage to a safe level on myīreadboard. The pulseIn function returns a value measured in micro-seconds, therefore, I look for the pulseInĭuration to exceed 1 before incrementing the count. ON switching time is between 1-5 micro-seconds and the OFF switching time is between 1-1000 microseconds. Depending on the load resistor, the H11AA1 IC data sheet indicates that the The zero crossing circuit is used to indicate when the voltage of a 60 hz A/C signalĬrosses the 0V line. * This sketch was designed to test for the existence of a pulse created by a zero crossingĬircuit. This is the sketch that I used to test my zero crossing detector circuit. If that fails, I may try the sketch myself and refresh my memory. If this works, then we need to re-visit the Vixen action. I could not find a test for the zero-cross action, but one could add a serial.print() statement to say that "I was here" in the interrupt routine to let us know it did have interrupts and will print a response. If the lights still don't work properly, then I would suspect that zero-cross interrupt is not being activated, or working. This should give you a clue that the random mode is doing something. ARDUINO RELAY LIGHT SERIALUse the Serial Monitor to observe the action of the random mode. The void doRandomLichts() macro has some serial.print() statements that help to see some of its action. Ignore Vixen for the moment and use the random mode, shorting pin 6 & 7 of version 2 sketch and un-comment the "#define PC_COM_ON true". In fact the major part of my job is trouble shooting Radio Frequency Identification systems (RFiD), but can't for the life of me figure this one out.One other thing you can try. LightUp, again thanks for all the help!! Like I said, pretty good at electronics, not so good a software. In fact the major part of my job is trouble shooting Radio Frequency Identification systems (RFiD), but can't for the life of me figure this one out. Switched to third MEGA only uploaded Z's version 2, same thing. ARDUINO RELAY LIGHT SOFTWAREUploaded Z's version 2 software powered up, self test checks, lights stay on. Loaded the sketch from Z's #321 post and it showed communication between Vixen and the MEGA. I have two spare MEGA's, I did a swap with one of them yesterday, same result. Hit reset on the Arduino, self test good, all lights turn on, no random effect what so ever. Okay, shorted pins 6 & 7 and the lights remain on. if the boards work with one sketch, why wouldn't they work with the other. ![]() I replaced the Zero-Cross relays with the Omron G3MC202PLDC5 random-cross relays at the beginning of the build Yes the power on test flashes all the lights once (quickly), then progresses through each channel in order.once completed the lights all turn on. If you make blanket changes we may not get to understand what is going on. When that phase works, we can add the Vixen stuff and test it. Perhaps this malfunction also prevents Vixen from working. If this doesn't work then we need to find out why. The random test, shorting pins 6 and 7, should also be checked as it doesn't require Vixen and it gets to test the dimming part too. Does that not suggest your relay board(s) is (are) OK? You also indicated that victor's sketch worked fine. Is it possible that your SSRs are zero-crossing type, meaning they can't dim? Your power on test indicated that your relays were correctly responding, no? Oh boy, I get to de-solder and re-solder 32 more relays!!Not so fast. I just ordered 4 SainSmart boards just in case. Is it possible the circuitry or logic in the knock-off board could be different from the SainSmart board even though the specs look the same. I purchased them from NewEgg instead of SainSmart and there is no Sainsmart logo on the boards I received. Okay, this may be a really dumb question, but I was just looking at the specs for the SainSmart 8 channel SSR board and realized I have a knock-off boards. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |