Search found 11 matches

by jeffeb3
Thu Sep 29, 2016 10:39 pm
Forum: Programs, Libraries and Tools
Topic: micropython-lib - "distributed" uPython standard library
Replies: 30
Views: 212306

Re: micropython-lib - "distributed" uPython standard library

The micropython-lib looks to be very useful.

How do I get the libraries I need onto my micro python hardware? I'm assuming all this work for making this work with pip means I shouldn't have to just copy the files over, run them, see what dependencies I'm missing, and then copy over more files...
by jeffeb3
Thu Sep 29, 2016 10:04 pm
Forum: Programs, Libraries and Tools
Topic: slack / slackbot / slack incoming-webhooks
Replies: 0
Views: 3298

slack / slackbot / slack incoming-webhooks

I want my IoT things to post to a slack channel that I've created for the members of my family. We can all choose our own notification settings, etc. for different parts of the IoT system. I just wanted to post information into the slack channel, I'm not interested in getting commands from the chann...
by jeffeb3
Mon Nov 30, 2015 3:46 pm
Forum: Hardware Projects
Topic: Combined PPM (fast pulse width measurements)
Replies: 7
Views: 9739

Re: Combined PPM (fast pulse width measurements)

Should I replace the Timer/channel stuff with just registering an interrupt on a rising edge, and measuring using elapsed_microseconds? Seems like it would be fewer shared resources used.
by jeffeb3
Sun Nov 22, 2015 3:51 pm
Forum: Programs, Libraries and Tools
Topic: paho-mqtt for MicroPython
Replies: 17
Views: 26955

Re: paho-mqtt for MicroPython

Sorry, I don't have my notifications set up on these forums correctly, I didn't know you were asking. I've got many esp8266's and a single micropython board. The application for mqtt would be using an ESP8266 to read a DHT sensor, or a motion sensor, or something like that, and make the data availab...
by jeffeb3
Sun Nov 22, 2015 3:48 pm
Forum: Hardware Projects
Topic: Combined PPM (fast pulse width measurements)
Replies: 7
Views: 9739

Re: Combined PPM (fast pulse width measurements)

One very minor change I would suggest is to change this: def callback(self, tim): self.width = (self.interrupt.capture() - self.start) & 0x0fffffff self.start = self.interrupt.capture() to only call capture once. That closes the very small possibility that the value from calling capture the second ...
by jeffeb3
Sun Nov 22, 2015 3:44 pm
Forum: Hardware Projects
Topic: Combined PPM (fast pulse width measurements)
Replies: 7
Views: 9739

Re: Combined PPM (fast pulse width measurements)

I cleaned this all up, and made a git repo for it. Enjoy:

https://github.com/jeffeb3/cppm_micropython
by jeffeb3
Sat Nov 21, 2015 6:33 pm
Forum: Hardware Projects
Topic: Combined PPM (fast pulse width measurements)
Replies: 7
Views: 9739

Re: Combined PPM (fast pulse width measurements)

Holy cow. That didn't take long at all. I've been working on this for less than an hour. This little board is just awesome. I plan on cleaning this up, and making a nice couple of objects that will let you do things in coordinates other than microseconds. Something akin to the interface I was mentio...
by jeffeb3
Sat Nov 21, 2015 2:55 pm
Forum: Hardware Projects
Topic: Combined PPM (fast pulse width measurements)
Replies: 7
Views: 9739

Re: Combined PPM (fast pulse width measurements)

This seems like a good place for me to start, unless someone else has already done this somewhere:

https://github.com/dhylands/upy-example ... ic_test.py
by jeffeb3
Sat Nov 21, 2015 2:10 pm
Forum: Hardware Projects
Topic: Combined PPM (fast pulse width measurements)
Replies: 7
Views: 9739

Combined PPM (fast pulse width measurements)

I have several R/C receivers that output a "CPPM" signal, which, as far as I can tell, is a fat sync pulse, followed by each channel as a fast pulse, where the width is the size of the signal for each channel. A decent explanaition is here: http://diydrones.com/profiles/blogs/705844:BlogPost:38393 w...
by jeffeb3
Fri Oct 30, 2015 5:52 pm
Forum: Programs, Libraries and Tools
Topic: paho-mqtt for MicroPython
Replies: 17
Views: 26955

Re: paho-mqtt for MicroPython

This is great. I'm not certain micropython is the right choice for my application right now (I'm getting some instability, but there could be lots of reasons causing that), but being able to just publish to mqtt would be great. Certainly, when this gets more mature (and it definitely will) having mq...