I was grateful to receive a package in the post from one of my subscribers. It contained everything I needed to build an LED PWM Dimmer circuit using an ESP8266-ESP01.
I used some code from Sparkfun as the basis of the code below and just made a few changes so that I could dim the LED rather than just turn it on and off.
This version of the code is working – it does however need improving. The analog value readings are a little off.
Below is the code for the early version of my arduino constant current load – it is worth noting this isn’t a working version as yet.