Arduino and DC Solid State Relay 'Flicker'

Click For Summary

Discussion Overview

The discussion revolves around a circuit involving an Arduino and a DC solid state relay (SSR) used to control a servo motor. Participants explore the issue of flickering observed when the motor is activated, considering various aspects of the circuit design and power supply characteristics.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant describes the circuit setup and the flickering issue when using a servo motor, suggesting it might be related to high current inrush or protective circuits in the servo.
  • Another participant claims the flickering issue was resolved by identifying a bad power supply.
  • A suggestion is made to connect the LED in parallel with the motor instead of in series, and to remove an unnecessary series diode.
  • Documentation regarding the servo's power requirements is shared, highlighting the importance of using a regulated power supply and the potential for current spikes under load.
  • A later reply indicates that a resistor is not needed with the SSR LED, suggesting a revision to the circuit design.

Areas of Agreement / Disagreement

Participants express differing views on the cause of the flickering issue, with some attributing it to the power supply while others focus on circuit configuration. The discussion does not reach a consensus on the best solution.

Contextual Notes

Participants mention various assumptions about the power supply's characteristics and the servo's operational limits, but these assumptions are not fully resolved within the discussion.

LickMyEyeball
Messages
23
Reaction score
1
Hi, thank you for your help in advance.

I have a circuit configured as shown in this image. I got this arrangement from an earlier thread.

An arduino controls a DC solid state relay, and it works fine when my load is a simple LED. The arduino is controlling through a digital output header and using the digitalWrite() function, so I don't think PWM has anything to do with it. The arduino is powered by an external source: not USB.

Making that load a motor as shown in the image causes problems though. I have an LED in series so that I can see when the relay is closed and power is being delivered. It flickers at about 4-5 Hz I would say.

My relay is the CN024.

The relay is capable of delivering up to 3.5 A at 24 VDC. It is powered by a 7 VDC switched adaptor source right now. The power source can deliver up to 2 A. It is zero-crossing.

The motor it is powering is a simple servo motor. It is rated for up to 6V and typically draws 140 mA.

Despite this, is the flickering caused by a high current inrush and the circuit is being broken by a protective circuit in the servo? Though my knowledge is limited, it seems like all the requirements have been met: the SSR circuit is being closed, and there can be enough voltage supplied and current delivered. I tried putting a diode in series in order to drop the voltage from 7 V to (7-0.6)=6.4 V just to make sure the voltage wasn't too much.

Any ideas?Code included below, if it's important:
//Servo Potentiometer Control

#include <Servo.h>

const int SERVO=10; //Servo on Pin 3
const int POT=A0; //POT on Analog Pin 0
const int RELAY=3;

Servo myServo;
int val = 0;

void setup(){
myServo.attach(SERVO);
pinMode(POT,INPUT);
pinMode(RELAY,OUTPUT);
digitalWrite(RELAY,HIGH);
Serial.begin(9600);
}

void loop()
{
val=analogRead(POT); //Read Pot
val=map(val,0,1023,0,179);//Scale it to the servo range
myServo.write(val); //Sets the servo
Serial.println(val);
delay(15);
}
 

Attachments

  • SSRschematicScheme.png
    SSRschematicScheme.png
    4.6 KB · Views: 975
Last edited:
Engineering news on Phys.org
Resolved:

this issue was caused by a very bad power supply.
 
Your LED should be in parallel with the motor, not in series. You have an unnecesary series diode to the motor.
Attached is a revised circuit.
 

Attachments

  • SSR LED Schematic 2.png
    SSR LED Schematic 2.png
    4.8 KB · Views: 922
Thank you again!
 
From servo documentation https://www.parallax.com/sites/defa...tinuous-Rotation-Servo-Documentation-v2.2.pdf

Power requirements: 4 to 6 VDC; Maximum current draw140 +/- 50 mA at 6 VDC when operating in no load conditions, 15 mA when in static state
(they don't say what is max loaded)

Power Precautions

Do not use this servo with an unregulated wall-mount supply. Such powe supplies may delivervariable voltage far above the stated voltage.

Do not power this servo through the BASIC Stamp ® Module's Vin pin, this can deliver voltages above the stated voltage. See the Board of
Education Connection Diagram below for jumper
settings.

Servo current draw can spike while under peak load; be sure your application's regulator is
prepared to supply adequate current for all servos used in combination.

good find, have fun!
 
Sorry, R1 must be moved to limit LED current, no resistor is needed with the SSR LED.
Attached revision.
 

Attachments

  • SSR LED Schematic 2.png
    SSR LED Schematic 2.png
    4.6 KB · Views: 961

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
7
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 3 ·
Replies
3
Views
9K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
12
Views
3K
  • · Replies 26 ·
Replies
26
Views
4K
Replies
8
Views
4K