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, 06:35 PM   #1661 (permalink)
EcoModder Student
 
esoneson's Avatar
 
Join Date: Nov 2008
Location: Youngsville, NC
Posts: 117
Thanks: 11
Thanked 14 Times in 13 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-10-2009, 11:45 PM   #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,362
Thanked 1,202 Times in 765 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, 02:55 AM   #1663 (permalink)
EcoModding Lurker
 
Join Date: May 2009
Location: Bucharest,RO and Copenhagen,DK
Posts: 42
Thanks: 0
Thanked 1 Time in 1 Post
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, 04: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, 10:04 AM   #1665 (permalink)
EcoModding Lurker
 
Join Date: May 2009
Location: Bucharest,RO and Copenhagen,DK
Posts: 42
Thanks: 0
Thanked 1 Time in 1 Post
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, 10: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 269 Times in 212 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, 11:14 AM   #1667 (permalink)
EcoModding Lurker
 
Join Date: May 2009
Location: Bucharest,RO and Copenhagen,DK
Posts: 42
Thanks: 0
Thanked 1 Time in 1 Post
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, 11:17 AM   #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 269 Times in 212 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, 11:20 AM   #1669 (permalink)
EcoModding Lurker
 
Join Date: May 2009
Location: Bucharest,RO and Copenhagen,DK
Posts: 42
Thanks: 0
Thanked 1 Time in 1 Post
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, 11:26 AM   #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 269 Times in 212 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 3431 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 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com