eChook Nano v1.2: New Boards, and, Building your board!

We have a new batch of PCBs, issue fixed. The Greenpower teams who ordered the last one have already had the new boards, and we can now send out new kits. To help with the build process I have just posted a video showing how to put together your eChook Nano v1.2 board.

Since the first prototype we’ve answered lots of questions through email and messages, and always wanted these to be more public so they could help others with the same or similar questions – something like a forum! Since the GP forum is unfortunately closing, it seems even more relevant to have somewhere to discuss all thing eChook and help each other out with anything from building the boards to analysing that spreadsheet full of data. So for further discussions, we’ve set up It’s a little empty right now but I’m sure we can start filling it up.

We will also be writing articles for Greenpowers new ‘How To’ section, both eChook specific, and more general ways of using an arduino with your car, so hopefully the eChook forum won’t detract anything from the greenpower site.



Gear Indicator – MGZR Rally Car – Version 2

Wow it’s been a long time since I posted here apologies, I’ve just been doing a lot of engineering…..which I will now attempt to write up from scraps of paper and numerous logbooks.

After a successful set up running for a few journeys, counting gears and displaying them correctly, Adam has been having some issues with the gear indicator that I made for him. A quick diagnosis showed that some of the power supply debouncing caps had been rattled loose (rally cars are a harsh environment to engineer for!) which was causing some spurious switch presses to be seen by the msp430. This problem quickly manifested itself by counting gears erroneously.

While we were fixing the issue I decided it would be best to ‘re-invent’ the gear indicator system now that we understood Adams requirements a little better. Firstly we decided to go for a much larger 7 segment display, choosing a 25.4mm model that required a 5V forward voltage (2 series LEDs per segment). This is both bigger and brighter which will help Adam see the display in future events. This added some complication as the msp430 on the board runs a 3V3. To get around this I dug around my electronics collection and found a uln2004a (transistor array from TI), this allowed me to switch the 7 segment easily using the msp430 GPIO. As can be seen in the pictures 2 LDOs are now required but the main design hasn’t changed significantly.


The extra ICs (plus the fact we wanted a more robust solution!) has meant that for V2 I have switched to using breadboard. I should have done this in the first place really but hadn’t appreciated how much space I had to play with behind the dash. Note to self: fully understand requirements before inventing a solution. Hopefully this will mean the indicator will be less susceptible to vibration.

I also found some bugs in the code where I was setting up ports for the LED. These have now been fixed and the latest code has been uploaded below. Hopefully this final design will suit Adam’s needs, I will keep you up to date with his progress.


STM32 Programming

Merry Christmas all. Over the Christmas break I have found some time to put together some of the telemtry and control system I have been designing for the driven electric car. I have written this post primarily for my own benefit as it has taken me a couple of hours to get to a stage of programming my board which would have been avoided had it not been for a simple misunderstanding.

The main ‘brain’ of the board is an STM32F103RB, fantastic bits of kit and my first push away from the AVR family I had become so comfortable with at university. At the time of writing I have designed and soldered up a test PCB and have been plating around with getting a program on to the STM.

I am using my STM32VLDiscovery board’s built in STLink-V1 as a SWD programmer. A simple procedure to wire up between the boards (discovery and my pcb) and get comm’s…AS LONG AS YOU DON’T NEGLECT THE ANALOGUE VDD PIN. I had not forseen the importance of connecting this pin initially and had left it disconnected (for the simple reason I couldn’t find the 0603 inductors I had ordered to nicely smooth the analogue supply line going IN to this pin. After a few hours headscratching, checking and rechecking for shorts, I finally found this disconnected pin to be the source of all my problems. Christmas truely has come early.

So watch out for this in the future Ian, and hopefully this note may help someone else in the future.

Gear Indicator – MGZR Rally Car (part 2 – Installation)

During one of our many days off work (must be taken before the end of the year) Adam and I finally got around to installing the Gear Indicator in his rally car. Since Adam put in the request for this project back in March he has crashed and subsequently repaired the entire front end of the car. Not great news for him but every cloud has a silver lining, and the great news for me is that Adam has put some weChook graphics on the newly painted wings.


The final step in getting the indicator working in the vehicle was designing a bracket to hold the microswitches in position around the gear lever. Some experimentation and we settled on a design made from a single aluminium plate that utilised the bolt holes already holding the selector bracket.

Once the microscwithes were mounted on the plate and the wiring tidyied we powered the indicator on (from a spare 12V fused feed) and went for a test drive. The indicator worked perfectly when the engine wasn’t running however, alternator noise on the power lines sometimes led to miscounted gear shifts when we drove the car. Note to self: cars are an incredibly noisey environment so make sure to add smoothing capacitors before you pot any projects. Fortunately with this modification the device seems to work perfectly and Adam hopes to test it out on a rally in the near future.

I have included a couple of videos of us testing the indicator:

Gear Indicator – MGZR Rally Car

It’s been a while since I have posted on the blog. The Driven Telemetry and Control project I am working on is taking up a lot of my time (now I have taken the role as Electrical team lead) and as such I have spent almost no time on the eCumbent or the Tandem.

Fortunately I found some time this evening to finally complete this little project so thought I best update weChook before my time is further absorbed. A friend of mine, Adam, has recently purchased a rally prep’d MG ZR complete with a sequential gearbox. Though the box seems fantastic and allows him to shift quickly through the gears he currently has no way of knowing which gear he is in, since the lever is a simple push pull type.522090_10151383225391914_1086446565_nThis quick project will hopefully help him with the confusion. A simple up down counter implemented using an MSP430G2211 increments and decrements through the use of 2 micro switches. These will be fixed at the base of the gear lever. The output is handled by a 7 segment LED display (blue, of course) which shows the current gear (Gears: n, 1, 2, 3, 4, 5, 6). Since joining Jaguar Land Rover and discovering the beauty of ‘surprise and delight’ features I have incorporated a gimmick in to this project: it spells out the drivers name at initialization.Gear IndicatorI haven’t bothered building a PCB for this design as it has so few components. The MSP430 is just soldered to the back of the LED and other components glued around. Adam plans to pot the indicator when we are fully happy with it’s operation anyway.

I have made the following available for this project: Source, Schematic