Example code for the "Chirp" soil moisture sensor #5753
Replies: 1 comment
-
Posted at 2015-06-26 by DrAzzy What chip is that on it? Tiny 84? Posted at 2015-06-27 by @yerpj I don't know the Tiny family, but it is written "ATTINY 441" on the chip Posted at 2015-06-27 by DrAzzy Oooh, someone's fancy! The tiny x41 series is the second gen of the tiny x4 (where x is 2/4/8, the size of the flash in kb); nice chip - 3 hardware timers and 2 uarts, fancier than I'd have guessed. I got the x41 series working with arduino a few months back, and use them a lot in projects. Posted at 2015-06-30 by @gfwilliams That's great, thanks! I'll have to have a play with one of those :) Looks like it's just that board that implements the protocol, but I guess we could still do a module to make it easy to interface to? Posted at 2017-05-14 by furuskog @yerpj Hello how is it gooing with the chirp? Anyhing new? Can you provide a closeup on the chirp and the pico so i can do the same? Posted at 2017-05-15 by furuskog Can i use this chirp with puckjs? I was wondering if I could send MQTT signals to node-red? Posted at 2017-05-16 by @yerpj @furuskog if you have access to I2C on the puck, you probably will succeed in integrating this chirp sensor. Posted at 2017-05-16 by furuskog If I use a pico/wifi could I in theory have several Chirps connected? And even have a I2C screen connected att the same time? The idea is to have several flower pots connected near each other. Posted at 2017-05-17 by @yerpj I2C is an addressed bus. This means you can have multiple I never tried. Please share your thoughts on this method if you try it! :-) Posted at 2017-05-18 by furuskog Thank you @yerpj maybe I will! ;-) Posted at 2017-05-22 by @gfwilliams Worth nothing that Espruino also has software I2C support now, so you can have lots and lots of different I2C ports, one for each sensor. Posted at 2017-05-22 by furuskog Nice that is grate news |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-06-26 by @yerpj
Hi guys.
This following post refers to the "Chirp" soil moisture sensor (https://www.tindie.com/products/miceuz/i2c-soil-moisture-sensor/).
I just successfully integrate this sensor into Espruino. As far as I know, nobody did it yet (or did not publish a basic example code), so I decided to post it here.
You will notice that this piece of hardware integrate a capacitive sensor, as well as a luminosity & temperature sensor.
The temperature result is in [°c/10] : if result is 226, temperature is 22.6°c.
The capacitive & luminosity sensor are both relative.
If you try it, do not forget to add two ~10k Pull-ups on both SDA and SCL.
If anyone has a better code or a dedicated .js class, do not hesitate to publish it! :-)
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions