Go Back   EcoModder Forum > EcoModding > Fossil Fuel Free
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 08-29-2017, 10:14 PM   #3121 (permalink)
EV
 
Join Date: Jun 2017
Location: Akron, OH
Posts: 12
Thanks: 4
Thanked 0 Times in 0 Posts
Sorry for all the questions! I tried uploading the hex file using a pickit3 and the MPlab IPE but I keep getting an error it says:

Target device was not found (could not detect target voltage VDD). You must connect to a target device to use PICkit 3.

Edit: just found the setting to supply power to the circuit through the pickit3. Now it won't program. it is giving me this message:

Programming...

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x7fff
program memory
Address: 0 Expected Value: 40100 Received Value: 0
configuration memory
EEData memory
User Id Memory
Failed to program device
2017-08-29 21:34:43 -0400 - Programming failed

The device will erase but will not program or do the blank check.


Last edited by ScottyWarpNine; 08-29-2017 at 10:36 PM..
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 08-30-2017, 02:14 PM   #3122 (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 ScottyWarpNine View Post
Programming...

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x7fff
program memory
Address: 0 Expected Value: 40100 Received Value: 0
configuration memory
EEData memory
User Id Memory
Failed to program device
2017-08-29 21:34:43 -0400 - Programming failed

The device will erase but will not program or do the blank check.
What does your setup look like? I think there may be a cable that is too long.

I use the pickit 3 ribbon cable plugged directly into Paul's board. I don't remember if I need to use a male-male header ... I'll have to look tonight.

Prop the pickit 3 on a piece of insulating material, like perfboard or a ceiling tile. Then the USB cable goes to the laptop.

I have had similar problems when using a ribbon cable extender from Paul's board to the Pickit 3.

At that point, selecting the correct dsPIC is about the only config required. But I have never had a verify complete successfully .. which is a bit strange .. the erase and program work.
__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
  Reply With Quote
Old 09-26-2017, 11:20 AM   #3123 (permalink)
EcoModding Lurker
 
Join Date: Nov 2015
Location: Turkey
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Hello guys,
I have the dip version of the board and software with manual pi-testing. Even though i configured my throttle values and keep the pot at deadzone, there is a small amount of current going through my motor which moves the shaft back and forth slowly. My data stream shows Idref, throttle, mechanical speed values are all 0 but Id value keeps changing between +-3A. Motor spins with vibration if I throttle it.Has anyone had a similar problem before? DC bus voltage is output of 3-phase rectifier btw, could it be a leakage problem?

Last edited by mitsui; 09-26-2017 at 11:21 AM.. Reason: spelling
  Reply With Quote
Old 10-23-2017, 08:05 PM   #3124 (permalink)
EcoModding Lurker
 
Join Date: Oct 2017
Location: Forest, VA
Posts: 12
Thanks: 0
Thanked 2 Times in 2 Posts
I finished this epic thread last night, and I've gotta say - Thank You! Thank you to Paul, for your hard work, and willingness to share it with us. To E*clipse, for adding a slew of interesting and relevant technical ideas. To thingstodo, for a comprehensive test program. And to all the other posters who chipped in with ideas, thoughts, and advice.

Bit of background - I spent almost 30 years working at a defense company, in a group that designed and built both control systems and power converters. I had the privilege of working on several large inverter and converter programs. Most of the time I was the program "lead," which I always interpreted as serving the team by working to get the right resources at the right time, and by running interference with management so the really smart guys could get their work done. This project was one of the best examples of a tight technical team working together I've seen.

Next step for me is to go find schematics and source code. I have some questions about some of the design choices that were made, that weren't directly answered in this thread (believe it or not!). But I want to understand the design a little better first - the answers may reveal themselves.

Looking forward to building one of these myself, very soon!
  Reply With Quote
The Following User Says Thank You to ChazFisher For This Useful Post:
mpgmike (04-09-2022)
Old 10-24-2017, 01:29 AM   #3125 (permalink)
Master EcoModder
 
freebeard's Avatar
 
Join Date: Aug 2012
Location: northwest of normal
Posts: 28,491
Thanks: 8,058
Thanked 8,859 Times in 7,313 Posts
Would that there were some scripted language that would visit each of the 317 pages, capture only the body date and author for each post into a tab-delimited text file.

I'd turn Mac OS Summarize Text loose on that. Rather than, you know, reading the whole 317 pages again.
  Reply With Quote
Old 10-24-2017, 01:51 AM   #3126 (permalink)
Master EcoModder
 
teoman's Avatar
 
Join Date: Jan 2017
Location: Istanbul
Posts: 1,245

A3 - '12 Audi A3
Thanks: 65
Thanked 225 Times in 186 Posts
If you increase the posts per page to max, it is only 80 pages
  Reply With Quote
Old 11-14-2017, 12:55 PM   #3127 (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
mitsui:

What current sensors are you using? For high powered applications, +/-3amp is pretty normal for the swing. Even at zero throttle, the controller is actively commanding 0 torque (Iq = 0). When it's in a car (or gocart) you don't notice it. Since it's torque command and not speed command, it's not intended for applications where it's unloaded. The only reason why I can think it is running rough is wrong PI values or some issue with a position sensor.

Thank you for the kind words Chaz!

arber, I've only tested the leaf motor with the stock resolver. I can't say what is happening there.
__________________
kits and boards
  Reply With Quote
Old 11-16-2017, 01:10 PM   #3128 (permalink)
EV
 
Join Date: Jun 2017
Location: Akron, OH
Posts: 12
Thanks: 4
Thanked 0 Times in 0 Posts
Man, I still can't figure out why my board won't program. I keep getting an error when it tries to connect saying that while the programmer is trying to supply 5v, it is measuring VDD as 4.5v and fails to connect. Sometimes I can "trick" it into connecting by changing the supply voltage to 4.5v, but then when I try to program the hex it says "programming failed because the device address was different than expected.

I tried replacing my PICkit3 and replacing the dsPIC30F4011. Neither made any difference, I still get the same errors.

Has anybody run into anything remotely similar to my predicament?

I'm primarily an AVR guy, so I'm not super experienced with PIC devices. Here is the procedure of my attempts:

1. Connect PICkit3 to computer via USB
2. Open microchip IPE
3. Make sure dsPIC30F4011 and pICkit3 is selected
4. Open advanced settings and select "power circuits from programmer" in power tab
5. Make sure 5v is selected for VDD voltage
6. Connect PICkit3 to motor driver board programming headers. I am not using extension cable, I am plugging the PICkit3 directly into the board.
7. Back on main screen press connect (this is where it gives me the VDD error)
8. If it were to connect, this is the point where I would select the .hex file and press program.

Am I doing something wrong?
  Reply With Quote
Old 11-16-2017, 01:28 PM   #3129 (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 don't think the pickit can power the board's 5v. I always have to provide the 24v power to the board.
__________________
kits and boards
  Reply With Quote
The Following User Says Thank You to MPaulHolmes For This Useful Post:
ScottyWarpNine (11-16-2017)
Old 11-16-2017, 01:52 PM   #3130 (permalink)
EV
 
Join Date: Jun 2017
Location: Akron, OH
Posts: 12
Thanks: 4
Thanked 0 Times in 0 Posts
Thanks Paul,

That seems to have solved the connect problem. Still won't program though. I get this error message:

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x63ff
configuration memory
program memory
Address: 0 Expected Value: 40100 Received Value: 0
Failed to program device
2017-11-16 12:50:27 -0500 - Programming failed
Pass Count: 0

I'm pretty confident in my solder joints, especially as I soldered a new PIC on and get the same result.

  Reply With Quote
Reply  Post New Thread




Similar Threads
Thread Thread Starter Forum Replies Last Post
Paul & Sabrina's cheap DIY 144v motor controller MPaulHolmes Open ReVolt: open source DC motor controller 7381 08-02-2023 11:55 PM
Paul & Sabrina's Cheap EV Conversion MPaulHolmes Fossil Fuel Free 542 11-12-2016 10:09 PM
Contest! Name Paul & Sabrina's controller MetroMPG Forum News & Feedback 120 10-22-2011 02:59 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