{"push_id":2995241892,"size":1,"distinct_size":1,"ref":"refs/heads/Free","head":"e65955ed4f34359173664a99675b764274d0c0e9","before":"b244ba55e4a0ba115aee30b15e164b30e0e694e1","commits":[{"sha":"e65955ed4f34359173664a99675b764274d0c0e9","author":{"name":"Kenneth L Anderson","email":"bf098dbd4e851b85efcacc2c78896bf551fc86ee@users.noreply.github.com"},"message":"Limited to 3 DPots/leg, 0 to 1 HX711 outboards\n\nShould you examine the sketch code you will or may notice it is in a state of transition.  Variable names and useages may be inconsistent and so forth.  That is because I am upgrading it with longer-term goals in mind while at the same time adding intermediate features that are easily and quickly coded.  \r\n\r\nPlanned longer-term upgrades are as follows:\r\n- Am currently coding for use of less than 3 and more than 3 DPots/leg\r\n- Am currently coding for using DPots alone, without LM334, in the bridges\r\n- Am currently coding for using unbridged DPots, single leg only\r\n- Am currently coding for faster conductance range changes when DUT conductance goes out of range\r\n- Not coding for other ADC types yet, but will eventually first code for multiple HX711\r\n\r\nThese goals necessitate many smaller changes that make an uninformed observer wonder why this or that is so convoluted.  The answer in many cases is that I've learned not to make so many changes at a time that the sketch can acquire failures/bugs in more than one or two places because troubleshooting would become harder by orders of magnitude.  So the many small modifications to support the longer term goals are being added incrementally without breaking the sketch along the way.  Thank you for your tolerance.\r\n\r\n*  Changelog:  30 April 2018 :  Final inboard 10 bit operation and ADS1X15 operation has been achieved.  Future work on free version will be for 12 bit boards only\r\n*              04 May   2018 :  Some 12 bit tweaking so that TTGO/WeMos XI, SAM and SAMD architectures compile with inboard analog inputs to computed at 12 bit even though ANALOG_INPUT_BITS_OF_BOARD is set at default.\r\n*              18 May   2018 :  Anti-aliasing code\r\n*              29 May   2018 :  Differential use of ADS1x15 to allow LM334 temperature comp to negative inputs so LM334 can be used on positive inputs\r\n*              32 May   2018 :  Added skeleton preprocessor defines for user to compatibly code their own support for a few 24-bit ADCs\r\n*              05 June  2018 :  HX711 accommodated, you'll just have to balance the bridge manually\r\n*              08 June  2018 :  Bugfix for inboard analog inputs above the first one - they didn't print before this fix\r\n*              17 June  2018 :  Corrected pointer reinitialize of AnalogPinArray that disabled internal Analog Input pins.  Added \"while ( !Serial );\" for Leonardo's native USB; starting to add framework for programmable potentiometers, changed defines to allow for a separate full-scale, lower res ADC and a high res ADC for normal viewing, etc,\r\n*              18 June  2018 :  Bug fixes relative to displaying multiple traces while one or more are from inboard analog pins\r\n*              13 July  2018 :  Modified plotter timing trace to notch horizontally at range min and max for signal traces when it crosses up and down.  Incorporated digi pot adjustings in debug mode. Enabled bypass of digi pot set in setup()\r\n*              14 July  2018 :  Improved horizontal timing trace notching - made it shorter and consistent between levels\r\n*              15 July  2018 :  Allow unique digipot initializing value for each pot.  Discovered HX711 input Z is way too low for use without buffers.  Regrouping....\r\n*              16 July  2018 :  Removed disparaging comments toward TTGO XI/Wemo XI because we will make the plunge to employ the AD8244 buffer as standard, resulting in those boards being eligible as any other board\r\n*              20 July  2018 :  Improved plotting with INBOARDINPARALLELWITHHIGHESTSENSI and improved 24-bit plot values\r\n*              26 July  2018 :  Corrected conversion from twos complement differential readings to proper single ended plotting\r\n*              27 July  2018 :  Discovered HX711's common-mode level sweet spot for max sensitivity, made COMMON_MODE_LEVEL_FOR_MAX_GAIN_AS_READ_RAW_BY_INBOARD_ANALOG with default of half-scale\r\n*              28 July  2018 :  If using digipots with LM334s, sketch can now auto-balance during setup and target the most sensitive common-mode voltage of a selected outboard ADC...LATER REVISIONS BROKE AUTO_BRIDGE_BALANCING\r\n*              29 July  2018 :  With INBOARDINPARALLELWITHHIGHESTSENSI && AUTO_BRIDGE_BALANCING defined, plotspace now excludes the two inboard Analog Input traces, making maximum linespace available for the other more interesting traces\r\n*              30 July  2018 :  Now able continuously to run-time auto-balance at least with a single HX711 LATER REVISIONS BROKE AUTO_BRIDGE_BALANCING\r\n*              31 July  2018 :  I've noticed one sketch bug in the printing of the magnified traces in that they don't stay within bounds any more. Older sketch versions never had that problem. I'm not sure where it began, but it seems to be a memory management problem from my inital troubleshooting rather than any type of algorithm weakness. I'll work on that when I'm able... \r\n*              01 Aug   2018 :  Working on vertical positioning of the magnified traces\r\n*              23 Aug   2018 :  Fixed magnified traces in all respects; added functionality to display digipot calibration effects during calibration in setup(); started adding code to handle multiple digipot banks that utilize dual 74VHC138/74LV138s.  Still no AUTO_BRIDGE_BALANCING\r\n*              23 Aug   2018 :  Magnification factor adjustable downward via a potentiometer if defined POT_WIPER_TO_THIS_ANALOG_INPUT_PIN_TO_ADJUST_MAGNIFICATION_FACTOR with the digital number of an inboard analog input pin.\r\n*              23 Aug   2018 :  added USING_DUAL_74LV138_DECODERS_FOR_DPOT_CS_LINES with possibly enough code (just needs testing). Allowed for any ratio of LSB pot step to MSB step with DPOT_RATIO\r\n*              11 Sep   2018 :  Back with new style of arrays useage to make bug-free coding more possible.\r\n*              20 Sep   2018 :  Auto adjust works, but only non-predictively so it is slow.  Added macro CONTINUE_PLOTTING_DURING_AUTO_BRIDGE_BALANCE thinking someone may not want display to pause during auto balance, but that is even painfully slower still.\r\n*              20 Sep   2018 :  Alpha chars added into output for future expansion beyond Arduino\r\n*              18 Oct   2018 :  Now allows dual digi pot devices: MCP42xxx by manipulating the DPotPin of the first DPot of pkg OR'ing it with 0x40 as the pin of the second DPot in the pkg\r\n*              NEXT          :  Predictive DPot setting by tracking +/- Inboard and Outboard  ADC bits per +LSB bit\r\n*              NEXT          :  Allow DigiPots without LM334: the direction of effect will be opposite.  New macro: \r\n*              NEXT          :  EEPROM storage of things like ADC sweet spot, initial digipot settings, etc.  Hardware configs like DPot types & ADC types & other upgradeable hardware version possiblities needs to be able to be set in the hat board rather than EEPROM\r\n*              NEXT          :  Accommodate ADS1232 &/or ADS1231\r\n*              NEXT          :  Detect hat config and version with 256 versions detection and warning to acquire more recent sketch version when versions > known are found\r\n*               \r\n* TODO:  Arrange for run-time keyboard input to eliminate need to re-compile when changes are made or plotting adjustments are desired.  Will require non-Arduino IDE plotter\r\n*        Use dual digital potentiometers (MCP42XXX) for more lower parts count than when using single pot MCP41XXX\r\n*        Accommodate more 24-bit amps like ADS1231\r\n* \r\n*  These planned enhancements will be reserved for NOT-FOR-FREE sketch versions in the future","distinct":true,"url":"https://api.github.com/repos/kenneth558/plant_resistance_primary_perception/commits/e65955ed4f34359173664a99675b764274d0c0e9"}]}
{"actor":{"display_login":"kenneth558"}}