Posts tonen met het label python. Alle posts tonen
Posts tonen met het label python. Alle posts tonen

dinsdag 31 oktober 2017

Learning (micro)python by creating a class to read an max17043 lipo fuelgauge

I'm learning python (again) to use it on my Pycom micropython WIPY2 and LOPY modules. It is a fun language to learn.

The pycom micropython modules (https://www.pycom.io) are little IOT modules with lots of IO-pins,  LiPo battery connecter/charger, wifi, bluetooth (and lora on selected models). They are comparable with the Arduino Mkr1000 family, except you program them with (micro)python. They are great for battery operated little things.

To get back up to speed with python, I've created this little library to read out a maxim max17043 lipo fuelgauge, so you can see how much energy there is left in the LiPo battery. This is chip is used on this little board from Sparkfun ( https://www.sparkfun.com/products/10617 ).

The library is based upon this library from Luca Dentella ( https://github.com/lucadentella/ArduinoLib_MAX17043 )

My library: https://github.com/andrethemac/max17043.py

zaterdag 12 maart 2016

using Wipy, Sim800 GRPS GMS modem, DHT11 temp sensor and micropython

Using an wipy (http://www.wipy.io), micropython to read temperature with DHT11 and sending the data to a (local) blynk server
using a SIM800 GSM board to send a warning when temperature drops below zero degreesor when a button gets pushed on the blynk
blynk by blynk (http://www.blynk.cc)
blynklib by danicampora ( https://github.com/wipy/wipy/blob/master/lib/blynk/BlynkLib.py )
untplib by andrewmk ( https://github.com/andrewmk/untplib )
DHT decoder by RinusW (http://forum.micropython.org/viewtopic.php?t=1392)
(inexpensive) SIM800L GPRS GSM Module SIM Board QUAD BAND Antenna for MCU Arduino (and wipy, ...)
mashup by me andre@andrehtemac.be
todo sim800 communication needs more work
2016/03/12 : version 0.1

see the code on:
https://github.com/andrethemac/wipyDHTSIM800.git