User avatar
garygid
Gold Member
Posts: 12469
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: Flashing the AVR-CAN board

Wed Jul 20, 2011 10:13 pm

I will start a "Compiling Source Code for AVR-CAN" thread.
DONE, started the new thread.
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

User avatar
garygid
Gold Member
Posts: 12469
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: Flashing the AVR-CAN board

Fri Aug 26, 2011 9:05 am

Just added two programmers to the first post:
1. Mini USB AVR-JTAG from eBay vendors ($17 to $26)
2. PGM-00012 from SparkFun, about $56
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

squirrelmeat
Posts: 37
Joined: Thu Oct 28, 2010 12:17 pm

Sparkfun PGM-00012 Re: Flashing the AVR-CAN board

Sat Sep 03, 2011 3:42 pm

Just finished flashing gascant's SOCMeter with the PGM-00012 (This is actually a OLIMEX AVR-JTAG-USB programmer) and am just checking in to report success.

I used avrdude version 5.4-arduino, but just about any version of avrdude will support this unit.

The "-c" option was jtag1
The baud rate was left as the default

The one extra step with this unit -
This programmer does not provide power to the target (it is optically isolated) and you must provide power to the AVR-CAN board. Today we made use of power from the car. In the future I hope to supply power via the on-board power connector.

Carl

User avatar
garygid
Gold Member
Posts: 12469
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: Flashing the AVR-CAN board

Sat Sep 03, 2011 11:48 pm

Good Work! :)

I bought an AC Adapter (Compact Power Adapter CA-590) for Canon AV equipment (a Camera ?) with 8.4 volt DC, 0.6 amp, probably-regulated output for about $10 ... and added a 2-pin (0.1" spacing) polarized plug-on connector to power the AVR-CAN board while flashing with a programmer that does NOT power the "target" board.

I will try and find helpful links later when I have cut-n-paste available. :D
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

gascant
Posts: 921
Joined: Tue Nov 23, 2010 4:09 pm
Delivery Date: 13 May 2011
Leaf Number: 2209
Location: San Jose, CA

Re: Sparkfun PGM-00012 Re: Flashing the AVR-CAN board

Sun Sep 04, 2011 7:42 pm

squirrelmeat wrote:Just finished flashing gascant's SOCMeter with the PGM-00012 (This is actually a OLIMEX AVR-JTAG-USB programmer) and am just checking in to report success.
Carl
Yes, I can vouch for this working well--and once we plugged in the unit, it took less than a minute (substantially less, I think) to do the update. And the meter itself is now a source of great curiosity. I still think I saw it give 40 kW of regen coming down a hill with brakes applied.

Now I just have to put together the kit to allow trip recording.....

BTW Carl has volunteered to do this at future SF BayLEAFs meetings for those who purchase.
2011 LEAF SL brilliant silver + QC
DRL's, Seat Heaters, Horn, LEDs and EVSE upgrades
Over 24,300 miles gas-free
http://sfbayleafs.org" onclick="window.open(this.href);return false;

User avatar
garygid
Gold Member
Posts: 12469
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: Flashing the AVR-CAN board

Mon Sep 05, 2011 11:25 am

I love it when the plot thickens,
and the pieces begin to fall in place.

Great work, both of you.

The USB-to-RS232 Adapters (that one can easily find by using Google or eBay) vary from about $5 to $40, but the price is NOT a good indicator for the product's abilities or compatibility with different RS232 devices.

Some (many?) RS232-driven Programmers are very fussy about some (unknown) aspect of the RS232 communication, and a USB-to-RS232 Adapter that works fine for Logging might not work reliably with a programmer.

I have 2 Adapters (long forgotten source) that work well with my RS232 Programmer, but have another dozen (2 or 3 sources) that do not. I think they all will work with logging, but I have not yet personally tried them enough to suggest getting them. However, another person is using some that were under $5 each.
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

gascant
Posts: 921
Joined: Tue Nov 23, 2010 4:09 pm
Delivery Date: 13 May 2011
Leaf Number: 2209
Location: San Jose, CA

Re: Flashing the AVR-CAN board

Mon Sep 05, 2011 8:49 pm

I went to Fry's on Sunday to get the parts (kit) for doing trip recording, only to find that they were out of USB-to-RS232 adapters. So I stopped at Radio Shack on the way home and they had only one model (Gigaware) costing $40 !! That was more than what I wanted to spend (by a lot) but I figured I'd save time by getting it. With coaching from Gary, it was thought that it might work. So, I installed the driver first, then plugged in the meter to the adapter, and then the cable into the USB port. It installed on my laptop as COM 3. From there, it was launching CAN-Do and recording per instructions.

Oops, should probably post this is the Trip recording thread :lol:
2011 LEAF SL brilliant silver + QC
DRL's, Seat Heaters, Horn, LEDs and EVSE upgrades
Over 24,300 miles gas-free
http://sfbayleafs.org" onclick="window.open(this.href);return false;

User avatar
garygid
Gold Member
Posts: 12469
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: Flashing the AVR-CAN board

Fri Sep 09, 2011 6:56 pm

We have a "flasher" for:
1. the SoCal Cluster, and
2. the SF Bay Area Cluster.

How about someone for:
1. the San Diego area?
2. the Seattle area?
3. Norway?

Yes, we have an SOC-Meter Kit successfully built in Norway. :)
We are Branching out! :D :D

Thanks, everybody for helping!
Cheers, Gary
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

User avatar
garygid
Gold Member
Posts: 12469
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: Flashing the AVR-CAN board

Tue Sep 13, 2011 6:42 pm

--------- mini USB AVR-JTAG Programmer ----------
This seems to be a good (maybe even a "better") "flasher" solution.
Usually available on eBay, mostly from Hong Kong or China.

I bought from this seller "seller25812", and just today got and tested this one:
http://www.ebay.com/itm/260853683073" onclick="window.open(this.href);return false; ... bid $5 (plus $10 S&H)
or, a Buy-it-Now at
http://www.ebay.com/itm/250597883758" onclick="window.open(this.href);return false; .. for $17 (free S&H)

However, there appears to be one source in the USA, in CA. They are a bit more expensive (maybe $26 instead of $17), but their delivery is usually a lot quicker. I also bought one from them.

This programmer attaches directly to a USB port, and it POWERS the board being programmed. There do not seem to be a way to keep it from powering the target board.

There is a jumper, but I am not due what it does.
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

User avatar
garygid
Gold Member
Posts: 12469
Joined: Wed Apr 21, 2010 8:10 am
Delivery Date: 29 Mar 2011
Leaf Number: 000855
Location: Laguna Hills, Orange Co, CA

Re: Flashing the AVR-CAN board

Wed Sep 14, 2011 7:13 am

Does anybody know what the Jumper on the "mini USB-AVR-JTAG" programmer does?

Or, is there a circuit schematic available for this device/board?
See SOC/GID-Meter and CAN-Do Info
2010 Prius
2011 LEAF, 2014 Tesla S85
2018 & 2019 Tesla Model 3
PU: SDG&E
Solar PV: 33 x 225W -> 7 kW max AC
Craigslist: Xm5000Li Electric Motorcycle

Return to “LEAF CANBus”