Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge from upstream #1

Open
wants to merge 108 commits into
base: master
Choose a base branch
from
Open

Merge from upstream #1

wants to merge 108 commits into from

Conversation

pjbirch
Copy link
Owner

@pjbirch pjbirch commented Feb 19, 2016

No description provided.

mage0r and others added 30 commits January 11, 2016 11:09
while

It seems like there's a circumstance where i2c interaction "breaks"
USB (some event is skipped and then no UART data gets sent until later
on when the buffer is full.)

The hacky fix for this is making I2C lower priority than USB. The
problem with this fix is that sometimes (when receiving CDC data from
the host) the USB can spend a while in its interrupt handler, which
starves I2C if that is at lower priority...
Added initial version of the MQTT logging firmware.
(Disabled UV sensor due to failed to get a reading indoors, disabled
IR sensor due to not working at 3.3V.)
Whole board down to 4.4mA when ESP8266 is asleep. Odd thing is this drops
to 2.1mA immediatel after STM32 is reset.

Cause appears to be writing to ADC channels (from ADC_CHANNEL[3] and up),
even if the channels are being disabled not enabled. Not clear what the
real cause is yet.

Lots of workarounds in code now, none of which appear to have a large impact.
projectgus and others added 30 commits February 1, 2016 10:06
Color code is super configurable:
- how quickly you change from one color to the next (next target color
  is picked randomly)
- how many steps of intermediate colors you get between color A and color B
- how long you stay on color B before picking a new color
- how many trailing LEDs of previous colors get displayed
- how bright the neopixels are driven (default is very bright and
  blinding)

BUG: serial port shows that code does not hang and happily continues to
drive the next LED, but underlying hardware hangs on occasion and fails
to reliably send color change signals to GPIO15, causing some LED change
commands to get lost.
One guess is that the underlying wifi or other management causes GPIO
pin big banging to slow down enough for LEDs to miss updates commands
that are sent by the code.
(because we could have changed to another LED by then).
Also adjust led trail and timing.
re-ordered values by type (temps together, volts together, etc...)

Added output of solar panels (use a voltage divider, connect to ADC2)

Also added units for each output.
Added solar voltage, units for values, and re-ordered output by type.
Improved output of values, and added neopixel streaming LED with color picker to random new color.
Made PV output voltage an ifdef since it's not supported by default hw.
(thanks to wolfeidau for pointing that out)
Re-organized logging output by type and with units added.
- RGB_LED_BRIGHTNESS is now controlled by the first soil tester
- RGB_LED_TRAIL (and speed) is also now controlled by the 2nd soil tester
- added support for motion detector (which turns on the LEDs) (define
  FIXED_MOTION_SENSOR)
Small cleanups, added support for changing LED trail length and speed.
Syntax fixes, delay to allow sending all MQTT logging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
8 participants