Generating a spark and Resetting micro controller

Discussion in 'General Electronics Chat' started by Bluestar88, Feb 10, 2015.

  1. Bluestar88

    Thread Starter New Member

    Nov 16, 2014
    23
    0
    Hi guys,
    In order to generating sparks, I made a board with atmega32 (DIP not Smd) and RS232 interface (max 232 and DB9). But there is a problem, After generating high voltage by seting a pin of atmega32, atmega32 resets. What solutions do you suggest? any idea...
     
  2. djsfantasi

    AAC Fanatic!

    Apr 11, 2010
    2,812
    834
    Please post a schematic.
     
  3. Bluestar88

    Thread Starter New Member

    Nov 16, 2014
    23
    0
  4. MrChips

    Moderator

    Oct 2, 2009
    12,449
    3,365
    Micros do not like sparks.
     
  5. ScottWang

    Moderator

    Aug 23, 2012
    4,855
    767
    Bluestar88 likes this.
  6. Bluestar88

    Thread Starter New Member

    Nov 16, 2014
    23
    0
    Thanks for your ideas, guys.
    I wanna mention something. There is a cable that it is connected to transformer and stand, which used for generating spark, and it is connected to the micro' board from other side.
    When the cable is disconnected and we generate spark there is no reset. But, when the cable is connected by generating spark, micro resets. T don't know why. It seems that cable is a problem. Do you have any idea?
     
  7. ScottWang

    Moderator

    Aug 23, 2012
    4,855
    767
    If you could take some photos and draw the block diagram to show all the board and wires connections will help.
     
  8. Bluestar88

    Thread Starter New Member

    Nov 16, 2014
    23
    0
    Is it correct that the cable produces radiate noise for Atmega32?
     
  9. ScottWang

    Moderator

    Aug 23, 2012
    4,855
    767
    You have to make sure where to caused the uC reset, from power or signal, you need to using the O'scope to measure the signal and power and GND of uC, although I guess that noise was came from the power, but only you can make sure and the solution refer to #5.
     
    Bluestar88 likes this.
  10. WBahn

    Moderator

    Mar 31, 2012
    17,777
    4,805
    Spark generators produce a lot of EMI and some of it is probably getting into your system. You need to shield your electronics as much as you can and also the equipment that produces the sparks. Use EMI suppression cables if you can.
     
    Bluestar88 likes this.
  11. #12

    Expert

    Nov 30, 2010
    16,345
    6,829
    This has some advice.
     
    Bluestar88 likes this.
  12. shortbus

    AAC Fanatic!

    Sep 30, 2009
    4,018
    1,537
    Maybe an optocoupler between the micro and the spark generator? This would isolate the spark generator from the control.
     
    Bluestar88 likes this.
  13. Bluestar88

    Thread Starter New Member

    Nov 16, 2014
    23
    0
    By using a shield of tinfoil, duration time that micro works well got more but the process of reset is not finished. I used the tinfoil box on atmega32 and micro could work for more time after generating spark. I checked the power by oscilloscope but it seems it is correct, but by checking the pins of crystal on micro (pin12), by generating spark, it's amplitude of signal increase more. why? is it normal or abnormal?
    Do you have any idea about removing reset from micro?
     
  14. ScottWang

    Moderator

    Aug 23, 2012
    4,855
    767
    You said the power is correct, the amplitude of crystal signal increase more, then how is the voltage level of power, is it correct?
     
  15. Bluestar88

    Thread Starter New Member

    Nov 16, 2014
    23
    0
    Yeah, I checked the power of board and power of micro by oscilloscope, it's value is constant (by generating spark) but the amplitude of crystal signal increase more..
     
  16. ScottWang

    Moderator

    Aug 23, 2012
    4,855
    767
    The frequency of spark caused the crystal occur the resonance?
    Could you check the frequency of spark?
     
    Bluestar88 likes this.
Loading...