ReflowMaster icon indicating copy to clipboard operation
ReflowMaster copied to clipboard

Esp32

Open tablatronix opened this issue 7 years ago • 5 comments

PR is FOR TRACKING and diffs, do not merge!

tablatronix avatar Aug 27 '18 13:08 tablatronix

@UnexpectedMaker this PR is just to track the commits and files changed for diffing, please ignore thanks.

tablatronix avatar Aug 27 '18 13:08 tablatronix

esp32 support, mosty commenting stuff out

ToDo

removes flashstorage to be abstracted into methods and add ifdef wraps

  • esp32 flash storage support for read and write methods
  • esp32 tone buzzer
  • esp32 relay pwm use sigmandelta or ledc abstract to start and wriite methods

@todo comments added to code instead of sticking ifdefs all over the code, abstract the few instances into 4-5 methods and handle there

methods needed

  • [ ] storage init
  • [ ] storage write
  • [ ] storage read
  • [ ] relay init
  • [ ] relay set
  • [ ] buzzer ( existing )

not related

  • [ ] abstract temperature to allow different reading methods, adc, i2c, ads*, non thermocouple etc. This controller should be able to control hotplates, kilns etc for example

❗️ I added some temperate test code, and ads1x code for adc modules you might want to remove that if you are using the max chip, I have not received mine yet, i will try to add some defines to swap that behavior back

tablatronix avatar Aug 27 '18 13:08 tablatronix

added sigmadelta tests, NOT TESTED not sure if sd or ledc is best for the relay and buzzer control, I have not worked with either yet

tablatronix avatar Aug 27 '18 14:08 tablatronix

I did have to modify spline lib was getting some warnings or errors dont recall

https://github.com/kerinin/arduino-splines/compare/master...tablatronix:master

tablatronix avatar Aug 27 '18 14:08 tablatronix

pwm refs

esp32 examples

https://github.com/espressif/arduino-esp32/tree/master/libraries/ESP32/examples/AnalogOut

some pwm helper lib

https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/PWM.cpp https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/PWM.h

ifdef wraps

https://github.com/espressif/arduino-esp32/issues/4#issuecomment-355449489

analogwrite abstraction/polyfill

https://github.com/espressif/arduino-esp32/issues/849

no pwm, use DAC

https://esp-idf.readthedocs.io/en/v2.0/api/peripherals/dac.html

tablatronix avatar Aug 27 '18 17:08 tablatronix