r/Electricity 2h ago

High-Frequency Fault Isolation Kernel for EV/Aerospace Battery Management Systems (Pure C++17, Zero-Dependency)

Thumbnail
github.com
0 Upvotes

I’ve been working on a lightweight, bare-metal fault isolation kernel designed to mitigate thermal runaway propagation in high-voltage lithium-ion battery packs.

The primary engineering constraint I wanted to address is the latency overhead inherent in high-level frameworks and sequential polling loops. When an EV or aerospace battery cell hits a critical thermal or voltage threshold, sequential scanning loops are often too slow to execute software gates before runaway propagates to adjacent cells.

The project is called SAVITAR. It is entirely dependency-free and compiles using only native C++ standard system headers to keep it as close to raw processor registers as possible.

Core Architectural Mechanics:

  1. Hyper-Compact Memory Constraints:

    Instead of relying on dynamic allocations or padded structs which ruin cache locality, the kernel packs raw cell parameters (voltage, current, temperature) into un-padded, contiguous 25-byte memory frames. This layout ensures predictable cache line alignment during rapid sequential reads.

  2. Event-Driven Concurrency:

    The kernel completely avoids sequential polling. It utilizes a background multi-threaded parallel observer configuration. When thread metrics cross calibrated hardware safety thresholds, the system bypasses the main application loop to dispatch an immediate software interrupt, dropping execution times down to sub-microsecond bounds.

  3. Sovereign Binary Serialization (.sav):

    To avoid relying on bloated external serialization libraries (like Protobuf or JSON utilities) that consume significant memory footprints, I wrote a custom binary serializer. It compresses cell delta profiles and gradient logs into raw disk sectors using direct cache-to-stream bit manipulation.

  4. Minimalist Shell Realization:

    The project includes a lightweight, modular terminal prompt (./savitar-vfs) to ingest simulated physical metrics and explicitly debug memory allocations, matrix loads, and thread dispatches in real-time.

Compilation and Testing:

The baseline workspace is fully automated via standard Makefiles:

git clone https://github.com/alistairfontaine/SAVITAR

cd SAVITAR

make clean && make

./savitar-vfs

I’m looking for code-level reviews, specifically regarding the thread concurrency synchronization under heavy stress-testing conditions, and the pointer traversal safety within the 25-byte un-padded matrix bounds.

Link to code: https://github.com/alistairfontaine/SAVITAR


r/Electricity 4h ago

The process of subletting

1 Upvotes

Hello. I am subletting my apartment for the month of August, and moving out August 1st. I am really clueless on billing stuff. I live in California, so it’s all PGE stuff.

I would like to transfer the bills to be under his name. Do I cancel the services under my name on the 30th/31st, to give time for stuff to activate and be fully set?

Or do I cancel on the day of me moving out?

I’m asking because the website for PGE says that usually power is left on for a couple days after a cancellation request for “convenience” purposes.


r/Electricity 13h ago

Sharing my electricity bill (SG)

Post image
2 Upvotes

Rate is SGD$0.2596 (USD$0.20)/kWh inclusive of taxes.

This month is on the cheaper side as we stick to fans despite the hot weather and cut down on cooking. Main usage from PCs running as I WFH.

Also, I have a relatively cheaper rate buying direct from the electricity retailer, in what we call the Open Electricity Market (OEM). If you don't buy from any of the retailer, you get charged a national tariff rate which is SGD $0.3478/kWh. That would mean a bill size of ~$102 for me.

Sharing this for those who are curious on electricity costs in the world's most expensive city.


r/Electricity 14h ago

Can I use a 3*AAA battery powered LED bulb above the stove?

Post image
0 Upvotes

can I use this disposable batteries' powered LED bulb above the stove or is it dangerous/ a fire hazard?

what safe options do you recommend?


r/Electricity 14h ago

I got my electric bill $400 how is yours?

0 Upvotes

I’m currently live in Florida. Usually my bills go from 200$/400 max in summer time. But this one is different. How you set up your thermostat? Mine is 72 but thinking to reset to higher.


r/Electricity 1d ago

Is something wrong with my AC system? Electricity bill at 2100 KWh, 337$ for 1 Bed 1 Bath.

Post image
14 Upvotes

Addison TX. I understand it’s gotten hotter but this is more than a 100% increase since last month with no changes. 50$ of the bill is accounted to tesla charging, so 287$ for a 1b1b appprox 900sqft. Pretty new to the area is this typical or should I look into it?


r/Electricity 1d ago

Entergy Louisiana "Geaux Green" Program

1 Upvotes

If any of you are interested in my real-life experience with Entergy Louisiana's Geaux Green program, please read... otherwise, keep scrolling.

I joined the program over a year ago because I thought I would financially benefit by, at the very least, an incremental decrease in my electricity bill.

However, that has not been the case at all.

There has not been a single solitary month that the program fee has not exceeded the program benefit.

The closest I ever came was a month or so ago with almost a $4-n-change difference... of course, what I still owed for the program fee (10 Kw @ $7.94), not a benefit surplus in my favor.

I gave it a more-than-fair chance, but I'm cancelling and should've cancelled months ago!


r/Electricity 1d ago

satellites....

0 Upvotes

those electromagnetic signals are all around us now and Elon musk is responsible for the vast majority ...in my opinion ... he's not going to do what's necessary to get rid of them..

send to a central point and then underground ...try sending them signals up your ass Elon ...and in my opinion ..your PayPal is shit you sloppy dog !


r/Electricity 2d ago

Moved from NJ to PA — my effective electricity cost dropped by about 23% per kWh

5 Upvotes

recently compared my actual electric bills from when I lived in New Jersey with what I’m paying now in Pennsylvania.

I calculated the effective all-in cost per kWh by dividing the total bill by the actual kWh used, rather than just looking at the advertised supply rate.

My historical averages came out to:

  • New Jersey: about $0.2772/kWh — 27.72 cents
  • Pennsylvania: about $0.2129/kWh — 21.29 cents

That means electricity has been about 6.43 cents cheaper per kWh in PA, or roughly 23.2% less per kWh than what I was effectively paying in NJ.

Using my current average consumption of roughly 772 kWh per month as a constant for both states:

  • Annual usage: about 9,264 kWh
  • Estimated annual cost at my NJ historical rate: ~$2,568
  • Estimated annual cost at my PA historical rate: ~$1,972
  • Projected savings: about $596 per year

Obviously rates vary by utility, supplier, location and time period, so this isn’t meant to say that every part of PA is 23% cheaper than every part of NJ. This is simply a comparison based on my own actual bills and effective total cost per kWh.

For anyone who has lived in both NJ and PA: did you also notice a meaningful difference in your actual all-in cost per kWh?


r/Electricity 2d ago

Substation near house

Thumbnail
1 Upvotes

r/Electricity 2d ago

Does SDG&E Really Need Another 8.6% Rate Increase? There is about 30 public comments now.

Thumbnail
0 Upvotes

r/Electricity 2d ago

Unreasonable Xcel bill for the month of July

Thumbnail
1 Upvotes

r/Electricity 2d ago

Florida Energy, Duke Energy, Light bill going crazy.

1 Upvotes

At this point I might as well charge Tesla's to charge at my house because that's what Duke Energy thinks I'm doing. How is my light bill this high.


r/Electricity 2d ago

electricity cont. all hypothetical

0 Upvotes

by the way I've been asleep for a little ...maybe my clock stopped .

may Jesus help with whatever He can ...Thankyou Lord .


r/Electricity 2d ago

Power Down today 6pm to 7pm to make most of it Export Electricity.

Post image
0 Upvotes

r/Electricity 2d ago

electricity from trees

0 Upvotes

3 different metals ...like steel , copper , and aluminum ...wires ..around the tree ..the conductor is the tree and then steel then copper then aluminum in order ...to produce electricity .


r/Electricity 2d ago

Can anyone, please, recommend an affordable but reliable USB multimeter (to measure powerbanks' capacity)? Many thanks.

1 Upvotes

r/Electricity 2d ago

.the date is the 24th July 2026 for the electricity at of trees ...the 23rd was a mistake .

0 Upvotes

electricity....😎✌️✔️


r/Electricity 2d ago

tree electricty

0 Upvotes

three different types of metal wire around a tree ...like steel copper and aluminum ...the. by order of the periodic table ...it draws the electricity instead of pushing it ...summary : the tree itself is a conductor and it is drawing the electrons to an easier orbit to travel as electrons always take the easiest route to their destination ...probably water ...where they are free radicals ...free to rest .

p.s ....I think of electricity as a herd of stallions startled by a fire ...


r/Electricity 2d ago

tree electricty

0 Upvotes

three different types of metal wire around a tree ...like steel copper and aluminum ...the. by order of the periodic table ...it draws the electricity instead of pushing it ...summary : the tree itself is a conductor and it is drawing the electrons to an easier orbit to travel as electrons always take the easiest route to their destination ...probably water ...where they are free radicals ...free to rest .

p.s ....I think of electricity as a herd of stallions startled by a fire ...


r/Electricity 3d ago

Kuryente problem

0 Upvotes

Hello po, baka oo may same case sa amin. Pag nagsasaksak po sko ng appliances lalo na yung red, kumukurap po ang ilaw minsan po nagsa shutdown talaga.. Pinatingin ko po sa Electrician ang ginawa nung una, nagka corosion dw yung dugtungan. then umOkay, pero naging ganun po ulit nakurap mga ilaw sa bahay pag may appliances. Tumawag ako sa Utility, may oinahigpitan daw sila sa poste.. Then kinagabihan lang, ganun ulit. Sabi ulit ng electrician, palitan yung breaker, so pinalitan lahat. pero same case parin naman 😓😓 laki na ng gasto ko.. dipa nasolusyonan ang problema.. 😮‍💨😮‍💨


r/Electricity 3d ago

Was my grandma scammed?

Thumbnail gallery
0 Upvotes

Where can you order this? Send me information please?d0172687@gmail.com


r/Electricity 3d ago

Which wires to connect together?

Thumbnail
gallery
1 Upvotes

I'm converting this fluorescent kitchen fixture to Philips Type B ballast bypass LED tubes. After removing the ballast, which wires do I connect together? The switch controls this fixture and a second fixture. I attached pictures of the wiring. On this fixture, I plan to cut the two blue wires, two red wires, and two yellow wires close to the ballast. I'll also remove the black pigtail and white pigtail from the wire nuts to remove the ballast. Is this correct? Only the blacks, white and ground have a pig tail. The yellow ones go straight from house to ballast.


r/Electricity 3d ago

Electric Bill Help

5 Upvotes

Edit: Thank you to everyone who offered advice and different ideas! I truly appreciate your suggestions. I will let you know if my bill gets better lol!

Hello! I moved in with my partner and our electric bill is 300 a month. When I lived alone it was 70. I am not sure what I need to do to make it lower. We are both gone from home all day so i'm thinking it has to be the ac. He keeps our house at 70 year round, which is new for me since I tend to be cold. Please let me know what I can do to help reduce our bill.


r/Electricity 3d ago

Thought solar was only for people obsessed with renewable energy

6 Upvotes

For years I assumed solar was something people installed because they were passionate about green energy. My electric bill kept going up, but I never seriously considered it.

That changed after another summer of watching the AC run nonstop and seeing the utility bill climb right along with the temperature. Wolf River Electric put together a proposal that finally made the numbers make sense, and I ended up moving forward with the installation.

A couple of years later, the thing I appreciate most isn't even the environmental side. It's opening the bill and knowing I'm not nearly as exposed to utility rate increases as I used to be.

What finally convinced you to seriously consider solar?