Showing posts with label Development Environment. Show all posts
Showing posts with label Development Environment. Show all posts

Sunday, March 24, 2013

Posted KiCAD design files

Given the current status of the project, I posted the KiCAD files today.   The version posted is 0.2.4, and it differs from the v0.2.3 PCB fabs in:
  • Added R60 / R61, to be used in conjunction with a TLE5206-2 bridge.  (See source code)
  • Modified some of the part numbers, ala using Male headers instead of Female for SERVICE (Lower cost).  That will require you to purchase only one $$$ female header and solder it to the USB <--> TTL converter.
  • Added part numbers for switches I used in combination with the custom front panel
See CAD-Files tab above.

It should be noted that as of yet, none of the v0.2.3 PCBs have actually been assembled.  If (when) problems are found over the coming weeks / months I will update the CAD files, but will likely not be doing careful revision control...

If you want to use these for your own project, the are released under the same licencing terms as the source: 
    Creative Commons Attribution-NonCommercial-ShareAlike 3.0 license 

And idea beyond that, contact me.

And if you do find issues or enhancements  please drop me a line.  I likely will maintain the CAD files for a while and would be grateful to be able to roll in any improvements / corrections.



Tuesday, March 19, 2013

Added CAD files for custom made remote panel

Tonight I posted the CAD files I used for Front Panel Express to make a really nice finished design.

Download the CAD tool from their website, and then download the .fpd file as a starting point.


Note that in the panel I had made the countersunk holes were larger then the screws I purchased at Ace hardware, letting a silver ring show around each of the mounting screws.   My guess is the Ace screws were undersized; you might want to purchase 4x  #4 machine screws, measure the heads, and adjust the design to match.

See "Remote Panel" under the CAD Files section  in Link to Files  above.  A link to the CAD tool is under the tab "Front Panel Express" in the Other Links section.



Friday, January 18, 2013

Using Arduino UNO to simulate a DC Generator

Worlds Smallest 2KW DC Diesel Generator!
Version 0.0.1

I have been using an Arduino UNO board to help debug the DC Generator Controller.   Arduino helping Arduino! Some mocked up hardware to do voltage level changes and a simple 'sketch' to simulate the Kubota DC Generator.  It listens to inputs like Starter requested, throttle position, Field Drive and as a result adjusts simulated current shunt voltages and Battery voltages.   If you click on the Simulator tab in the  Link to Files row at the top you can download the simple schematic and  current sketch.

Some notes:
  • 12v singles are reduced to 5v via resistor dividers (e.g. FIELD and Throttle_Clutch)
  • Alt Amps and EGT are simulated by connected an Arduino PWM output to a resistor divider to get the 5v level down to the 20-30mV range.
  • VBat is simulated by again using a PWM output from the Arduino, this time to control the 'down leg' of a resister divider.  When the PWM is high, the NPN turns on and causes the two Resistors to act as a voltage divider reducing the '12v' to around 10v.  (See note below).     When the PWM is low, the NPN is off and there is no resistor divider, so the entire '12v' gets sent as VBat.
  • All the PWMs are smoothed out using a long time-frame RC capacitor resulting in stable DC voltages.   
  • The FIELD from the controller is also 'smoothed' with a capacitor   This is to allow for the UNO's A/D input to sample a voltage directly related to how hard the FIELD is being PWM driven by the controller.
  • Most values were selected by parts I had on hand, and/or used in the controller project.  Feel free to modify the values, taking into account the resister ratios and also RC time constants.

The program simulates a resting battery voltage while watching for the Throttle Clutch to be enabled - which indicated the Controller wants to start generating.  The Starter single is used to drop the simulated voltage (due to starter loading on the battery) and mark the time the motor was 'started'.  Once things are started the controller's FIELD is sampled via a UNO analog input to decide how 'hard' the controller wants to drive the 'alternator'.  Harder driving result sin more simulated Amps and Volts. The timer set at 'engine start' is used to slowly increase  the base Simulated  'battery voltage', independent of how hard the Field is being driven.  This is to simulate the battery being charged.
Smart DC Generator Controller being put through its paces.
Working hard to 'drive' the UNO based Kubota DC Generator Simulator!
It works well and is allow for tuning of the charging routines.  Future enhancements to the hardware and software will include improvements to the Stator drive (It needs to be a switches 12v level, not the 5v.) as well as adjustments in response to throttle position change requests.

Note this is a very simple program, and many of the sensitivity values need to be hand tuned.  Currently they are optimized for a "+12V" level of 15.8v (what is coming from the DC Wall Wart I am using to desk-power the controller) and it is sized to simulate a 130A alternator.  

Check back to see changes and updates.