#ATtiny8x7 breakout question

1 messages ยท Page 1 of 1 (latest)

grave quest
#

Threading!

#

Ok, so SCL and SDA. The pins.

#

@viral sphinx oh tagging you, in case the thread isn't obvious.

#

Ok, SCL/SDA. Not the STEMMA connectors.

#

Are they clock and data pins for I2C?

viral sphinx
#

๐Ÿ‘‹

grave quest
#

Or are they something else technically?

#

They're vaguely called "address pins" in the product copy

#

so I'm now second guessing my pinouts explanation

viral sphinx
#

one sec. let me look.

#

there are address pins and an interrupt pin

#

that explains why no digital io on 14/15/16 (i think)

#

i think on pin numbers...but can check

grave quest
#

15-17

#

I just had this conversation with Limor

#

so how do I explain this? ๐Ÿ˜•

viral sphinx
#

yep. those are special pins.

#

could probably argue silk should be something other than the numbers

#

15 = INT
16 = ADDR0
17 = ADDR1

grave quest
#

Oh ok

#

so like the ADR pins on the original board?

#
    16 / AD0 - this is the ADDR0 pin. Connect this to ground to increment the devices I2C address by 1.
    17 / AD1 - this is the ADDR1 pin. Connect this to ground to increment the devices I2C addres by 2.
#

or...?

#

I don't even know what that means, heh

viral sphinx
#

i think that info is original guide?

grave quest
#

Ok

#

I'll take a look

viral sphinx
#

they probably add to a base value

grave quest
#

at least I know I have it wrong so far

viral sphinx
grave quest
#

Yeah that's what I pasted above

#

from that spot in the original guide

#

Ok, thanks Carter. I'll see to updating the pinout explanations.

viral sphinx
#

it'd be worth having a little table or something to just say what they are

#

ok...looking at SCL/SDA pins now...one sec...

grave quest
#

I'm doing the same style pinouts page as original

viral sphinx
#

they're just the same pins as the stemma connector

grave quest
#

No they're not...

#

STEMMA is 10 and 11

#

so says product copy I think

#

That's what made me ask

viral sphinx
#

i'm looking at pcb in eagle

grave quest
#

So am I now, and I'm more confused than before.

#

oh

viral sphinx
#

it's like other STEMMA breakouts

grave quest
#

the pin numbers don't match the chip pins

#

sigh

viral sphinx
#

you can use either the STEMMA connector or the headers

grave quest
#

Ok ok ok ok

viral sphinx
#
Two STEMMA QT I2C connectors with 10K pullup resistors, connected to pins 10 and 11
grave quest
#

That's not right

#

it's 11 and 12.

#

According to the schematic

#

but there's all kinds of problems with that product copy

#

I'll need to get Limor a list.

viral sphinx
#

the numbers may be the arduino pin numbers

grave quest
#

checking

viral sphinx
#

11/12 are the phyiscal pin numbers on the JP3 header

#

16/15 physical pins on the attiny

grave quest
#

Isn't that what I should be listing is the silk?

#

oi.

#

(forgot for a moment this is a public thread.)

viral sphinx
#

the arduino core is what maps these to different numbers

grave quest
#

Then what is CircuitPython doing?

viral sphinx
#

see how physical pin 24 is 18

grave quest
#

Yes

viral sphinx
#

and PA01 etc

grave quest
#

Yes

viral sphinx
#

the core does that

#

and...i'm...not actually sure where the core is...tbh

grave quest
#

yeah........

#

this is so confusing again.

viral sphinx
#

here's an example from the SAMD core

#

for feather m4

#

0 would be the first entry in that table

grave quest
#

Yeah.

viral sphinx
#

1 the next, etc

#

so somewhere there's a similar thing for the attiny8x7 that maps PA01 (phyiscal pin 24) to 18

#

at least i think there is

#

and in there, the SCL/SDA pins would be the 10 and 11 entries in the table

#

thus the product page verbiage

#

(this is my guess)

grave quest
#

sigh.

#

I don't want to keep bugging Limor about this. But I guess I should.

viral sphinx
#

can wait a bit. let me look a little more.

#

but the PCB file doesn't lie in terms of what the SCL/SDA pins are attached to - so they are just the STEMMA connector pins broken out again

grave quest
#

Ok.

#

So you could use the pins to connect to a micro

#

if you wanted

#

like any other breakout

viral sphinx
#

yep. don't need to use the STEMMA connector.

grave quest
#

ok

viral sphinx
#

yep. like other breakouts.

grave quest
#

not going to show that

viral sphinx
#

just options

grave quest
#

but trying to understand

#

wait

#

it's flashed with seesaw firmware

#

that's what must be mapping things

viral sphinx
#

correct

grave quest
#

right?

#

not ArudinoCore

viral sphinx
#

but the firmware is just an arduino sketch

grave quest
#

oh seriously?

viral sphinx
#

the core is used to build the sketch

grave quest
#

ohhhh

#

There's an avr core, but it's not in there

viral sphinx
#

that's essentially the firmware for the board

grave quest
#

ok..

viral sphinx
#

there's very little code there, since all the work is down in the other files

#

the hack being done is putting code in header files

#

i think she mentioned this on a desk-of way back

grave quest
#

Ah

viral sphinx
#

it's just a C compiler limitation hack thing

#

because there's a desire to be able to configure things via #defines

#

like at the top of the sketch

grave quest
#

Oh she pasted this code to me earlier. Or rather four lines of it.

viral sphinx
#

and then just build and be done

grave quest
#

Ok

#

oi.

viral sphinx
#

but...there are C quirk things...so the hack (code in header files)

grave quest
#

right

viral sphinx
#

the real code is in all the .h files in the root dir

#

of the repo

grave quest
#

hmm yeah.

#

I mean, should I ask Limor what pins she wants used on the pinouts page? Silk or ATtiny? Or is that a red herring on my part

viral sphinx
#

the one .cpp there is just to keep the compiler happy. it's just an empty shell essentially.

grave quest
#

Looking at the product copy

#

for the other types of pins listed

#

looks like silk.

#

Oh there's separate addr selection pins: 2 x I2C address selection pins - pins 16 and 17

viral sphinx
#

yep. silk is the arduino numbers.

grave quest
#

But like, activity LED, pin 5.

viral sphinx
#

18 for example

grave quest
#

Ok, I'll use silk then.

#

Which I guess means not pointing out what pins SCL/SDA are even connected to in the first place.

viral sphinx
#

nah, you should

#

you could describe those just like any STEMMA breakout

grave quest
#

I'm confused

#

They're SCL/SDA on the silk. I don't explain that pin 20 is 3........

#

So why go further with those two?

viral sphinx
#

let me read those other "uses" (the 3 in 1 stuff)

grave quest
#

oki

viral sphinx
#
 you could use it as either an I2C controller or peripheral with plug-and play support
#

hmm....not sure i've looked into what the "controller" option here is

grave quest
#

So I should list all of the ATtiny pins?

#

That's what's confusing me at this moment. Why only SCL/SDA?

viral sphinx
#

they may come into play when used as a controller....but not sure

grave quest
#

hmm

#

ok

#

I think Limor expects folks to use it as a seesaw

#

but she made it so she could use it for other things.

#

Is my guess from the tone of the copy

viral sphinx
#

yah, i understand use case 1 and 2, but not 3

grave quest
#

um

#

I guess you could use it as an ATtiny817 micro with an I2C sensor wired up to it?

#

controller vs peripheral

#

Have to power it via throughhole but ...

#

I think that's what it means?

viral sphinx
#

could be. that implies you'd load your own firmware. which may be. the UPDI pin is broken out.

grave quest
#

It says you can do whatever you want with it at the bottom

#

there's a core listed there.

#

hah

#

Guess I could have read more carefully

viral sphinx
#

compiled using the megaTinyCore

grave quest
#

I kind of checked out by the end of the seesaw pins

#

I found that core when searching, but figured I was off base

#

guess not

#

Ok, so at this point, I guess I have a better question to ask Limor - do you want me to list both the silk pins and the ATtiny pins, or only the silk pins?

#

Or are we still figuring this out

viral sphinx
#

just silk pins is my guess

#

anyone wanting attiny pins would use schematic

grave quest
#

I mean I feel like at this point it comes down to what folks are going to do with this thing

#

ok

#

I'll go with that then.

viral sphinx
#

but i think worth asking limor exactly what (where) the megaTinyCore she used is

#

and link it in guide

grave quest
#

I think it's linked later?

#

in the copy

#

second to last paragraph maybe?

viral sphinx
#

only seeing link to the sketch

grave quest
viral sphinx
#

ooohhh...ok...see it

grave quest
#

Screenshot took too long

viral sphinx
#

text is odd

grave quest
#

had an arrow and everything.

#

Imma send it anyway.

viral sphinx
#

duh. yah.

#

ok. let me look in there for stuff.

grave quest
#

My computer likes to take arbitrary amounts of time to save screenshots, up to 5 minutes. It's great.

#

Ok

viral sphinx
#

mac?

grave quest
#

Yep.

#

I can get rid of the delay entirely

#

but not make it be quick like it used to be

#

Gets better after reboots, but then does this oscillating timing thing...

#

Over time.

grave quest
#

Oh ho.

#

They're sort of right?

#

LED is on 5 on this one...

#

or

#

looks

#

nm.

#

wait

#

Yes I'm right.

#

LED Is on 5 on the silk.

#

pin 6 of the connector... but I don't think that's what it's referring to?

viral sphinx
#

yah, ignore that LED

grave quest
#

oki

#

I guess the rest follows

#

I mean, it's not as bad as RP2040, but it's getting there.

#

oops, address selection pins not mentioned.

#

Not sure how to tell which is which.

#

and which does which

#

Assume they're the same?

#

and paste it from the original?

#

nothing coming up in the datasheet.

#

for addr0, ad0

viral sphinx
#

the address and interrupt are entirely seesaw features

grave quest
#

ohhhhh

#

Got it

viral sphinx
#

for the attiny arduino core, they are just gpio

grave quest
#

it's in the sketch

viral sphinx
#

seesaw makes special use of them

#

yep. in the sketch.

grave quest
#
#define CONFIG_ADDR_0_PIN          16
#define CONFIG_ADDR_1_PIN          17```
#

ok

viral sphinx
#

^^ yep

grave quest
#

Thank you!

#

I think this is a good pinouts page now.

viral sphinx
#

3 addresses, so yah, it's like a 2 bit number that gets added to the base address

grave quest
#

No idea if that note about speed is useful, but it's accurate. So... eh.

#

Figure someone will complain at some point without it. Limor can delete it if she doesn't like it. ๐Ÿ˜„

viral sphinx
#

yep. just copy pasta the address description for now. like it doesn't mention grounding both to increment by 3.

#

but neither did the other guide

grave quest
#

I did exactly that.

#

Can you take a gander?

#

Or a goose I guess.

viral sphinx
#

you may want to mention that 15/16/17 can not be used as GPIO

grave quest
#

Though geese are terrible. Goslings are cute though.

#

Ok

viral sphinx
#

worth a callout even probably

grave quest
#

I made a note after the GPIO pins section.

#

It's not colored

#

should I make it an alert?

viral sphinx
#

Note that pins 15, 16 and 17 can NOT be used as GPIO pins! with the seesaw firmware

#

it's only an issue with the seesaw firmware

grave quest
#

Oh right

viral sphinx
#

they could be GPIO if someone wanted to do option 3

grave quest
#

Riiight.

#

ok updated to alert and wording is more accurate now

viral sphinx
#

i'd make it color box

grave quest
#

blue already

viral sphinx
#

given the silk doesn't indicate it

grave quest
#

Yah

#

Anything else?

viral sphinx
#

pinout page looks good

grave quest
#

This chip seems like a better option than the SAMD09. Pin-wise anyway. No reset button might be annoying....

#

Thank you

#

whew.

#

You were immensely helpful, I really appreciate it

viral sphinx
#

sure. np.

grave quest
#

One of these days I'll be in your neck of the woods, and I owe you a beverage of your choice.

viral sphinx
#

i learned to. finally figured out where the core being used was.

grave quest
#

excellent.

viral sphinx
#

yeah BOYC!