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 02-11-2018, 04:01 PM   #7211 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 746
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by jbman View Post
Well, I'm getting no response over serial no matter what software I load on the chip, what terminal application I use, what cable I use, or what computer I use. It doesn't respond to throttle and never switches the IGBTs. The board is very different from the rest of these - I've attached some pictures. I think I'm stuck waiting for Paul to send the software.
It powers up with a message after the serial is initialized .. I think the firmware version waits for maybe the throttle signal to be in range?

It was an annoying thing that I had to have the throttle connected before I could see anything.

Is it set up for a hall effect throttle or a potentiometer?

Another item - TX is transmit from the board, RX is receive to the board. A USB-to-serial adapter usually has this already switched. But if you are using an old-school serial port you need to switch pins 2 and 3. Pin 5 is ground on a 9 pin connector. With a scope on the TX and GND pins you should see *SOMETHING* if it is transmitting. I think it's 0V low and 5V high ... not -12V low and 12V high as the original RS-232C specifies.

Another thing that Paul sometimes (usually) forgets is to re-compile without debug mode. So the chip could be sitting there - waiting for a 'go' from the PICkit 3. If you load the hex file I sent that would not be the problem ... but that board looks different from mine. Surface mount dsPIC, driver chip for the serial. If you manage to compile the code I sent, you can change the code and put out a test signal of some sort. But I'm not sure if you are wanting to mess with that stuff.

Let us know if we can help

__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
  Reply With Quote
The Following User Says Thank You to thingstodo For This Useful Post:
Piotrsko (02-16-2018)
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 02-14-2018, 05:22 PM   #7212 (permalink)
EcoModding Lurker
 
Join Date: Feb 2018
Location: Colorado Springs
Posts: 9
Thanks: 0
Thanked 2 Times in 2 Posts
So, I reversed the TX and RX lines and got some garbage outputs like I did before. I should have mentioned it that earlier. I made a wrong assumption that I was getting garbage because it was crossed.

Paul sent me the software for the new board just now (woohoo!). I have the throttle hooked up properly and the serial connections set up. When I get home tonight, I'll give it a whirl with the correct software.
  Reply With Quote
Old 02-15-2018, 01:33 AM   #7213 (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
Yes this is 99% the old DC code, so it still requires a throttle connected that is moved into valid territory before starting things like the serial communications. What I ought to do is port over the AC code into DC code, so that all the serial communications matches for both of them. That would probably take a week to do and then debug it.
__________________
kits and boards

Last edited by MPaulHolmes; 02-15-2018 at 02:18 AM..
  Reply With Quote
Old 02-15-2018, 11:57 AM   #7214 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 746
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by jbman View Post
So, I reversed the TX and RX lines and got some garbage outputs like I did before. I should have mentioned it that earlier. I made a wrong assumption that I was getting garbage because it was crossed.
OK. I'd rather see garbage than nothing since sometimes I just have the baud rate wrong

Quote:
Paul sent me the software for the new board just now (woohoo!). I have the throttle hooked up properly and the serial connections set up. When I get home tonight, I'll give it a whirl with the correct software.
Can you (or Paul) send me a copy?

Paul is not known for judicious backups (!!)
__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
  Reply With Quote
Old 02-15-2018, 01:41 PM   #7215 (permalink)
EcoModding Lurker
 
Join Date: Feb 2018
Location: Colorado Springs
Posts: 9
Thanks: 0
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by thingstodo View Post
OK. I'd rather see garbage than nothing since sometimes I just have the baud rate wrong



Can you (or Paul) send me a copy?

Paul is not known for judicious backups (!!)
Link in next post since I'm at 4 posts... lol.
  Reply With Quote
Old 02-15-2018, 01:42 PM   #7216 (permalink)
EcoModding Lurker
 
Join Date: Feb 2018
Location: Colorado Springs
Posts: 9
Thanks: 0
Thanked 2 Times in 2 Posts
High Power DC Board Software

Last edited by jbman; 02-15-2018 at 01:45 PM.. Reason: Wrong link initially
  Reply With Quote
The Following User Says Thank You to jbman For This Useful Post:
thingstodo (02-15-2018)
Old 02-15-2018, 01:47 PM   #7217 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 746
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by jbman View Post
I must be too fast - just see hex file so far. I'll wait a few minutes!
__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
  Reply With Quote
Old 02-15-2018, 02:16 PM   #7218 (permalink)
EcoModding Lurker
 
Join Date: Feb 2018
Location: Colorado Springs
Posts: 9
Thanks: 0
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by thingstodo View Post
I must be too fast - just see hex file so far. I'll wait a few minutes!
Ah, I'm afraid I only have the controller and debug hexes at the moment. Paul will have to provide the source. I've put both hexes in that share, though.
  Reply With Quote
The Following User Says Thank You to jbman For This Useful Post:
thingstodo (02-15-2018)
Old 02-15-2018, 03:12 PM   #7219 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 746
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by jbman View Post
I've put both hexes in that share, though.
Yup - got'em

Paul - any chance of a 'backup email' in the near future?
__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
  Reply With Quote
Old 02-15-2018, 09:57 PM   #7220 (permalink)
EcoModding Lurker
 
Join Date: Feb 2018
Location: Colorado Springs
Posts: 9
Thanks: 0
Thanked 2 Times in 2 Posts
Well, this is what I'm getting from the controller when I power it on. I verified that were on 19200 and 8N1. Any ideas?

Gibberish from controller

  Reply With Quote
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