Go Back   EcoModder Forum > EcoModding > Fossil Fuel Free > Open ReVolt: open source DC motor controller
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 07-21-2014, 03:06 AM   #6721 (permalink)
Dreamer
 
Join Date: Nov 2013
Location: Australia
Posts: 350
Thanks: 95
Thanked 214 Times in 151 Posts
Quote:
Originally Posted by jedsmd View Post
Interesting
When I load the program, with the controller in the truck, using the Pickit 3, Mplab cannot see the chip unless the controller power is on. I just thought that was the way you were supposed to do it.
I don't yet have one of Paul's fantastic controllers so can't say for sure. The circuits i am messing about with are for a BMS so still a PIC but a different model.
I assumed the In Circuit Programming would be the same for all but maybe not.
There may be too much circuitry on the 5v rail for the pickit3 to power it so powering the circuit and using the pickit3 to program but not supply power may be the only way to go.

Paul, which method did you use? Did you try both?

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 07-21-2014, 06:18 AM   #6722 (permalink)
EV Connoisseur
 
Join Date: Aug 2010
Location: Amsterdam
Posts: 309
Thanks: 70
Thanked 109 Times in 90 Posts
I always thought the circuit must be powered down.. because other components could interfere. So I never tried it powered on.
  Reply With Quote
The Following User Says Thank You to flores For This Useful Post:
MPaulHolmes (07-21-2014)
Old 07-21-2014, 09:54 AM   #6723 (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,368
Thanked 1,202 Times in 765 Posts
I always just turn the DC-DC power on. I didn't even know that the pickit had its own power as an option!
__________________
kits and boards
  Reply With Quote
Old 07-21-2014, 02:50 PM   #6724 (permalink)
EV Connoisseur
 
Join Date: Aug 2010
Location: Amsterdam
Posts: 309
Thanks: 70
Thanked 109 Times in 90 Posts
Quote:
Originally Posted by flores View Post
I'm trying to get that rs232 shield working but fail miserably.. I don't get it.. it's just a simple max232
Okay, turns out that I needed to swap rx and tx.. it works now.. next up.. connecting the raspberry
  Reply With Quote
The Following User Says Thank You to flores For This Useful Post:
MPaulHolmes (07-21-2014)
Old 07-21-2014, 05:26 PM   #6725 (permalink)
EV Connoisseur
 
Join Date: Aug 2010
Location: Amsterdam
Posts: 309
Thanks: 70
Thanked 109 Times in 90 Posts
Paul, is the throttle reversibility configurable now? Or I'm I stuck with an inversed throttle since the new firmware?
  Reply With Quote
Old 07-21-2014, 05:57 PM   #6726 (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,368
Thanked 1,202 Times in 765 Posts
Haha no, for now I just made 2 separate hex files. Yours is the regular 0-5k means zero to full throttle. I was trying not to change too many things at once.
__________________
kits and boards
  Reply With Quote
Old 07-22-2014, 02:58 AM   #6727 (permalink)
EV Connoisseur
 
Join Date: Aug 2010
Location: Amsterdam
Posts: 309
Thanks: 70
Thanked 109 Times in 90 Posts
Quote:
Originally Posted by MPaulHolmes View Post
Haha no, for now I just made 2 separate hex files. Yours is the regular 0-5k means zero to full throttle. I was trying not to change too many things at once.
Then I think I got the wrong one.. since flashing it is reversed.
  Reply With Quote
The Following User Says Thank You to flores For This Useful Post:
MPaulHolmes (07-22-2014)
Old 07-22-2014, 10:56 AM   #6728 (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,368
Thanked 1,202 Times in 765 Posts
Oh my gosh. Let me go see what I did. I'm so sorry.
__________________
kits and boards
  Reply With Quote
Old 07-22-2014, 03:08 PM   #6729 (permalink)
EV Connoisseur
 
Join Date: Aug 2010
Location: Amsterdam
Posts: 309
Thanks: 70
Thanked 109 Times in 90 Posts
So.. hardware side of things work.

Here you see a putty session on the raspberry capturing the rtd data.. how cool is that:


And this is the setup:


The controller is connected to the shield with the max232, that has a voltage divider on the tx to bring it down to 3.3v and that is connected to the raspberry
  Reply With Quote
The Following User Says Thank You to flores For This Useful Post:
MPaulHolmes (07-22-2014)
Old 07-22-2014, 03:42 PM   #6730 (permalink)
EV Connoisseur
 
Join Date: Aug 2010
Location: Amsterdam
Posts: 309
Thanks: 70
Thanked 109 Times in 90 Posts
Here I am running my own c# mono program giving the controller the config command..


Now I have to wire this to a webserver on the raspberry

  Reply With Quote
The Following User Says Thank You to flores For This Useful Post:
MPaulHolmes (07-22-2014)
Reply  Post New Thread


Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Paul and Sabrina's Cheap 3 Phase Inverter (AC Controller) with Field Oriented Control MPaulHolmes Fossil Fuel Free 3480 05-04-2022 05:43 PM
Paul & Sabrina's Cheap EV Conversion MPaulHolmes Fossil Fuel Free 542 11-12-2016 09:09 PM
Three Dirt Cheap DIY Electric Cars - Part 5 SVOboy EcoModder Blog Discussion 0 12-12-2008 04:10 PM



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