Go Back   EcoModder Forum > EcoModding > Fossil Fuel Free
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 02-05-2019, 01:31 PM   #3321 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 746
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by jackbauer View Post
Found the problem. Seems the call to the space vector modulation routine was commented out so no wonder I couldn't generate any pwm

Still not had any luck with the rotor tuning routine but guessed a few times for the rotor time constand and managed to rip my arm out of its socket trying to hold the output shaft
What version of compiler are you running?

I have not successfully built the source as yet. Just loading hex files that Paul built.

My board was/is set up for a potbox. I think Paul sent me instructions on what resistors to change out for a hall effect throttle. I'll check my email.

--------------------------my email 1 ---------------------------------
Hi Paul,

I know you are busy. I'm trying to get a hall effect sensor connected to my AC controller. The logging shows -4096 for the raw throttle, and the input pin seems to be dragging down the signal from the hall effect throttle.

Hopefully I did not kill the analog input. I don't think anything that I did should have done anything bad.

5V to throttle, 0V to throttle, checked voltage out of throttle, ranged from 0.5 - 2.2V. The other signal from the throttle is 1.0V - 4.4V (maybe not quite 2x)

Connect to the input pin and the signal drops to -0.18 ... that is below the level of the GND pin using my crappy meter ... but how?

-------------------------------my email 2 -----------------------------------

Hi Paul,

R53 is not installed
R51 is brn blk blk org brn. Measures as 1.001 K

You had given me a mod to use a hall effect throttle but I did not, apparently, get that far.


--------------------------paul's email ------------------------------

With the hall throttle disconnected, R51 should read 100k. It sounds like I put the wrong resistor in there. The hall sensors generally can only put out around 3mA, so a 1k resistor would be trying to take 5mA from it.
I just tried compiling it in mplab x, adn didn't have any issues. I chose the C30 compiler when I went through the "create a new project" steps. You could send the controller a 2.5v signal, and it will view that as zero throttle, as long as you set the minimum throttle to around 512.


--------------------------------------------

__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!

Last edited by thingstodo; 02-05-2019 at 01:35 PM.. Reason: put in quoted emails
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 02-05-2019, 02:27 PM   #3322 (permalink)
Master EcoModder
 
jackbauer's Avatar
 
Join Date: Sep 2009
Location: Ireland
Posts: 734
Thanks: 26
Thanked 304 Times in 171 Posts
I am using mplabx. quite easy to setup and use :https://www.microchip.com/mplab/mplab-x-ide

Regards the hall effect throttle, I am using one from a bmw e46 that outputs between 0.65 and 4.3v so I just feed this into the throttle input and give it +5v and ground then workout the calibration as normal. No need to mess about with resistors at all.
__________________
Now, Cole, when you shift the gear and that little needle on the ammeter goes into the red and reads 2000 Amps, that's bad.
www.evbmw.com
  Reply With Quote
Old 02-06-2019, 11:34 AM   #3323 (permalink)
Master EcoModder
 
jackbauer's Avatar
 
Join Date: Sep 2009
Location: Ireland
Posts: 734
Thanks: 26
Thanked 304 Times in 171 Posts
Just wondering was there any software available that used the CAN bus?
__________________
Now, Cole, when you shift the gear and that little needle on the ammeter goes into the red and reads 2000 Amps, that's bad.
www.evbmw.com
  Reply With Quote
Old 02-06-2019, 01:40 PM   #3324 (permalink)
Master EcoModder
 
jackbauer's Avatar
 
Join Date: Sep 2009
Location: Ireland
Posts: 734
Thanks: 26
Thanked 304 Times in 171 Posts
I made a little video :
https://youtu.be/0mmoOgNgo_M
__________________
Now, Cole, when you shift the gear and that little needle on the ammeter goes into the red and reads 2000 Amps, that's bad.
www.evbmw.com
  Reply With Quote
Old 02-06-2019, 01:48 PM   #3325 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 746
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by jackbauer View Post
Just wondering was there any software available that used the CAN bus?
I didn't know that there was CANbus hardware on the board.

I'm not aware of any CAN support in the software that I have
__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
  Reply With Quote
Old 02-07-2019, 03:23 PM   #3326 (permalink)
Master EcoModder
 
jackbauer's Avatar
 
Join Date: Sep 2009
Location: Ireland
Posts: 734
Thanks: 26
Thanked 304 Times in 171 Posts
Here is my first go at using Paul's brain in one of my own designs :
https://github.com/damienmaguire/Eno...ova_V2_MPH.sch
This board is designed to control an Enova inverter. I have one of these in my BMW E39 so going to give it a try with Paul's controls.
__________________
Now, Cole, when you shift the gear and that little needle on the ammeter goes into the red and reads 2000 Amps, that's bad.
www.evbmw.com
  Reply With Quote
Old 02-11-2019, 10:03 PM   #3327 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
I did CAN last year, and got it working, and added it onto the newer boards, but I haven't included it since I wasn't really sure what to do with it. I had one board that sent a can throttle message to another board, and then spun a motor, but wasn't sure what to do beyond that. Also, i didn't know the proper format for anything. It was just a made up packet structure. I wasn't familiar with "can to computer" stuff or whatever, and just wasn't sure what to do, so I haven't really gone anywhere with it.

Is there a specific format that things should be sent? And where does it get sent to? And is there a device that sends things to the controller?

I did get field weakening working for the case of a permanent magnet motor:


I'm also ready to test out new code for field weakening of an induction motor, but I need to get a controller working again. When we moved, I lost track of just about everything. HOpefully tomorrow I can get things sorted out.
__________________
kits and boards
  Reply With Quote
Old 02-11-2019, 11:11 PM   #3328 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
Here's also some pictures of the chevy volt board too. Dustin Eward did so much to help me with samples to destroy so I could get this made. One neat thing about it is, you can remove a few resistors, and then instead of a resolver, you can hook up an encoder instead. And it can control 2 separate motors.
Photobucket seems no longer available, so I'm going to try some amazon prime pictures. Here's a test, and if it works, I'll add the volt pictures:
edit: OK that didn't work...

Now trying imgur.com (this is a test):

__________________
kits and boards

Last edited by MPaulHolmes; 02-13-2019 at 01:22 AM..
  Reply With Quote
Old 02-12-2019, 10:11 AM   #3329 (permalink)
Master EcoModder
 
jackbauer's Avatar
 
Join Date: Sep 2009
Location: Ireland
Posts: 734
Thanks: 26
Thanked 304 Times in 171 Posts
I'll be ready to go next week in the track car for testing.
__________________
Now, Cole, when you shift the gear and that little needle on the ammeter goes into the red and reads 2000 Amps, that's bad.
www.evbmw.com
  Reply With Quote
The Following User Says Thank You to jackbauer For This Useful Post:
MPaulHolmes (02-13-2019)
Old 02-12-2019, 01:56 PM   #3330 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 746
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by MPaulHolmes View Post
I did CAN last year, and got it working, and added it onto the newer boards, but I haven't included it since I wasn't really sure what to do with it. I had one board that sent a can throttle message to another board, and then spun a motor, but wasn't sure what to do beyond that. Also, i didn't know the proper format for anything. It was just a made up packet structure. I wasn't familiar with "can to computer" stuff or whatever, and just wasn't sure what to do, so I haven't really gone anywhere with it.

Is there a specific format that things should be sent? And where does it get sent to? And is there a device that sends things to the controller?
I don't believe that there is a specific 'format' to follow.

From Jack Rickard's postings (EVTV.me) on CANbus, the general idea is that the standard packet is 8 bytes. You can split them up into whatever groups you want. Some bits, some bytes, some words.

I would expect that you would accept a command packet with ... maybe :
- rotation forward as a bit
- rotation reverse as a bit
- regen enable as a bit
... and the other 5 bits to be assigned later

Maybe the next 6 bytes split up into 12 bit numbers ... for a speed setpoint, a torque setpoint, a braking setpoint, and a spare setpoint?

That leaves one 8-bit bye as spare at the end

Taking the info that you already generate for status and putting it into the 8 byte format ...
8 bits of status, showing forward rotation, reverse rotation, regen in progress , maybe accelerating, decelerating, and at speed/torque
Present speed in rpm, 0 - 4096 (or maybe rpm / 2 if you need to go over 4000 rpm), torque current 0 - 400.0 for the 0 - 4096 counts, regen current ... and a spare?
The last byte could be a status/fault code ...

You can also use multiple packets. So one packet could be setup information .. like the inductances for the motor, accel and decel rates, throttle range settings, and anything else you can think of

@jackbauer - any requests? Does it make sense to match something that Tesla or some other manufacturer already has so that third party displays work?

__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
  Reply With Quote
Reply  Post New Thread




Similar Threads
Thread Thread Starter Forum Replies Last Post
Paul & Sabrina's cheap DIY 144v motor controller MPaulHolmes Open ReVolt: open source DC motor controller 7381 08-02-2023 11:55 PM
Paul & Sabrina's Cheap EV Conversion MPaulHolmes Fossil Fuel Free 542 11-12-2016 10:09 PM
Contest! Name Paul & Sabrina's controller MetroMPG Forum News & Feedback 120 10-22-2011 02:59 PM



Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com