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

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 09-16-2016, 02:23 PM   #2841 (permalink)
EcoModding Lurker
 
Join Date: May 2016
Location: Detroit
Posts: 27
Thanks: 0
Thanked 15 Times in 11 Posts
Ok. Let's make sure we coordinate via github so nothing gets lost and we can support the various generations. If you toss me the code for the new features I can make sure we're all on the same page.

I already have a feature edit that's ready for release: command aliases. Example:
instead of "current-sensor-amps-per-volt" you can just type in "csapv" and it has the same result. all the old commands are intact, the aliases just save you annoying typing. i'm also working on adding sin/cos encoder support.

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 09-16-2016, 02:31 PM   #2842 (permalink)
EcoModding Lurker
 
Join Date: Sep 2016
Location: Alberta, Canada
Posts: 14
Thanks: 3
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by wehzeh View Post
Ok. i'm also working on adding sin/cos encoder support.
That sounds interesting, what is that? I'm working on something that is possibly similar. Built in resolver?
Attached Thumbnails
Click image for larger version

Name:	resolver.jpg
Views:	86
Size:	158.2 KB
ID:	20555  
  Reply With Quote
Old 09-16-2016, 02:39 PM   #2843 (permalink)
EcoModding Lurker
 
Join Date: May 2016
Location: Detroit
Posts: 27
Thanks: 0
Thanked 15 Times in 11 Posts
Quote:
Originally Posted by ricemodder View Post
That sounds interesting, what is that? I'm working on something that is possibly similar. Built in resolver?
It's almost a resolver but not quite:

http://www.rls.si/fileuploader/downl...ic_encoder.pdf

That's an example of the one built in to my motor (DLC-28 e.g. Motenergy ME1302). It only takes V_dd, GND, and Shied (always optional, amirite?) and outputs 2 lines: sinusoids offset by 90 degrees with an aplitude of 3/5*V_dd.

In theory, it should be as simple as probing the pins with an ADC read (they output analog voltage) and doing some reverse trig to see where we are. It's a good middle ground in the whole encoder/resolver thing--the tight resolution of a resolver with some of the simplicity of an encoder.
  Reply With Quote
Old 09-16-2016, 02:52 PM   #2844 (permalink)
EcoModding Lurker
 
Join Date: Sep 2016
Location: Alberta, Canada
Posts: 14
Thanks: 3
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by wehzeh View Post
It's almost a resolver but not quite:

http://www.rls.si/fileuploader/downl...ic_encoder.pdf

That's an example of the one built in to my motor (DLC-28 e.g. Motenergy ME1302). It only takes V_dd, GND, and Shied (always optional, amirite?) and outputs 2 lines: sinusoids offset by 90 degrees with an aplitude of 3/5*V_dd.

In theory, it should be as simple as probing the pins with an ADC read (they output analog voltage) and doing some reverse trig to see where we are. It's a good middle ground in the whole encoder/resolver thing--the tight resolution of a resolver with some of the simplicity of an encoder.

I'm finding you can compute the instantaneous position but it is a hell of a challenge to be precise with no lag.

I'm thinking you need to incorporate motor expected inertial max/min change.

Losing wind in my sail.

Let me know how it goes.
  Reply With Quote
Old 09-18-2016, 05:29 PM   #2845 (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 think I figured out yesterday why the driver boards may have failed for Eclipse but not me, and also why the previous board, with the built-in resolver to encoder chip didn't work. Basically, I've always programmed the attiny (even the surface mount one) before soldering it in (I have a cool little thing that grabs surface mount legs so you can put one in, program, and then remove). I had thought programming in system wouldn't be a problem, but what i didn't think of was, when the attiny is unprogrammed, the 2 "outputs" are inputs by default, so the 6 drivers' 12 input pins are left floating, so they could be high or low. Well, if one is randomly high, and another is randomly low, the driver output will have a constant DC load of about 2.7Ohm at 24v!! Needless to say, the little chip 6amp driver would quietly fail in that case the first time you turn on the board to program the ATTiny.

I didnt' see that happen because I always programmed the attinys before soldering them (just sort of randomly, since I had programmed several and had them laying around).

The fix is to add a weak pull down resistor on the 2 ATTINY push pull pins to ground. LIke 47k or whatever. Then, all the drivers are off while the attiny gets programmed.
__________________
kits and boards
  Reply With Quote
The Following 2 Users Say Thank You to MPaulHolmes For This Useful Post:
ricemodder (09-26-2016), thingstodo (09-18-2016)
Old 09-18-2016, 06:37 PM   #2846 (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
Wow! I can now use the little 15watt supply too with those 2 pull down resistors added. It must be that the attiny, even programmed, (due to the delay of like 50mS or whatever), starts out dead, comes alive, but after like 60mS, there's already been time for large surges through the push pull drivers, so that I've had to use the 50watt 12v in, 24v out power supply for powering the board. Now it can use the tiny 15 watt! Oh joy.
__________________
kits and boards
  Reply With Quote
The Following 2 Users Say Thank You to MPaulHolmes For This Useful Post:
ricemodder (09-26-2016), thingstodo (09-18-2016)
Old 09-19-2016, 11:44 AM   #2847 (permalink)
Dreamer
 
Join Date: Nov 2013
Location: Australia
Posts: 350
Thanks: 95
Thanked 214 Times in 151 Posts
Quote:
Originally Posted by MPaulHolmes View Post
I got a new board made! I just want to mention that I have really appreciated having Astro's controller for testing. I"m going to solder him one of the new boards.
The board looks amazing. Well done.

And the longer you have the controller the better it gets so i will definitely not be rushing you.

Quote:
Originally Posted by MPaulHolmes View Post
This one includes voltage monitoring, a 2nd temperature, and also a brake regen "throttle". And it's all 1206 and 1210 suface mount resistors and capacitors. No 0603 this time.
Mmmm.... Regen. Love it. My daily commute is about 30 minutes of traffic lights each way so regen will certainly make a difference.

Quote:
Originally Posted by MPaulHolmes View Post
I would take a picture of a couple of the boards that are almost soldered, but my stupid apple phone is a daughter of debauchery, and needs to be flushed down the toilet.
I know the Apple pain. My girls have Ipads and recently i thought. I'll download all the photos off of them as they were getting a little full. Yeah, right. What you want to take your photos out of appleland?!? Not allowed. Ended up having to pay for an app that acted like a web server that served up an archive of all the photos to a browser on a real PC. Talk about convoluted.
  Reply With Quote
The Following User Says Thank You to Astro For This Useful Post:
MPaulHolmes (09-26-2016)
Old 09-26-2016, 08:29 PM   #2848 (permalink)
EcoModding Lurker
 
Join Date: Sep 2016
Location: Alberta, Canada
Posts: 14
Thanks: 3
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by MPaulHolmes View Post
Wow! I can now use the little 15watt supply too with those 2 pull down resistors added. It must be that the attiny, even programmed, (due to the delay of like 50mS or whatever), starts out dead, comes alive, but after like 60mS, there's already been time for large surges through the push pull drivers, so that I've had to use the 50watt 12v in, 24v out power supply for powering the board. Now it can use the tiny 15 watt! Oh joy.
Improvements - that's great to hear. Is it possible this could happen on our rev 1 boards during the startup of the controller since the attiny starts up in a float condition?
  Reply With Quote
Old 09-27-2016, 01:08 PM   #2849 (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
Yes, exactly. A pull-down on the 2 ATTiny pins on the original board should allow the control board to be powered by a 15watt supply rather than the larger 50w supply.
__________________
kits and boards
  Reply With Quote
Old 09-28-2016, 12:27 AM   #2850 (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
Yes, exactly. A pull-down on the 2 ATTiny pins on the original board should allow the control board to be powered by a 15watt supply rather than the larger 50w supply.
Is that for both the DC Controller and the AC Controller?

  Reply With Quote
The Following User Says Thank You to thingstodo For This Useful Post:
MPaulHolmes (09-28-2016)
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