external sensor program to pycom
-
Greetings
I am looking to create a program for a sensor without a library; is there a "general" structure to make the program?
I am trying to communicate between the sensor and the pycom with I2C.If someone can point me to a some sort of "skeleton" and fill the gaps and make some tweaks I belive that would help me alot
-
@juan_peroza It all depends on what exactly you need/want to achieve, including the network you use, polling frequency, whether you have some local logic before sending or you just poll and send, whether you need deep sleep or not, etc.
Have you checked the many examples in the documentation? Especially https://docs.pycom.io/tutorials/all/i2c since you plan to use an I2C sensor...
-
@jcaron as of right now what I want to achieve:
Using a SCD30 sensor (which gets humidity, temperature and CO2 levels) read the data and save it, for that I intend to create (or modify based on other libraries) the library for the sensor.I already have the adress of the sensor and the hexadecimal "commands" and I am trying to use the libraries of the Pysense sensors as a template
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login