22 March 2015

Tesla Supercharger

The various standards bodies have determined two levels for the J1772 electric car power supply, which has resulted in no standard for charge rates above that.  Thus implicitly, Level 3 charging means anything above 19.2KW.   There have been three L3 standards to emerge.

These are all loosely speaking "Fast DC" chargers but that oversimplifies what's going on.  The car and charger need to collaborate cooling, current levels and more.  The J1772 connector was really only designed for 10KW.   So something else needed to be done.

The three conventions are TEPCO's CHAdeMO, the J1772 "Combo" connector (aka CCS), and Tesla. Functionally, they are all relatively similar, but they are significantly incompatible.

CCS responds to the weakness of the J1772 connector by adding an adjacent pair of high capacity conductors to the standard J1772 interface.  Much of the J1772 protocol can be retained, and a regular J1772 plug can be connected to a CCS capable car, and it will simply charge at a Level 2 rate.  It's a kludge, but it's compatible.  Several European standards agencies are pushing for its adoption, so while there are not presently many installations, there likely will be soon.

CHAdeMO has much better market penetration.  There are a bunch of chargers all over.  Most of these are on one of the commercial charger networks, although surprisingly many of them are free.  Nissan and several others are compatible, and others, including Tesla, sell an adapter.

The most interesting approach, I think, is Teslas.  They use the same wires as J1772, but they made sure the wiring in the connector and the car itself are much beefier.  Thus the exact same socket can serve both functions.  By being electrically compatible but mechanically incompatible, they can hijack the J1772 wiring for L3 charging. 

Most commercial charging sites have some billing system.  Blink and ChargePoint are two that are popular here in the northwest...both have L2 J1772 and L3 CHAdeMO stations.  But Tesla has gone a different way.  Included in the price of the 85, 85D and P85D is free "supercharging" for life, and you can buy this feature for $2.5K for the 60.   Unless you do a tremendous amount of long distance commuting, this is not too cost effective.  But the high price is helping Tesla afford to build out the network of superchargers.  As of this writing, Tesla has 403 stations around the world, almost half in the US.  Many major routes are supported, but there are still a great many gaps, and for the time being, they have not built many close to cities, figuring that home charging will serve most of that need.  (But that leaves gaps.  For example, if all you have is L1 charging at "home" (e.g. a hotel or billet) but you have more than 70 miles a day of errands to run)

Last summer, in the leadup to the announcement of the BMW i8 and i3, Elon Musk widely dropped the hint that he was negotiating with BMW for them to be compatible with the Tesla supercharger.  This would have been a terrific deal for both sides: BMW would get a widely installed base of fast chargers, and Tesla would have a partner for the very expensive and time consuming buildout of their network.  For the time being, Tesla is being very generous with their installations, basically funding it from the high prices they can charge early adopters.   But BMW made it clear that they would not participate in this and now that the i8 is available, it uses the CCS "Combo" connector. It's unclear whether this was because of pressure from EU politicos or what.

Tesla presently charges once for lifetime supercharger use, but there's no particular reason they need to.  All the existing cars will continue to get free charging, but eventually they'll go away.  If they want to bill, either by KW or by the month or something, it's easy to do.  The car can identify itself to the charger and send a bill to the appropriate customer.  This could easily be implemented over the "proximity" conductor, or even by some sort of RFID.  This is exactly what the existing services, including Blink and ChargePoint, do.  If Tesla is clever about it, they can sell a fast charging adapter that includes a supercharger license and allows you to plug your CCS or CHAdeMO vehicle into the supercharger.  I can even imagine supercharger stations offering single use rentals of these gizmos.

If one of the other plug formats ends up winning, Tesla has a simple solution.  They already have a CHAdeMO adapter, and they've said that once more than a handful of CCS stations are on line, they'll develop an adapter for those too.   The stations themselves can be gradually converted over as demand moves.  Most of the cost of these stations is in the real estate and preparation, including the wiring, which is the same for all.  The charger and connector is probably less than 10%, and I bet even most of that can be switched over easily.  Although if this happens, I suspect most Tesla stations will be sold to some other franchisor. 

14 March 2015

Monocausality

Much of the bad thinking in the world come from monocausality: thinking that every event just has a single cause.  Once in a while, this happens, but it's pretty rare.

Conservatives tell us that if we raise the minimum wage, unemployment will spike and the economy will decline--because if the price for employers goes up, demand will go down.  Yet, in literally thousands of practical experiments, not only has this never happened, but in quite a few of them, the economy and employment situations have actually improved significantly.  What must be happening is that some other factor--for example, perhaps, the extra disposable income of low wage workers that the hike provides--is stimulating the economy enough to overcome the downward pressure on low wage employment that the wage hike is causing.

Another popular example is the claim that the reparations after WWI caused WWII.  While this is certainly a large factor, there are others.  A big one that doesn't get much recognition is that large german businesses allied themselves with Hitler when they realized he intended to create a large mass of extremely cheap workers and violate the weapons limitations agreed to at Versailles.  Hitler's policies were great for them...for a little while.  There were lots of other factors too, of course.

Another example is that it is claimed that printing lots of "fiat currency" will surely cause hyperinflation.  It did in Weimar Germany, Zimbabwe, Argentina, etc.  But it didn't in the US during either the great depression or the recent "great recession."  It hasn't in Europe either.  Non economists and "classicals" insist there must be something else going on, such as the currency being un-backed, for example by a Gold Standard.  But this also has near perfect track record of failure.   Keynes explained this:  It's not the backing or the ultimate supply of currency, it's demand relative to supply.  If there's very high demand for currency but not for goods and services, the value of the money will stay high while accompanied with little inflation or even deflation.  Those who can, will hoard currency.  In the recent recession, this is exactly what happened.  Investors suddenly flipped from being hot on subprime and other high debt instruments, especially those based on real estate, to being terrified of them...including the ones they'd bet on heavily, and wanted to sell them and move into cash.

Another example is the so called Laffer Curve.  The concept predates Arthur Laffer by at least a century but he advised the Reagan administration when it became very popular.  Simply put, it's that taxes put a downward influence on the economy.  This is surely true, but the empirical data that we have tells us the almost exact opposite.  Reduced taxation almost always correlates with downturns and increased with upticks.  What's probably happening is that the spending that's done with the tax money is significantly more stimulative than the taxation is de-stimulative.  For most people and business, this seems to go right up to 70% taxation and higher...the 91% marginal tax rate they were paying didn't cause Howard Hughes or J Paul Getty or Henry Kaiser to pull out of business.  The Laffer curve may well be correct, but conservatives seem to only look at the part to the right of the peak...the part that would justify their tax cuts...but we're not dealing with that part.  To left of the peak says that taxes should be higher.

There are lots more examples.  The causes of these events are numerous and interact in complex ways.  In mathematics, we call these sort of equations "equilibrium" equations and they are generally not trivially solvable and tend to end up having several solutions or a solution which itself is a fairly complex equation.   Simplifying models, such as Hick's IS-LM and the Phillips and Laffer Curves in economics can be very useful--provided you actually look at these curves correctly and understand them and their limitations.  They're not a perfect answer by any means, but trying to solve these complex problems by ignoring important--perhaps dominant--factors is unhelpfu.

added 26 Apr 2015
Greg Mankiw argues here , astonishingly, that there is only one pertinent point of the proposed trans pacific trade agreement and that is that freer trade is is better.  What if, for example, the freer trade causes millions of job losses (through, for example, outsourcing) and the new trade only generates a fraction as many new opportunities?  What if the freer trade grants patent violators the right to sell cheaper products competing directly against those that funded the R&D with impunity?  Of all people, Mankiw should understand that nothing is ever so simple.

12 March 2015

Gehry, Gaudi, and Logic

Two of the supposed greats in modern architecture live by the dictum:

"There are no straight lines or sharp corners in nature.  Therefore, buildings should not have straight lines or sharp corners."  -Antoni Gaudi

Everything about this statement is wrong.   Lots of stuff in nature is straight and/or sharp.  e.g.:


More importantly Gaudi's syllogism is missing its major premise, which I believe is "Architecture must mimic forms found in nature."  Why?  That's plainly not a requirement for many of the buildings that most of us think are beautiful.  The Eiffel Tower is one of the most beautiful structures in the world.  It has lots of curves, but they are smooth curves, which are fairly rare in nature, and lots of the straight lines and sharp corners that Gaudi so detests. 

Frank Gehry seems to have been cut from the same mold--his theory is "deconstructivism", which is about breaking up the straight lines and conventional components of a building to make way for new arrangements and ideas.  A few deconstructivist buildings are not complete disasters: the Sydney Opera House and the Seattle Public Library are among them.  They are eye catching and fairly functional, even if they are not the most attractive. But Gehry has taken this to an extreme that I find appalling.  I have nothing against experimentation, even when it is jarring.  Once in a while, a good new thing comes of it.  But I don't wish to be jarred over and over again by the same failed experiment.   Gehry's buildings are ugly and stupid looking, every one.  I wish people would stop giving him money.

Gaudi designed some nice buildings in the early part of his career, but he seems to have lost his mind about 1900...and the illogic above explains it.

16 February 2015

Was Y2K Really a Problem?

The simple answer is yes.  I personally fixed dozens of instances of it.  Most of them were trivial and would have been at worst an annoyance, but they were real, and a few would have been of real consequence.  Particularly serious was that the Microsoft BASIC string parser defaulted to years beginning with 19xx and was used in lots of user and database interactions, including pretty much anything related to OLE.  I fixed a bunch of these issues during my brief time in the BASIC team in the mid '90s, and lots of other people did too.  MS-DOS prior to 5.0 had the bug.  The only 5 inch floppy drive I still have is on a machine running MS-DOS 4.0, and I have to lie to it about the date in order to read such a floppy. 

The scariest bug I know about is that apparently a bunch of spy satellites were not working properly for several days immediately following 31 Dec 1999.  DoD kept quiet about this for several months, until they were sure they'd gotten it fixed.

I was pretty worried about infrastructure problems: computer controlled water supply, banking, traffic controls, etc.  I set aside a reserve of cash, charcoal and camp stove fuel, and about 20 gallons of drinking water, just in case.  Fortunately, none of this was necessary...but Jan 1 turned out to be a fairly nice day here and I had a nice barbeque...  Lots of people had fixed lots of bugs.  For example, I heard about a hydroelectric project that had experimented with their fix in June, lying to the dam controls about the date and watching what happened as the date clicked over.

Not sure if my (then) new car with a lot of computer controls would work, I used my old car to drive to my friend's place for a new years party.  It had no computers aboard at all.  But on the trip home, I crossed the 520 bridge at about 1AM.  The bridge was open, and was for a long time.  So I got out and walked to the drawspan.  The workman there said it was scheduled maintenance, nothing to worry about.  Yeah, right.  Middle of the night on New Years Day.   I am confident that this was in fact a Y2K bug but you won't get anyone in DoT to admit it.

No really bad things happened on Y2K day, but that was because there'd been a LOT of worrying.

Here's a list of problems that one group studying this found.  Unfortunately, the "official" page they reference has gone away.  One estimate was that $100B was spent fixing instances of it.  I suspect this is high...I worked on Y2K problems off and on for several years...If you imagine that I spent the entire time working on Y2K, you'd get an accounting of several hundred $K, but that misstates it.  Over several years, I spent much less than a month cumulative time.  But tens of thousands of programmers did something similar.

Take the example of the hydroelectric dam.  The programmer involved needs to do whatever software changes are deemed necessary, and test them to the limit of their ability without actually affecting the water system.  Lets say 5 man days.  Then they need to staff up the whole facility so if something bad happens, they can manually override, almost no matter what it is. Once everybody is ready, they install the new software, lie to it about the date, and watch what happens as the date ticks over.  Probably a dozen people for a day, or perhaps more if something goes wrong the first time.  we're up to almost 20 man days.  Repeat this tens of thousands of times for thousands of different types of installations, all around the world.

Yes, Y2K was a problem.  One which was dealt with almost adequately. 

13 February 2015

Electric Car Chargers

Electric cars have finally crossed the line from being futuristic possibilities, through hybrids that exploit some of the benefits of electric power but still burn petroleum, to fully electric vehicles.  Tesla and Nissan are the big trendsetters, but now pretty much all the carmakers are on board.

Charging an electric car presents some special problems, mainly stemming from the fact that moving the mass of a car (and passengers) requires quite a bit of energy. Gasoline (and its relatives) have tremendously high energy density.  The breakthrough that's made electric cars finally feasible is the lithium ion battery, which is both smaller and lighter than it's predecessors.  But it still takes much longer to charge a battery than it does to fill a tank with gasoline.

Broadly speaking, there are three types of charger that have evolved, which go by the name "Level 1", "Level 2" and "Level 3".   The first two are not really chargers, but EVSEs "Electric Vehicle Service Equipment".  They just pass the power unchanged, with the addition of some safety equipment.  The charger is on the car.  A level 1 EVSE uses one phase, line voltage power.   In the US, this means 120V, 15 or 12A.   The SAE definition is that a level 1 EVSE is single phase and not capable of charging at faster than 1920W.  A level 2 EVSE is 2 phase, 208 to 240V and may go at up to 80 amps, but very few of them actually do that.  This is a theoretical peak of 19200W, but very few go higher than 7800.   "Level 3" is not defined, but in practice, it's anything that goes higher than 19200W.

The standard EVSE system is SAE J1772, which defines a 5 conductor connector, which has two power conductors, a ground, a "pilot" and a "proximity" conductor.  The latter are used for safety signaling.  The "pilot" carries a 12V 1KHz square wave which is used to detect continuity, and the "proximity" signals to the car that it's plugged in, and blocks the vehicle from being driven until it's disconnected.   Power is just passed through on the three power and ground conductors, but a relay opens the circuit unless pilot and proximity are deemed valid.  The idea is to make it impossible to charge a car with a kludged up power cord, just the sort of thing that might start fires, and to reinforce it, they tell you not to use extension cords when you buy the car. Virtually all electric and plug-in hybrid cars support J1772, although a few, such as Tesla S, require an adapter.  (Tesla exploits their incompatibility to use the same conductors for their "supercharger" level 3 scheme.)

The electric code also requires that lines being heavily loaded for more than half an hour only carry 80% of their design capacity.  This is also to prevent fire--heat builds up gradually, and your charger is likely running while you're sleeping.  This is the reason that a charger wired for 15 amps is only allowed to draw 12, 50 amps only allowed 40, and so forth. 

Level 3 chargers typically use special power arrangements to draw more than 80 amps.  Generally they are called DC chargers but that oversimplifies what they're doing.  They require smart electronics and high power connectors--generally beyond the capacity of home chargers The three main protocols are the still evolving J1772 level 3, the CHAdeMO, and the Tesla Supercharger.   The first two require a very special connector, while the Tesla uses the same connector as level 1 and 2.  (this is the main reason Tesla went its own way rather than allowing J1772 to plug in directly).  BMW and Nissan tried to negotiate a license to use the system during summer 2014, but BMW recently announced that it's building its own network of level 3 chargers using the J1772 "combo" connector, which is a kludge involving a J1772 and a separate, higher capacity connector in the same plug.

10 January 2015

Inequality and Islamic Terrorism

This week's monstrous acts in France have left a lot of people wondering if there's something wrong with Islam that leads to Islamic terrorism.  I think this is a naive misunderstanding.  The acts stem from poverty and inequality in the Islamic world, both in the middle east and in Europe.

In the 8th through 12th centuries, the Islamic countries were the most advanced in the world.  A lot of this was the result of enlightened leadership, in the parts of the Abbasid and Umayyad dynasties and in no small part the wisdom and inspiration of prophet Muhammad himself.  These leaders were at once aggressively expansionist, and exceptionally tolerant of the groups that they incorporated; Jews and Christians of several sects were not just tolerated, but given extraordinary intellectual and commercial freedom.  Meanwhile China had entered an isolationist period, while Western Europe had effectively abandoned civilization in favor of religious extremism.

The Islamic enlightenment ended the same way the Greek/Roman one did: religious zealotry undermined the multicultural unity, opening the door for ruthless warlords to vandalize and steal the fruits of its intellectual advances, while reversing many of them and making it nearly impossible for new ideas to flourish.   Simultaneously, the Mongol invasions from the east and growing unification in the west in the form of Charlemagne's empire and the Crusades, further reduced range and influence of the once-advanced Islamic culture.

The Renaissance started in Islam's close neighbor and trading partner Italy, and was in no small part inspired by and benefited from the Islamic enlightenment, but left the Islamic world far behind.  When the period we call the Enlightenment and the Industrial Revolution came along, the Islamic countries were too far behind, and the gross inequities of what remained of their culture prevented the benefits from reaching them, in most cases opening them up to colonization.   The Ottoman Empire, for 600 years the great power in the region, collapsed in a morass of corruption, punctuated in the aftermath of World War I with the Sykes-Picot treaty drawing political boundaries that had no reference to national identities of the time, installing royalty which had no connection at all to the states that they were governing apart from a thin, albeit plausible family connection with the prophet Muhammad and assistance to the allies in World War I.  Except for in Arabia, the rich and powerful had no connection at all with the people they were governing.  Except in Jordan, these Hashemite kings were all deposed within 30 years of their installation and replaced with people who were even more vicious and money grabbing.

The bottom line is that the Islamic world has been almost completely left behind by the intellectual and technological developments of the last 300 years, and the resulting societies are desperately poor and badly educated.  The former colonizers are sympathetic, but at the same time they are still trying to extract what they can...so many of them have allowed large amounts of immigration from these impoverished places.  But they're post-enlightenment countries, so they don't feel they can impose their religions and ideas onto the new immigrants.  So the immigrants tend to develop enclaves where they are slightly better off than in the old country, but are still desperately poor and ignorant, still very much living in the pre-enlightenment world.

So they lash out.  The worst violence is committed not by the desperately poor, but by people who have an affiliation with them (through religion in this case) and are acting in sympathy with them.  The truly desperate don't have the resources to do even that.  This was how 19 middle class Saudi guys, with sponsorship from one of the richest people in the world, committed one of the most horrific acts of our time.   It's how a handful of reasonably comfortable Algerian/French guys (it's still not quite clear how many at this point) committed a horrific act in the name of their prophet which was in direct violation of his teaching.  And so on. 

The driving force behind Islamic terrorism, and most other kinds too, is inequality.  Certain Islamic peoples feel, with some justification, that they are trapped on the bottom rung of the ladder, and can't get up.  Immigration didn't work.  Oil wealth didn't work.  These things just heightened--and highlighted--the inequality.

The solution is to reduce inequality.   That's not the real target--the real target is the terrible desperation of the impoverished--but it's the best handle we have.  We need to give these peoples (and the Muslims are not the only ones) a hand up, out of poverty.  Meaningful universal education is the most effective.  So are programs which help people to live their lives more easily, such as small business loans, improved water supplies, more efficient cooking, secure places to live, universal medical care.  All of these things provide what economists call liquidity.  They make it easier to live, and to better yourself, even if you are desperately poor.

We need for it to be easier to live in poverty.   People who start successful businesses--be they a small farm or an industrial giant--are not worried about where their next meal is coming from.  The way to reduce the problems of inequality is to give people a comfortable floor which they can't fall below, no matter how bad things get, and to give them a hand up to the next level: Education and things like microlending.

07 January 2015

Liquidity

Liquidity, in economics, is measure of people's willingness to spend for something.  If the thing seems expensive for them, they are unwilling to buy.  In barter economies, when there's a substantial price differential for something, there's inherently low liquidity.  For example if one person has a milk cow to trade and would like some dishes to eat from, some intermediate deal must be cooked up.  A milk cow can't be divided, so the only solution is to buy enough dishes to be a fair trade for the cow, and then try to find somebody else who wants your extra dishes.   Granular currency increases liquidity a great deal.  You can sell the cow for $500 and buy $100 worth of dishes.

There are other things that increase liquidity.  Having good roads makes the things transported by road cheaper.  Having policing, to keep you safe from bandits and fraudsters, does too.

Sometimes, something happens that changes the price of things.  The Arab oil embargo of the 1970s was such an event.  Saudi Arabia and a few others were angry at the unqualified US support for Israel during the Yom Kippur War of 1973, and punished the US by reducing our oil supply.  This caused the price of fuel to skyrocket and a series of recessions and inflation.

A recession is when there a broad reduction in liquidity for a lot of things.  Inflation is one way this can happen, but it's more often caused by some event that damages people's confidence. Keynes called this a change in "Liquidity Preference", meaning people prefer to save money rather than spend it on things.

The way out of recessions is to do what is necessary to create a broad based increase in liquidity.  When the problem is that the banks are scared--for example of unsound debts owed them--the bankers preference is to not lend.  This changes the liquidity of everything downward, so anything that presses liquidity upwards will help us out of the situation.   Since the bankers reticence results in making businesses afraid to a risk, the only remaining solution is for government to do it.  Government can do lots of things to increase liquidity.  Increasing the amount of money in circulation has an effect, but simply giving the banks more money to not lend is not especially helpful.  Buying up unsound loans would be much better: it reduces the thing the banks are scared of while putting money in bankers and homeowners hands.  Just doing stuff that gives people a paycheck is also very useful. Having money significantly increases their willingness to spend.  And if done wisely, so does things like build roads and educate people, which increases liquidity greatly downstream.