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

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 01-27-2010, 10:31 PM   #1 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location:
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 266 Times in 209 Posts
Open Source Monitoring software

I took a little time to sort out the main details for an open source monitor for the openrevolt/cougar controllers and others. This one is cougar specific but there are other uses certainly.

The main strengths here are:
Open source, that what projects like opengauge.org and openrevolt are all about.

Java based so it is cross platform to its core, and not as an afterthought.

Cross platform without barriers means more people can use it.

Low CPU usage.

Should work on most any grade of computer, from 33mhz on up.

Fairly simple program that tinkerers should be able to grasp and modify for their own purposes.

USB or Serial interface is well tested. Currently I am using it with a USB interface via a serial emulator, from ftdi, but straight serial is trivial too.


Right now it just initializes the conversation with the cougar (sends it a "rtd-period 1000") and logs the data to comma separated values (so you can analyze them in your spreadsheet of choice) and graphs them on the screen.


The code (and arduino based "dummy" controller) are on the wiki:
Javamon - EcoModder

I have also written a java based programmer for loading hex files which should not be hard to integrate: Arduino Forum - under 1k bootloader, any interest?


Heres a pic, just a proof of concept here really:


Also, I usually cheat and borrow rxtx from an arduino installation:
Arduino playground - Java
but the packaging could use some work too.

__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 01-30-2010 at 03:13 PM..
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 01-28-2010, 12:02 AM   #2 (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
Im willing to give it a try. I run a MAC and program on a virtual machine.

I dont know the first thing about java though. How do I compile the code? Or better yet, maybe you could offer a compiled version??

-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
Old 01-28-2010, 12:38 PM   #3 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location:
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 266 Times in 209 Posts
that would be sweet, I have run on windows and linux but don't have a mac handy so let me research it a bit and try to package the rxtx bits with some best guesses.

Which version are you on? tiger, leopard, tabby? 32 bit?

also re: compiling, can you run javac -version ? maybe we can sort out the mac java hello world thing.

And can you run java -version for good measure and let me know what it says?

Ideally I would sort out the mac packaging on a mac, in fact I would like to add a mac to my fleet, but if someone has the patience to help sort out the mac packaging on a best guess basis that would probably be quickest.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 01-28-2010 at 12:47 PM..
  Reply With Quote
Old 01-28-2010, 12:57 PM   #4 (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
javac 1.6.0_15

Snow Leopard 64 Bit.

This is as far as I go though. I am the creator of RTD Explorer just checking your program out.

-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
Old 01-28-2010, 01:40 PM   #5 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location:
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 266 Times in 209 Posts
This is still at the proof of concept phase, demonstrating com port communication with a controller from java and basic graphing, with a link to a java based stk500 compatible programmer, all within a single ~200 line program. I think we need to sort out some user friendly bits before packaging though, i.e. listing the available com ports, or even possibly those that respond like an stk500 for auto detection.

You do have a java compiler installed however, so that is encouraging.

But I should to wait till I get a better motivated mac user it sounds like, to get the mac packaging tested. If you have arduino installed and working then you already have all the pieces needed.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 01-28-2010 at 02:11 PM..
  Reply With Quote
Old 01-29-2010, 05:02 PM   #6 (permalink)
Computer/EV enthusiast
 
Join Date: Jan 2010
Location: Indiana, USA
Posts: 32
Thanks: 2
Thanked 7 Times in 5 Posts
I think this was mentioned by someone else before, but could this be ported to a ipod touch or iphone? If it was jailbroken I'm sure you could do wifi/bluetooth control over the controller, to switch from powersaver mode to street racing mode without needing a touchscreen computer stuffed in the dash (which I might do anyways)
  Reply With Quote
Old 01-29-2010, 05:25 PM   #7 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location:
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 266 Times in 209 Posts
We move away from "cheap diy" when we bring Iphone into the discussion (not even gonna touch the street racing bit) But aside from jail, it also doesn't come w/java by default, and etc. etc.


FYI, I did make arrangements to get an old g4 with osx10.4 on it, so I have a pretty nice suite of machines handy to test with (ubuntu,osx,win95,winxp), though I have avoided any windows newer than xp thus far.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 06-06-2010, 05:01 AM   #8 (permalink)
EcoModding Lurker
 
Join Date: May 2009
Location: Sydney, Australia
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Looking forward to seeing the OpenSource display become available and integrated into the open BMS, charger and controller. Great work to all those involved.

Last edited by iwyze; 06-06-2010 at 05:08 AM..
  Reply With Quote
Old 06-06-2010, 09:47 PM   #9 (permalink)
EcoModding Lurker
 
Join Date: May 2010
Location: Sydney Australia
Posts: 54
Thanks: 0
Thanked 2 Times in 2 Posts
Thumbs up python may be better than java..

Java is a painful language to work in.. python is easier..

Also, python is already built in to the mac..

Having said that, we are just in the process of setting
up some test engines.

We're installing open-source monitors on our engines
also. Also using arduino. great toy.

What is it that you guys want to monitor?

our plan is to piggyback the ECU, monitor EGTs and
pulse injector widths. Perphaps do an open-source
water injection system.
  Reply With Quote
Old 06-06-2010, 10:14 PM   #10 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location:
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 266 Times in 209 Posts
I've found python to be easier for text-stuff, but there are a number of cross platform and packaging issues with python last I looked. Java is much farther along as a cross platform environment, and most of the techie bits about how to talk to the controller over the serial port and make pretty pictures is sorted.

I like python plenty, but this might not be the best fit due to the cross platform need and the graphics and low-level serial IO "requirements". Jython might be a reasonable compromise, but still needs some java bits to take care of business.

__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 06-06-2010 at 10:24 PM..
  Reply With Quote
Reply  Post New Thread


Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
DIY Open Source EV Charger bennelson Fossil Fuel Free 385 12-27-2011 03:46 PM
Any interest in developing an open source fuel economy gauge/computer? MetroMPG OpenGauge / MPGuino FE computer 182 06-25-2010 08:00 AM
New open source EV website - could use your help revoltev Introductions 1 08-02-2009 11:35 PM
Open Source LEV Controller FrankG Alternative Transportation 1 03-24-2008 04:10 AM



Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com