Main Site Documentation

Making a Sensor Bus Capable


#1

Can someone identify the chip used here? I need to basically do the same thing and take an analog sensor and put it on an I2C or SPI bus so that I can chain many (32+) together. Any and all suggestions are welcome. Thanks!

https://solarbotics.com/product/35080/


#2

ATtiny45 is the answer to your question.

I would just look to use a DL40 or the Cortex M0 that it uses. The DL framework is ideal for this.


#3

I was hoping for more of a plug & play IC that wouldn’t require custom firmware :frowning: I guess that will work.


#4

The ATtiny solution they use is the same, still a custom firmware.

You might be able to find a generic I2C device but the chances of finding one that just reports back an analog voltage on a certain pin is pretty low, which is what cheap micros are also good for, but require you to do a bit of work.


#5

This begs the question… Has anyone ported a DL equivalent to Arduino?


#6

I have my Piezo DL module based on Arduino somewhere.

I would probably use a couple of 16 channel analog multiplexers in your project.


#7

[quote=“Architect”]
I have my Piezo DL module based on Arduino somewhere. [/quote]

I’m thinking more about the master side of things.

That’s actually how it’s currently wired. We’re looking to convert it to a more modular system that uses fewer pins.


#8

I have not tried it, but in theory the FEEZ Medusa librariries should be able to do DL, I seem to remember seeing the DL classes in the code, I will double check when I get to my machine.


#9

That would be cool. I’m ashamed to say that I haven’t yet written my first Medusa project :frowning:


#10

Both Medusa and Lynx support DaisyLink. The DL40 driver is provided in the SDK released yesterday.


#11

Nice! I’ll look into that.


#12

The DL40 looks like it has 5 pins that can be used as analog inputs, is that right?


#13

@ wolfbuddy - The DL40 has 6 pins available that can be used for Analog Input.

PIO0_11
PIO1_0
PIO1_1
PIO1_4
PIO1_10
PIO1_11


#14

Do you think it will work with something as small as an ATTiny45? The Cortex M0 is going to be too expensive for this project. If you could share your Arduino DL code, that would be great to study.


#15

Ah yes, I see the others now.

What about PIO1_2 and PIO1_3? They look like they could be used as analog inputs too, which would make 8 in total. AD0-AD7


#16

@ ianlee74 - ATtiny44A


#17

PIO1_2 is downstream pin used for the DaisyLink protocol so it is not available as a analog input

PIO1_3 can potentially be used but it also has the SWIO function used for native debugging and is on the DL40’s downstream socket so just for convenience it was not supported in the DL40IO firmware. There is a custom build that supports this if required.


#18

@ taylorza - Thank you for the info.


#19

@ wolfbuddy - It is a pleasure.