I have a S5D9 IOT board. It is very compact. I want to share my tutorial with the community on how to add ADC capability to the board. I think that it is very useful if the sensor only has an analog output.
In this tutorial, I show 4 examples that covers both r_iic and r_sci_i2c drivers with and without framework. Here is my blog link with source code available.
https://www.miketechuniverse.com/single-post/2018/03/02/Add-ADC-to-S5D9-IOT-board
There are other blogs from me such as adding a distance sensor, a temperature sensor, and a small OLED display that may be useful for your next small project. Feel free to explore them.
Enjoy,
Michael
Michael, thanks for the great tutorial. When you were working with ADC and DAC, did you have access to an oscilloscope?
I'm looking at buying a super cheap hobbyist DIY kit to at least check the signal. Have you seen the DSO138 kits?
You can get these official kits on Amazon.com for $24.99.
Searching on eBay results in even cheaper clones for $14.98
Here's one example, shipping from the US for $20, free shipping, with the SMD components soldered on.
Here's the specs on it.
Maximum real-time sampling rate : 1MspsAccuracy : 12BitSampling buffer depth : 1024 bytesAnalog bandwidth : 0 - 200KHzVertical Sensitivity : 10mV / Div - 5V / Div ( 1-2-5 progressive manner )Adjustable vertical displacement , and with instructionsInput impedance : 1MΩMaximum input voltage : 50Vpp (1: 1 probe ), 400Vpp (10: 1 probe )Coupling modes include DC / AC / GNDThe horizontal time base range : 10μs / Div - 50s / Div ( 1-2-5 progressive manner )With automatic, regular and one-shot mode , easy to capture the moment waveformAvailable rising or falling edge triggerAdjustable trigger level position , and with instructionsObservable trigger waveform before ( negative delay )Can freeze at any time waveform display (HOLD function )Comes 1Hz /3.3V square wave test signal source
Any opinion on this?
Michael, thanks for this great information. I noticed that Eric's blog had a screenshot of the Digilent WaveForms software for their o-scopes. He included it in his article on DAC. I went on the Digilent site and saw that the WaveForms software worked with the Digilent Electronics Explorer and the Analog Discovery. I think Eric may have the same Analog Discovery unit that you have. It looks like an excellent piece of equipment. I may get that after I progress. The Analog Discovery looks more portable than the Electronics Explorer and should take up less desk space.
We just need access to the Analog pins, right?