Relay on alarm clock board does not close

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lti
    Badcaps Legend
    • May 2011
    • 2547
    • United States

    #1

    Relay on alarm clock board does not close

    I have a Chaney Electronics/Electronic Goldmine C6952 alarm clock/timer, which has an Omron G6HU-2 relay that can be used to switch power on or off to another device when the alarm goes off. The microcontroller does not energize the coil long enough to latch the relay contacts closed. Is there any way to keep the coil energized for a longer period of time? I can make the relay latch and reset using a battery pack. The board uses an ATMEGA48-20PU microcontroller.
  • Longbow
    Badcaps Veteran
    • Jun 2011
    • 623
    • USA

    #2
    Re: Relay on alarm clock board does not close

    If this is a consumer bedside alarm clock, it is unlikely that it contains a latching relay. I would expect a solid turn-on signal from the micro going to the base of a transistor, which would ground the low end of the relay. What is the output from the micro, a pulse or a continuous voltage?
    Is it plugged in?

    Comment

    • lti
      Badcaps Legend
      • May 2011
      • 2547
      • United States

      #3
      Re: Relay on alarm clock board does not close

      I just saw your reply.

      This is actually a clock kit. It does use a latching relay and the microcontroller sends a pulse to the relay, but the pulse is not long enough to make the relay latch on. Both of the pins connected to the coil are connected to the microcontroller.

      Comment

      • joshnz
        Badcaps Veteran
        • Feb 2011
        • 969
        • New Zealand

        #4
        Re: Relay on alarm clock board does not close

        Originally posted by lti
        Both of the pins connected to the coil are connected to the microcontroller.
        That is odd must be a custom ic.
        I would have figured that one of the pins be connected to + and the other to a transistor.
        My pc
        CPU : AMD PHENOM II x4 @ 3.5Ghz
        MB : ASUS M4A89TD PRO USB3
        RAM : Kingston ValueRAM 16gb DDR3
        PSU : Cooler Master 850W Silent Pro
        GPU : ATI Radeon HD 6850

        Comment

        • lti
          Badcaps Legend
          • May 2011
          • 2547
          • United States

          #5
          Re: Relay on alarm clock board does not close

          Like I said above, the IC is a preprogrammed ATMEGA48-20PU. Since it uses a latching relay, a pulse is sent across the coil to make the relay contacts close and a pulse is sent in the opposite polarity to make the contacts open.

          Comment

          • joshnz
            Badcaps Veteran
            • Feb 2011
            • 969
            • New Zealand

            #6
            Re: Relay on alarm clock board does not close

            ah I see now hmm no easy solutions come to mind.
            Maybe a bipolar cap across the output but that may overload the mcu outputs.
            My pc
            CPU : AMD PHENOM II x4 @ 3.5Ghz
            MB : ASUS M4A89TD PRO USB3
            RAM : Kingston ValueRAM 16gb DDR3
            PSU : Cooler Master 850W Silent Pro
            GPU : ATI Radeon HD 6850

            Comment

            • b700029
              Banned
              • Sep 2010
              • 640

              #7
              Re: Relay on alarm clock board does not close

              Originally posted by lti
              Like I said above, the IC is a preprogrammed ATMEGA48-20PU. Since it uses a latching relay, a pulse is sent across the coil to make the relay contacts close and a pulse is sent in the opposite polarity to make the contacts open.
              Software solution: read the code from the MCU, disassemble it and find where it sends the pulse, and modify probably a delay constant to increase the duration. Flash the code back to it.

              Hardware solution: H bridge, several diodes, and an R-C delay circuit.

              Comment

              • lti
                Badcaps Legend
                • May 2011
                • 2547
                • United States

                #8
                Re: Relay on alarm clock board does not close

                I don't want to buy the programming tools right now. What circuit would I need to build for the hardware solution?

                Comment

                • b700029
                  Banned
                  • Sep 2010
                  • 640

                  #9
                  Re: Relay on alarm clock board does not close

                  You need nothing more than a few wires and a parallel port to program the AVR.

                  For the hardware solution, you need to make an H bridge (4 transistors) to be able to drive the relay with both polarities, use diodes connected to the MCU outputs to control the H bridge according to the polarity, and add RC delay circuit to "hold" the selected output for however long you need to.

                  Comment

                  • Longbow
                    Badcaps Veteran
                    • Jun 2011
                    • 623
                    • USA

                    #10
                    Re: Relay on alarm clock board does not close

                    It is very unlikely that the code in the micro is bad. Since the drive comes from the micro itself, be sure that your B+ is solid and within spec. A more productive approach would be to experiment with the relay itself to see how much current is required to operate it. Could the relay be defective, or the wrong part for this kit? What do the markings indicate? Second phase: latch the relay by hand and see if the micro can unlatch it. It would be very simple to take the latching signals from the micro and use them to operate a simple flip flop driving a standard relay. I've never seen a radio with an accessory outlet. Seems like a weird feature.
                    Is it plugged in?

                    Comment

                    • lti
                      Badcaps Legend
                      • May 2011
                      • 2547
                      • United States

                      #11
                      Re: Relay on alarm clock board does not close

                      The markings match what the kit showed in the parts list. The microcontroller is able to unlatch the relay, and the relay can be latched using three dead AAA batteries. The entire board is powered by a 7805 that produces 4.90V. The kit came with a 78L05, but I didn't like how hot it ran. The regulator is soldered to the red and black wires on the corner of the board.
                      Attached Files

                      Comment

                      • b700029
                        Banned
                        • Sep 2010
                        • 640

                        #12
                        Re: Relay on alarm clock board does not close



                        Operate (set) time 3 ms max. (mean value: approx. 2.0 ms)
                        Release (reset) time 2 ms max. (mean value: approx. 1.0 ms)
                        The coil takes 20mA which should be OK with the MCU since it can supply up to 40mA.

                        Comment

                        • lti
                          Badcaps Legend
                          • May 2011
                          • 2547
                          • United States

                          #13
                          Re: Relay on alarm clock board does not close

                          Maybe the microcontroler is programmed incorrectly. I could see that happening. Chaney Electronics doesn't make many kits that work properly. If it was possible to extract the program from the microcontroller and modify it, the problem could be fixed.

                          Comment

                          • b700029
                            Banned
                            • Sep 2010
                            • 640

                            #14
                            Re: Relay on alarm clock board does not close

                            Yes, it's possible unless they locked it, which might not be the case.

                            The hardware is really simple, just a few wires to the appropriate pins.

                            Use software like AVRDUDE to read/write to it:
                            http://www.nongnu.org/avrdude/

                            Once you have the program, you'll need to load it in a disassembler to get readable code. Use the datasheets as reference to understanding the program. There will probably be a small delay loop that you'll need to change so it waits longer. Then reassemble and write it back to the MCU.

                            If this is your first time working with microcontrollers, you should start reading the datasheets/manuals. There is lots of information

                            Comment

                            • Longbow
                              Badcaps Veteran
                              • Jun 2011
                              • 623
                              • USA

                              #15
                              Re: Relay on alarm clock board does not close

                              4.9 volts coming from a 7805 means the regulator is faulty. Use a new regulator. Then put a diode in the grounded leg which will raise the output to 5.6 volts. That should solve your problem.

                              Interesting how much enthusiasm there is for reprogramming microprocessors, even for a clock radio. That's the spirit!
                              Is it plugged in?

                              Comment

                              • lti
                                Badcaps Legend
                                • May 2011
                                • 2547
                                • United States

                                #16
                                Re: Relay on alarm clock board does not close

                                The regulator is new, and its datasheet shows that the minimum output voltage is 4.85V. Also, the ICs on the board are only rated for 5.25V. I might try reprogramming the microcontroller.
                                Last edited by lti; 11-11-2011, 01:47 PM.

                                Comment

                                • lti
                                  Badcaps Legend
                                  • May 2011
                                  • 2547
                                  • United States

                                  #17
                                  Re: Relay on alarm clock board does not close

                                  I want to start messing with this again. I need to figure out how to create the programmer and what software is needed to extract the program, disassemble it, and reprogram the microcontroller with the modified program.

                                  One possible problem is that the TXD and RXD pins on the microcontroller are used for the DIP switch bank.

                                  Comment

                                  • japlytic
                                    Badcaps Legend
                                    • Oct 2005
                                    • 2086
                                    • Australia

                                    #18
                                    Re: Relay on alarm clock board does not close

                                    A number of pre-programmed microcontrollers are code protected, which means you cannot extract the code from them.
                                    My first choice in quality Japanese electrolytics is Nippon Chemi-Con, which has been in business since 1931... the quality of electronics is dependent on the quality of the electrolytics.

                                    Comment

                                    • b700029
                                      Banned
                                      • Sep 2010
                                      • 640

                                      #19
                                      Re: Relay on alarm clock board does not close



                                      ^ datasheet for your MCU, with all the info you need (see the "memory programming" section.)

                                      http://www.arduino.cc/en/Hacking/ParallelProgrammer
                                      http://reprap.org/wiki/Burning_the_S...der_using_DAPA

                                      ^ simple programmer that plugs into the parallel port.

                                      You'll need an AVR disassembler and assembler. I think you can find those on Atmel's site.

                                      Originally posted by japlytic
                                      A number of pre-programmed microcontrollers are code protected, which means you cannot extract the code from them.
                                      This is true, however you should at least be able to read the signature bytes/lock bits to check whether it's been protected. In the worst case with the AVRs you can still erase the entire chip and now you have a blank MCU to write your own program to.

                                      Comment

                                      Related Topics

                                      Collapse

                                      • jm1234
                                        9V relay temperature 40C
                                        by jm1234
                                        Hi, I'm seeing one 9V relay having temperature 40C on its 9V (primary) side. Does that seem right? I switched 2 relays on that board and the temperature was the same (on the same position), so I'm sure it's not a faulty relay. I measured voltage on that relay and it was 9.5V DC, so that looks good. I don't see any other relay on that board having that kind of temperature and they have 9V on them too.
                                        I thought maybe the transistor that is switching this relay keeps switching on/off, so I also checked for AC and there was almost none: 0.3V using mV range. No steady frequency was shown, but...
                                        05-09-2024, 03:03 AM
                                      • edugimeno
                                        Biomass Boiler not driving cleaner motor relay. ENERTRES BIOMASA BI-650
                                        by edugimeno
                                        Hi everyone!
                                        I have this board that suddenly stopped supplying power to an output that drives an interchanger cleaner motor.
                                        I checked while the board was in place with all wires attached and there's no AC voltage on the corresponding plug X5
                                        This X5 is driven by fuse F8 (tested OK) which comes from the second orange relay
                                        To make sure there are no charcoaled contacts inside the relay, I got a 24VDC power supply and got it ready to manually power up the coil side of these relays.
                                        I respected the polarity, positive to cathode of protecting diode
                                        So provided all...
                                        04-18-2024, 01:15 PM
                                      • sam_sam_sam
                                        Mitsubishi CNC switching power supply board dead / relay board bad diode failure
                                        by sam_sam_sam
                                        I was working on this CNC machine today found no keyboard functioning no control relay powering on
                                        The screen powered on and was giving an operation error but the manual was not very clear about what the error exactly was but with a little bit of troubleshooting and finding out that the control relays not powering on and no keyboard functions we narrowed down to this one switching power supply which of course does not have any indicator LED light they are on the keyboard interface/relay controller board

                                        Found shorted diodes on main controller relays there are 3 of them that...
                                        01-07-2023, 05:43 PM
                                      • Tom41
                                        Honeywell Accenta G3 tamper alarm
                                        by Tom41
                                        This house has a Honeywell Accenta G3 alarm system. If the main unit loses power for any reason, the external siren sounds - even if the alarm is not even armed! Entering the code to disarm it is not an option as the keypads are completely dead when the power is out.

                                        I presume this means the backup battery inside the box has failed, but I can't get in there and replace it without also setting off a tamper alarm! Is there any way to disable the tamper alarm so that electrical work can be carried out with the power off? Or a way to replace the backup battery without setting off the...
                                        08-31-2023, 04:00 AM
                                      • slybunda
                                        Alarm Siren issue
                                        by slybunda
                                        Apologies if this is in the wrong section but being a car alarm siren that makes noise i thought it be best to put it in the audio section.
                                        Had weird alarm issues where siren made a strange noise: https://www.youtube.com/watch?v=ZjsqndhionU
                                        took siren out of the car and checked it out and pics attached seem to be the source of the issue.
                                        shockingly the alarm still makes its normal sound if i trigger it manually so speaker seems to be intact.
                                        getting a replacement is gonna be next to impossible, its a Toad Ai606 which is no longer in production and cant see to find a replacement...
                                        02-04-2024, 11:01 AM
                                      • Loading...
                                      • No more items.
                                      Working...