Part 2 of the new ESP Basic series related with the PCF8591 - 8-bit A/D and D/A converter. This time we will talk about ADC side of the IC and we will implement a simple ADC driver:
This announcement should be accompanied by fanfare, because it is actually more of a significant step forward than it may seem, and the availabily of these cheap little i2c 4-channel ADC (plus DAC) modules for Esp_Basic will open up many new doors.
They come with onboard 'test' LDR and thermistor, so offer analog light level and temperature sensing straight out of the box.
Disabling the 'test' sensors by removing 'tombstone' jumper links, gives 4 analog input channels - allowing the possibility for instance of twin dual-axis joysticks. Bung a PCF8574 multi-I/O module onto the i2c bus as well, to give up to 8 digital inputs/outputs plus the 4 analog channels. And if that's still not enough hardware interface, well just add even more i2c ADC or MultiIO modules... all on one Esp_Basic device.
Be aware that there are similar-looking PCF8591 ADC/DAC modules available which have different pin layouts - they still have the same 'test' sensors and pin signals, but they are arranged differently - so just pay attention to the markings of your own modules.
Thanks very much TJ.
Re: PCF8591 - 8bit ADC/DAC driver example
Posted: Wed Nov 16, 2016 6:29 pm
by Mmiscool
Thank you for this.
It is great to see videos like this with so much information.