Software serial / buttons on IO expander

Show us your Gamebuino clone or the last module you made.

Software serial / buttons on IO expander

Postby Georgian » Sat Jul 08, 2017 5:52 pm

Hello,
I'm working on a complex DIY Gamebuino. As expected i run out of digital pins :lol:
Will it be possible to use Software Serial on the digital pins from an IO expander (PCF8574), the buttons should be possible, i'll have to modify the library i guess. I need two Software Serials or at least one. Also i'm using the VQFN version of ATmega so i don't have the A6 and A7 pins too.
Any sugestions?
Thank you for taking your time to read this. Have a nice day guys :D
Georgian Borca.
Last edited by Georgian on Sun Jul 23, 2017 6:15 pm, edited 2 times in total.
Georgian
 
Posts: 22
Joined: Sat Aug 27, 2016 4:56 pm

Re: Software serial / buttons on IO expander

Postby Georgian » Mon Jul 17, 2017 8:25 pm

After a lot of research, I foud a solution. There are some i2c/spi to UART ICs and it happens that for one of them there are some library already written. Here is the datasheet. I hope to get it working. I'll keep you guys updated if i manage to get it to work.
http://www.nxp.com/docs/en/data-sheet/SC16IS740_750_760.pdf
Georgian
 
Posts: 22
Joined: Sat Aug 27, 2016 4:56 pm

Re: Software serial / buttons on IO expander

Postby Georgian » Sun Jul 23, 2017 6:13 pm

New update. This thig works great but it has an 64 bytes internal buffer. A GSM modem sends more data then this little guy can receive in one go.
Georgian
 
Posts: 22
Joined: Sat Aug 27, 2016 4:56 pm


Return to Hardware Gallery

Who is online

Users browsing this forum: No registered users and 2 guests

cron