Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SoftSPI support for this library #14

Open
Jimyxy opened this issue Nov 26, 2018 · 2 comments
Open

SoftSPI support for this library #14

Jimyxy opened this issue Nov 26, 2018 · 2 comments

Comments

@Jimyxy
Copy link

Jimyxy commented Nov 26, 2018

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.

@whatnick
Copy link
Owner

whatnick commented Nov 29, 2018 via email

@Jimyxy
Copy link
Author

Jimyxy commented Nov 29, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants