Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 02-09-2024, 20:38   #181
always in motion is the future
 
s/v Jedi's Avatar

Cruisers Forum Supporter

Join Date: Feb 2009
Location: in paradise
Boat: Sundeer 64
Posts: 19,776
Re: Open Source Arduino Alternator Regulator

It seems your Vcc is too low? Range is 8.3-13.0V
__________________
“It’s a trap!” - Admiral Ackbar.

s/v Jedi is offline   Reply With Quote
Old 02-09-2024, 20:50   #182
Registered User

Join Date: Aug 2020
Posts: 996
Re: Open Source Arduino Alternator Regulator

I can try making Vcc 12V, although the datasheet makes it sound like it's not needed. The schematic is messy in this area- there's a 4.7 uF decoupling capacitor connected so that the chip can supply its own Vcc, the way I'm interpreting

__________________
Contribute to OpenSource Alternator regulator for LiFePO4 XEngineering . net
markxengineerin is offline   Reply With Quote
Old 02-09-2024, 20:57   #183
Registered User

Join Date: Aug 2020
Posts: 996
Re: Open Source Arduino Alternator Regulator

Quote:
What range of costs/price are you now?
They cost me ~$100 each in the state you see, although I would not call them done yet. In addition to regular debugging, I'd like to improve the connectors, add some sensors and a control /display panel, provide an enclosure or at least a CAD model for DIY starting point. So in the end, maybe sell for $300 each "bare" / $350 "ready to install"? Too soon to know, but I'd like to make some $ to fund similar projects.
__________________
Contribute to OpenSource Alternator regulator for LiFePO4 XEngineering . net
markxengineerin is offline   Reply With Quote
Old 03-09-2024, 07:23   #184
always in motion is the future
 
s/v Jedi's Avatar

Cruisers Forum Supporter

Join Date: Feb 2009
Location: in paradise
Boat: Sundeer 64
Posts: 19,776
Re: Open Source Arduino Alternator Regulator

Quote:
Originally Posted by markxengineerin View Post
I can try making Vcc 12V, although the datasheet makes it sound like it's not needed. The schematic is messy in this area- there's a 4.7 uF decoupling capacitor connected so that the chip can supply its own Vcc, the way I'm interpreting

The reason I come up with Vcc is because it’s often the cause with erratic behavior. Also, it seems they recommend the applied voltage in the range I mentioned as per attached data sheet fragment
Attached Thumbnails
Click image for larger version

Name:	IMG_0187.jpg
Views:	14
Size:	326.9 KB
ID:	293820  
__________________
“It’s a trap!” - Admiral Ackbar.

s/v Jedi is offline   Reply With Quote
Old 09-09-2024, 14:53   #185
Registered User

Join Date: Aug 2020
Posts: 996
Re: Open Source Arduino Alternator Regulator

After much head scratching, found a missing capacitor forgotten by PCBWay. Thanks Jedi for the effort, onward...
__________________
Contribute to OpenSource Alternator regulator for LiFePO4 XEngineering . net
markxengineerin is offline   Reply With Quote
Old 16-09-2024, 20:56   #186
Registered User

Join Date: Aug 2020
Posts: 996
Re: Open Source Arduino Alternator Regulator

Basic functionality is starting to get checked off


Tested and Working: Manual control of output amps specified over USB connection, measuring alternator temperature with OneWire digital sensor, output alarm, very accurate voltage and current measurements, input switch optical isolators, nothing overheating or burning

Tested and Not Working: RPM from alternator rectifier bridge tap and LM2907 chip- haven't tried to debug yet

Remains to be tested: Serial communication (Victron), CAN, PID / overall control strategy, WIFI app for gauges and settings, OLED display, optimizing field output frequency, ramp rates, getting rid of some noise spikes in the power cables to the regulator. The noise issue is not present when measured at the battery, but nice to fix whatever is causing it.
__________________
Contribute to OpenSource Alternator regulator for LiFePO4 XEngineering . net
markxengineerin is offline   Reply With Quote
Old 07-10-2024, 06:07   #187
Registered User

Join Date: Sep 2024
Location: Sibbo, Finland
Boat: FE-83
Posts: 22
Re: Open Source Arduino Alternator Regulator

I find this development very interesting. I have a Yanmar 1 GM, soon an EVE LF280k 12 V battery with a JK BMS, lead-acid starter battery and I'm going crazy thinking about all the ways I can charge.

My Victron MPPT is fine, connects directly to the LiFePo4 battery. Unresolved are engine and shore power charging. I have the Sterling external regulator on the alternator and a 4-stage 15 A shore power charger (not LiFePo4 capable).

My alternator is the stock 35 A Hitachi and it has been ridden hard with my 220 Ah AGM. I'm not that worried that it would melt while charging an LiFePo4 battery. The power level is just so low ~500 W.

Long story short

Wouldn't it be possible to use an ESP8266, read temperature, starter battery voltage and RPM from the alternator and then use that to externally adjust the maximum current by a Victron Orion XS?

Pluses;

I could ask for 10 A if the RPMS are between 600 and 2000 or more if RPMS are over 2000.
I could ask for less current if the temperature of the alternator rises
I could ask for 10 A if the RPMS are 0 and the starter battery is over 12.8 V (I could use my old charger connected to the starter).
I could upgrade to a 60 A alternator without bogging down the engine at idle or slow rpms.


Is there a way to manipulate the Victron Orion XS externally? This might be off-topic.
haraldh is offline   Reply With Quote
Old 07-10-2024, 08:48   #188
Registered User

Join Date: Sep 2019
Location: Lifeaboard
Boat: FP Lavezzi 40
Posts: 4,009
Re: Open Source Arduino Alternator Regulator

Quote:
Originally Posted by haraldh View Post
I find this development very interesting. I have a Yanmar 1 GM, soon an EVE LF280k 12 V battery with a JK BMS, lead-acid starter battery and I'm going crazy thinking about all the ways I can charge.

My Victron MPPT is fine, connects directly to the LiFePo4 battery. Unresolved are engine and shore power charging. I have the Sterling external regulator on the alternator and a 4-stage 15 A shore power charger (not LiFePo4 capable).

My alternator is the stock 35 A Hitachi and it has been ridden hard with my 220 Ah AGM. I'm not that worried that it would melt while charging an LiFePo4 battery. The power level is just so low ~500 W.

Long story short

Wouldn't it be possible to use an ESP8266, read temperature, starter battery voltage and RPM from the alternator and then use that to externally adjust the maximum current by a Victron Orion XS?

Pluses;

I could ask for 10 A if the RPMS are between 600 and 2000 or more if RPMS are over 2000.
I could ask for less current if the temperature of the alternator rises
I could ask for 10 A if the RPMS are 0 and the starter battery is over 12.8 V (I could use my old charger connected to the starter).
I could upgrade to a 60 A alternator without bogging down the engine at idle or slow rpms.


Is there a way to manipulate the Victron Orion XS externally? This might be off-topic.
It's time to replace that 35A baby alternator then with a bigger on the 80-100A range that fit and that's modified for external regulation and use this controller here to steer the alternator.

Alternatively get a renogy DC2DC 20A and connect it and use till the little alternator dies. Then either get the same 35A or go to solution above.
An Orion XS is too expensive and too big for your install, that 35A can do 15-20A constant, the orion does 50A.
Everything else makes no sense.
CaptainRivet is online now   Reply With Quote
Old 07-10-2024, 17:14   #189
Registered User

Join Date: Aug 2020
Posts: 996
Re: Open Source Arduino Alternator Regulator

Quote:
My alternator is the stock 35 A Hitachi and it has been ridden hard with my 220 Ah AGM. I'm not that worried that it would melt while charging an LiFePo4 battery. The power level is just so low ~500 W.
Have you been running this already? Depending on the settings chosen in the Sterling regulator, it might work (?) but I suspect you could also melt the alternator quickly or damage over time with the wrong settings. This is usually what happens when people change to Lithium without appropriately setting up the regulator.

I'm not too familiar with the Orion XS or why you would want to manipulate it externally, but this regulator intended to be a direct replacement for your Sterling regulator, just with more features and adjustability, such as control based on temperature, RPM. Since it's based on a generic ESP32, you have a lot of flexibility to modify it to any unique use cases such as yours.

As an overall update on the project, I have debugged all features besides CAN communication. That's next. There is only one real hardware issue, some noise being fed back to the 12V supply wire (possibly caused by the over-voltage protection circuit) that needs debugging. The noise doesn't cause any functional problems, I just don't like it. So I expect to be ordering the final set of "test pieces" within a month or so- the final units before a first production run. I have done no work on the enclosure(s), external switch panel, or wiring harness yet. TBD if these end up included or DIY.
__________________
Contribute to OpenSource Alternator regulator for LiFePO4 XEngineering . net
markxengineerin is offline   Reply With Quote
Old 07-10-2024, 17:41   #190
always in motion is the future
 
s/v Jedi's Avatar

Cruisers Forum Supporter

Join Date: Feb 2009
Location: in paradise
Boat: Sundeer 64
Posts: 19,776
Re: Open Source Arduino Alternator Regulator

Quote:
Originally Posted by markxengineerin View Post
Have you been running this already? Depending on the settings chosen in the Sterling regulator, it might work (?) but I suspect you could also melt the alternator quickly or damage over time with the wrong settings. This is usually what happens when people change to Lithium without appropriately setting up the regulator.

I'm not too familiar with the Orion XS or why you would want to manipulate it externally, but this regulator intended to be a direct replacement for your Sterling regulator, just with more features and adjustability, such as control based on temperature, RPM. Since it's based on a generic ESP32, you have a lot of flexibility to modify it to any unique use cases such as yours.

As an overall update on the project, I have debugged all features besides CAN communication. That's next. There is only one real hardware issue, some noise being fed back to the 12V supply wire (possibly caused by the over-voltage protection circuit) that needs debugging. The noise doesn't cause any functional problems, I just don't like it. So I expect to be ordering the final set of "test pieces" within a month or so- the final units before a first production run. I have done no work on the enclosure(s), external switch panel, or wiring harness yet. TBD if these end up included or DIY.
Did you use a spectrum analyzer on the noise?
__________________
“It’s a trap!” - Admiral Ackbar.

s/v Jedi is offline   Reply With Quote
Old 07-10-2024, 18:02   #191
Registered User

Join Date: Aug 2020
Posts: 996
Re: Open Source Arduino Alternator Regulator

I did, but I didn't save any great screenshots. Here is one I had:


The noise blip measured on 12V power to the regulator (red line) happens every 8.9microseconds. The duration of the event is ~540 nanoseconds or 0.54 microsecond.

It seems unrelated to the field (blue) which looks as expected, although the noise blip gets worse at higher fields. Frequency remains constant always. I can't recall if the duration changes, but I want to say not much, not compared to the magnitude.

If you would like to see something more specific on the scope, I will take some more measurements tomorrow. The EE I'm working with thinks it looks like the battery may be getting disconnected briefly, then reconnecting, due to the protection circuit, but we haven't spent much time on this yet.
__________________
Contribute to OpenSource Alternator regulator for LiFePO4 XEngineering . net
markxengineerin is offline   Reply With Quote
Old 07-10-2024, 19:01   #192
always in motion is the future
 
s/v Jedi's Avatar

Cruisers Forum Supporter

Join Date: Feb 2009
Location: in paradise
Boat: Sundeer 64
Posts: 19,776
Re: Open Source Arduino Alternator Regulator

Quote:
Originally Posted by markxengineerin View Post
I did, but I didn't save any great screenshots. Here is one I had:


The noise blip measured on 12V power to the regulator (red line) happens every 8.9microseconds. The duration of the event is ~540 nanoseconds or 0.54 microsecond.

It seems unrelated to the field (blue) which looks as expected, although the noise blip gets worse at higher fields. Frequency remains constant always. I can't recall if the duration changes, but I want to say not much, not compared to the magnitude.

If you would like to see something more specific on the scope, I will take some more measurements tomorrow. The EE I'm working with thinks it looks like the battery may be getting disconnected briefly, then reconnecting, due to the protection circuit, but we haven't spent much time on this yet.
The spectrum is the lower graph… is red the DC line there?

Edit: do you have a programmable load? (or anything to emulate the battery?)
__________________
“It’s a trap!” - Admiral Ackbar.

s/v Jedi is offline   Reply With Quote
Old 07-10-2024, 19:03   #193
Registered User

Join Date: Aug 2020
Posts: 996
Re: Open Source Arduino Alternator Regulator

Yes, the top half of the screenshot has time as the X axis, bottom half has frequency as X axis. But the signals displayed are the same, and the colors match. Red=12V power measured at the Regulator input, Blue is the field output. The choice of scale on the frequency plot may not have been ideal here.
__________________
Contribute to OpenSource Alternator regulator for LiFePO4 XEngineering . net
markxengineerin is offline   Reply With Quote
Old 07-10-2024, 19:06   #194
always in motion is the future
 
s/v Jedi's Avatar

Cruisers Forum Supporter

Join Date: Feb 2009
Location: in paradise
Boat: Sundeer 64
Posts: 19,776
Re: Open Source Arduino Alternator Regulator

Quote:
Originally Posted by markxengineerin View Post
Yes, the top half of the screenshot has time as the X axis, bottom half has frequency as X axis. But the signals displayed are the same, and the colors match. Red=12V power measured at the Regulator input, Blue is the field output. The choice of scale on the frequency plot may not have been ideal here.
So the first pulse in the spectrum at around 110kHz looks to be the strongest?!

Yes it would be better to have a higher range like 5MHz
__________________
“It’s a trap!” - Admiral Ackbar.

s/v Jedi is offline   Reply With Quote
Old 07-10-2024, 19:10   #195
Registered User

Join Date: Aug 2020
Posts: 996
Re: Open Source Arduino Alternator Regulator

It is hard to say with the scale, but I will get some better images tomorrow morning. Anything else you'd like measured?
__________________
Contribute to OpenSource Alternator regulator for LiFePO4 XEngineering . net
markxengineerin is offline   Reply With Quote
Reply

Tags
alternator, regulator

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Arduino based alternator regulator Epicurean Marine Electronics 3 18-02-2023 06:36
Arduino based Alternator Regulator Project wayne.b Electrical: Batteries, Generators & Solar 11 11-03-2021 11:16
[SOLD] Balmar Regulator, 100A Alternator & 35A alternator JimJohnston General Classifieds (no boats) 0 07-10-2018 20:36
A DIY barograph based on an Arduino shield PauloOnArbutus Marine Electronics 5 23-01-2016 05:58
3 stage regulator or internal regulator for AGMs? sgtPluck Electrical: Batteries, Generators & Solar 13 05-09-2008 09:50

Advertise Here


All times are GMT -7. The time now is 04:45.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.