Sunday, 7 August 2016

Installing Arduino + Digispark on Linux Mint18

This was a little challenge. Where would we be without Google.

The advice on the Digistump website did NOT work.


1. Install the Arduino environment. https://www.arduino.cc/en/Guide/Linux

2. Install Digistump additional hardware https://digistump.com/wiki/digispark/tutorials/connecting

3. Per https://digistump.com/board/index.php/topic,106.msg106.html#msg106

Create a file named /etc/udev/rules.d/digispark.rules with the following line in it:

SUBSYSTEM=="usb", ATTR{idVendor}=="16d0", ATTR{idProduct}=="0753", MODE="0660", GROUP="dialout"


4. Add permission for dialout so other Arduino boards will work. 
https://www.arduino.cc/en/Guide/Linux#toc9

sudo usermod -a -G dialout <username
>

where <username> is your linux user name. You will need to log out and log in again for this change to take effect.


Note: To reload the udev rules use: 
sudo udevadm control --reload-rules

JOTA 2016 Bike Light.

The project this year is a bike light.

The project uses previously purchased bezels,

The original circuit was a transistor oscillator driving 3 LEDs from a 9v Battery.

Like all things, I can resist making the programmable.

The 2016 version uses an ATTiny85 microprocessor based module based on a Digispark variant,
http://digistump.com/products/1

It contains 4 ultrabright red LEDs. The flashing of the LEDs is programmed on the microcontroller.

The JOTA version is from http://www.banggood.com/ATTINY85-Mini-Usb-MCU-Development-Board-For-Arduino-p-971122.html

This board is not shipped with a boot loader. A programing board with pogo pins will be used to pre-program each board with the correct firmware and fuse settings.

The hex file which contains the USB boot loader and the bike light program can be downloaded from here.

Fuse settings are:  efuse:0xfe hfuse:0x5f lfuse:0xf1
These settings disable the reset pin functionality in order to obtain 4 outputs for the LEDs

The Arduino programing environment, along with the digispark hardware add-on to the IDE is used to program the device.

This link has instructions for setting up the development environment.
 https://digistump.com/wiki/digispark/tutorials/connecting

There are additional unused holes on the PCB to accommodate different style ATTiny85 modules available. Care needs to be taken during assembly to use the correct holes for the modules purchased.

There is also a row of 4 holes providing the option of adding a grove style header for additional inputs and outputs.






Source Code: (Draft) To have morse added for JOTA weekend.

#define LED1 0
#define LED2 1
#define LED3 2
#define LED4 5

// Digispark ATTiny85


void setup() {
  // put your setup code here, to run once:
  pinMode(LED1, OUTPUT);
  pinMode(LED2, OUTPUT);
  pinMode(LED3, OUTPUT);
  pinMode(LED4, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  flash(LED1, 500);
  flash(LED2, 500);
  flash(LED3, 500);
  flash(LED4, 500);

  flicker(LED1, 100, 4);
  flicker(LED2, 100, 4);
  flicker(LED3, 100, 4);
  flicker(LED4, 100, 4);

}

void flash(int pin, int wait)
{
  digitalWrite(pin, HIGH);
  delay(wait);
  digitalWrite(pin, LOW);
}

void flicker(int pin, int wait, int times)
{
  int i;
  for (i = 0; i <= times; i++) {
    digitalWrite(pin, HIGH);
    delay(wait);
    digitalWrite(pin, LOW);
    delay(wait);
  }
}



Saturday, 26 March 2016

Outlander Adventures. - Links and Nudge bar installation



Bumper removal 2014 Outlander

That was a mission!
Tips:
Remove the 2 under body protection panels  starting with the rear most panel beneath the engine.
Admire the location of the oil filter!
Disconnect fog light cable and headlight hose. There is a quick-release on the hose.




Installing an Aux input for the stereo

To enable Aux input press and hold the Info and Map buttons and find the menu.

Possible front parking sensor part numbers

8651A056 8651A056HA 

Close up photos

The LH connector is for the fog lights. The RH connector may be for the front parking sensors.


Thursday, 16 July 2015

JOTArduio - PCB Notes

Software: http://www.arduino.cc
Device: Arduino Nano w/ ATMega328

BOM -
Banggood: Arduino Nano


Element 14
Order Code Qty Ordered Mftr. Part No Manufacturer / Description
1458986 10 1N4001G ON SEMICONDUCTOR-1N4001G-DIODE, STANDARD, 1A, DO-41
1855563 60 C5SMF-RJS-CT0W0BB2 CREE-C5SMF-RJS-CT0W0BB2-LED, 5MM, RED, 2.2CD, 621NM
2401736 70 MCMF006FF2200A50 MULTICOMP-MCMF006FF2200A50-RESISTOR, METAL FILM, 220 OHM, 1%, AXIAL
1191741 10 RK09K1130C79 ALPS-RK09K1130C79-POTENTIOMETER, 10KB
2568243 10 VT90N1. EXCELITAS TECH-VT90N1.-LDR, 200KOHM, 80mW, VT900 SERIES
4511189 10 MJTP1230 APEM-MJTP1230-SWITCH, TACTILE SPST, 50mA, THROUGH HOLE
2135916 10 MCKPM-G1205A-3706 MULTICOMP-MCKPM-G1205A-3706-TRANSDUCER, THRU-HOLE, 8V, 40MA
1302073 10 635 KEYSTONE-635-MALE OFF-BOARD BATTERY CONTACT
1302085 10 636 KEYSTONE-636-FEMALE OFF-BOARD BATTERY CONTACT
5019280 10 GP1604G-U1 GP BATTERIES-GP1604G-U1-BATTERY, ZINC CHLORIDE, PP3

Friday, 27 September 2013

Set of Azure Dynamics parts + BMW E30 for sale

Set of Azure Dynamics parts + BMW E30 for sale

Due to a change in priorities, I need to sell the parts I have gathered for my BMW E30 conversion. 

These parts will suit any small to medium sized car conversion, or the E30 that is also for sale (see below). Using direct drive on the BMW the 0-100 time is calculated at about 7 seconds depending on final drive ratio. With a gearbox, even quicker.

All parts are located together in Sydney. You don’t have to worry about group buys, import duties and freight costs. I have done it all for you. 

The price is $8500 for the complete set of parts. This is the all up cost including shipping etc. from around the world. If you add up these prices with similar parts from the EVTV store, it will come to about the same price, and you still have to ship the parts to Australia.

Shipping out of NSW can be quoted separately.

These parts have been selected especially to go drag racing and beat other 80’s - 90's cars such as the BMW E30. The idea is to use enough battery to provide just less than 400V at top of charge and sufficient amps to draw full power for 10 seconds. The high discharge ‘red’ headways are ideal. A little heavy, but fail safe, unlike prismatic and pouch cells. 

This kit, in a light E30 or a Suzuki Cary will fly down the drag strip, or just have some fun at the lights.

Here is what you get:
Azure Dynamics / Siemens water cooled induction motor model 1PV5138-4WS14

. This motor is good for about 100kW and 300 newton meters at 300 volts. I am sure it can be overclocked at least by 10%. Specs: http://store.evtv.me/proddetail.php?prod=1PV5135

Vaxo motor shaft coupling for attaching to a drive shaft or clutch plate if using a gearbox.

Azure Dynamics DMOC645 controller – Already Programmed (controllers usually come un-programmed and normally require a CAN programmer worth several hundred dollars to buy). This controller has an upper voltage limit of 400 volts. If you use 330v of batteries you will be able to increase the motor power and torque by about 10%. There is a lot of support for the motor and controller available from the ev.tv forums. 
http://store.evtv.me/proddetail.php?prod=DMOC645 

TC Charger 2kW TCCH-312-5.5 Programmable up to 417V & 5.5A, CAN-Bus battery charger. I can even provide a working Arduino, LCD and CAN adaptor with source code to get you started.

Azure Dynamics air conditioning compressor with CAN bus commands documented. I spent quite some time locating the CAN documentation for this unit, saving you the pain. These are also used in the iMiEV in case you need to compare with a working unit. 

2 x Azure Dynamics water pumps. One for motor and controller cooling, the other for the cabin heater.

12 v Brake vacuum pump x 2. One rotary vane as used in Volvos. One Azure Dynamics piston. Your choice which to use, and which to sell.
Brake vacuum switch – adjustable with hysteresis.

Stainless steel bottle for brake vacuum.

Azure Dynamics water heater. This is for heating the cabin of the vehicle and required for demisting the windows.

Set of male and female J1772 connectors for the charging. This is preferred as you can use a commercial charging station, or with the provided cable, charge at home.

2 x Kilovac contactors. 
http://store.evtv.me/proddetail.php?prod=EV200AAANA

High current MES-DEA 1000W DC-DC. This is a very professional unit rated at 60A output. Many are 40A or less and are simply not up to the task of driving the vehicles 12 volt electrics for any length of time at night with lights, fan and wipers running. This unit will run your 12 v electrics with all accessories running. 
http://www.metricmind.com/data/mes_dcdc.pdf

BMW Accelerator pedal. This is an awesome unit. Easy to mount and use with your driver interface. No more unreliable throttle pots.
Details of how to drive the various parts are located on my blog 
http://malfunction.faed.name

Just add a driver interface such as 
http://rechargecar.com/macchina, batteries and BMS. My preference is Headway batteries and Batrium BMS for ease of use and local support.

For a further 4k you can buy my white ’91 BMW 318i E30 to convert. This car is currently registered in NSW. It has been my daily driver for the last 3+ years. This car has no visible rust and is a pleasure to drive. The suspension is top notch, has new brakes all round and a M40 motor in great condition you can sell to recoup some of the cost. If you buy the car, I will also give you a factory manual steering rackso you don’t need to worry about a power steering pump. I will also include a Getrag 240 gearbox in case you want to use the output shaft or the gearbox. This also allows you to make an adapter plate before pulling the car apart.

If you buy the whole lot for $12,500, I can load up the car with the parts and deliver for free anywhere on the east coast and fly home.

Please phone 0409 601 747 or email 
Malcolm@faed.name should you be interested.

Friday, 2 August 2013

First had experience with a C5 at Sinclair in the UK

From: http://www.eevblog.com/forum/blog/eevblog-501-sinclair-c5-electric-car-teardown-test-drive/30/

Re: EEVblog #501 - Sinclair C5 Electric Car Teardown & Test Drive
« Reply #37 on: Yesterday at 08:31:10 PM »
Oh man! That's made my day. Let me take you back... back... back...

I worked for Sinclair Research in the mid-80s as a snotty-nosed teenaged Z80 programmer. I joined the day the C5 launched and worked initially in Sinclair's London office (a tiny place with just Clive, his secretary, his father and me - it's a long story...). So I came out of work and there outside the office was the C5 that Clive had been driving at the launch event - widely covered on the telly.  But, nobody knew what to do with it - it was a Friday afternoon, it wouldn't fit through the doorway into the office and you couldn't just leave it there. So light, someone could have picked it up and walked away with it.

"I know!" I said. "I'll drive it home and look after it over the weekend!"

Clive looked dubious "Are you sure?" he said, "It's rush hour, it's London..."

"You've just been on the TV telling everyone how safe it is," I said (teenagers, eh?). "What can go wrong?"

"Errr... OK" he said. What else could he have done?

So I drove it from Chelsea to Chiswick through the London rush hour traffic. Got a lot of attention - after all, it'd had been on the TV all day - and it felt really good.

Until I got to Hammersmith, about three miles from the office and about two from home, when the battery ran out. The advertised range was not quite working out... peddling it (with no gearbox) all the way home was not nearly as much fun.

"Yes," said Clive on the Monday. "There may be some bugs to work out..." Can't remember how we got it back - I think by van.

Some more background on it: it was designed by a couple of chaps at Milton Hall, home of Sinclair Research's Metalab in Cambridge, in conjunction with various suppliers. The P. Newman who co-authored the Unofficial C5 document is Perran Newman, who became my boss at Sinclair after I moved to Cambridge; we worked together on a few projects, including the Pandora portable Spectrum (yet another story).

The "washing machine" motor was in fact a variant of one used for electric torpedoes. The ULA was a typical Sinclair component; the Ferranti ULA in the ZX81 was the first such in any consumer device, and Sinclair had a preference for them over other solutions. It was possible - although I never took part - to put two batteries in series and go very fast indeed, I think the unofficial record was 30 MPH, if you didn't do it for too long. Sinclair engineers were an eccentric bunch, and did things like go jousting in muddy fields in Citroen 2CVs.

But so much on it was just too pared back - the nylon gears that stripped, the batteries that were just too wimpy, those brakes... and, yeah, the British weather. There was a sort of cagoule which clipped around the front of the driving space, but that made you look even more like Davros than before.

Happy days.But it was a doomed project... now, the C10...

Wednesday, 31 July 2013

Tuesday, 2 July 2013

My first CAN bus project.

My first CAN bus project, controlling a TC Charger (Elcon) using CAN bus from an Arduino. I can dial up the voltage and current required, and display status flags of the charger isn't happy.

:-)

Now for a crash course in 3D modelling and 3D printing to make a nice enclosure.

It is the 417V version charger but thankfully can work down to 36V batteries. Here it is charging a pack  of 12S1P Headways.