nodesign / weio

weio
http://we-io.net
128 stars 35 forks source link

More sensors coming ? (sound, luminosity, infrared...) #278

Open qleroux opened 7 years ago

qleroux commented 7 years ago

Hi ! Do you think that you can add more sensors compatibility (sound, luminosity, infrared, magnetic...) ?

Do you need to manually add drivers for every new sensor so we can use them or is there a simple way to get the data from any sensor ? Starting with the VMA309 from Velleman will be truly appreciated. I've not being able to read data from it at all (missing class or driver I presume).

Thanks in advance. Sincerly, Quentin

ukicar commented 7 years ago

Hello, There is a great number of drivers that you can use as they are (written in Python of course)... Specially drivers that deals with i2c and smbus on Linux will work out of box...

But for a lot of sensors you don't need drivers. For example VMA309 is just simple analog sensor. You can simply use analogRead(pinNumber) to read values from it

qleroux commented 7 years ago

Ok, didn't know. I'll try Thanks a lot !