I am a novice for Arduino.
I am trying to get a DC pulse current by UNO at the given time duration say 5 seconds ... means pulsated DC output is 5 seconds on and then 5 seconds off.
Is there any modules to control the pulsated DC current.
Thank you
Do you simply want to repeatedly turn on a current source for 5 seconds and then turn it off or something more complicated ?
Maybe start by looking at the BlinkWithoutDelay example in the IDE
Yes its simple only. Just going to pass DC pulses for at the given time interval say, 5 sec for 1 hour.
But the source input is 1-2 Amp via external source.
Thank you UKHeliBob
What is the frequency and voltage of the DC pulses ?
Do you mean 5 seconds per hour ?
What are the current pulses driving? A relay or solenoid? An LED? A motor? What is the object's voltage and current requirements?
Passing it anode and cathode dipped in an electrolytic solution. Through these positive and negative electrodes pulses will be passed out for 1 hour with 5 sec on and then off continuously.
Thanks
I timing-digram would help a lot to clear things up
as a table do you mean
10:00:00 switch on
10:00:05 switch off
10:00:10 switch on
10:00:15 switch off
10:00:20 switch on
10:00:25 switch off
.....
10:59:50 switch on
10:59:55 switch off
11:00:00 no more switching on / off?
indeed what would be suitable depends on
voltage and current and how many run-hours per year
for a few hours a relay might be sufficient. If you want to run this for thousands of hours
an electronic switch is better suited.
pulsated DC current is a pretty unprecise description.
Is this a "signal" is this driving a motor? or what?
What voltage? What ampere?
If you are not familiar with electronics give at least a normal word-description of the project
best regards Stefan
5 sec on and then 5 sec off.
Passing these pulsated DC through anode and cathode dipped in an electrolytic solution. Through these positive and negative electrodes pulses will be passed with 5 sec on and then 5 sec off continuously for 1 hour duration.
DC output is 1 A.
Thanks
Your table is correct.... that's what I need...
I am doing electrodeposition from chemical solutions using DC.
Here DC is passed between anode and cathode electrodes (plates) dipped in a conducting solution. During this at anode plate some chemical reactions takes place.
So the pulsated current is 5 sec on and then 5 sec off.
The final results (chemical reactions) takes at anode will be different from non-pulsated DC.
And pulses will be passed with 5 sec on and then 5 sec off continuously for 1 hour duration.
DC output is 1 A.
Thank you for your response.
So basically you want an output to go on and off with a period of 5 seconds and for this to continue for an hour then stop
This sketch will pulse an output pin in the pattern that you describe
const byte outputPin = 3;
void setup()
{
Serial.begin(115200);
pinMode(outputPin, OUTPUT);
digitalWrite(outputPin, HIGH);
}
void loop()
{
unsigned long currentTime = millis();
static boolean pulsing = true;
static unsigned long oneHour = 60 * 60 * 1000;
static unsigned long fiveSeconds = 5000;
static unsigned long oneHourStart = currentTime;
static unsigned long fiveSecondsStart = currentTime;
if (pulsing)
{
if (currentTime - oneHourStart >= oneHour) //end of the hour
{
pulsing = false;
digitalWrite(outputPin, HIGH);
}
else
{
if (currentTime - fiveSecondsStart >= fiveSeconds) //end of current pulse
{
digitalWrite(outputPin, !digitalRead(outputPin));
fiveSecondsStart = currentTime;
}
}
}
}
Now you need to build the circuit to use the output to switch the current using a relay oy a MOSFET, for example
Thank you UKHeliBob
I will try .
Thanks for your guidance.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.