Thursday, October 20, 2022

Off-grid Base Camp Solar Power

 800 watts of panels, 5.4 kWH of battery*, satellite internet, all I could need for work-from-woods


This was a constant tinkering project, but it always basically worked all summer.

Hackish Off-grid Weather Station (2021)

In 2020 I noted that you can build a small gadget-charging off-grid solar power system for about $200. In 2021 I deployed it to a spot in the woods of Vermont.

This is largely a tale of what kinda-worked and what I should do better next time.

Friday, October 7, 2022

Victron Energy VE.Direct hackish

I have been increasingly pleased by Solar energy components from Victron Energy. Most of their products have a "VE.Direct" port which is just 5V UART serial at 19200 8N1 (a few older battery module units are 3.3V). If you ask nicely and register at their site they will give you pretty thorough technical documentation of the protocol over that serial port. I've been using this python module for parsing VE.Direct serial port broadcast (status update just sends once a second, this may be all the data you need for many uses).

They have an official $30 VE.Direct USB serial adapter that plugs in to their equipment and Just Works. But I work with embedded stuff to know that those are some pretty cheap commodity parts potentially. So I set up with this USB to UART TTL (5v or 3.3V) module that's $10 for a 5 pack and this JST 2.0 PH cable, and for $3 and some soldering I have my hackish VE.Direct adapter cable. Worked the first time!



Wednesday, September 28, 2022

IRV Fails Again, Alaska 2022-08-16

Instant Runoff Voting, the form of Ranked Choice Voting most enacted in the US, known for decades to be flawed, has failed again.

The August 16, 2022 special election in Alaska elected Mary Peltola to US House, but more people wanted Nick Begich.

This isn't an obvious conclusion from the top line reported results, so let's dig and see how this happened.

The IRV rounds played out like this, with Begich in third and eliminated in the first round.

Round 1Round 2
Peltola, Mary S.7580391375
Palin, Sarah5893786195
Begich, Nick54009
exhausted330414626
overvote23693
active188749177570
But let's look at all the second choice votes, from Peltola and Palin also:

FirstSecond
73948Peltola, Mary S.41424Begich, Nick
8447Write-in
3635Palin, Sarah
56669Palin, Sarah32551Begich, Nick
3197Peltola, Mary S.
1214Write-in
51762Begich, Nick25699Palin, Sarah
14093Peltola, Mary S.
1391Write-in
3051Write-in1075Begich, Nick
997Peltola, Mary S.
429Palin, Sarah

Begich was the clear consensus second choice of Peltola voters and Palin voters, and he had a sizeable first-choice vote as well.

When you add it all up, the pairwise preferences look like this:
123
(1) Begich, Nick88212101500
(2) Peltola, Mary S.7951591438
(3) Palin, Sarah6369386283
Peltola had good first choice support, but much weaker second choice support, so ultimately more people wanted Begich over Peltola than the other way around.

With no additional complexity and no additional cost, we could have better Ranked Choice Voting that recognizes the democratic principle that if more people want A than B, A should win.

Monday, March 14, 2022

Time Zones, DST, Act Locally

Lots of debate about DST and time zones and should we change them.

Around where I am in Boston, with DST, sunrise varies by over two hours from 05:06 to 07:22, and sunset varies by over four hours from 4:11pm to 8:25pm. (DST is really "sunrise stabilization time".)

What I think I hear underneath is that people want their schedules aligned to the sun. The want more sun in their day. They want their waking aligned to the sun and the end of their day aligned with the sun.

Then they run up against needing a bunch of states going in on change together, or even an act of Congress. The sad fact of astronomy is that summer days are over 15 hours but winter days are only 9 hours and maybe with that scarcity of daylight we're just not going to make everyone happy.

But, we can act locally starting any time. Businesses can change their hours. School districts can change their hours. There's nothing sacred about school starting at a time named "7:35 am" or whatever. DST or not, that time could even shift a couple times during the year, maybe in steps of half an hour. If I was running a coffee shop I'd be tempted to declare "opens at sunrise" (or an hour before sunrise in some places).

Act locally, start now.

Monday, February 21, 2022

2020 San Francisco RCV Election Not Reproducible

The good news is that San Francisco publishes full ballot data from their elections [1]. It's a quarter-gigabyte zip file full of JSON and I can go digging into it and look for deeper patterns in how people rank candidates on their ballot. Is there a hidden story about who 2nd-choice candidates were and what people really want? Did IRV screw up and we should switch to Condorcet?

The bad news is that I can't reproduce their results. They publish the full data, but the program they run isn't open source.

Saturday, February 19, 2022

RCV Nearly Null Result

The Board of Elections of New York City released full vote data for the Ranked Choice Votes (RCV) for the 2021-06-22 primary election. I downloaded this data and processed it with my software to do some analysis. Out of 63 elections: 3 had different outcomes than pick-one (Yay! This way is better!) and none had different outcomes IRV vs Condorcet. I still maintain that IRV is inferior because sometimes it can fail and for no additional cost or complexity we can have something better, but that 'sometimes' is looking more rare in practice, though it did happen.