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

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 11-18-2014, 01:45 PM   #1331 (permalink)
B.O. Zen
 
Join Date: Feb 2009
Location: Folsom, CA
Posts: 208

Pickup - '99 Toyota Tacoma 2wd, Regular Cab, Short Bed
90 day: 34.62 mpg (US)
Thanks: 130
Thanked 140 Times in 59 Posts
Interesting post on how to model the fields, currents, voltages in a brushless motor:

Evolution of Segue:

__________________
  Reply With Quote
The Following User Says Thank You to a8ksh4 For This Useful Post:
e*clipse (11-18-2014)
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 11-18-2014, 02:37 PM   #1332 (permalink)
Permanent Apprentice
 
Join Date: Jul 2010
Location: norcal oosae
Posts: 523
Thanks: 351
Thanked 314 Times in 215 Posts
Quote:
Originally Posted by cts_casemod View Post
Ill give it a try mailing Dave and asking if he could supply some of that stuff he shows on the video. I would not be surprised if he already had al algorithm
to use with texas instaspin libraries. That would make your work significantly easier.
Thank you very much!

I am downloading all the lecture info and lab excersises and animations about the Prius motor - there might be an equation with some #'s there. In my case, I'll probably have to change them a bit (it's not exactly the prius motor, it's an MGR with very similar specs)

It's a goldmine of good info - and really icing on the cake that he uses the same motor for a demo!

BTW, for anyone using ANY motor (not just FOC stuff) here is a quick link to the supplimentary info he gives with the lectures. The lectures are very helpful.
TI E2E Community

- E*clipse
  Reply With Quote
The Following User Says Thank You to e*clipse For This Useful Post:
freebeard (11-18-2014)
Old 11-18-2014, 08:03 PM   #1333 (permalink)
Master EcoModder
 
freebeard's Avatar
 
Join Date: Aug 2012
Location: northwest of normal
Posts: 28,544
Thanks: 8,086
Thanked 8,878 Times in 7,327 Posts
Quote:
Originally Posted by P-hack
You also hijacked an induction motor thread.
Which thread is that? I get so confused. This thread is AC FOC, which I originally encountered as described as Polyphase DC. Then there is Open ReVolt: open source DC motor controller - Fuel Economy, Hypermiling, EcoModding News and Forum - EcoModder.com, which is stubbed off of Fossil Free Fuel but not available at the Main Menu. And the Toyota MGR thread.

Quote:
Originally Posted by cts_casemod
Ill give it a try mailing Dave and asking if he could supply some of that stuff he shows on the video.
Dave Wilson? His videos have taught me everything I know, as I posted somewhere back in this thread. It would be great to connect his thinking back to Toyota Synergy Drive OEM components.

e*clipse -- I'm looking at resolvers and sensorless control, and thinking 'why not both?'. Per motor; for redundancy. Then another microcontroller could be a hypervisor. The Space Shuttle used triple redundancy with a 4th computer for oversight.
  Reply With Quote
Old 11-19-2014, 03:30 PM   #1334 (permalink)
Permanent Apprentice
 
Join Date: Jul 2010
Location: norcal oosae
Posts: 523
Thanks: 351
Thanked 314 Times in 215 Posts
Quote:
Originally Posted by freebeard View Post
Which thread is that? I get so confused. This thread is AC FOC, which I originally encountered as described as Polyphase DC.

e*clipse -- I'm looking at resolvers and sensorless control, and thinking 'why not both?'. Per motor; for redundancy. Then another microcontroller could be a hypervisor. The Space Shuttle used triple redundancy with a 4th computer for oversight.


Regarding using resolvers and sensorless control - I think it's a good idea. If the sensor output of both the resolver and the current sensors are used for the primary motor controller's anyway, then the sensors' information in its raw form could be sent to another computer as well. Both computers would need to be synchronized so the data matches.

An issue would be how to deal with decision hierarchy. It would be interesting to see how the space shuttle deals with 4 levels of this. I guess I would still want an "E-stop" button and an "Override" button.

For a while I was working on a different throttle; it used a hall-effect sensor that put out a PWM waveform that was proportional to its rotary position. If there was a non-PWM signal (high or low) the microcontroller would put out an error signal. It was a good way to ensure an "all ok" signal. Perhaps something like this could be used for between-computer communication for critical information, rather than analog 5V signals or serial bus communication.
  Reply With Quote
Old 11-19-2014, 09:22 PM   #1335 (permalink)
EcoModding Apprentice
 
Join Date: Nov 2012
Location: East Midlands
Posts: 180
Thanks: 13
Thanked 81 Times in 52 Posts
I am actually developing an application using instaspin from texas that uses that concept.

I use the motor encoder to get 200% torque at zero speed and switch to a completely sensorless application when the motor spins fast enough. So far the drawback I've found is that I cannot have a true "coast" state using the sensorless and I am having trouble combining both signals, once the motor is spinning. I also have not been able to test on the vehicle how their sensorless operates at zero speed. At least on bench it seems to work fine.

Right now, sensorless apart I use both the vehicle speed sensor and the motor encoder. I simply ignore the motor encoder below a certain speed and use open loop. Then (generally 100RPM+) I switch to closed loop. This is to avoid encoder noise at low speeds.

Lots of options really... I wonder how low can Paul sensorless operate. Texas is claimed to track down to 1Hz. Idd be queen to test that on a vehicle. Apparently some guys did that on a bus and they actually seem quite happy...

https://

Last edited by cts_casemod; 11-20-2014 at 08:49 AM..
  Reply With Quote
The Following 4 Users Say Thank You to cts_casemod For This Useful Post:
dave koller (11-21-2014), e*clipse (11-19-2014), MPaulHolmes (11-20-2014), thingstodo (11-19-2014)
Old 11-21-2014, 10:28 PM   #1336 (permalink)
EcoModding Apprentice
 
Join Date: Nov 2012
Location: East Midlands
Posts: 180
Thanks: 13
Thanked 81 Times in 52 Posts
Hi people,

I just installed my pic version of the controller on the car, but for some reason it is lacking quite a bit of power. Do you guys have some C code for space vector modulation I could borrow?

Failed that I am thinking in adding up a 3rd harmonic sine table.
  Reply With Quote
Old 11-22-2014, 05:34 PM   #1337 (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
Edit: haha, here's a shorter version that does the same thing.
Here's the space vector part of the code:
Va, Vb, and Vc are the 3 phase voltages. pdc1, 2, and 3 are temp variables for the 3 duties. So, at the end you would do

PDC1 = pdc1;
PDC2 = pdc2;
PDC3 = pdc3;

Code:
void SpaceVectorModulation() { 
	// I know you can do it faster than this, but I just want it to work.  I'll optimize later.
	// if Vc is smallest of the 3, then do the following...
	if (Vc <= Va && Vc <= Vb) {  // Vc <= Vb <= Va or Vc <= Va <= Vb.  They both have the same
		// Q1 & Q2.
		pdc1 = Va-Vc;
		pdc2 = Vb-Vc;
		pdc3 = 0;
	}
	else if (Va <= Vc && Va <= Vb) { // Va is smallest
		// Q3 & Q4
		pdc1 = 0;
		pdc2 = Vb - Va;
		pdc3 = Vc - Va;
	}
	else if (Vb <= Va && Vb <= Vc) { // Vb is smallest
		// Q5 & Q6
		pdc1 = Va-Vb;
		pdc2 = 0;
		pdc3 = Vc-Vb;
	}	
}
__________________
kits and boards

Last edited by MPaulHolmes; 11-24-2014 at 01:34 PM..
  Reply With Quote
The Following 3 Users Say Thank You to MPaulHolmes For This Useful Post:
cts_casemod (11-23-2014), e*clipse (11-24-2014), mpgmike (02-06-2022)
Old 11-24-2014, 09:42 PM   #1338 (permalink)
Permanent Apprentice
 
Join Date: Jul 2010
Location: norcal oosae
Posts: 523
Thanks: 351
Thanked 314 Times in 215 Posts
YEA!

I got some itty-bitty circuit boards today!

I'll start soldering and post a pic tomorrow.

- E*clipse
  Reply With Quote
The Following 2 Users Say Thank You to e*clipse For This Useful Post:
MPaulHolmes (11-24-2014), thingstodo (11-25-2014)
Old 11-24-2014, 11:48 PM   #1339 (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
Awesome!!!!!!!!!! What is your assembly process? Do you have to modify a toaster oven?
__________________
kits and boards
  Reply With Quote
Old 11-25-2014, 04:44 PM   #1340 (permalink)
Permanent Apprentice
 
Join Date: Jul 2010
Location: norcal oosae
Posts: 523
Thanks: 351
Thanked 314 Times in 215 Posts
Quote:
Originally Posted by MPaulHolmes View Post
Awesome!!!!!!!!!! What is your assembly process? Do you have to modify a toaster oven?
I didn't modify my toaster oven. I've seen things where people added fancy PID controls; I just got a good digital thermometer and documented the response.

I did get one only for soldering - they're pretty cheap anyway - just so whatever weird fumes come from soldering don't infect our food.

For this job, I'll just solder it by hand. Hopefully I'll retain some sanity - this is the tightest board I've ever dealt with. LOL!

Here's a pic of the new resolver board, with some other stuff to reference size.



That's my dog's tooth. It was kicked out by my wife's horse when he was bothering her.

  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