ProMini extender explained

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
kolin
New user
Posts: 2
Joined: 06 Oct 2015, 00:26

ProMini extender explained

#1 Post by kolin » 06 Oct 2015, 00:37

Hi,
Thanks for great project. It is most polished solution for ESP ever.

I need more IO on my node. I do not have i2c port expander. But I have plenty of Atmega328. I like to use them.
"ProMini expander digital" option is almost self-explaining, but where can I find sketch for for AVR?
Peeking at source code revealed it is working like i2c slave, clever :idea:

Martinus

Re: ProMini extender explained

#2 Post by Martinus » 06 Oct 2015, 16:01

AVR code exists and works. But it does have a strange bug with collecting data on the I2C bus. Currently it can only receive one byte. Sending more than one byte is no issue. This puts a small limitation on current usage. The analog data is read with 'value/4' so the range is 0-255 where the ADC on Atmel is actually 10 bits and ranging from 0-1023. I would like to get this fixed but a bit lack of time...

I will add the Pro Mini sketch to github so you can have a try with it. It should work with plain digital port read/write and analog port read/write (8 bits limitation).

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests