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

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 03-16-2016, 12:37 PM   #2651 (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
Ya, you are going to have to have no resistance on the lines. And You can still tune the PI loop with as low as 12vDC bus. I wouldn't do testing with 300vDC.

__________________
kits and boards
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 03-16-2016, 12:41 PM   #2652 (permalink)
EcoModding Lurker
 
Join Date: Mar 2016
Location: italy
Posts: 40
Thanks: 5
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by MPaulHolmes View Post
Ya, you are going to have to have no resistance on the lines. And You can still tune the PI loop with as low as 12vDC bus. I wouldn't do testing with 300vDC.
My next tests are going to be with 48v with no bulbs in series

I think you know that I'm running the code with the dspic30f6010a .
I have another question that my encoder is 1024 ppr but I have to configure with 2048 tick per Rev. To get correct speed...
In the code I defined generic Ac induction motor
  Reply With Quote
Old 03-16-2016, 12:52 PM   #2653 (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
Type the following in realterm (or whatever serial streaming software you are using):
stream-poscnt 1
data-stream-period 100

Then, make one complete revolution (turning the motor slowly by hand), noting the starting value for poscnt and the ending value for poscnt.

The difference between the 2 values for poscnt will be 4 times the resolution of your encoder.
__________________
kits and boards

Last edited by MPaulHolmes; 03-16-2016 at 01:05 PM..
  Reply With Quote
Old 03-16-2016, 01:21 PM   #2654 (permalink)
EcoModding Lurker
 
Join Date: Mar 2016
Location: italy
Posts: 40
Thanks: 5
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by MPaulHolmes View Post
Type the following in realterm (or whatever serial streaming software you are using):
stream-poscnt 1
data-stream-period 100

Then, make one complete revolution (turning the motor slowly by hand), noting the starting value for poscnt and the ending value for poscnt.

The difference between the 2 values for poscnt will be 4 times the resolution of your encoder.
ticks per rev: 1024 clockwise rotation
00000,
00000,
00000,
00001,
00002,
00000,
00001,
00003,
00001,
00002,
00003,
00000,
00002,
00004,
00000,
00001,
00002,
00000,
00002,
00003,
00000,
00001,
00002,
00000,

anticlockwise:
00000,
65535,
65534,
00000,
65535,
65533,
00000,
65534,
65532,
00000,
65533,
65531,
65535,
65533,
65535,
65534,
65532,
00000,
65534,
65533,
65535,
65534,
65534,
00000,
00000,

ticks per rev: 2048 clockwise rotation

00000,
00000,
00000,
00001,
00001,
00002,
00000,
00002,
00002,
00001,
00002,
00000,
00001,
00003,
00000,
00002,
00004,
00000,
00001,
00002,
00001,
00001,
00003,
00000,
00001,
00003,
00000,
00001,
00003,
00000,
00000,
00000,
00000,

anticlockwise:

00000,
00000,
65529,
65534,
65531,
00000,
65534,
65532,
00000,
65534,
65532,
65535,
65534,
65535,
65535,
65534,
65533,
65534,
65534,
00000,
65535,
65534,
00000,
00000,
  Reply With Quote
Old 03-16-2016, 01:25 PM   #2655 (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
OK, the encoder isn't working. The encoder ticks per revolution setting doesn't matter for this part. This should just be recording the ticks the controller is receiving from the encoder. And it's staying at 0 +/- 3 ticks.
__________________
kits and boards
  Reply With Quote
Old 03-16-2016, 01:45 PM   #2656 (permalink)
EcoModding Lurker
 
Join Date: Mar 2016
Location: italy
Posts: 40
Thanks: 5
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by MPaulHolmes View Post
OK, the encoder isn't working. The encoder ticks per revolution setting doesn't matter for this part. This should just be recording the ticks the controller is receiving from the encoder. And it's staying at 0 +/- 3 ticks.
I will check and let you know
But signals with oscilloscope are OK on encoder... What is causing the problem
  Reply With Quote
Old 03-16-2016, 02:32 PM   #2657 (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 would check the pinout. Like, is qea going to index, or whatever. and do the signals go from 0 to 5v? index is ignored, by the way.
__________________
kits and boards
  Reply With Quote
Old 03-16-2016, 06:28 PM   #2658 (permalink)
EcoModding Lurker
 
Join Date: Mar 2016
Location: italy
Posts: 40
Thanks: 5
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by MPaulHolmes View Post
I would check the pinout. Like, is qea going to index, or whatever. and do the signals go from 0 to 5v? index is ignored, by the way.
hello paul i just tested the encoder... it is working but i noticed that output A,B of encoder gives me 4 volt and on dspic pins we have: 0 - 3.8 volt.. is it ok?
  Reply With Quote
Old 03-17-2016, 03:50 AM   #2659 (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
Build log for my DC controller

March 16.

We got the various test stuff moved out to the golf cart:
- battery cables
- motor cables
- contactor
- controller
- throttle
- laptop to program the controller

We got everything checked, loaded up the debug code
did a first spin
then loaded the production code
repeated the spin
did a first run with the golf cart
did a speed run with max speed at 24V, at 100A max battery amps
decided not to mess with parameters, tuning
Paul released version 1.10 - stable release
I think he`s posting to Github

Raw video - before editing
https://youtu.be/xXwJUlZ6tFM

WE HAVE A SUCCESSFUL TEST!!!
  Reply With Quote
The Following 2 Users Say Thank You to thingstodo For This Useful Post:
mora (03-17-2016), MPaulHolmes (03-17-2016)
Old 03-17-2016, 12:38 PM   #2660 (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
Hurray! It worked! Michael is so much fun to work with! Notice that the power section is identical to the AC controller. The only difference is what board plugs into the IGBTs.

shaggy:
4v? Are you powering the control board with 4 volts?

__________________
kits and boards
  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