Search found 55 matches

by 900
Tue Aug 23, 2022 9:01 am
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

Uh... i dont think ULN2003 pin leaks to GND. It does have one common GND connection and one 12V connection. Arber, so been using your shield to drive contactors for a while, it works well except very occasionaly fails to trigger precharge it seems. I'm a bit doubtful about reliability of the ULN200...
by 900
Tue Jul 26, 2022 2:06 pm
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

Yes you need to connect cp pin and pp pin to correct LV pin of the charger and it will be able to provide as much power as evse would allow. I know the pinout for gen2, but i do not know gen3... My intention now is just that. Replacing eltek chargers with single Tesla gen2 and connect it directly t...
by 900
Tue Jul 26, 2022 11:49 am
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

Sorry I forgot to answer earlier. So take a look to SimpBMS TeslaBMSV2.ino, in the end there is function isrCP(), simply replace "digitalRead(IN4) == LOW" with "digitalRead(IN4) == HIGH". This is how you inverts calculation. And on "accurlim" line below remove "+ ...
by 900
Sun Jul 24, 2022 3:59 pm
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

arber333 wrote: Sun Jul 24, 2022 2:30 pm Also marking is oriented towards the resistors. It is suppose to rectify -12V _ +12V peak to peak evse signal into dc signal.
Is this correct? 😊
by 900
Sun Jul 24, 2022 1:06 pm
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

There are only 2 diodes on that board. First one is power diode to protect 12V positive from reverse polarity and the second one is 30V schottky diode to rectify Cp signal for later transistor edge counting. I have a B230A-13-F diode is it suitable as a D1? Also what is the polarity, do you have a ...
by 900
Sun Jul 24, 2022 12:48 pm
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

Sorry yes i didnt think of that. In that case populate CP line and relay so you will be able to pull in evse. To sense correct cp amperage limit you would need one nmos transistor towards cp sense due pin with pullup. I didnt look how damien did its first due design. In code i intended to calculate...
by 900
Sun Jul 24, 2022 12:10 pm
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

Yes you need to connect cp pin and pp pin to correct LV pin of the charger and it will be able to provide as much power as evse would allow. I know the pinout for gen2, but i do not know gen3... My intention now is just that. Replacing eltek chargers with single Tesla gen2 and connect it directly t...
by 900
Sun Jul 24, 2022 9:12 am
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

Sorry, missed that post. Yes my DUE works dilligently at the back. I tried to apply a watchdog to my code for brownout detection but that was not good. Sometimes PWM and CAN gets stuck in a loop... You need that eeprom chip and its writeprotect pin! Yes, Due and your shield is now controlling my pr...
by 900
Sat Jul 23, 2022 9:24 pm
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

Toms code on SimpBMS or at least TeslaBMSV2 does work quite nice for CP duty detection, just see the interrupt code. You need to change calculation polarity as shield board uses NPN or NFET for grounding IO pin. Additional optocoupler decade of 35ms needs to be removed. Due pin D19 was routed to EE...
by 900
Fri Jul 08, 2022 12:06 pm
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

One glitch i discovered with DUE... Its internal pullup resistors are a joke. I have noticed that during driving sometimes a PP sense pin i use with internal resistor drops from 3V3 and it signals as if EVSE would be plugged in. <...> Immediate solution for me was to add external 10K resistor to +3...
by 900
Tue Jun 28, 2022 12:01 pm
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

In short, yes i think you need more capacitance to absorb voltage drops from transistor switching. Your 3V3 regulator on due could be starving when you try to switch ULN. Either 100uf 16V elcap for C2 or 33uF tantalum for C3. I suggest you go by 100uF elcap first to test. Then add 1uF ceramic to C3...
by 900
Tue Jun 28, 2022 9:50 am
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

Hm... can you disconnect pin 9 of ULN2003? I think it is top left pin which is connected to 12V. Maybe there is something amiss on 12V line. This is common output for freewheeling diodes of each pin. In my DUE board i built in a resistor pad which can be unsoldered to disconnect 12V from the chip. ...
by 900
Tue Jun 28, 2022 8:39 am
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

ULN is darlington transistor array. That is allways leaking somewhat i think. But using 10K pulldowns on each line should resolve this... Hm... you could add flyback diode across relay coil. Maybe the shock of discharging coil causes some damage to ULN chip. Or you could connect two ULN pins (input...
by 900
Mon Jun 27, 2022 7:30 pm
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

ULN is darlington transistor array. That is allways leaking somewhat i think. But using 10K pulldowns on each line should resolve this... I already have 2x 10k pulldowns on ULN2003 input pins(due pins). Should I also add a couple pulldowns to the ULN2003 output pins too? Hm... you could add flyback...
by 900
Mon Jun 27, 2022 7:06 pm
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

Ok, glad you have solved the problem. I thought I had solved it but the ULN2003 chip keeps failing for some reason.. So terribly unreliable. It works a few times and then fails. Now I have actual HV voltage there and when I turn ignition on ULN2003 output pin is open to ground the one that drives t...
by 900
Fri Jun 24, 2022 10:59 am
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

Maybe you could add pulldown resistors like 10Kto negate disturbance on start? I read a bit online about arduinos apparently a pulldown resistor on output pins is a must. So I've added 2x 10k resistors on the 2 Due output pins that drive my contactor relays and that seems to have mostly solved the ...
by 900
Thu Jun 23, 2022 5:41 pm
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

Uh... i dont think ULN2003 pin leaks to GND. Never thought controlling contactor is so difficult, been battling with this for a week now.. I think there is an issue with this ULN2003 chip - I've replaced it with brand new one it still seems to be leaking. If I wire my Due with your shield into my c...
by 900
Wed Jun 22, 2022 10:06 pm
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

But if you have a faulty ULN chip i suggest you replace it. Hi, I have replaced the ULN2003 chip and the situation has improved but I still have some issues. I decided to use the relay on your shield to drive the precharge contactor instead of connecting directly to ULN2003. It works, but for some ...
by 900
Sat Jun 18, 2022 1:06 pm
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

If you want to use DUE to start latching relay that would be OK. So use 12V signal from DUE relay to latch your contactors. Maybe I missunderstood how you're suggesting to do it. How would I take 12V signal from Due relay? I wired coil ground of my latching relay straight to ULN2003 outputs. It wor...
by 900
Mon Jun 13, 2022 2:14 pm
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

That was exactly my point with DUE circuit. If you use my DUE board with 12V relay it should be used to only provide short 12V pulse to latch the relay. 12V steady supply should come from the key switch. So DUE would still be on but if you remove 12V from the key relay would drop out. I didn't put ...
by 900
Mon Jun 13, 2022 10:37 am
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

Also what about these relays? Would they be suitable?
by 900
Sun Jun 12, 2022 9:01 pm
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

My circuit for latching... Dont forget you need to signal pulse 12V to this relay into a contact which will then be latched to 12V. Meanwhile why I still don't have a 24vac relay I wanted to try this 12vdc automotive one. I wired everything according to your drawing just that I swapped polarity bec...
by 900
Fri Jun 10, 2022 7:49 pm
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

Ok last time you asked about a specific relay. So I tested this 12vdc automotive relay and it indeed gets hot when left connected to 12v dc power. Just as you said. Although it holds contacts when hot I wouldn't feel comfortable using it for such an important task. Going to try 24vac relay now when...
by 900
Thu Jun 09, 2022 5:33 am
Forum: Vehicle Control (VCU)
Topic: Arduino DUE VCU with analog and CAN control
Replies: 149
Views: 621651

Re: Arduino DUE VCU with analog and CAN control

Ok last time you asked about a specific relay. I think it was DPST since action happens with dual output pins from a single point. My circuit for latching... Dont forget you need to signal pulse 12V to this relay into a contact which will then be latched to 12V. Hi, so you're suggesting to have gro...
by 900
Wed Jun 08, 2022 3:22 pm
Forum: General
Topic: Precharge and Contactor Control [SOLVED]
Replies: 28
Views: 8216

Re: Precharge and Contactor Control [SOLVED]

arber333 wrote: Wed Jun 08, 2022 2:44 pm I would advise use of similar relays with casing...
So this little automotive 12V relay that I was going to turn into a latching relay and drive main contactor is no go then?