Search found 60 matches

by jpj
Mon Dec 26, 2016 12:56 pm
Forum: Development of MicroPython
Topic: [SOLVED] How to include modules in 'unix' build of micropython?
Replies: 2
Views: 3244

Re: How to include modules in 'unix' build of micropython?

That's precisely what I needed.

Thank you!
by jpj
Mon Dec 26, 2016 3:22 am
Forum: Development of MicroPython
Topic: [SOLVED] How to include modules in 'unix' build of micropython?
Replies: 2
Views: 3244

[SOLVED] How to include modules in 'unix' build of micropython?

I installed the vagrant build environment to include modules like sdcard in my firmware using this guide. It works great! https://learn.adafruit.com/building-and-running-micropython-on-the-esp8266/build-firmware This is the Adafruit fork of micropython on GitHub. It includes the 'unix' directory whe...
by jpj
Sun Dec 25, 2016 11:02 pm
Forum: ESP8266 boards
Topic: [SOLVED] Calibrating the PCF8523 RTC
Replies: 5
Views: 6399

Re: Calibrating the PCF8523 RTC

Update: I need to write positive ppm to slow the rtc down, not negative (-26.68) as I posted previously. The PCF8523 register address is 0x0E, but what bits to actually write into it for my calibration I haven't determined. I don't understand the tables and mode starting on age 28 of the datasheet.
by jpj
Sun Dec 25, 2016 6:18 pm
Forum: General Discussion and Questions
Topic: [SOLVED] Understanding the math of ppm
Replies: 4
Views: 3707

Re: Understanding the math of ppm

OK, that makes sense.

Thanks Robert and Dave!
by jpj
Sun Dec 25, 2016 5:14 pm
Forum: General Discussion and Questions
Topic: [SOLVED] Understanding the math of ppm
Replies: 4
Views: 3707

Re: Understanding the math of ppm

Thanks Robert. But how did you know to use "0.000,011,6" to begin with?

I was trying to understand how 11.6 ppm was determined, given the other values were known.
by jpj
Sun Dec 25, 2016 4:00 pm
Forum: General Discussion and Questions
Topic: [SOLVED] Understanding the math of ppm
Replies: 4
Views: 3707

[SOLVED] Understanding the math of ppm

I'm trying to understand the calculations used to arrive at 11.6ppm in the following statement: There are 86400 seconds per 24-hour period, putting each second at about 11.6 millionths of the 24-hour period. That puts an error of 1 second per day at 11.6ppm. Given a crystal with oscillator frequency...
by jpj
Sun Dec 25, 2016 3:26 pm
Forum: ESP8266 boards
Topic: [SOLVED] Calibrating the PCF8523 RTC
Replies: 5
Views: 6399

[SOLVED] Calibrating the PCF8523 RTC

I've been reading about RTC crystal drift and calibration. I've also received some good information on the Adafruit forum in this thread: https://forums.adafruit.com/viewtopic.php?f=57&t=108693 I don't have a truly accurate measurement of drift in ppm as discussed in this thread: http://forum.microp...
by jpj
Thu Dec 22, 2016 9:28 pm
Forum: ESP8266 boards
Topic: Just a "Thank You" and my project update
Replies: 7
Views: 5667

Re: Just a "Thank You" and my project update

Hah - I actually came across some very old code I wrote, on a project where it was important to keep it clean, maintainable and robust. I was actually surprised to see that I thought it looked pretty good, even in hindsight. Some other stuff I've done - not so much! :lol: I recently moved to a diff...
by jpj
Thu Dec 22, 2016 8:15 pm
Forum: ESP8266 boards
Topic: Just a "Thank You" and my project update
Replies: 7
Views: 5667

Re: Just a "Thank You" and my project update

Well, I will be embarrassed to show my code, I'm just learning sockets and am only slightly familiar with Python & MicroPython. But I'll see if I can strip that away from the other code, and post the basics. I found a lot of the documentation confusing for a beginner like me I need examples to lear...
by jpj
Thu Dec 22, 2016 3:50 pm
Forum: ESP8266 boards
Topic: Just a "Thank You" and my project update
Replies: 7
Views: 5667

Re: Just a "Thank You" and my project update

Hi NTL, Your project sounds great. I'll also send out a "thank you" to the MicroPython community for all of the hard work and excellent results. During local daytime hours, once an hour the ESP attempts to upload the file to a Python socket program I have running on my computer. If it can't connect ...