SPI Sensors
Moderators: grovkillen, Stuntteam, TD-er
SPI Sensors
Is it possible to add to the ESP Easy SPI sensors?
Re: SPI Sensors
No . . . . . . . . unless . . .
.
you write your own SPI-controller plugin and your own SPI-device plugin.
.
you write your own SPI-controller plugin and your own SPI-device plugin.
Re: SPI Sensors
For my latest Energy Metering project I wish to communicate with an SPI slave - a Microchip MCP3911 dual ADC.
I realize this means writing a driver.
Can you help with the requirements for writing a driver please?
Of course I will release the code so that you can incorporate into future ESP Easy firmware builds.
But as my C ability is beginner level I do need help.
Al
I realize this means writing a driver.
Can you help with the requirements for writing a driver please?
Of course I will release the code so that you can incorporate into future ESP Easy firmware builds.
But as my C ability is beginner level I do need help.
Al
Re: SPI Sensors
My advice is to use a Arduino as SPI controller and get that working first with the MCP3911.bigal wrote:For my latest Energy Metering project I wish to communicate with an SPI slave - a Microchip MCP3911 dual ADC.
...............
But as my C ability is beginner level I do need help.
Later when that is working fine you can get the Arduino communicate with the ESP over I2C with the PME-plugin to send measurements to ESPEasy.
That may be easyer for a beginner.
Re: SPI Sensors
Costo,
OK I will do that, thanks.
OK I will do that, thanks.
Re: SPI Sensors
No option to use the ADS1115 4 channel ADC instead? Already supported in ESP Easy.
Re: SPI Sensors
I wonder how you can measure 50/60Hz AC current with the ADS1115 connected to ESPEasy.Martinus wrote:No option to use the ADS1115 4 channel ADC instead? Already supported in ESP Easy.
Thanks to the offset of 1/2 Vcc the ADS can measure alternating current at a rate of maximum 860 samples/second. The measurement data can be read from the I2C of the ADS1115. A dedicated master controller could read the data at this samplerate but ESPEasy cannot. ESPEasy has the bottleneck of a slow communication_channel to the server. The fastest measuring rate that you can select in ESPEasy is once/second I guess. That is not fast enough for AC linecurrent
ESPEasy can undersample the AC wave. But the result will be ambiguous. At best you can calculate the effective current by measuring long enough but I doubt if it will be accurate because the actual current you want to measure will also variate in time.
Who is online
Users browsing this forum: No registered users and 47 guests