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, 06:59 PM   #4691 (permalink)
EcoModding Lurker
 
Join Date: Nov 2009
Location: Scottish Borders, Scotland
Posts: 92
Thanks: 7
Thanked 33 Times in 16 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, 08:05 PM   #4692 (permalink)
EcoModder
 
Join Date: Mar 2010
Location: New Zealand
Posts: 181
Thanks: 0
Thanked 33 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, 10:22 PM   #4693 (permalink)
ReVolt Enthusiast
 
Join Date: Jun 2009
Location: Michigan, USA
Posts: 239
Thanks: 97
Thanked 47 Times in 40 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-04-2011, 12:01 AM   #4694 (permalink)
EcoModding Lurker
 
Join Date: Mar 2009
Location: Ohio
Posts: 16
Thanks: 8
Thanked 15 Times in 6 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-04-2011 at 12:31 AM..
  Reply With Quote
Old 05-04-2011, 09:06 AM   #4695 (permalink)
Master EcoModder
 
Join Date: Apr 2009
Location: Charlton MA, USA
Posts: 463

EVVette - '71 Chevy Corvette Coupe
Thanks: 31
Thanked 183 Times in 94 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, 02:31 PM   #4696 (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 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, 02:45 PM   #4697 (permalink)
Master EcoModder
 
jackbauer's Avatar
 
Join Date: Sep 2009
Location: Ireland
Posts: 734
Thanks: 26
Thanked 304 Times in 171 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, 02:49 PM   #4698 (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
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, 08:07 PM   #4699 (permalink)
EcoModding Lurker
 
Join Date: Mar 2009
Location: Ohio
Posts: 16
Thanks: 8
Thanked 15 Times in 6 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, 08:13 PM   #4700 (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 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-05-2011)
Reply  Post New Thread




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 06:43 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 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com