Bli medlem i Norsk elbilforening og støtt driften av Elbilforum. Som medlem får du i tillegg startpakke, medlemsfordeler og gode tips om elbil og lading. Du blir med i et fellesskap som jobber for mindre utslipp fra veitrafikken. Medlemskap koster 510 kroner per år. elbil.no/medlemskap

Skrevet av Emne: OVMS for Think  (Lest 43754 ganger)

hma

  • Gold Member
  • ******
  • Innlegg: 1571
    • Vis profil
Sv: OVMS for Think
« Svar #60 på: Tirsdag 24. ſeptember 2013, klokken 00:51 »
Latest Ovms build is available here, it features:
- Control of external auxiliary (e.g. a Webasto) from "Valet Mode" button (pin 8 at 9X2).
  Pin is set auto off after 20 min.
- Door lock control (lock at pin 4 /RC1, unlock at pin 6/RC2)
- Control of airbag lamp status

To hook up the thing, one have to build a cable with a d9sub (female) in one end, and a molex-connector in the other end (if your car originally was equipped with RAC).
« Siste redigering: Onsdag 25. ſeptember 2013, klokken 20:07 av hma »
- Toyota Rav4 EV 2000 NiMH (06/2010), Hyundai Ioniq 5 P45 (08-2021)
   (tidl.: Think 2000 NiCd (06/2009-05/2012) - Think City 2010 Zebra (03/2012-10/2012) - Think City 2009 Zebra (05/2012-05/2014)  - Tesla Model S85 2014 (06/2014-09/2017) - Nissan Leaf 2018 LE 40kWh (04/2018-12/2018) - Tesla Model S75D (12/2018-06/2021) )
- Trondheim (Trøndelag Elbilforening 02/2012-04/2014)
- Ariens AMP 24 to-trinns snøfreser 48V litium 52,5Ahr (10/2012)

habazot

  • Jr. Member
  • **
  • Innlegg: 45
  • Plastic Fantastic
    • Vis profil
Sv: OVMS for Think
« Svar #61 på: Tirsdag 24. ſeptember 2013, klokken 12:28 »
Nice :) I'm interested in the HW mod, was thinking of upgrading FW anyway so I can add a few wires.
Actually I think I'm going to make a connector to be able to reprogram the think without having to pull everything apart... I wish the next generation could allow for reprogramming via GPRS.

Anyway: I have one other issue: I get a lot of battery warnings, my battery seems to go below 13.0V when not plugged in or driving. My battery is just fine, works nicely and will not change behavior even if charged. So should we make the battry voltage limit adjustable? By using one of the parameters.?..

Bergen
- Think City 2008 - 43000km

hma

  • Gold Member
  • ******
  • Innlegg: 1571
    • Vis profil
Sv: OVMS for Think
« Svar #62 på: Onsdag 25. ſeptember 2013, klokken 20:09 »
Anyway: I have one other issue: I get a lot of battery warnings, my battery seems to go below 13.0V when not plugged in or driving. My battery is just fine, works nicely and will not change behavior even if charged. So should we make the battry voltage limit adjustable? By using one of the parameters.?..
There are built in alerts for 12V and minSOC, but they currently don't work. I'm troubleshooting with Mark, I think there is a bug in the server-script.

I will also post a picture of how to do the HW-modification for central lock, airbag lamp control and heater control.
« Siste redigering: Onsdag 25. ſeptember 2013, klokken 20:12 av hma »
- Toyota Rav4 EV 2000 NiMH (06/2010), Hyundai Ioniq 5 P45 (08-2021)
   (tidl.: Think 2000 NiCd (06/2009-05/2012) - Think City 2010 Zebra (03/2012-10/2012) - Think City 2009 Zebra (05/2012-05/2014)  - Tesla Model S85 2014 (06/2014-09/2017) - Nissan Leaf 2018 LE 40kWh (04/2018-12/2018) - Tesla Model S75D (12/2018-06/2021) )
- Trondheim (Trøndelag Elbilforening 02/2012-04/2014)
- Ariens AMP 24 to-trinns snøfreser 48V litium 52,5Ahr (10/2012)

hma

  • Gold Member
  • ******
  • Innlegg: 1571
    • Vis profil
Sv: OVMS for Think
« Svar #63 på: Onsdag 25. ſeptember 2013, klokken 20:11 »
Latest version is attached, it features:
 - Car park time visualization in the app (very useful!)
« Siste redigering: Onsdag 30. Oktober 2013, klokken 20:17 av hma »
- Toyota Rav4 EV 2000 NiMH (06/2010), Hyundai Ioniq 5 P45 (08-2021)
   (tidl.: Think 2000 NiCd (06/2009-05/2012) - Think City 2010 Zebra (03/2012-10/2012) - Think City 2009 Zebra (05/2012-05/2014)  - Tesla Model S85 2014 (06/2014-09/2017) - Nissan Leaf 2018 LE 40kWh (04/2018-12/2018) - Tesla Model S75D (12/2018-06/2021) )
- Trondheim (Trøndelag Elbilforening 02/2012-04/2014)
- Ariens AMP 24 to-trinns snøfreser 48V litium 52,5Ahr (10/2012)

habazot

  • Jr. Member
  • **
  • Innlegg: 45
  • Plastic Fantastic
    • Vis profil
Sv: OVMS for Think
« Svar #64 på: Onsdag 25. ſeptember 2013, klokken 21:12 »
Anyway: I have one other issue: I get a lot of battery warnings, my battery seems to go below 13.0V when not plugged in or driving. My battery is just fine, works nicely and will not change behavior even if charged. So should we make the battry voltage limit adjustable? By using one of the parameters.?..
There are built in alerts for 12V and minSOC, but they currently don't work. I'm troubleshooting with Mark, I think there is a bug in the server-script.

I will also post a picture of how to do the HW-modification for central lock, airbag lamp control and heater control.

Actually battery alerts work too well, I get plenty of notifications, it seems to compare at 13.0V, which is a bit high for my battery, reducing it to ~12.5V would make it useful again, now it's just noise.

Eagerly awaiting the "OVMS on steroids howto" :)
Bergen
- Think City 2008 - 43000km

hma

  • Gold Member
  • ******
  • Innlegg: 1571
    • Vis profil
Sv: OVMS for Think
« Svar #65 på: Torsdag 26. ſeptember 2013, klokken 18:37 »
Actually battery alerts work too well, I get plenty of notifications, it seems to compare at 13.0V, which is a bit high for my battery, reducing it to ~12.5V would make it useful again, now it's just noise.
Interesting! 12V-warning does not work to me (and I have had a few incidents with low voltage).
Do you run the android-app or the iOS-app? Do you receive warning on both SMS and to the app?

Have you done any changes to the code from the version pushed at Github? If yes, can you e-mail me your vehicle_thinkcity.c-file (you find my email in the developer list).

The 12V alert is done in the function net_msg_12v_alert in net_msg.c and in net_send_sms_start in net_sms.c.
- Toyota Rav4 EV 2000 NiMH (06/2010), Hyundai Ioniq 5 P45 (08-2021)
   (tidl.: Think 2000 NiCd (06/2009-05/2012) - Think City 2010 Zebra (03/2012-10/2012) - Think City 2009 Zebra (05/2012-05/2014)  - Tesla Model S85 2014 (06/2014-09/2017) - Nissan Leaf 2018 LE 40kWh (04/2018-12/2018) - Tesla Model S75D (12/2018-06/2021) )
- Trondheim (Trøndelag Elbilforening 02/2012-04/2014)
- Ariens AMP 24 to-trinns snøfreser 48V litium 52,5Ahr (10/2012)

hma

  • Gold Member
  • ******
  • Innlegg: 1571
    • Vis profil
Sv: OVMS for Think
« Svar #66 på: Torsdag 26. ſeptember 2013, klokken 18:45 »
Attached you can see how to modify the board to connect to the 4 external pins (RC0-3) used for airbag, central lock/unlock and heater.


Note that this is +5V TTL logic, and the pins cannot be connected directly to the car. One can use a mosfet (e.g. 2n7000) in combination with a resistor as a digital switch.

One have to make a cable with a female d9sub to be attached to OVMS. Clas Ohlson have one for sale for NoK 70,-. Cut off one of the connectors and attach the wires to can_h / can_l +12V GND, Airbag signal (via mosfet) GEM central lock and unlock-switch (via mosfet) and to a heater if you have one.
- Toyota Rav4 EV 2000 NiMH (06/2010), Hyundai Ioniq 5 P45 (08-2021)
   (tidl.: Think 2000 NiCd (06/2009-05/2012) - Think City 2010 Zebra (03/2012-10/2012) - Think City 2009 Zebra (05/2012-05/2014)  - Tesla Model S85 2014 (06/2014-09/2017) - Nissan Leaf 2018 LE 40kWh (04/2018-12/2018) - Tesla Model S75D (12/2018-06/2021) )
- Trondheim (Trøndelag Elbilforening 02/2012-04/2014)
- Ariens AMP 24 to-trinns snøfreser 48V litium 52,5Ahr (10/2012)

habazot

  • Jr. Member
  • **
  • Innlegg: 45
  • Plastic Fantastic
    • Vis profil
Sv: OVMS for Think
« Svar #67 på: Torsdag 26. ſeptember 2013, klokken 23:25 »
Actually battery alerts work too well, I get plenty of notifications, it seems to compare at 13.0V, which is a bit high for my battery, reducing it to ~12.5V would make it useful again, now it's just noise.
Interesting! 12V-warning does not work to me (and I have had a few incidents with low voltage).
Do you run the android-app or the iOS-app? Do you receive warning on both SMS and to the app?

Have you done any changes to the code from the version pushed at Github? If yes, can you e-mail me your vehicle_thinkcity.c-file (you find my email in the developer list).

The 12V alert is done in the function net_msg_12v_alert in net_msg.c and in net_send_sms_start in net_sms.c.

I use the Android app.
I currently have the latest official release installed (not compiled by me).
It works both with notifications and sms, but I had to turn off sms to avoid  excessive noise and costs.
My battery has a voltage of 12.8V when not charged so changing the limit to 12.5V might be reasonable?

Sent from my GT-I9505 using Tapatalk 4

Bergen
- Think City 2008 - 43000km

habazot

  • Jr. Member
  • **
  • Innlegg: 45
  • Plastic Fantastic
    • Vis profil
Sv: OVMS for Think
« Svar #68 på: Fredag 27. ſeptember 2013, klokken 11:58 »
Attached you can see how to modify the board to connect to the 4 external pins (RC0-3) used for airbag, central lock/unlock and heater.


Note that this is +5V TTL logic, and the pins cannot be connected directly to the car. One can use a mosfet (e.g. 2n7000) in combination with a resistor as a digital switch.

One have to make a cable with a female d9sub to be attached to OVMS. Clas Ohlson have one for sale for NoK 70,-. Cut off one of the connectors and attach the wires to can_h / can_l +12V GND, Airbag signal (via mosfet) GEM central lock and unlock-switch (via mosfet) and to a heater if you have one.

The OVMS side looks straight forward, but the other end of that RS232 is a bit unclear to me. You mention a molex connector? I have not pulled out the RAC unit yet (seems to be a bit of a hassle...), and I think I'd like to keep it connected since it is actually working sort of. Hm. So maybe you just removed it and now have a way of controlling the one thing you needed it to do; the airbag lamp?
Maybe a picture tells it all :)

Also would it not make sense to put the mosfets in the OVMS box and just run the cables directly to their destinations.? Because you are clamping them right, active "low"/short to GND?

Sorry for being a nag, just want to make sure I understand you correctly.. :)
Bergen
- Think City 2008 - 43000km

hma

  • Gold Member
  • ******
  • Innlegg: 1571
    • Vis profil
Sv: OVMS for Think
« Svar #69 på: ſøndag 29. ſeptember 2013, klokken 01:18 »
The pin-mapping (can_l, can_h, +12V and gnd) for the d9sub-to-obd2 cable is described in the picture bellow.

One can use the free pins on the d9sub at personal choice to route lock/unlock/airbag/heat. The picture with 9x2-to-d9sub mapping is just a suggestion only.

There is also no need to remove the RAC, however I find the 24pin RAC connector very convenient to use.

The 24-pin RAC-connector can be detached without unmounting the unit itself.
If you do so, the airbag lamp control have to be connected to Ovms/mosfet-switch (according to this description).
The 24-pin RAC-connector in the car is Molex 43025-2400 (female).
For the Ovms-cable one need a 43020-2401 (male)

RAC-pins:
 - Pin 1: Always hot
 - Ping 6: CAN_L
 - (Pin 7: Key run, not needed, but nice to know)
 - Pin 10: Airbag ECU status
 - Pin 13: Gnd
 - Pin 18: CAN_H

At the GEM you find:
  - Pin 19 Grey connector (most left): Lock switch (yellow/red wire)
  - Pin 16 Green connector (second left): Unlock switch (pink/green wire)

I have made a small labtest with a 2n7000 mosfet + 4k5 resistor.
Connected like this:
 - RCx to Gate
 - Source to GND
 - Drain to lock/unlock/airbag/heat
 - 4k5 between Gate/RCx and Source/GND

NB! If one plan to use the mosfet as relay controller, I think one need a fly-back protection diode over the relay coil.

A Veroboard with 4 switches (airbag, lock, unlock, and heat) measure 32x9x13mm (WxDxH).
I would prefer to keep it inside the Ovms-box, but I think that's might be impossible. There is no space on the bottom side of the Ovms-board and on the top side the d9sub junctions are inaccessible.
I will therefor keep the Veroboard next to the Molex-connector - see not problem with that.
« Siste redigering: ſøndag 29. ſeptember 2013, klokken 21:21 av hma »
- Toyota Rav4 EV 2000 NiMH (06/2010), Hyundai Ioniq 5 P45 (08-2021)
   (tidl.: Think 2000 NiCd (06/2009-05/2012) - Think City 2010 Zebra (03/2012-10/2012) - Think City 2009 Zebra (05/2012-05/2014)  - Tesla Model S85 2014 (06/2014-09/2017) - Nissan Leaf 2018 LE 40kWh (04/2018-12/2018) - Tesla Model S75D (12/2018-06/2021) )
- Trondheim (Trøndelag Elbilforening 02/2012-04/2014)
- Ariens AMP 24 to-trinns snøfreser 48V litium 52,5Ahr (10/2012)

hma

  • Gold Member
  • ******
  • Innlegg: 1571
    • Vis profil
Sv: OVMS for Think
« Svar #70 på: ſøndag 29. ſeptember 2013, klokken 21:46 »
Managed to run a successful test on the 2n7000-circuit today, locking, unlocking and switching on/off the airbaglamp.

Next up is building a 4 x switch array (4 x 2n7000) for controlling the whole thing.

Meanwhile, BauDemo gave me a nice suggestion of using ULN2003a circuit, which will save some space and make a smother installation. I might order a few of those (or a pre-build board).

In the attached link some different methods of controlling relays / cmos from a 5V TTL-source.
http://www.electroschematics.com/7123/relay-driver-2/
« Siste redigering: ſøndag 29. ſeptember 2013, klokken 23:03 av hma »
- Toyota Rav4 EV 2000 NiMH (06/2010), Hyundai Ioniq 5 P45 (08-2021)
   (tidl.: Think 2000 NiCd (06/2009-05/2012) - Think City 2010 Zebra (03/2012-10/2012) - Think City 2009 Zebra (05/2012-05/2014)  - Tesla Model S85 2014 (06/2014-09/2017) - Nissan Leaf 2018 LE 40kWh (04/2018-12/2018) - Tesla Model S75D (12/2018-06/2021) )
- Trondheim (Trøndelag Elbilforening 02/2012-04/2014)
- Ariens AMP 24 to-trinns snøfreser 48V litium 52,5Ahr (10/2012)

jahnarne

  • Full Member
  • ***
  • Innlegg: 238
    • Vis profil
Sv: OVMS for Think
« Svar #71 på: Torsdag 03. Oktober 2013, klokken 13:50 »
Selger et komplett OVMS-sett om noen er interessert: http://elbilforum.no/forum/index.php/topic,9706.0.html
« Siste redigering: Torsdag 03. Oktober 2013, klokken 13:57 av jahnarne »

Eblogg

  • Full Member
  • ***
  • Innlegg: 110
    • Vis profil
    • Eblogg
Sv: OVMS for Think
« Svar #72 på: ſøndag 06. Oktober 2013, klokken 12:18 »
Denne tråden er blitt så lang at mitt spørsmål er om noen kan gi en rask innføring i hva dette produktet er for noe. Virker spennende. Kan den brukes i en tvilling? Ligner dette på app funksjonen til Liefen?
i-MiEV 2012 Red/Frost White
http://eblogg.org
http://elbilplassen.no

testO

  • Full Member
  • ***
  • Innlegg: 159
    • Vis profil
Sv: OVMS for Think
« Svar #73 på: Mandag 07. Oktober 2013, klokken 19:13 »
Denne tråden er blitt så lang at mitt spørsmål er om noen kan gi en rask innføring i hva dette produktet er for noe. Virker spennende. Kan den brukes i en tvilling? Ligner dette på app funksjonen til Liefen?

Se her for trillingene: http://elbilforum.no/forum/index.php/topic,9539.0.html
Mitsubishi i-MiEV 2012 Ocean Blue - Solgt
Tesla model S
TOCN Signaturmedlem

hma

  • Gold Member
  • ******
  • Innlegg: 1571
    • Vis profil
Sv: OVMS for Think
« Svar #74 på: Onsdag 30. Oktober 2013, klokken 20:15 »
Latest hex file for Think is available here.
It contains a fix for stale temperature in the app.
If the ambient temperature are not reported lately (e.g. car is off), the temperature is displayed grey in the app.
If the temperature is updated, it's white.
« Siste redigering: Mandag 11. November 2013, klokken 23:45 av hma »
- Toyota Rav4 EV 2000 NiMH (06/2010), Hyundai Ioniq 5 P45 (08-2021)
   (tidl.: Think 2000 NiCd (06/2009-05/2012) - Think City 2010 Zebra (03/2012-10/2012) - Think City 2009 Zebra (05/2012-05/2014)  - Tesla Model S85 2014 (06/2014-09/2017) - Nissan Leaf 2018 LE 40kWh (04/2018-12/2018) - Tesla Model S75D (12/2018-06/2021) )
- Trondheim (Trøndelag Elbilforening 02/2012-04/2014)
- Ariens AMP 24 to-trinns snøfreser 48V litium 52,5Ahr (10/2012)