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 06-10-2009, 07:35 PM   #1661 (permalink)
EcoModder Student
 
esoneson's Avatar
 
Join Date: Nov 2008
Location: Youngsville, NC
Posts: 117
Thanks: 11
Thanked 12 Times in 11 Posts
Quote:
Originally Posted by charlie_fd View Post
Yuppie!!! My mock-up controller section is now reporting via serial link the throttle, pwm value and current.

The code works! I've used a FIFO queue (ring-buffer) filled with values on timer2 overflow. The actual transmission is done using buffer empty interrupt. The impact on the code is thus minimal.

Next steps: Implement receive part so I can send 1 byte commands to the controller ("inhibit reporting" for instance).
Fantastic progress Charlie!
Data logging and Dynamic configuration.
Now all we need is to save the settings in eprom and away we go!

Great work Charlie, no matter what the code format is.

Eric

__________________
1995 BMW 318i EV in the making
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 06-11-2009, 12:45 AM   #1662 (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,119 Times in 734 Posts
I'm like 80% done converting the schematic to ExpressSCH. I'm also going to do the layout in ExpressPCB, which is also free with no size limitations. It seems like a decent choice for people that want to modify it to whatever they want. Free with no size constraints is good.
__________________
kits and boards
  Reply With Quote
Old 06-11-2009, 03:55 AM   #1663 (permalink)
EcoModding Lurker
 
Join Date: May 2009
Location: Bucharest,RO and Copenhagen,DK
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by MPaulHolmes View Post
That's awesome Adrian!!! How complete is your control board? Did you use an HIN202CP?
I used a max232. The board is just the brain part. A pot is connected to the pin for throttle, a LED to the output pin so I can see the PWM output. There is no current sensor. It will help me test the communications part until I get the real control board.
  Reply With Quote
Old 06-11-2009, 05:40 AM   #1664 (permalink)
EcoModding Lurker
 
blowncurtice's Avatar
 
Join Date: Mar 2009
Location: Victoria Australia
Posts: 30
Thanks: 0
Thanked 4 Times in 2 Posts
Paul I have just been rereading and I see on page 107 that you only started to learn electronics last December . Terrific there is hope for me yet however I think I will be taking a free ride on your back along with many others for your controller . John
  Reply With Quote
Old 06-11-2009, 11:04 AM   #1665 (permalink)
EcoModding Lurker
 
Join Date: May 2009
Location: Bucharest,RO and Copenhagen,DK
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
If other people would like to test the serial link, I've uploaded the changes in the r16 on svn. Here are the modifications: Changeset 16 for trunk/HighVoltageController.c - Open ReVolt - Trac

For testing conect a null modem cable to your pc and receive at 19200baud with 8n1. Any java programmer outthere wants to make the client for this?

Ups! I had commented out the HighPedalLockout ... Restored it in r17.
  Reply With Quote
Old 06-11-2009, 11:31 AM   #1666 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location:
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 267 Times in 210 Posts
Charlie, can you explain to Paul how he proceeds to make changes to the program now?
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 06-11-2009, 12:14 PM   #1667 (permalink)
EcoModding Lurker
 
Join Date: May 2009
Location: Bucharest,RO and Copenhagen,DK
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
I don't seem to be able to explain properly. Maybe someone else should try?

My answer would be:

(for a new local working copy):

- "Checkout" the project to the local disk
- If you don't have local modifications continue to work on the trunk/HighVoltageController.c file as it came from the svn.
- If you allready have modifications since your last commit replace the entire content of trunk/HighVoltageController.c with your code. Then "SVN Update" (will merge the modifications from the svn with your own). Then "SVN Commit" will publish your modifications to the svn.
- continue to work on this file from now on. Always do "update" before changing thinks and commit when your are satisfied with your changes.

(for an already existing local copy):
- Just do "SVN Update"
- Continue to work on it
  Reply With Quote
Old 06-11-2009, 12:17 PM   #1668 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location:
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 267 Times in 210 Posts
Problem is that merge might to horrible things to his local copy if he doesn't just go get the latest before going back to work on it.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 06-11-2009, 12:20 PM   #1669 (permalink)
EcoModding Lurker
 
Join Date: May 2009
Location: Bucharest,RO and Copenhagen,DK
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by dcb View Post
Problem is that merge might to horrible things to his local copy if he doesn't just go get the latest before going back to work on it.
I did work on his last published version (09.06.2009). Merge should not be a problem.
  Reply With Quote
Old 06-11-2009, 12:26 PM   #1670 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location:
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 267 Times in 210 Posts
not a problem for who?

__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
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 3477 05-24-2021 04:28 PM
Paul & Sabrina's Cheap EV Conversion MPaulHolmes Fossil Fuel Free 542 11-12-2016 10:09 PM
Three Dirt Cheap DIY Electric Cars - Part 5 SVOboy EcoModder Blog Discussion 0 12-12-2008 05:10 PM



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