ATM90E26_Arduino icon indicating copy to clipboard operation
ATM90E26_Arduino copied to clipboard

SoftSPI support for this library

Open Jimyxy opened this issue 7 years ago • 2 comments

Hello Tisham I saw the great work you have done in the energy metering with the ATM90E26. Thank you very much for this library it is very useful for non code experts like me. I have this request, Is it possible you can implement support for softSPI use?. There are some softSPI examples for other chips done with DigitalIO library like the RFID via SoftSPI, I thought it clould be easy, I tried to do it by my self (I was Wrong). I have tried to connect the ATM90E26 via softSPI with no success. Thanks in advance.

Jimyxy avatar Nov 26 '18 17:11 Jimyxy

Would you be able to supply details of the board you tried. SPI is very time sensitive and softspi may fail if timing is not guaranteed.

On Mon., 26 Nov. 2018, 20:04 Jimyxy <[email protected] wrote:

Hello Tisham I saw the great work you have done in the energy metering with the ATM90E26. Thank you very much for this library it is very useful for non code experts like me. I have this request, Is it possible you can implement support for softSPI use?. There are some softSPI examples for other chips done with DigitalIO library https://github.com/greiman/DigitalIO like the RFID via SoftSPI https://github.com/abhaysbharadwaj/RFID-RC522, I thought it clould be easy, I tried to do it by my self (I was Wrong). I have tried to connect the ATM90E26 via softSPI with no success. Thanks in advance.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/whatnick/ATM90E26_Arduino/issues/14, or mute the thread https://github.com/notifications/unsubscribe-auth/AAd_hC1RpNUubeP5F0MC8rFVQYcHuMUUks5uzB8igaJpZM4YzcwV .

whatnick avatar Nov 29 '18 16:11 whatnick

Would you be able to supply details of the board you tried. SPI is very time sensitive and softspi may fail if timing is not guaranteed. On Mon., 26 Nov. 2018, 20:04 Jimyxy @.*** wrote: Hello Tisham I saw the great work you have done in the energy metering with the ATM90E26. Thank you very much for this library it is very useful for non code experts like me. I have this request, Is it possible you can implement support for softSPI use?. There are some softSPI examples for other chips done with DigitalIO library https://github.com/greiman/DigitalIO like the RFID via SoftSPI https://github.com/abhaysbharadwaj/RFID-RC522, I thought it clould be easy, I tried to do it by my self (I was Wrong). I have tried to connect the ATM90E26 via softSPI with no success. Thanks in advance. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#14>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAd_hC1RpNUubeP5F0MC8rFVQYcHuMUUks5uzB8igaJpZM4YzcwV .

The SPI connections the board is now is as follow:

ATM90E26 --- --- Arduino promini - ATmega328p MOSI 27 --- --- D5 MISO 26 --- --- D6 CLK 25 --- --- D7 CS 24 --- --- D8

Now I was able to pick up the pin 12 (USEL) in the ATM90E26 and pull this up to VCC, then it is selected as UART communication mode, I making some tests to achieve the readings using software serial library with the arduino. It is not perfect (the wire over the IC is ugly) but does the job. Anyway I think this is a great library, I think it is good that it has soft SPI Support and I can remove the ugly wire. Thanks.

Jimyxy avatar Nov 29 '18 20:11 Jimyxy