Tuesday, November 20, 2012

Sunday in review (the Greenstage Gathering)

We had a great turnout on Sunday, with people coming and going all day long.  Plenty of EVs onsite with people just dropping in to show off their cars and others coming to see what's happening and what's possible for them.  This is exactly what we like to see!

Greenstage Gathering 2012
The underlying community focus and vision from Greenstage (and the associated Open Source technology projects, Tumanako and SolarNetwork) is explained within the 2012 flyer, please download this and share it around or have a look at the image below.

Greenstage Community Focus
Mid afternoon we demonstrated the SolarNetwork enabled charging pedestal in action, we showed how this facilitates the sharing of existing charging infrastructure amongst EV owners.  People registered with the SolarNetwork can enable other peoples charging pedestals anywhere around the country (assuming the owners of the pedestal have granted permission for this).  They do this using the Android based Tumanako Dashboard which uses wireless communications to activate the charging pedestal (as well as activating charging pedestals, this dashboard also monitors your EV performance while driving). 

Tumanako Dashboard
This is a very low cost way of creating a charging network that grows as demand grows (every EV owner already installs some form of charging infrastructure at home, so even if only 50% of EV owners join the network, this will easily create a nationwide distributed EV charging infrastructure).

Community Charging
Not to be outdone, Chris Olsen announced the Energy Share co-op to great excitement.  Already it's obvious that people have been hanging out for this and that the co-op is going to be a game changer with respect to personal energy independence.  You can download more information on EnergyShare from here and if you are ready to join and get involved, please fill in the online form.


So all in all it was a great day.  Lots of learning, lots of fun and lots of opportunity for everyone.  I know I haven't covered everything, but please feel free to share your thoughts and experiences in the comments section below, the more we share the more everyone benefits.

Finally, these gatherings don't happen on their own, its the community that brings it all together.  So a big thanks to Grey Lynn Dogs, Switch EV, Electrex, Stewart Design, Diamond Age Solutions, Andrew Simms Mitsubishi, Andy Harper Tyres, APEV, ECONZ, Athol, Warren, Jeremy, Steve and Dee, Tom and Tabitha, my wife Kirstin, Dylan Aimee and Sophie, plus all the Greenstage crew and their families for making this happen, it wouldn't happen without you.

Exciting times ahead, the technology is ready, the community is growing and we are all eager for change.
Lets make it happen!


Tuesday, October 9, 2012

Energy Datapalooza!


My name is John Gorman and I was one of the folks initially involved in starting the SolarNetwork platform, and am a director of Greenstage Power Ltd. SolarNetwork is a software platform for the the acquisition  storage, visualization and analysis of energy data from distributed and heterogeneous sources. In fact, it will do more than that now, thanks to Greenstage Power's efforts, but this is my first Greenstage Blog entry,  so hello!

Back in May 2012, I was invited to attend an Energy Data Jam at Stanford University, to help brainstorm how the use of open government data in the U.S. could serve as a catalyst to innovation in efficient energy use and conservation. Split into groups, we dreamed up and presented to the full group (about 40 people) a dozen or so "apps" that used government datasets.  At that meeting, U.S. CTO Todd Park told us it wasn't just about brainstorming, it was about really coding these apps, in 90 days.

Following up from the Energy Data Jam,  I was invited to represent SolarNetwork at the Energy Datapalooza in Washington DC on Oct 1, 2012. This was the conference organized by the OSTP (Office of Science and Technology Policy) an arm of the White House whose mission is to drive innovation and advise the president on technology changes and opportunities. The Energy Datapalooza was focused on celebrating the release of a number of open APIs allowing access to government data sets, and to highlight the entrepreneurs who were already starting to leverage those APIs for new products and services. From census data, to auto efficiency standards, to near real-time electricity usage, the APIs exposed a huge amount of valuable data and developers were busy doing mashups and apps that used it. A lot of credit should go to two guys who were really energetic in making this a reality: CTO Todd Park and EDI (Energy Data Initiative) Director Ian Kalin. Their passion for opening up data as a  catalyst for innovation and their bold, aggressive and open approach to welcoming experimentation is really appreciated. I think that once the GreenButtonConnectMyData API is opened up, (to be released soon) we're going to see some very interesting applications appear. One very interesting speaker at the Energy Datapalooza was Dr. Steven Chu, Secretary of Energy. A Nobel Prize winner in Physics, Dr. Chu spoke about the role of data streams and core technology as a fuel for innovation, and mentioned the impending falling prices of both PV and deep-cycle storage, with some very interesting applications coming up. We are of course eager to hear more, so we'll stay tuned!


Wednesday, October 3, 2012

Multiple EV Events!

Over the next couple of months there is a mad frenzy of EV and Energy related events in NZ!  Make sure you get a slice of the action:

    * Auckland EV Expo (13th Oct, Auckland)
    * Greenstage 2012 Gathering (18th Nov, Auckland)
    * Plug In Electric Vehicle Symposium (22nd Nov, Auckland)
    * Sustainable City Showcase (22nd - 24th Nov, Auckland)
    * Plug In Electric Vehicle Symposium (23rd Nov, Wellington)
    * SEANZ Smart Energy Expo (23rd - 24th Nov, Wellington)

Enjoy :)

Tuesday, October 2, 2012

Greenstage Gathering 2012

Yes, it's time for another Greenstage gathering!

It's a one day event being held from 10am till 3pm, on Sunday 18th November at 19 Newton Rd in Auckland (head down Newton Rd from Khyber Pass Rd, it's just past the North Western motorway over-bridge on the left, just before you get to Ponsonby Rd).  Parking is available in the nearby back streets and pay and display parking is available on the corner of Karangahape Rd and Gundy St.

Grouse EVs

As well as having a bit of fun and showing off a few grouse EVs, the purpose of the gathering is to launch new clarity around desirable positive actions we can collectively and individually take to make life more enjoyable, less costly and overall better for everyone and the environment.

The Future is Now:

1) it's desirable
2) it's community focused
3) it's knowledge driven (and fuelled by sharing)
4) it's high tech and high performance!
5) and it's a whole lot of FUN!

Here's some of what will be happening on the day:
  • Join the launch of a distributed energy Co-op (sign up for cheaper renewable power)
  • Meet Vik and the RepRap fabricating physical Open Source components (print your own objects!)
  • Talk to the experts about photovoltaic systems with storage and SolarNetwork monitoring and control
  • See and learn about the Greenstage GS750V (now with high performance race battery)
  • Talk with the owner of the Switch EV Ute (NZ designed and built electric induction motor, controller and instrumentation!)
  • Learn about the Tumanako Dashboard (controlling SolarNetwork EV charge points from an Android phone)
  • See the ScottDrive powered Honda Prelude (exceptional NZ designed and built motor controller and powerstage!)
  • See the Switch EV Toyota Celica (a very tidy conversion, powered by solar generated electricity - no fuel bills)
  • Marvel at the Tesla Roadster (Yes! The world's leading high performance electric road car)
  • Consider the Nissan Leaf  (a very practical mid sized EV)
  • Investigate the Mitsubishi i-MiEV (a nice 4 seat EV)
  • Drink Coffee (it's Sunday morning)
  • Eat solar hotdogs (weather permitting)
  • Listen to live Music!!! (Grey Lynn dogs and more)

In addition to the look point and talk discussions and conversations in the carpark, there will be a number of scheduled presentations indoors:
  • 11:30 am - The RepRap, Vik builds a casing for the KiwiAC bluetooth module (which is used to talk wirelessly with the Tumanako Dashboard)
  • 12:30 pm - Co-op Launch
  • 1:30 pm - Tumanako Dashboard (Android powered EV dashboard and charge controller)

Please email if you plan on coming along (we need a rough idea of numbers), also, if you have any ideas or suggestions to make the event even better.

Let us know!

Sunday, September 9, 2012

Switch EV is go! (part 3)

The Greenstage Team has been helping Switch EV with final tuning and testing on their Electric Holden Ute.  We decided to capture some of the action and we have put together a little montage, with a hint to what's coming next as well.



If you're after more information, check out earlier Switch EV blog posts part 1 and part 2.

Enjoy!

Monday, July 30, 2012

d3 gauge

Recently I implemented a "gauge" style chart for displaying live power output of a PV installation. d3 is a fantastic JavaScript visualization framework, and is great for animating live data feeds.

See a "live" example at bl.ocks.org/3202712.

This component and many others are being rolled out to enhance a number of distributed generation and monitoring solutions throughout New Zealand and the Pacific.

Greenstage Commercial Solutions

At Greenstage we continue to innovate and enhance the Open Source capabilities of the SolarNetwork while also delivering high quality commercial solutions to the world.

If you need commercial solutions or SolarNetwork support, please don't hesitate to contact us.  If you are an Open Source developer interested in distributed energy solutions, please join us on SourceForge!

Friday, July 6, 2012

KiwiAC driving Switch EV Induction motor … Part 2: Motor Control

Following on from our bench testing earlier in June, Switch EV have installed their motor into their test vehicle and undergone some driveway testing. Sorry no video or photos this time, just output logs turned into pretty graphs (go LibreOffice!)
At the most basic level we are controlling motor current. Our serial output is not fast enough to report every current measurement (two performed every 12kHz), but we can see if the current is behaving within the region we expect. First we can compare the requested current output magnitude, vs raw, directly sampled phase currents. The vertical axis is a signed internal scale, where 32700 is approximately 1000 Amps.
Here you can see that every reported current is within the magnitude requested. Because of stroboscopic effects, (sampling windows and AC sinusoidal waveforms etc) it is expected that we would see values less than requested current.

Delving into the Motor Model at the heart of Field Oriented Control, we can check that the two current vectors, (magnetic flux producing Id and torque producing Iq) are controlling:  

Here, the error between requested Id and Iq are plotted as DId and Diq. The error is around 1%, which equates to a output Torque error of about 0.01% (output Torque is proportional to motor flux times torque current).
At the moment, we are controlling Flux and Torque to equal throttle position (thick grey line). Flux (the green line) should always be positive however, (as two negative numbers would multiply to a positive torque). We have set the throttle zero position to produce regen torque, to approximate engine braking, but only while moving. You can see at 175 seconds when the vehicle was stopped that the torque and flux trending to zero, no longer following the throttle position. A small acceleration occurs from 184-193 seconds, and a much greater one at 205 seconds.

This final graph shows power in the controllers DC bus, versus the calculated mechanical motor power (estimated torque times motor speed) and an estimation of the inverter and motor AC conduction losses. At the time the car was traversing undulating terrain, so change in speed does not correspond that well to delivered power.
Finally, a big thanks to Lachlan for putting together the data extraction scripts that made these graphs possible and to Switch EV for building such a great EV!
Stay tuned, driving videos coming soon...

Sunday, June 10, 2012

KiwiAC driving Switch EV Induction motor

We have recently been helping to commission a new induction motor made be Switch EV (a NZ manufacturer).  We are pretty happy with the results so far and hope to be showing vehicle based dyno (dynamometer) results in the near future. For now though, here are some videos and images to whet your appetite.

The motor shown is being driven via a Gen 1 SKAI with a Greenstage KiwiAC control board and a 330V Lithium Iron Phosphate battery pack providing the energy.




As you can see the brake rotor on the dyno gets quite hot (hence the smoke!), it is absorbing the energy from the motor when we load it up to measure the torque.


Zero RPM torque tests showed we were achieving in excess of 600 Nm, which is "heaps" of torque and matching nicely with design goals.  Unfortunately the dyno didn't quite measure up and soon after we snapped the shear pin on the shaft.


Never mind, the dyno did its job and the Switch EV motor is ready for the next stage!  Stay tuned for more information...

Wednesday, April 11, 2012

Dyno Progress

For a while now we had the plan to build a dynamometer out of two Siemens made Ford Ranger AC motors. While no calibrated results could be made (through measuring the torque directly) the contraption would be very useful for comparative analysis of motor control regimes and settings.

The first steps (October last year) involved working out how to couple the two together. The motor shaft is hollow to allow a further shaft to run directly through the motor. The output end of the shaft has a helical gear directly machined into it, for a now unavailable planetary gear set. Others have suggested directly welding to the shaft, some have success using taper-lock devices directly on the gear.

In our situation, because of its non-critical nature (a failure is not likely to put anyone in a compromised situation), we decided to go with another untested route – developing a bush that works somewhat like an inside out double ended collet holder. Made of brass it may not be as strong as the rest of the equipment, but simple to make on the lathe, and not likely to damage the motors for future applications.

As previously mentioned Stephen designed and organised an adaptor plate for bolting the motors together. The motors are now coupled, and spinning just about as freely as individually so must be fairly close to aligned.

Due to the weight of the combined motors (over 130kg) we wanted to be able to wheel them around. We started to think about building a trolley but instead opted for far cheaper and easier option - a 200kg rated handcart.
Next came the job of hooking up the motor encoder and temperature sensors. Reportedly there isn't a plug available for the encoder connector on the motor, so a new arrangement is required. 
We made a stainless piece that reduces the hole to suit the M23 servo-motor style encoder connector used on standard Siemens motors.

 I don't think that the plastic connectors that the motors are delivered with were originally part of the plan. The tapped hole for the closest cover bolt breaks through into the hole for the connector. Worse still, an o-ring seal sits beyond where the bolt hole breaks through, which means the o-ring is damaged every time the fitting is removed or put back in. Not a clever design, but we will run with it for the mean time.

Tuesday, April 10, 2012

SolarNode web configuration

Matt has been improving the usability of the SolarNode and SolarNetwork software and as a result, SolarNodes now support web based configuration!  Check it out:



Friday, March 16, 2012

A little bit of fabrication

Over the last couple of months there have been a few changes to accommodate the new race battery pack in the GS750V and to brace the motor appropriately as we head towards full torque output.  Below you can see the new brackets that prevent the motor's aluminium body from carrying all the torque and they also provide a new mounting point for the the inverter just above the motor.

Multi purpose bracing brackets

In addition to that, we have put together our dual motor dyno ready for fine tuning of the motor control algorithms under development in the Tumanako project.

Dyno for motor tuning

Big thanks to Stephen for driving the details and making this happen and also to the Spaceships crew and PureAdvantage for the support along the way.  Thanks also to the fine Engineering work and support provided by Abel Metal Products, Primero Profiles, Tordeich Engineering and Ladarac.

We are now ready for the batteries!

Monday, February 13, 2012

Introductions, and expansion on minimalist Debian 6 SolarNode setup

This is my first post on the Greenstage blog, so a brief introduction is in order. I've been developing the SolarNetwork platform since meeting John Gorman in mid-2008. I was already interested in renewable energy, and a proponent of open source software, so SolarNetwork was a natural fit. John introduced me to Philip Court later that year, and eventually we joined forces formally as Greenstage Power, Ltd. with myself as CTO. SolarNetwork has already evolved considerably in many exciting ways over these past few years, and I look forward to seeing where the future takes it.

As for the original impetus for this post, I've expanded on Philip's previous post on setting up Debian 6 for a SolarNode on an eBox 3300 mini computer. Some of the improvements in this guide are:
  • Stock i386 Debian kernel used
  • OpenNTPD for time synchronization (instead of usual ntpd)
  • Monit for process monitoring
  • busybox-syslogd in-memory cyclic syslog
  • SolarNode platform uses a ramdisk for logging, temporary files, and the embedded database
These last two points greatly reduce the number of writes the system performs on disk, with the idea of reducing writes to the flash-based media used as the system's main filesystem.

The guide is available on the SolarNetwork Wiki. The entire system described by that guide is also available as a downloadable disk image that you can easily copy to a SD card or USB stick.

Sunday, January 15, 2012

Minimal Debian install on a Vortex86

For our SolarNode installations (part of the SolarNetwork) we use a minicomputer with a Vortex86.  This is a system on chip (SoC) x86 compatible CPU which has all the bells and whistles on one piece of silicon.

JrMX with Vortex86 inside
We had until recently been installing a standard Ubuntu distribution which was working very nicely.  Problem was this distribution was full of many unneeded software modules.

Over the break I finally got around to sorting out a bare bones installation that only contains what we need (no GUI required!).  Not only does this increase performance and reduce disk space requirements, but it enhances security by keeping deployed software to a minimum (less software equals less security updates).

Here is the process we have used to build a bare bones SD boot image with the latest native WiFi support (no ndiswrapper here) on a Norhtec JrMX.  Read on... 

First up: Find yourself an Ubuntu or Debian based PC to prepare your bootable SD card.  Make sure you have unetbootin or similar installed (usefull for creating a bootable SD or USB stick from an iso).

# sudo apt-get install unetbootin

Use unetbootin to create a bootable SD card (I used a 4GB) using this Debian squeeze mini iso.

Now boot the JrMX (with network cable connected) from the freshly made bootable SD card and complete the installation process (could take a while with lots of downloading).

Once finished, there will likely be some additional packages you will want to install e.g. ssh-server, ntp, wicd, wicd-curses etc.

# apt-get install ssh-server
# apt-get install ntp
# apt-get install wicd
# apt-get install wicd-curses

FYI: We use wicd-curses to configure WiFi from command line (instead of the NetworkManager GUI or similar).

Now, get Ready for the Kernel upgrade and WiFi driver install...

Squirt the stuff (Kernel and WiFi Driver) across to the JrMX from your desktop (connected using network cable at this point in time).
e.g.

$ scp linux-image-2.6.34.10-vortex86-sg_1.2_i386.zip  philipc@10.1.1.11:
$ scp RTL8188_8192SU_usb_linux_v2.6.6.0.20110401.zip philipc@10.1.1.11:


Now, on the JrMX box (ssh in or login using physical keyboard and monitor), install the new kernel and the kernel headers:

# unzip linux-image-2.6.34.10-vortex86-sg_1.2_i386.zip
# dpkg -i linux-image-2.6.34.10-vortex86-sg_1.2_i386.deb
# dpkg -i linux-headers-2.6.34.10-vortex86-sg_1.2_i386.deb


Now Install RTL8188SU Linux driver (for WiFi), but first we need to sort out the missing build link to the header source files:

# rmdir -–ignore-fail-on-non-empty /lib/modules/2.6.34.10-vortex86-sg/build
# ln -sf /usr/src/linux-headers-2.6.34.10-vortex86-sg /lib/modules/2.6.34.10-vortex86-sg/build

Download and unzip the latest RTL8188SU driver (which is actually the same as RTL8192SU driver).  The one I specifically used is here, or you can get it from the realtek site. 

#unzip RTL8188_8192SU_usb_linux_v2.6.6.0.20110401.zip

Note: This works great, but readme instructions from the older rtl8188_8192.zip (this one is from the robosavvy site) are much more informative.  Follow the readme instructions which are summarised below ('make' and 'make install' basically)...

Note: You will also need the following to build the drivers (if you want, remove with apt-get remove at the end):

# apt-get install build-essential

Extract, build and install WiFi drvier from unzipped source dir
:

# cd rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20110401/driver
# tar -xzf rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20110401.tar.gz
# cd rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20110401
# make

  ...
  Building modules, stage 2.

  MODPOST 1 modules
  CC      /home/solar/rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20110401/driver/rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20110401/8712u.mod.o
  LD [M]  /home/solar/rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20110401/driver/rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20110401/8712u.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.34.10-vortex86-sg'


# make install
install -p -m 644 8712u.ko  /lib/modules/2.6.34.10-vortex86-sg/kernel/drivers/net/wireless/
/sbin/depmod -a 2.6.34.10-vortex86-sg


# shutdown -r now


NOW LETS GET THAT WiFi GOING!


Check a few things:

# ifconfig wlan0 up
# iwlist wlan0 scan
# iwconfig


Configure the WiFi connection (use wicd-curses, it's like NetworkManager, but a command line tool! Just follow your nose...)

#wicd-curses

Yea Ha!!!! It all works :)

You may want to turn off a few other things as well, but this is a great starting point for a minimal install.

Enjoy!

Note: Please make sure you see Matt's update on this post as well.