Jump to content
Top Shelf Aquatics

WORKING DIY Koralia Controllable Driver


mabviper

Recommended Posts

Kinda o.o

Let's put it this way. The PWMmotor signals that controls the mosfets and thus the motor is going to be out of the user's reach. That PWMmotor signal has a set frequency of 10kHz. It won't change. The software program that generates the PWMmotor doens't need to be touched and will do it's thing indefinitely. It only has 1 input parameter which is the motorSpeed.

 

You can change the motorSpeed in many different ways. You might want to use a voltage potentiometer for some voltage division action or you can use a different PWM frequency. Changing motorSpeed is only limited by the user's imagination. That's all you get to play with ^^. The rest, you can forget about how it works, heh.

Link to comment
  • Replies 90
  • Created
  • Last Reply

Okay that is what I was thinking,

proportionately changing the PWM frequency.

 

Having the option of sync and antisync,

then going to how long off and how long on,

then set the max PWM frequency (10KHz less if you wanted to)

the minimum/idle, how many steps(like 5% is one step(smoothness of transition etc) or 1 or whatever_

basically how quickly it goes on then do it for how quickly it goes off.

 

That's what I was thinking.

Link to comment

Would you guys be able to program chips and send them out to forum members? Saving most of us the cost of a programmer.

 

Do you plan to program this as stand alone or have it respond to various inputs(slave from another controller), ie, 0-10v, I2c, etc?

 

I think the ability to connect this to some kind of reefcontroller would really set it apart. The 89$ build, auqacontroller or others.

Link to comment

Hmm, to be honest, I'm only a mere student in university.

 

I wanted to make something for myself to control these motors. If I was successful, I'd be willing to share it. I wasn't really planning on making a board that I can distribute to the masses. I don't think it's feasible for me to do that.

 

However, I will answer questions to my software and hardware designs when people ask them. People can make modifications on the software and hardware as they see fit.

 

The software that I'm using is just a proof of concept. In the future, I can implement various motor control mechanisms like 0-10v, I2C, UART, pwm control, etc. It's meant to be a Koralia driver with flexible automated user control. As for the programmed chips, it is possible in the future, maybe. Though I really can't see myself programming a bag full of chips along w/ doing school work >.<

Link to comment

There seems to be more and more members with experience programing chips to help with that, especially if this becomes a popular project. I sure hope it gets popular, a controllable koralia that I can setup with other reef controllers has alot more functionality to me than a vortech.

 

The circuit seems easy enough to DIY. PCB would be nice but doesnt seem needed in this case.

Link to comment

Just a thougt:

 

would it work, if you would use just one MOSFET that can handle 24V and switch it ON and OFF instead of using 12V H-bridge???

 

Regards, Tarzan

Link to comment

Unfortunately, no. 1 mosfet is not going to work. The H-bridge recreates an AC signal. A single mosfet wont' be able to do that.

Link to comment
Unfortunately, no. 1 mosfet is not going to work. The H-bridge recreates an AC signal. A single mosfet wont' be able to do that.

Why wouldn't it be able to do that? I don't understand it, forgive me, i am almost completely clueless about how this MOSFETs work and what they can and can't do...

 

->Theoretically if you use just first gating signal [g1] than you would get the same output [AO] as your H-bridge controller, if you would have just one MOSFET and 24V DC suply instead ov 12V DC.

post-33268-1255629351_thumb.jpg

Link to comment

If you use the gating signal g1 to drive just 1 mosfet, all you'll get is a DC signal that's ramping up and down between 0 - 24V. If you connect your motor between 24V and the drain terminal of the mosfet, the current will only flow one way, not enough to drive the motor. You'll just hear a click.

 

Now, the output AO is not made solely by g1. AO is actually g1-g2. These gating signals must be paired w/ its corresponding mosfet in the H-bridge to get an AC output across the motor terminals.

 

This link might help to understand the H-bridge concept. Though, the motor that they're using is DC and the H-bridge is for the direction of rotation of the motor. AC H-bridge is similar but it alternates at a higher frequency. Fundamentally, the operation is similar.

H-bridge secrets

 

I hope that helps ^^

Link to comment

Hi mabviper, it's me again :D As jm82792 I am also interested in getting it working on Arduino. I searched the arduino forum and here, and as I understood, it is possible to change the PWM frequency from default 500Hz to much higher values. Would 4kHz be enough for the carrier freq.?

 

Now I need to find out if it is possible to vary arduinos "PWM duty cycle" in sin waveform with 60 Hz and later to make ths 60Hz a variable that can be changed on the fly from 30-100%. I guess it would be easy to make 2 control signals out of one - just by inverting the signal. To prevent both of serial MOSFETS beeing switched "on" perhaps making a small gap would also be possible by making the output delayed for for some time when changing from 0 to 1.

 

Somme suggestions?

Link to comment

I am too much of a newbie to know what to do,

I know basics but not that much and my experience is limited.

 

I'll look into it,

maybe sometime soon I can get help from a friend who codes for a profession and is to a lesser extent an electronics engineer....

That would be by the end of the year since that is when I'd be living by him.

Link to comment

Yeah, I think 4kHz is enough for the carrier frequency. The higher the carrier frequency, the less harmonics (vibration, sound, etc) on the motor.

 

I have no experience w/ Arduinos but if you look at the code I posted, making is waveforms is relatively 'simple' o.o. Alot simpler than pure software coding anyways ^^;

Link to comment
Here is a thread of someones Arduino AC Power Shield It is suppose to dim lights. I do not think it would work for the 120v Koralia but perhaps something useful may be gleaned from the code listings for use with this project.

I don't believe this would work very well with 120 V Koralias since it just changes the duty cycle of sine wave by switching it off berore the sine wave would reach zero. To regulate speed you need to regulate frequency...

 

I JUST GOT MY 12V KORALIA, I AM IN MAMA!!!!

 

One thouht about this 12V koralias:

since this output you are getting out of your controller is actually PWM generated 24V AC @60Hz has anybody tried to connect it to AC source (to a transformer that converts USA 120 V AC to 24V AC @60 Hz or in Europe to a transformer with 230:24 V AC @50Hz?????????????????? Would That Work???? You would of course have no speed control option, but you would at least have your Koralia working during the controller making process :D

Link to comment

Hmm I don't know,

coding that in arduino doesn't sound like a smart idea as I could see it getting way more complex since you are doing it at a lower level of coding.

 

I'm too much of a newbie to know where to start.

 

Plus I don't fully understand the code,

although the concept isn't that complex.

 

I'd stay away from trying to use the 120 line voltage ones,

more of a pain, there is a hazard and I'd stay away.....

Link to comment
I don't believe this would work very well with 120 V Koralias since it just changes the duty cycle of sine wave by switching it off berore the sine wave would reach zero. To regulate speed you need to regulate frequency...

 

Hmm I don't know,

coding that in arduino doesn't sound like a smart idea as I could see it getting way more complex since you are doing it at a lower level of coding.

 

I'd stay away from trying to use the 120 line voltage ones,

more of a pain, there is a hazard and I'd stay away.....

 

I never meant to suggest that I was planning on using the linked 120v Power shield. I thought I was clear that

 

"I do not think it would work for the 120v Koralia but perhaps something useful may be gleaned from the code listings"

 

As far as coding it in the Arduino not being a good idea because of complexity....some would say going the whole DIY route is too complex when you can buy a complete working Koralia Controller off the shelf. DIY is always going to be more complex than buying the completed item that you are trying to DIY. Now, if you think that it is not a smart idea to use the Arduino because there is no possible way for the hardware to send the proper signals to the circuit then that is a different story.

 

That being said, I would like to try programming the Arduino to send the signals for the 12v circuit that is on page one post #7 of this thread. I will be using the Arduino as well as a 12v Nano Koralia because I already have both.

Link to comment

Nobody answered my question so I'll do it myself: About fixed frequency transformation from home line voltage to 24 V - i got the answer on this link. He hooked it up on a 12V AC power supply, but actually what the correct output voltage should be is higher than 12V AC and it should be 21 V AC. First I thought it should be just 16,97 V (that is 24V/square root of 2) since that is an effective voltage for square if you would use a square signal of 60Hz if the DC voltage powering it was supposedly 12V. Then I found this thread with oscilloscope readings of Koralia wavemakers output on which it is obvious, that they use 15V for H-bridge so the output is actually 30 Vpp (pick to pick). Devide it wih 1,41 and you get the 21V i mentioned earlier.

 

I am pretty sure that 20 V transformer rated for 5VA would just do magic B) . Today I connected my koralia nano to a small transformer with output voltage 6V (measured with no load) that I had laying around from old DIY ATO, and Koralia did spin, but the flow it was producing was really really low. Also it had starting problems - not enough torque to start -rate of success was just 70%. Power consumption was just 1W (measured power the transformer drew from net) :D

 

@mabviper: You never mentioned where you got this 60Hz from? In one of the post someone said he is using simple square wave and change the freq from 40 to 60 Hz, and one dude mentioned that they are actually 50Hz AC motors. I also read that you stated, that Vpp should be changed with frequency to avoid damaging motor, but I am not sure of that... Please explain tha logic behind that.

 

@jm82792, i think we should be asking questions about arduino on some other forum and then just come back with the results (hopefully good ones) ;D I am posting the problem tomorrow!

Link to comment

@tarzan

hmm, your Vrms calculations are incorrect. Vrms is not calculated from Vpp (peak to peak). Vrms is calculated using Vp (peak) such that Vrms = Vp/sqrt(2). Evilc scoped out the controller output and it shows a peak to peak voltage of 30V, 15V peak. I'm not sure what Hydor meant by "12V" because it can either be 12Vrms or 12Vp. If it's 12Vrms, that means, from the equation, Vp has to be 16.97Vp. But we already saw the output waveforms so they can't be 12Vrms. So they have to mean 12Vp. As for the waveform showing 15Vp, it's very simple to knock the amplitude of the h-bridge down to 12Vp through software. Furthermore, the mosfets in the bridge aren't ideal switches. They do have a voltage drop across Drain and Source when they're ON. This depends on the current through the mosfet and the ONresistance of the mosfet. Having 15V to power the bridge and the motor allows a bit of flexibility when you factor in circuit losses.

 

As for the 60Hz frequency, I simply assumed because mostly all cheap AC motors operate at 60Hz just because 60Hz is the line voltage frequency in North America. It's more work for the engineers to design a motor to run at a specific frequency than to make it work at 60Hz. It's probably the same reason why somebody said it's a 50Hz motor because their line voltage frequency is 50Hz.

 

As for proportionally varying the voltage along w/ the frequency, it's a technique for controlling induction motors. It's called V/F control. When you control induction motors, it is essential that you vary V along side F to maintain the motor's torque curves. If you don't do it, the torque curve will be altered and you might end up having very low torque at motor startup. I said mentioned those things because I didn't know the type of these motors.

 

wow, that's alot of explainations o.o

I have a cyber stalker! lol. I remeber saying those things in RC about a year or so ago.

Link to comment
I never meant to suggest that I was planning on using the linked 120v Power shield. I thought I was clear that

 

"I do not think it would work for the 120v Koralia but perhaps something useful may be gleaned from the code listings"

 

As far as coding it in the Arduino not being a good idea because of complexity....some would say going the whole DIY route is too complex when you can buy a complete working Koralia Controller off the shelf. DIY is always going to be more complex than buying the completed item that you are trying to DIY. Now, if you think that it is not a smart idea to use the Arduino because there is no possible way for the hardware to send the proper signals to the circuit then that is a different story.

 

That being said, I would like to try programming the Arduino to send the signals for the 12v circuit that is on page one post #7 of this thread. I will be using the Arduino as well as a 12v Nano Koralia because I already have both.

I appologize for not fully reading you're post about the arduino AC shield.

 

I am not saying don't do it,

but I've never been in any profession that involves coding,

I'm 17 and I've only dabbled enough to have a basic understanding of coding,

not enough to do this with arduino on my own.

 

If you could get it to work,

and I honestly think you should be able to do so,

that would be great then you could have a $40 wavemaker with a LCD and a basic button interface.

Link to comment

Do you guys really want this running on Arduino?

 

I think after you get all the pump controller programming setup you wont have much room for anything else. Not sure how many outputs you will be able to configure. I think doing the setup in a reef controller(arduino? or other) then having it send instructions to the pump controller(whatever chip you set that up on) would be better. The main reef controller will already be setup for light timing etc. so adding pump timing and control that should be an easy add on that can send instructions to the slave.

 

You guys are mentioning RC threads, is there a thread there that is mirroring this one? Maybe we should start one, there is many skilled reefers there.

Link to comment
I have a cyber stalker! lol. I remeber saying those things in RC about a year or so ago.

LOL :D Yes, I did a search on DIY Koralia Controllers that got me to RC forum and there were some post with "known" urername :D :D :D

 

So eeee... what you are saying now is that V/f contorol is not needed here? Right?

 

As for my calculation - I am ashamed, really am, but you have to know that i was not thinking straight since it was almost 1 AM ... (i'm in GMT+1 ->Central Europe).

 

@jm82792 & ls7corvete

I think both methods should be explored. ls7corvetet's thoughts about controlling pump controller might be the best solution. I'll look into it, but would't mind having one arduino solely to control my pump -they are like 25$ :happy:...

Link to comment

Well that was a thought,

let the motor controller do it's thing and have it accept PWM input and use it to correlate with the frequency,

basically low level motor controller and using arduino as a higher level I/O.

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recommended Discussions


×
×
  • Create New...