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 05-03-2011, 05:59 PM   #4691 (permalink)
EcoModding Lurker
 
Join Date: Nov 2009
Location: Scottish Borders, Scotland
Posts: 92
Thanks: 7
Thanked 27 Times in 13 Posts
Finally on the road.

It's taken a while, it was over a year ago when I built the controller, but finally got the car together and drove the car home today. Controller feels good! Very pleased to be back on the road with an EV. Thanks to Paul and everyone else who has contributed to this project.

Greg

  Reply With Quote
The Following 2 Users Say Thank You to Greg Fordyce For This Useful Post:
MPaulHolmes (05-03-2011), mrbigh (05-03-2011)
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 05-03-2011, 07:05 PM   #4692 (permalink)
EcoModder
 
Join Date: Mar 2010
Location: New Zealand
Posts: 181
Thanks: 0
Thanked 32 Times in 20 Posts
Quote:
Originally Posted by MPaulHolmes View Post
Hi Jim! It's the Melexis HB:

.
Seems they make a thing called the CSA-1V under the brand "Sentron" which appears to be identical as far as I can see.
__________________
Sometimes I sits and thinks and sometimes I just sits.
  Reply With Quote
Old 05-03-2011, 09:22 PM   #4693 (permalink)
ReVolt Enthusiast
 
Join Date: Jun 2009
Location: Michigan, USA
Posts: 239
Thanks: 98
Thanked 41 Times in 36 Posts
Quote:
Originally Posted by MPaulHolmes View Post
C1 is 0.001uF
C2 is 0.001uF
C3 is 0.1uF
C4 is 100pF

Hi Paul,

I put together an assembly drawing of what you posted.

I added the sensor assembly drawing into the revolt wiki: Open ReVolt/PCB Schematics - EcoModder

- Mark
  Reply With Quote
The Following User Says Thank You to sawickm For This Useful Post:
MPaulHolmes (05-03-2011)
Old 05-03-2011, 11:01 PM   #4694 (permalink)
EcoModding Lurker
 
Join Date: Mar 2009
Location: Ohio
Posts: 16
Thanks: 8
Thanked 13 Times in 5 Posts
I've been trying to get through this thread, but it's just to long. I've built the 500 amp controller from Paul's kit, but I can't get the source code posted on the Wiki to run.
I'm using Programmer's Notepad with AVR Dude, and Sparkfun's Pocket AVR Programmer. I can program the 168 fine, I've written my own code to test the LED, UART, and ADC. It's not a programmer or communication problem, it's something with the Paul's code (or the way my complier interprets it). I'm a fare programmer but for the life of me I can't figure this out. I've take the code from the wiki, add this:

int main(void)
{
int x;
unsigned tm_show_data;
unsigned char cmdpos, cmdok;
char cmd[32];
char str[80];

DDRD = 0b11000000;
PORTD = 0b01000000;


but the idle Led never lights up.

Has anyone else used my same setup? Any advice? Thanks guys...

PS. Is there a controller help thread where I should have posted this?

Last edited by Camaro; 05-03-2011 at 11:31 PM..
  Reply With Quote
Old 05-04-2011, 08:06 AM   #4695 (permalink)
Master EcoModder
 
Join Date: Apr 2009
Location: Charlton MA, USA
Posts: 463

EVVette - '71 Chevy Corvette Coupe
Thanks: 31
Thanked 172 Times in 92 Posts
Quote:
Originally Posted by Camaro View Post
I've been trying to get through this thread, but it's just to long. I've built the 500 amp controller from Paul's kit, but I can't get the source code posted on the Wiki to run.
I'm using Programmer's Notepad with AVR Dude, and Sparkfun's Pocket AVR Programmer. I can program the 168 fine, I've written my own code to test the LED, UART, and ADC. It's not a programmer or communication problem, it's something with the Paul's code (or the way my complier interprets it). I'm a fare programmer but for the life of me I can't figure this out. I've take the code from the wiki, add this:

int main(void)
{
int x;
unsigned tm_show_data;
unsigned char cmdpos, cmdok;
char cmd[32];
char str[80];

DDRD = 0b11000000;
PORTD = 0b01000000;


but the idle Led never lights up.

Has anyone else used my same setup? Any advice? Thanks guys...

PS. Is there a controller help thread where I should have posted this?
Is there a special reason you want to compile your own firmware?

If not, I suggest you just download it from my website. Index of /firmware

They are already compiled and tested. Its a full archive of all the versions of FW.

Im not sure why it wont blink the LED.

Try this out.

Code:
#include <avr/io.h>
#include <util/delay.h>
#include <avr/iom168.h>

int main (void)
{
	DDRD = 0xFF;

	while (1) {

		PORTD = 0xFF; //Set PORTD high
		_delay_ms(500);

		PORTD = 0x00; // Set PORTD low
		_delay_ms(500);
	}
	return 0;
}
-Adam
__________________
www.EVVette.com - 1971 Corvette Coupe Conversion to all Electric!
www.AdamBrunette.com - Machining, CNC, Robotics and Electronics.

You can download RTD Explorer for the Cougar controllers at www.EVVette.com
  Reply With Quote
The Following User Says Thank You to adamj12b For This Useful Post:
Camaro (05-04-2011)
Old 05-04-2011, 01:31 PM   #4696 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,831

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,367
Thanked 1,115 Times in 730 Posts
I just tested the Melexis HB current sensor calibration in the car to verify that the board spacing really does provide the full 1000 amp range:


Hurray! It's around 1020 amps or somewhere around there for max current.
__________________
kits and boards
  Reply With Quote
Old 05-04-2011, 01:45 PM   #4697 (permalink)
Master EcoModder
 
jackbauer's Avatar
 
Join Date: Sep 2009
Location: Ireland
Posts: 734
Thanks: 26
Thanked 296 Times in 168 Posts
Hey Paul when i saw the title i thought you'd held the brake on and floored it!! What size busbar are you using?
__________________
Now, Cole, when you shift the gear and that little needle on the ammeter goes into the red and reads 2000 Amps, that's bad.
www.evbmw.com
  Reply With Quote
Old 05-04-2011, 01:49 PM   #4698 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,831

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,367
Thanked 1,115 Times in 730 Posts
haha, no. I just went to 10% and checked the full range with a proportion, trusting in the linearity of the melexis. Man, I think it would be really bad to floor it with the e-brake on.

Edit: Oops, the bus bar is a 3/8" x 3/4".
__________________
kits and boards
  Reply With Quote
Old 05-04-2011, 07:07 PM   #4699 (permalink)
EcoModding Lurker
 
Join Date: Mar 2009
Location: Ohio
Posts: 16
Thanks: 8
Thanked 13 Times in 5 Posts
Thanks Adam,
That code works too. I've tested the LED, UART, and ADC with my own short code, and they all work fine. It's not a hardware or communication problem. I'm about to try the hex files on the wiki, but I want to be able to add my own code, that means I'll need to solve this problem.

Is everyone else using ARV studio with a STK500 type programmer?
  Reply With Quote
Old 05-04-2011, 07:13 PM   #4700 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,831

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,367
Thanked 1,115 Times in 730 Posts
I'm using an um... oh crap, what is it called?! avrisp mk2.

-Paul

__________________
kits and boards
  Reply With Quote
The Following User Says Thank You to MPaulHolmes For This Useful Post:
Camaro (05-04-2011)
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 3471 06-01-2020 10:53 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 - 2020, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com